Question: Write a Java program to play the hi-Lo game. You can put all the code in one class with a main method. The program will
Write a Java program to play the "hi-Lo" game. You can put all the code in one class with a "main" method.
The program will generate a random integer in the range of 1 to 100 and ask the use to guess the integer
If the user's guess is higher than the generated number you will tell the user and ask the user to guess again.
If the user's guess is lower than the generated number you will tell the user and ask the user to guess again.
Continue this until the user guesses the correct number and congratulate the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
