Question: (guess the number) Write a program that plays guess the number as follows: your program chooses the number to be guessed by selecting an int
(guess the number) Write a program that plays guess the number as follows: your program chooses the number to be guessed by selecting an int at random in the range 1-1000. I have a number between 1 and 1000 can you guess the number? Please enter your first guess A textbox should be used to input the guess. As each guess is input the background color should change to red or blue. Red indicates the user is getting warmer and blue that the user is getting colder. A label should display either Too high or too Low to help the user zero in on the correct answer. when the user guesses the correct answer display correct in a message box; change the forms background color to green and disable the textbox. Recall that a textbox (like other controls) can be disabled by setting the controls's enabled property to false Provide a button that allows the user to play the game again. when the button is clicked generate a new random number, change the background to default color and enable the textbox. use c# visual studio
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
