Name:
I. Definitions: please explain the following terms
II. Questions or short essay:
Create a higher/lower guessing game using a graphical user interface. Allow a user to keep guessing until he guesses the number. Choose two colors for your game: one should be used to indicate that the value the user guessed is higher than the target; the other is used to indicate that the value the user guessed is lower than the target. With each new guess, change the form color based on whether the guess is higher than the target or lower. Keep a count of the number of guesses. when the the user hits the target, display a MessageBox indicating the number of guesses it took. Several approaches can be used to seed the target: one is to generate a random number by constructing an object of the Random class. For example, the following stores a random whole number between 0 and 100 in target:
Random r = new Random();
int target = r.Next(0, 100);