Computer Science, asked by mayankbhardwaz269, 4 days ago

Write a program to calculate the electricity bill on unit consumed according to the following rules Unit Consumed. Rate per unit 1000.Rs.2.10 An additional Rs.50 will be added with the bill as Meter Rent. Take unit consumed as input from the user and calculate the bill and display​

Answers

Answered by lalitmandrai
0

Input: U = 250

Output: 3500

Explanation:

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

Attachments:
Similar questions