Question: For this assignment you will be required to implement an interactive menu, but first you should welcome the user with a one time only welcome

For this assignment you will be required to implement an interactive menu, but first you should welcome the user with a one time only welcome message.
Specific implementation requirements include
This menu will prompt the user to select one of three options.
1- Calculate Greatest Common Denominator
2- Perform Prime Factorization
3- Exit
Your program MUST handle invalid inputs by printing the INVALID_MENU_SELECTION message followed by reprinting the menu.
Once a valid selection is made, your program will print the relevant prompt followed by prompting for the correct number of integers, one line at a time. There will be two prompts for GCD and one for PF.
Your program should print the correct solution to the console then go back to the main menu.
If the user enters an invalid input, print the INVALID_INPUT message and return to the main menu. For GCD all integers must be positive. For PF the integer must be 2 or greater.
For GCD the larger integer could be input either first or last
When the user selects exit, the EXIT_MESSAGE should be printed and the program should end.
The output should match exactly as expected. Use String variables provided in the starter code.
Your program should not crash for any input.
You may not utilize static or multiple Scanner objects.
You may not utilize java.lang.Math for this assignment.
You may not utilize System.exit()
write this in java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To help you with this assignment Ill guide you through the process of implementing an interactive menu in Java that fulfills the given requirements Th... 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 Databases Questions!