Question: 4. Electricity Bill Calculation Write a complete C++ program to calculate the electricity bill every month for a customer live in KSA with the help

 4. Electricity Bill Calculation Write a complete C++ program to calculate

4. Electricity Bill Calculation Write a complete C++ program to calculate the electricity bill every month for a customer live in KSA with the help of the below charges given an integer C denoting the amount of KWh units of electricity consumed: Category Consumption (C) Charge / KWh 116000KWh0.18SAR/KWh above 6000KWh0.30SAR/KWh The steps of the program to calculate the electricity bill charge should be as follows 1. Enter the previous and current meter readings (Rp, Rc) 2. Calculate total consumption C=RcRp 3. Calculate the consumption charge according to the above table 4. Calculate the total bill value by adding 15% tax into the consumption charge 5. Print the total bill amount Examples: - Rp=2000,Rc=3500,C=1500KWh Charge of 1500KWh=10000.18=180SR Total bill value =1801.15=207SR - Rp=2000,Rc=8500,C=6500KWh Charge of 6500KWh=60000.18+5000.3=1080+150=1230SR

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 Databases Questions!