Chapter 7
Input Validation Loop
A loop that iterates as long as the input variable contains bad data.
Priming Read
The first input operation - just before the loop. It's purpose is to get the first input value to be tested by the validation loop.
Defensive Programming
The practice of anticipating errors that can happen while a program is running, and designing the program to avoid those errors.
Empty Input
When an input attempts to read data, but there is no data to read.
Input Validation
When input is given to a program, it should be inspected before it is processed. If the input is invalid, the program should discard it and prompt the user to enter the correct data.
GIGO - "Garbage In, Garbage Out"
If a program read bad data as input, it will produce bad data as output. Computers cannot tell the difference between good and bad data.