Problem

Allenton Water Department wants a program that calculates a customer's monthly water...

Allenton Water Department wants a program that calculates a customer's monthly water bill. The clerk will enter the current and previous meter readings. The program should calculate and display the number of gallons of water used and the total charge for the water. The charge for water is $7 per 1000 gallons. However, there is a minimum charge of $16.67. (In other words, every customer must pay at least $16.67.)

a. Create an 1P0 chart for the problem, and then desk-check the algorithm twice. For the first desk-check, use 13000 and 16000 as the previous and current meter readings. For the second desk-check, use 1650 and 3675.

b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 5-37. Then code the algorithm into\ a program.

c. Desk-check the program using the same data used to desk-check the algorithm.

d. Enter your C++ instructions into a source file named Intermediate13.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the total charge in fixed-point notation with two decimal places.

e. Save and run the program. Test the program using the same data used to desk-check the program.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 5
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT