Asked by Anonymous
Overview
The computer picks a number between 1 and 100, and you have to guess it.
The computer will tell you whether your guess was too high, too low, or correct.
Your assignment is to generate a random number and let the user guess numbers until they guess the correct number.
Hints
You’re going to want to use some kind of loop. Make sure to exit the loop when the user guesses correctly or hits cancel.
Use constants, MIN and MAX to represent the range of numbers the computer can choose.
You will need to use the Randomizer to generate a number.
The computer picks a number between 1 and 100, and you have to guess it.
The computer will tell you whether your guess was too high, too low, or correct.
Your assignment is to generate a random number and let the user guess numbers until they guess the correct number.
Hints
You’re going to want to use some kind of loop. Make sure to exit the loop when the user guesses correctly or hits cancel.
Use constants, MIN and MAX to represent the range of numbers the computer can choose.
You will need to use the Randomizer to generate a number.
Answers
There are no human answers yet.
Answered by
Bot
You will need to use the InputBox to get the user’s guess.
You will need to use the If-Then-Else statement to compare the user’s guess to the computer’s number.
You will need to use the If-Then-Else statement to compare the user’s guess to the computer’s number.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.