| Chapter 3- Data Types and Operators | Boolean Expressions Page 2 3 4 |
| The If Statement Page 2 3 4 5 6 7 8 9 | |
| Arithmetic Operations Page 2 3 4 5 6 | Boolean Operators and Nested If Statements Page 2 3 4 5 6 7 |
| Events and Sequential Processing Page 2 3 4 5 | More Examples Page 2 3 4 5 6 7 8 9 10 11 12 |
| Datatypes and Conversions Page 2 3 4 5 6 7 | Using Check Box and Option Controls Page 2 3 4 5 6 7 8 9 10 |
| Variable Declarations - Local and Global Page 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Exercises Page 2 3 4 5 6 7 8 |
| Chapter 4- Selection Statements | Review Questions |
| Introduction | |
4-7: Exercises
Exercise 4-9: Testing the Program
Be sure to test all aspects of the interface. It should be possible for the user to interact with the controls in any sequence and to see sensible things happening.
For example, the user might select the individual and the masters options, then enter an age and click on the Compute It button. Next the user might select the Junior option! What should occur in processing this user action? Should the age value entered be validated? If so how? Or would it be sufficient to set the age value to the null string, thereby requiring the age to be re-entered?
You should consider as many sequences of user interactions as you can think of.