Name: _________________________________________
Objective: Validating Data
Get as much done as you can. Any points earned will be considered extra points to be credited to other projects.
Instructions
- Create a project called Validation
- Your project should have a text box and button.
- The form should also have two labels with the text "SAT score" and "Area code"
- When the user clicks the button, your program should do the following:
- Check to see if the input entered into the text box is a valid SAT score. If so, set the SAT score lable to green, otherwise set it to red. SAT scores are numbers between 200 and 800 that ends in 0. E.g., 550, 720.
- Check to see if the input entered into the text box is a valid Area code. If so, set the Area code label to green, otherwise set it to red. Area codes are three digit numbers that can not begin with 1 or 0 and can not have three of the same number.
Grading
| Feature |
Points |
Out of |
Notes |
| SAT score |
|
5 |
|
| Area code |
|
5 |
|
Notes
Comments (0)
You don't have permission to comment on this page.