GuessNumber - a number guessing game


Write a program GuessNumber.java that plays a number guessing game.

The program will generate a random integer between 1 and 100, using the randbetween method.

Your program will ask the user to guess the value of the number between 1 and 100.

If the user's guess is within 5 of being correct, output "HOT".

If the user's guess is within 10 of being correct, output "VERY WARM".

If the user's guess is within 20 of being correct, output "WARM".

If the user's guess is within 40 of being correct, output "LUKEWARM".

If the user's guess is not within 40 of being correct, output "COLD".

Continue until the user has correctly input the correct number.

Hints:

Possible improvements that could be made to this game: