68 719
Assignments Done
Successfully Done
In January 2019

Answer to Question #54980 in C++ for Kawther

Question #54980
Write a C++ program that displays water bills. Your program should prompt the user to enter an integer account number, a character use code, and a real number representing the gallons of water used. The output from your program should include the account number, message indicating the type of usage, and the amount of money due from the user. Draw a flowchart for your program.

The water rates vary depending on the type of usage. A code of H means home use, a code of C means commercial use, and a code of I means industrial use. Any other code value should be treated as an error. Water rates are computed as follows:

Code H: 5.00 KD plus 0.005 KD per gallon

Code C: 150.00 KD for the first 4 million gallons used plus
0.025 KD for each additional gallon used

Code I: 200.00 KD if usage does not exceed 4 million gallons
400.00 KD is usage is between 4 million and 10 million gallons
500.00 KD is 10 million gallons or more
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions