Flowchart for Input Validation A Demo

The general strategy here, and in Input Validation B, is to assume any input is invalid until proven valid. Hence we start out by setting Acceptable to false.