Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedusing 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 more

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago