Question: Write a program that presents the user with 6 menu choices. [0] to Exit [1] option 1 [2] Option 2 [3] Optioni] [4] Option 4
![[0] to Exit [1] option 1 [2] Option 2 [3] Optioni] [4]](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66e17b75ae0bd_23766e17b75526bd.jpg)
Write a program that presents the user with 6 menu choices. [0] to Exit [1] option 1 [2] Option 2 [3] Optioni] [4] Option 4 [5] option 5 . If the user enters a zero, the program terminates. If the user enters a one, the program displays a mensage (such as "You solected Option 14 ) and then the program waits for the user to press a key and enter. You selncted option 1 Press any key and then entor to continue After the user presses a key and enter the main 6 options are displayed again. Options t to 5 wil work the same as option 1. Hint - the main loop should be do \{ System.out.println(prompt); System.out.println("Enter a number from to "+5+":" ) ; option = input, nextInt(); I/ bunch of if statements and/or switch statement \} while (option >=188 option
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
