Question: Create a C + + program that will do the following: Ask the user the name of the person the bill is being calculated for.

Create a C++ program that will do the following:
Ask the user the name of the person the bill is being calculated for.
Ask the user how many months worth of data they want to enter (up to 12).
Ask the user who their TDU is.
Take the kwh used for each month from the user.
Calculate the charges for each month based on the rates specified in the EFL.
Calculate the TDU charges based on the kWh the user entered and the TDU they selected.
Display the user's name & the charges for each month (show the electric company charges, the TDU charges, and the total charges of both combined).
Display the user's name & the total charges for all months added together (show electric company charges, TDU charges, and total charges of both combined).
Allow the user to enter another person's billing information.
NOTE: The energy charges from the electric company are tiered per kwh. For example, if the customer uses 1202 kwh, they electric company would charge 7.3 cents for each of the first 1200 and then 3.7 cents each for the remaining 2 kwh.

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!