Write a program to calculate the electricity bill amount as per the following criteria.
Number of units Rate per unit
First 100 units Rs. 2.00
Next 200 units Rs. 3.00
Above 300 units Rs. 5.00
A surcharge of 2.5% charged if the number of units is consumed above 300 units.
Input customers name and number of units consumed. Display the details as follows:
Name of the customer :---------------
Number of units consumed : ---------------
Bill amount : -------------------------
Answers
Answered by
6
Please refer the attached image
Attachments:
Answered by
4
Answer:
hope it helps you...mark it as the brainliest
Attachments:
Similar questions