Question: This is a java console-based I/O program. Display should go to System.out (print or println) and the program will get user input using the Scanner

This is a java console-based I/O program. Display should go to System.out (print or println) and the program will get user input using the Scanner class. The flow of execution should be as follows:

When the program starts, display a one-line introduction to the user Display a menu with 5 options:

1. validate zip code

2. validate SSN

3. validate password

4. instructions

0. quit

Prompt the user to input an option

Prompt the user for the required input and then display the results

Repeat the main menu until the user enters the option to quit

If the user enters an invalid menu option, print a helpful error message and re-prompt. Note, this could be either a wrong value or wrong data type.

Your program should not throw any exceptions to the user. If a user enters an invalid menu option, the program should display a helpful error message and ask for new input. You must implement your solution using loops, if statements, and switch-case.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!