Programming with Microsoft VB 2010 Diane Zak Chapter 6 Exercise 7 Guess a Random Number
In this exercise, you code an application that allows the user 10 chances to guess a random number generated by the computer. The random number should be an integer from 1 through 50, inclusive. Each time the user makes an incorrect guess,the application should display a message that tells the user either to guess a higher number or to guess a lower number. When the user guesses the random number, the application should display a “congratulations!” message. However,if the user is not able to guess the random number after 10 tries, the application should display the random number in a message. Open the Random Solution (Random Solution.sln) file contained in the vb2010\chap06\Random Solution folder. If necessary, open the designer windows. Code the application. Save the solution and then start and test the application. Close the code editor and then close the solution.