Question: You created a class called RandomGuess. In this game, players guess a number, the application generates a random number, and players determine whether they were
You created a class called RandomGuess. In this game, players guess a number, the application generates a random number, and players determine whether they were correct. Improved the application to display a message indicating whether the player’s guess was correct, too high, or too low. Now, add a loop that continuously prompts the user for the number, indicating whether the guess is high or low, until the user enters the correct value. After the user correctly guesses the number, display a count of the number of attempts it took. Save the file as RandomGuess3.java.
Step by Step Solution
3.45 Rating (164 Votes )
There are 3 Steps involved in it
import javaxswingJOptionPane public class RandomGuess3 public st... View full answer
Get step-by-step solutions from verified subject matter experts
