Redesign the solution so that some portions of the code are repeated. In lab 4 you validated input to ensure that the user entered inputs within certain values. If the user entered an invalid value, the program terminated. Now you will add a loop such that the user gets three chances to enter a valid value. If the user enters an invalid value more than three times in a row, the program should issue an error message and terminate (LO 1.1, 1.2, 2, 3, 5, 6). LO refers to the Learning Objectives from the PowerPoints and are tied to the books learning objectives.

Solved
Show answers

Ask an AI advisor a question