Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Multi-Player Random Number Game JAVA---> (Object Oriented Java) It is supposed to be multiple classes (java files) working as one. Preferably Game class + A

Multi-Player Random Number Game JAVA---> (Object Oriented Java)

It is supposed to be multiple classes (java files) working as one.

Preferably Game class + A player option class + a game initiation class

Multi-Player Random Number Game ---> (Object Oriented Java) REQUIREMENTS

Write a new OBJECT ORIENTED PROGRAM (multi-class) that will:

Prompt the user for the number of players who will be playing

Be sure to verify that the input is legitimate!!

For Each player:

Obtain the players name (which will be used to identify them while playing)

Pick a Random Number

Collect an (integer) guess from that user

Be sure to verify that the input is legitimate!!

Compare the guess to the random number

Output if the guess is Too High!, Too Low!, Right!

Repeat asking each player in order until all players get the answer correct

If a player guesses their answer correctly, skip them for the rest of the current round.

Once ALL of the users guess the correct value, tell each how many guesses it took to get the right answer.

Display a table of the number of guesses and wrong answers by each player.

Finally,ask them if they wish to play again

If Yes, start over by asking the number of players.

Remember ALL Java Classes, Testing Document & Proof of Run!!

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Explain the concept called liability of newness.

Answered: 1 week ago