Instructions: 1. Make a folder named 2. Create math practice games for kids 3. Make two HTML files and save them with the names index.html and play.html within the firstname-lastname-al folder. 4. The tag should read: Assignment 1 for <Your Name>. firstname-lastname-al 5. Display the following information in <H1> tag as heading in the index.html page: Assignment 1 Your FirstName Last Name 6. Add a <hr> tag before and after the above heading. 7. After the <hr> tag, display the game instructions on how to play the game. 8. Add a start button or link that navigates the user to play.html 9. On the play.html file, implement the game using JavaScript. 10. Ask the user to enter his choice using a prompt () dialog box. a. Enter "+" for Addition, "- "for subtraction, "*" for Multiplication b. Keep asking the user if the user enters some invalid input. 11. Then the computer generates two random numbers and display these numbers in an prompt() dialog box and ask the result (sum or difference or multiplication) of these numbers 12. The result (correct or incorrect is displayed on the screen using alert () dialog box 13. The user should be asked using a confirm () dialog box if they want to play again, and a running score should be kept. 14. If the user selects not to continue, display the final score of the user using alert () dialog box and also total number of incorrect questions 15. Add an Exit button or link on play.html that navigates the user back to index.html. 16. Add CSS.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Sample Run:
Dialog Box
Prompt
Prompt
alert
Confirm
Prompt
Prompt
alert
Confirm
Alert
Message
Press + for ADDITION
Press for SUBTRACTION
Press for MULTIPLICATION
What is 9-6
Correct, got 1 point
Do you want to play again?
Press for ADDITION
Press for SUBTRACTION
Press for MULTIPLICATION
What is 3+5
Incorrect
Do you want to play again?
Final score:
Total points:1
Total incorrect questions=1
Button Clicked
Input "-"and OK clicked
Input 3 and ok clicked
Ok
OK
Input "+" and OK clicked
Input 9 and ok clicked
Ok
Cancel
OK
Transcribed Image Text:Sample Run: Dialog Box Prompt Prompt alert Confirm Prompt Prompt alert Confirm Alert Message Press + for ADDITION Press for SUBTRACTION Press for MULTIPLICATION What is 9-6 Correct, got 1 point Do you want to play again? Press for ADDITION Press for SUBTRACTION Press for MULTIPLICATION What is 3+5 Incorrect Do you want to play again? Final score: Total points:1 Total incorrect questions=1 Button Clicked Input "-"and OK clicked Input 3 and ok clicked Ok OK Input "+" and OK clicked Input 9 and ok clicked Ok Cancel OK
Instructions:
1. Make a folder named firstname-lastname-al
2. Create math practice games for kids
3. Make two HTML files and save them with the names index.html and play.html within the
firstname-lastname-al folder.
4. The <title> tag should read: Assignment 1 for <Your Name>.
5. Display the following information in <H1> tag as heading in the index.html page:
Assignment 1
Your FirstName Last Name
6. Add a <hr> tag before and after the above heading.
7. After the <hr> tag, display the game instructions on how to play the game.
Add a start button or link that navigates the user to play.html
8.
9. On the play.html file, implement the game using JavaScript.
10. Ask the user to enter his choice using a prompt () dialog box.
a. Enter "+" for Addition, "-"for subtraction, "*" for Multiplication
b. Keep asking the user if the user enters some invalid input.
11. Then the computer generates two random numbers and display these numbers in an prompt() dialog
box and ask the result (sum or difference or multiplication) of these numbers
12. The result (correct or incorrect is displayed on the screen using alert () dialog box
13. The user should be asked using a confirm () dialog box if they want to play again, and a running
score should be kept.
14. If the user selects not to continue, display the final score of the user using alert () dialog box and
also total number of incorrect questions
15. Add an Exit button or link on play.html that navigates the user back to index.html.
16. Add CSS..
Transcribed Image Text:Instructions: 1. Make a folder named firstname-lastname-al 2. Create math practice games for kids 3. Make two HTML files and save them with the names index.html and play.html within the firstname-lastname-al folder. 4. The <title> tag should read: Assignment 1 for <Your Name>. 5. Display the following information in <H1> tag as heading in the index.html page: Assignment 1 Your FirstName Last Name 6. Add a <hr> tag before and after the above heading. 7. After the <hr> tag, display the game instructions on how to play the game. Add a start button or link that navigates the user to play.html 8. 9. On the play.html file, implement the game using JavaScript. 10. Ask the user to enter his choice using a prompt () dialog box. a. Enter "+" for Addition, "-"for subtraction, "*" for Multiplication b. Keep asking the user if the user enters some invalid input. 11. Then the computer generates two random numbers and display these numbers in an prompt() dialog box and ask the result (sum or difference or multiplication) of these numbers 12. The result (correct or incorrect is displayed on the screen using alert () dialog box 13. The user should be asked using a confirm () dialog box if they want to play again, and a running score should be kept. 14. If the user selects not to continue, display the final score of the user using alert () dialog box and also total number of incorrect questions 15. Add an Exit button or link on play.html that navigates the user back to index.html. 16. Add CSS..
Expert Solution
steps

Step by step

Solved in 7 steps with 8 images

Blurred answer
Knowledge Booster
Form and its Elements
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education