Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a page named lab11a.html that contains all the usual required tags and comments. For this lab you will be creating a guessing game with

  • Create a page named lab11a.html that contains all the usual required tags and comments.
  • For this lab you will be creating a guessing game with similar features to the one shown in the video.
  • You need to use any CSS properties and HTML to get an aesthetically pleasing look for your game page (hopefully much better than my questionable color scheme).

Hints:

  • Creating this game does not require the use of loops.
  • You will want one global variable (one declared outside of any function but inside a script element) to store the number to be guessed and another for the number of guesses the user has left.
  • You will want two functions. One to process the user's guess and a second one to create a new game.
  • The new game function needs to reset the various parts of the page to their original state, reset the number of guesses and generate a new random number for the user to guess.
  • Don't forget to handle the user trying to guess with zero guesses remaining. image text in transcribed
Fun Farmale x //Backup/OSCEWOX-92 x tops + fo////Baccip OSCE 102 - Code Examples/testing at IND The Guessing Game Number 5 Chuo New Game? Enter a value between 1 and 100 Guess 3 0 Guesses Remain Your guess of 50 was too high. Your guess of 25 was too high. Your guess of 12 was too high. Your guess of 7 was too high. Your guess of 3 was 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

More Books

Students also viewed these Databases questions

Question

=+associated with political parties and if so, which ones? Are

Answered: 1 week ago