Question
Create an application in visual basic that generates a random number in the range of 1 through 10, and asks the user to guess what
Create an application in visual basic that generates a random number in the range of 1 through 10, and asks the user to guess what the number is. If the users guess is higher than the random number, the program should display Too high, try again. If the users guess is lower than the random number, the program should display Too low, try again. The program should use a loop that repeats until the user correctly guesses the random number. Enhance the program so it keeps a count of the number of guesses the user names. When the user correctly guesses the random number, the program should display the number of guesses.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started