Write a program GuessGame.java that plays the game guess thenumber as follows: Y

Write a program GuessGame.java that plays the game guess thenumber as follows: Your program chooses the number to be guessedby selecting an integer at random in the range 11000. The programthen displays the following in a label:I have a number between 1 and 1000 can you guess my number?Please enter your first guess.A JTextField should be used to input the guess. As each guess isinput the background color should change to either red or blue.Red indicates that the user is getting warmer and blue indicatesthat the user is getting colder. A JLabel should display eitherToo High or Too Low to help the user zero in on the correctanswer. When the user gets the correct answer Correct! should bedisplayed and the JTextField used for input should be changed tobe uneditable. A JButton should be provided to allow the user toplay the game again. When the JButton is clicked a new randomnumber should be generated and the input JTextField changed to beeditable

You can leave a response, or trackback from your own site.
error: Content is protected !!