Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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