m2kbeast m2kbeast
  • 23-11-2021
  • Engineering
contestada

Write a program to calculate the electricity bill amount as per the following criteria.

Respuesta :

wilfredtrabue
wilfredtrabue wilfredtrabue
  • 23-11-2021

Answer:

# Python Program to Calculate Electricity Bill units = int(input(" Please enter Number of Units you Consumed : ")) if(units < 50): amount = units * 2.60 surcharge = 25 elif(units <= 100): amount = 130 + ((units - 50) * 3.25) surcharge = 35 elif(units <= 200): amount = 130 + 162.50 + ((units - 100) * 5.26) surcharge = 45 else: amount = 130 + 162.50 + 526 + ((units - 200) * 8.45) surcharge = 75 total = amount + surcharge print("\nElectricity Bill = %.2f" %total)

Explanation:

Answer Link

Otras preguntas

Question 2 20 pts If the domain of the coordinate transformation f(x, y) = (y + 2,- x - 4) is (1,-4), (3,-2), (0.-1), what is the range? O (-5,-2), (-7,0).(-4,1
5y + 2 = one half(10y + 4)
Match each good to the country that imported it. gold grain ivory papyrus Kush Egypt UGHH I NEED HELP WITCH GOES WHERE
(Documents 2-4) How did Anglo Americans react to the Vesey plot?
Pls help for Algebra 11b = 143
Please help me I’m being timed
can someone please help fast will be marked as brainiest
6. -6 + m = 3.6 ASAP NEED HELP PLS
Best shirt design Company can make 1/12 of an order in 1/6 of an hour. How much of the order can the company complete in an hour? Please help!!!
Help me, please! (97 points)*, DO NOT ANSWER THE QUESTIONS FROM THE PDF ONLY READ THE ARTICLE THEN ANSWER THE QUESTIONS BELOW*----------------------------------