Question: ..Write a C++ program to calculate electricity bill given a variable (R) representing the kilowatt of electricity consumed according to the following rules: If

..Write a C++ program to calculate electricity bill given a variable (R)

 

..Write a C++ program to calculate electricity bill given a variable (R) representing the kilowatt of electricity consumed according to the following rules: If the customer consumes from 1 to 100khw then he should pay 0.15 JOD per kWh. Plus, 0.20 JOD per kWh for amount more than 100kWh and less than or equal 250kWh. Plus, 0.25 JOD per kWh for amount more than 250kWh. Sample Output Enter the cosnumed kilowatt: 174 Your bill is 29.8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!