Validation can be very simple. This example uses a range check. The program will keep repeating the instruction until valid data has been entered: number is integer tryAgain is boolean set ...