Question: Create a game that generates a random number from 1 to 10. Include a loop that continually prompts the user for the number, indicating whether
Create a game that generates a random number from 1 to 10. Include a loop that continually 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.29 Rating (164 Votes )
There are 3 Steps involved in it
import javaxswingJOptionPane public class RandomGuess3 pu... View full answer
Get step-by-step solutions from verified subject matter experts
