Computer Science, asked by biswassujit9001, 2 days ago

WAP to input the number of days and calculate the rental fare of an electric meter as: Days Rate/day First 10 days Next 10 days Next 10 days Rs. 50 Rs. 40 > 30 days Rs. 30 Rs. 25​

Answers

Answered by 13adewumij
0

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