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, 03.07.2019 23:20
Two technicians are discussing the intake air temperature (iat) sensor. technician a says that the computer uses the iat sensor as a backup to the engine coolant temperature (ect) sensor. technician b says that the powertrain control module (pcm) will subtract the calculated amount of fuel if the air measures hot. who is correct
Answers: 3
question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:20
How much power could a wind turbine produce if it had the following specifications? cp = 0.45 -d=1.2kg/m3 d=50m v 5m/s
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
English, 14.10.2019 17:10
Questions on the website: 13722363