Question: In Java, 1 . Create a method to display a menu. This method should have 1 parameter and returns nothing. When this method is called

In Java,
1. Create a method to display a menu. This method should have 1 parameter and returns nothing. When this method is called it should receive the user's name as an argument, greet the user, and ask them to make a selection. 1- Flip a Coin, 2- Test your IQ,3- Display a table, 4- Guess the Number, 5- Exit. (You are only displaying the menu in this method. Use a variable back in the main method to get the user's input on the next line after calling this display menu method.)
2. In your main method setup a do-while. Decide how you will keep the do-while running. (hint: see #3 above...) In the do-while you should display the menu, get the user's selection, and check the user's selection using a switch statement.
3.Create a method to flip a coin. It should randomly display Heads or Tails.
4. When the user inputs 1, back in the main method, call the method you created in #5

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!