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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started