Menu

(Solved) : Write Game Application Java Generates Random Number 1 1000 Inclusive Prompts User Guess Us Q44037703 . . .

  1. Write a game application in Java that generates a random numberbetween 1 and 1000 (inclusive) and prompts the user for a guess.Use as the pseudorandom number generator the Random class. When theuser guesses the correct number, say so, and display how manyguesses the user required to guess correctly. Allow the user toplay multiple times by asking the user if the user wants tocontinue playing.

     Guess my number between 1 and 1000=> 500

     Too high

     Guess again => 250

     Too high

     Guess again => 125

     Too low

     . . .

     Guess again => 132

     You guessed the number!

     You required 14 tries.

     Do you want to play again (y or n)=> n

Expert Answer


Answer to Write a game application in Java that generates a random number between 1 and 1000 (inclusive) and prompts the user for…

OR