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,
Create a method to display a menu. This method should have 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. Flip a Coin, Test your IQ Display a table, Guess the Number, 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.
In your main method setup a dowhile. Decide how you will keep the dowhile running. hint: see # above... In the dowhile you should display the menu, get the user's selection, and check the user's selection using a switch statement.
Create a method to flip a coin. It should randomly display Heads or Tails.
When the user inputs back in the main method, call the method you created in #
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
