You are on page 1of 1

Allenton Water Department

Ex 3 pg 367 Lesson 4C 1. 2. 3. 4. Name, description, Option Exp Exit button form named MainForm Form layout by GUI standards: 5. 6. 7. Button same size & title cap. Labels left aligned, same height Colons, sentence cap. TextBoxs same size Title on Form

Name____________

1 pt 1 pt

________ ________

2 pts ________ 3 pts ________

All controls named correctly KeyPress event correct Only numbers and backspace Calculate event correct If Current > = Previous then o Calculate gallons used o Calculate amount due o Display amount and gallons centered in label Format amount as currency Else o Message box invalid data Title and Prompt Ok button exclamation icon

2 pts ________ 2 pts ________ 4 pts ________

1 pt

________

2 pts ________

8.

Clear

event correct xCurrent TextBox.TextChanged xPreviousTextBox.TextChanged clears the amount and gallons label

2 pts ________

9.

TEST DATA: Current: Previous: 14350 12232 Current: Previous:

2 pts ________ 3571 5470

You might also like