Answered step by step
Verified Expert Solution
Link Copied!

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,
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions