Computer Science, asked by johndoe37596, 5 hours ago

Take the Government Electric board, Electric units consumed accordingly calculate amount

 1 to 50 units @ 1 Rs.(any currency)/unit
 51 to 200 units @ 3 Rs./unit
 201 to 300 units @ 5 Rs./unit
 301 to 500 units @ 7 Rs./unit
 More then 501 units @ 10 Rs./unit
 Tax to be added in final amount @ 10%.
 Meter charge 50 Rs. extra.

Print the bill with Consumer name, Consumer Number, Privious Unit, Current unit and Final
amount.

Answers

Answered by priyanshukumar4061
2

Answer:

1 to 100 units – 

100 to 200 units – 

200 to 300 units – 

above 300 units – 

Examples: 

 

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 

Explanation:

Please mark me brainleast answer

Similar questions