akosiraff

Allenton Water Department

Mar 5th, 2013
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. Download: http://solutionzip.com/downloads/allenton-water-department/
  2.  
  3. In this exercise, you code an application that calculates a customer’s
  4. 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
  5. $1.75 per 1000 gallons, or .00175 per gallon. Make the calculations
  6. only when the current meter reading is greater than or equal to the
  7. previous meter reading; otherwise, display an appropriate message.
  8. Display the total charge with a dollar sign and two decimal places.
  9. The text boxes should accept only numbers and the Backspace key.
  10. Clear the number of gallons used and the total charge when a change
  11. is made to the contents of a text box on the form. When a text box
  12. receives the focus, select its existing text. Save the solution, then start
  13. and test the application. Stop the application. Close the Code Editor
  14. window, then close the solution.
  15.  
  16. Download: http://solutionzip.com/downloads/allenton-water-department/
Advertisement
Add Comment
Please, Sign In to add comment