Question: Write a program in C using the enum user defined data type to calculate and print the electricity bill of a given customer. The customer
Write a program in C using the enum user defined data type to calculate and print the electricity bill of a given customer. The customer ID name,
and unit consumed by the user should be captured from the keyboard to display the total amount to be paid to the customer.
The charge are as follows:
Unit
Charge Unit
Upto
@
and above but less than
@
and above but less than
@
and above
@
If bill exceeds Rs then a surcharge of will be charged and the minimum bill should be of Rs
M
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
