Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Upto
Charge Unit
and above but less than
ie
and above but less than
a
and above
a
a
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
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