Question: Modify the program in Fig. 3.10 to validate its inputs. For any input, if the value entered is other than 1 or 2, keep looping
Modify the program in Fig. 3.10 to validate its inputs. For any input, if the value entered is other than 1 or 2, keep looping until the user enters a correct value.
Fig. 3.10

Enter result (1= Enter result (1 = Enter result (1 Enter result (1 Enter result (1 Enter result (1 Enter result (1 Enter result (1 Enter result (1 Enter result (1 Passed: 6 Failed: 4 = = = = = = = = = pass, 2 pass, 2 fail): 1 pass, 2 = fail): 2 fail): 1 fail): 2 fail): 1 fail): 2 fail): 2 fail): 1 fail): 1 fail): 1 pass, 2 pass, 2 pass, 2 pass, 2 pass, 2 pass, 2 pass, 2 pass, 2 = = = = = = = =
Step by Step Solution
3.50 Rating (163 Votes )
There are 3 Steps involved in it
It looks like the figure you provided is a screenshot of a console application that takes user input ... View full answer
Get step-by-step solutions from verified subject matter experts
