Question: To do in Java: Write a driver program named GuessingGame that generates a random number between 1 and 20. Asks the user to guess the

To do in Java: Write a driver program named GuessingGame that generates a random number between 1 and 20. Asks the user to guess the value of the number. If the users guess is higher than the random number, the program should display Your guess was high, guess again. If the users guess is lower than the random number, the program should display Your guess was low, guess again. The program should use a loop that repeats until the user correctly guesses the random number and should also keep track of how many times it takes to guess correctly. (Get this much running first!). Then add the following. After the number has been guessed, the program should ask the user if they want to play again. If they answer yes, the process should start over again.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!