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

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

1 Expert Approved Answer
Step: 1 Unlock

It looks like the figure you provided is a screenshot of a console application that takes user input ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java How To Program Late Objects Questions!