subject
Engineering, 26.11.2019 00:31 Maaaryyss

Write a program that will calculate and print out bills for the city water company. the water rates vary, depending on whether the bill is for home use, commercial use, or industrial use. 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 should be treated as an error. the water rates are computed as follows: a. code h: $5.00 plus $ 0.0005 per gallon used
b. code c: $1000.00 for the first 4 million gallons used and $0.00025 for each additional gallon
c. code i: $1000.00 if usage does not exceed 4 million gallons; $2000.00 if usage is more than 4 million gallons but does not exceed 10 million gallons; and $3000.00 if usage exceeds 10 million gallons
your program should prompt the user to enter an account number (type int), the code (type char), and the gallons of water used (type float). your program should echo the input data and print the amount due from the user.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 19:10
How to increase the thermal officiency of an ideal simple rankino cycle? among these methods, which one is the best and why?
Answers: 2
question
Engineering, 04.07.2019 19:10
The proportional limit is always greater than the yield strength for a material. a)-trune b)- false
Answers: 3
question
Engineering, 04.07.2019 19:10
For a process taking place in a closed system containing gas, the volume and pressure relationship is pvi-constant. -1.5 bar, the process starts with initial conditions, pi = =0.03 m3 and ends with final volume, v2-0.05 m3 determine the work done by the gas.
Answers: 2
You know the right answer?
Write a program that will calculate and print out bills for the city water company. the water rates...
Questions
question
Mathematics, 16.04.2020 21:15
question
Mathematics, 16.04.2020 21:15
question
Mathematics, 16.04.2020 21:15
question
Mathematics, 16.04.2020 21:15
Questions on the website: 13722359