Computer Science, asked by theonlylonewolf, 5 months ago

Write a program to input units of electricity consumed and then display the total electricity bill according to the following conditions:
• Cost of first 50 units Rs. 0.50/unit
• Cost of next 100 units Rs. 0.75/unit
• Cost of next 100 units Rs. 1.20/unit
• Cost of a unit above 250 Rs. 1.50/unit
• An additional surcharge of 20% is added to all the bills.

In the python programming form please..

Answers

Answered by Anonymous
3

Answer:

Charge for the first 100 units – 10*100 = 1000

Charge for the 100 to 200 units – 15*100 = 1500

Charge for the 200 to 250 units – 20*50 = 1000

Total Electricity Bill = 1000 + 1500 + 1000 = 3500

Input: U = 95

Output: 950

Explanation:

Charge for the first 100 units – 10*95 = 950

Total Electricity Bill = 950

Similar questions