Engineering
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.

answer
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, makaylashrout77
Amass of 1.5 kg of air at 120 kpa and 24°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
image
Engineering, 03.07.2019 14:10, BardiFan
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
image
Engineering, 04.07.2019 18:10, sarahgrindstaff123
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
image
Engineering, 04.07.2019 18:10, lerasteidl
Determine whether or not it is possible to compress air adiabatically from k to 140 kpa and 400 k. what is the entropy change during this process?
Answers: 3
Do you know the correct answer?
Write a program that will calculate and print out bills for the city water company. the water rates...

Questions in other subjects:

Konu
Mathematics, 30.09.2019 02:30
Konu
Mathematics, 30.09.2019 02:30
Konu
English, 30.09.2019 02:30