Question: Q4. Write a CH program that calculate and display Electricity bill based on the following rules: Units of Electricity consumption = Watts of the Electrical
Q4. Write a CH program that calculate and display Electricity bill based on the following rules: Units of Electricity consumption = Watts of the Electrical equipment * Time of use per day in hours * 30 days* Unit charge /1000. I Unit charge for local customers @ 20 Fils per unit and it is expatriates @40 Fils per unit. Additional charges: 5% VAT on the total bill User inputs are as shown in the figure Please Enter Watts of an electrical Equipment: XXXXXXX.XXX Please enter duration of daily usage in hours: XXXXXXXX.XXX Customer Type (1 for Local and 2 for Expatriate): Electricity Charge per Month: XXXXXXX.XXX
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
