Question
Provide detailed explanations in your code as comments. C program Please Do it FAST Problem 5. An Electricity board charges the following rates mentioned in
Provide detailed explanations in your code as comments. C program Please Do it FAST
Problem 5. An Electricity board charges the following rates mentioned in the table for the use of electricity. All users are charged Taka 50 as a meter charge for every month. If any user wants to change/replace his meter, he will be charged taka 2000. The monthly bill will be generated based on
-
Customer Category
-
Consumed Units
-
Phase
-
For Category 3 and 5 along with other parameters, you need to also consider flat rate, peak time, and off-peak time. Take input from the user, how many units were consumed during flat rate, peak, or off-peak time.
-
Meter Charge
Write a program to read the name of the user, Customer Category, Phase, number of units consumed and print out the monthly bill.
Note that
-
Phase, flat rate, peak time and off-peak time will be appeared based on the customer category.
-
The monthly bill will be calculated following the number of Days in a month
The output shall look like this:
~~~~~~~~~~~~~~~Check Your Electricity Bill~~~~~~~~~~~~~~~
Enter the name of the customer:
ABCD
Customer Number:
XXXXX
-
Monthly Bill
-
Meter Replacement
-
Main Menu
-
Exit
-
MS. ABCD
XXXX
Monthly Electricity Bill is --------- Taka
Thank you
Please Enter your choice:
-
Monthly Bill
-
Meter Replacement
-
Main Menu
-
Exit
-
4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1
1. Residential
2. Agricultural Pumping
3. Small Industries
4. Non-Residential
5. Commercial and Office
1
Units Consumed: b
a. 1 Phase
b. 3 Phase
a
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started