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 user 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.

Keep the code as simple as possible

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!