Question: using eclipse, write a java program, that plays the the hi lo guessing game with numbers. The program should pick a random number between 1
using eclipse, write a java program, that plays the the hi lo guessing game with numbers. The program should pick a random number between 1 and 100(inclusive), then repeatedly prompt the user to guess the number. On each guess, report to the user the he or she is correct or that the guess is to high or low. Continue accepting guesses until the user is correct or decides to quit. Use a sentinel value to determine whether the user wants to quit. Count the number of guesses and report the value when the user guesses correctly. At the end of each game rather is quitting or guessing correctly, prompt to determine whether the user wants play again. Continue playing games until the user chooses to stop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
