Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/allenton-water-department/
- In this exercise, you code an application that calculates a customer’s
- water bill. Code the application so that it calculates and displays the number of gallons of water used and the total charge for the water. The charge for water is
- $1.75 per 1000 gallons, or .00175 per gallon. Make the calculations
- only when the current meter reading is greater than or equal to the
- previous meter reading; otherwise, display an appropriate message.
- Display the total charge with a dollar sign and two decimal places.
- The text boxes should accept only numbers and the Backspace key.
- Clear the number of gallons used and the total charge when a change
- is made to the contents of a text box on the form. When a text box
- receives the focus, select its existing text. Save the solution, then start
- and test the application. Stop the application. Close the Code Editor
- window, then close the solution.
- Download: http://solutionzip.com/downloads/allenton-water-department/
Advertisement
Add Comment
Please, Sign In to add comment