Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Requirements Write a script that plays a “guess the number” game as follows: Your program chooses the number to be guessed by selecting a random integer in the range 1 to 1000. The script displays the...

1 answer below »

Requirements

Write a script that plays a “guess the number” game as follows:

Your program chooses the number to be guessed by selecting a random integer in the range 1 to 1000. The script displays the prompt Guess a number between 1 and 1000 next to a text field. The player types a first guess into the text field and clicks a button to submit the guess to the script. If the player's guess is incorrect, your program should display eitherToo high, try againorToo low, try againto help the player “zero in” on the correct answer and should clear the text field so the user can enter the next guess. When the user enters the correct answer, displayCongratulations! You guessed the number!and clear the text field so the user can play again.

For Full Points

  • You may be as creative as you like as long as the requirements above are satisfied.
  • Add your styles to an external style sheet.
  • Add your scripts to an external script file.
  • Run the appropriate validator tool for your files (to ensure no errors).
  • Paste the link to your web page to this drop box. SeeHow to turn in webpage assignments.pdfActions.

Need Help Debugging Your Script?

Check out w3schools.comJavaScript Debugging(Links to an external site.)tutorial (https://www.w3schools.com/js/js_debugging.asp)

Answered Same Day Mar 19, 2022

Solution

Nithin answered on Mar 20 2022
104 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here