The West Bengal Electricity Board(WBEB) charges from the consumers according to the
units consumed per month but the amount is to be paid quarterly in advance as per the given tariff:
UNITS CONSUMED CHARGES
Up to 100 units Rs. 4.80/unit
For next 200 units Rs. 5.50/unit
For next 300 units Rs. 6.80/unit
More than 600 units Rs. 7.50/unit
Write a program to input consumer’s name, consumer number and the units consumed. The program
displays the following information at the time of receiving the money receipt as:
West Bengal Electricity Board
Money Receipt
Consumer Number:
Consumer’s Name:
Units Consumed:
Monthly Amount:
Amount to be paid Quarterly:
Answers
Answered by
0
Answer:
up to 100unitsrs 4.80/unit
Answered by
3
Explanation:
1 to 100 units –
Rs. 10/unit
100 to 200 units –
Rs. 15/unit
200 to 300 units –
Rs. 20/unit
above 300 units –
Rs. 25/unit
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
IRZETEX
Similar questions