Question: Question 1 ( 4 5 points ) Write a program that computes a customer's monthly electricity bill.The bill includes a 1 0 ( Riyals )
Question points
Write a program that computes a customer's monthly electricity bill.The bill includes a Riyals monthly fee of meter, added value rate on the total consumption cost, and plus the cost of electricity consumption per kilowatthour based on the New Electricity Tariffs for all categories of consumption.
The program asks the user to input customer's name, the bill actual number of days, amount of electricity consumption, and then the total cost of electricity consumption is calculated based on the following Consumption categories.
table#Consumption categories per monthHalalah kwh to More than
And by the following formulas In case consumption exceeds consumption of first category:
Consumption of the first category Actual number of days
Consumption of the second category Amount of electricity consumption Consumption of the first category
Total consumption cost Consumption of the first category Consumption for the second category
Tax Total consumption cost Added value rate
Bill amount Monthly fee of meter Total consumption cost Tax
Note:
In case consumption does not exceed that of first category, then the bill will be based on halal only.
Following is an example that explains how to calculate the cost of electricity consumption for a person who consumed kwh in days.
tablecategoryConsumption Halalah kwhTotal amount
Total SAR withot added value and montly meter service
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
