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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!