Question
Must use html and javascript to make guess my number game Assume that this will compute a random number between 0 and 9: var x
Must use html and javascript to make guess my number game
Assume that this will compute a random number between 0 and 9:
Your program will generate a random number between 1 and 100 (including 1,100). Have the user guess a number (1-100). This program should not use a while loop. Just invoke the function when the value has changed.
Have the user enter their name. Have the user enter a guess. If user guesses to low the function will give feedback that the guess is too low; if user guesses to high the function will give feedback that the guess is too high; if user guesses the correct number the function will give feedback that the guess is right and they can start again if they enter a new number.
output should look like the following:
Guess the number
valid numbers are: 1 through 100
enter first name:
enter guess:
XXXX your geuss is {too high,too low,correct}
Output example:
Guess the number
valid numbers are: 1 through 100
enter first name: bryan
enter guess: 50
bryan your guess is too low
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