Computer Science, asked by as2444550, 4 months ago

Bihar state electricity Board calulcate electricity bill for their consumers according to the units consumed

(per month as per the given tarrif) :

UNITS CONSUMED CHARGES

Upto 100 units Rs. 1.80 / unit

More than 100 units & upto 300 units Rs. 2.30/unit

More than 300 units & upto 500 units Rs. 2.80/unit

More than 500 units Rs. 3.50/unit

WAP to input name of consumer, consumer no., month, & units consumed calculate & display the

electricity bill with all the details.​

Answers

Answered by joya643
3

Answer:

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

Similar questions