subject

Create a web page to play a simple guessing game. To start the game, the program picks a secret number randomly between 1 and 100. The page contains a text box in which the player enters a number, and a button labeled Guess. When the player clicks on the Guess button, the program reports whether the guess is high, low, or equal to the secret number. If it is high or low, the player is told to guess again. If it is equal to the secret number, the game ends and a new game is started, with a new secret number. Try to have JavaScript in an external file, and must use proper event-driven style if possible. The reports to the player are to be done by modifying the content of an element (such as a paragraph or div) in the page. Try not to use the document. write method is not to be used. Add a guess limit. If the player uses up the maximum number of guesses, the page reports that the player has lost then reports what the secret number was, and starts a new game. The number of guesses left should be reported to the player on each round. Enjoy

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
question
Computers and Technology, 22.06.2019 23:00
Is an attack that relies on guessing the isns of tcp packets
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
You know the right answer?
Create a web page to play a simple guessing game. To start the game, the program picks a secret numb...
Questions
question
Mathematics, 08.06.2020 08:57
question
Biology, 08.06.2020 08:57
question
Mathematics, 08.06.2020 08:57
question
Biology, 08.06.2020 08:57