Question: JAVA PROGRAMMING Write an application that plays guess the number as follows: Your program chooses the number to be by selecting a random number in

JAVA PROGRAMMING
Write an application that plays "guess the number" as follows: Your program chooses the number to be by selecting a random number in the range 1 to 1000. The application then displays a prompt Guess a number between 1 and 1000. The player inputs a first guess. If the guess is wrong the program your program should display Too Low. Try again: or Too Low. Try again Then prompt the user for the next guess. When the user enters the correct answer display: Congratulations you are correct. Enter true to play again, false to terminate the game: This program must use a method checkNumber that return 0 if the number is correct, 1 if it is too low, and 2 if it is too high. The header for this method would be: public class int checkNumber(int correctNum, int guess)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
