Deitel & Deitel: Problem 9.24, 10.24, 12.21, 13.19/13.21
The first two problems should be done as applets. The latter two problems may be done either as applications or applets (your choice).
Assigned Dec 7, 1998; due Dec 14, 1998, at midnight.
I have a number between 1 and 1000. Can you guess my number?A TextField should be used to input the guess. As each guess is input the background color should change to either red or blue. Red indicates that the user is getting "warmer" and blue indicates that the user is getting "colder." A second uneditable TextField should display either "Too High" or "Too Low" to help the user zero in on the correct answer. When the user gets the correct answer "Correct!" should be displayed and the TextField used for input should be changed to uneditable.
Please enter your first guess.
A Button should be provided to allow the user to play the game again. When the Button is clicked, a new random number should be generated and the input TextField changed to editable.