problem 1) prepare the program called Guessing Game that would generate random number between 1 and 100. The program would tell the player if his/her guess is too high or too low and when it is correct and would continue until the player guesses the number or end the game.
The player should be allowed to terminate the game. The program has three methods plus the main method.
One method would return the integer between 1 and 100 to the main method.
The second method would get the player’s guess, and would return the guess as an integer to the main method.
The third method would return nothing but you would pass the guess and the random number and compare them. It will then tell the player if his/her guess is too high or too low, or if it is correct. If it is correct the player would have the option of continuing the game or ending it.