Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

2. Develop a persuasive topic and thesis

Answered: 1 week ago

Question

1. Define the goals of persuasive speaking

Answered: 1 week ago