Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using Visual stidio C++ using switch format (Write a program that displays water bills. Your program should prompt the user to enter an integer account
using Visual stidio C++ using switch format
(Write a 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. 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: Use switch case to determine the code. Code H: $5.00 plus $0,005 per gallon Code C: $1000.00 for the first 4 million gallons used plus $0,025 for each additional gallon used Code I: $1000.00 if usage does not exceed 4 million gallons $2000.00 is usage is between 4 million and 10 million gallons $3000.00 is 10 million gallons or moreStep 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