Question
Q3. Write a C++ program for Electricity Billing System (EBS). Ask the user to enter units consumed by them and any arrears or fines. The
Q3. Write a C++ program for Electricity Billing System (EBS). Ask the user to enter units consumed by them and any arrears or fines. The EBS takes units consumed from the user and calculates Electricity Charges (EC) using the provided criteria. 01 to 50 units at Rupees 1.50 (per unit), 51 to100 units at Rupees 2.50 (per unit), and more than 100 units at Rupees 3.50 (per unit). General Sales Tax that is 10% of the EC is also added to the EC. Amount due = EC + GST + Arrears and Fine. The calculation should be done using a user defined function. In all cases a single function should be called. The function should receive two parameters and return one value.
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