Question: 6. Create an empty Web Site application named Guessing Game. Save the application in the VB2015Chap12 folder. Add a new Web page named Default.aspx to
6. Create an empty Web Site application named Guessing Game. Save the application in the VB2015\Chap12 folder. Add a new Web page named Default.aspx to the application.
Change the DOCUMENT object’s Title property to Guessing Game. The application should generate a random integer from 1 through 30, inclusive. It then should give the user as many chances as necessary to guess the integer. Each time the user makes a guess, the application should display one of three messages: “Guess higher”,
“Guess lower”, or “Correct. The random integer is x.”, where x is the random integer.
The application should also display the number of chances it took to guess the number.
Create a suitable interface and then code the application. Save the application, and then start and test it. (Hint: You can store the random integer and counter in hidden labels, or you can use two HiddenField controls.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
