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 199
@1.20
200 and above but less than 400
@1.50
400 and above but less than 600
@1.80
600 and above
@2.00
If bill exceeds Rs.400 then a surcharge of 15% will be charged and the minimum bill should be of Rs.100-
(5M)
 Write a program in C using the enum user defined data

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!