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

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!