Unit 10 · Lesson 2
Build the idea
Start with the concept and its key vocabulary.
A range check accepts only values between lower and upper limits. Validation does not prove that data is true; it checks that it is reasonable for the program. A while loop can repeat while the value is outside the range. The input that can end the loop must be taken again inside the loop.
Checking that input is reasonable and follows required rules before processing it.
A check that a value lies between permitted lower and upper limits.
Including the boundary values themselves.
Ask for input again after an invalid value.