Program to input electricity unit charges and calculate total electricity bill according to the given condition-
For first 50 units Rs. 0.50/units
For next 100 units Rs. 0.75/units
For next 100 units Rs. 1.20/units
For unit above 250 Rs. 1.50/units
and additional surcharge of 20% is added to the bill.
#Program to Calculate Electricity Bill amt=int(input("Enter Total Unit Consumed: ")) total=surcharge=amt=0 if unit<=50: amt=unit*0.50 elif unit<=150: amt=25+(unit-50)*0.75 elif unit<=250: amt=100+(unit-150)*1.20 else amt=220+(unit-250)*1.50 surcharge=amt*20/100 total=amt+surcharge print("Total Electricity Bill of Rs",total)
0 Comments
Please don't Add spam links,
if you want backlinks from my blog contact me on rakeshmgs.in@gmail.com