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

Mattie bought a piece of rope that was 10.8 yards long. She needs to cut 8 equal pieces. How long will each pie be?
Which of the following answer choices would be considered the simplest?
If the length of JK is 3x and the length of LM is 12x and the length of the entire line JM is 25x , find the length of KL.
I need help again, please.
Use the graph to determine the domain and range of the exponential function.
does anyone know how to find square root quickly?
Four penguins would satisfy a polar bear's appetite for 12 hours. A polar bear has a territory of 10 square miles. There are 1000 penguins per square mile. Wha
I’m addition, which cardinal directions do lines of latitude measure?
how does coates feel about his progress in french?
What is the radius of a circle whose equation is (X +5 )2+(Y -3 )2=four squared