Modify the program in Fig. 3.10 to validate its inputs. For any input, if the value entered

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 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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Java How To Program Late Objects Version

ISBN: 9780136123712

8th Edition

Authors: Paul Deitel, Deitel & Associates

Question Posted: