Python programs. Area of Rectangle, Area of Triangle, Temperature Conversion, Bill and Electricity Bill

 

05. Calculate area of Rectangle. l=5.3, b=2.7

l=5.3

b=2.7

area=l*b

print('Area of Rectangle : ',area) #Area of Rectangle :  14.31



06. Calculate area of Triangle. b=8.3, h=6.7

l=8.3

b=6.7

area=l*b

print('Area of Triangle : ',area) #Area of Triangle :  55.61000000000001



07. C=(f-32)*5/9  Temp. Conversion f=92


f=92

c=(f-32)*5/9

print('Centigrade : ',c)  #Centigrade :  33.333333333333336



08. Quantity=15, Rate=5.25, Calculate Bill

quantity=15
rate=5.25
bill=quantity * rate
print('Bill : ',bill) #Bill :  78.75



09. Calculate Electricity Bill. LMR=101, CMR=147, Rate=1.45, Calculate Units & Bill

lmr=101
cmr=147
rate=1.45
units=cmr-lmr;
bill=units*rate;
print('Units : ',units) # Units :  46
print('Bill  : ',bill)  # Bill  :  66.7






Comments

Popular posts from this blog

Python program for Calculate Simple Arithmetic Operation Programs in Python.