Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make a folder named firstname-lastname-a1 2. Create math practice games for kids 3. Make two HTML files and save them with the names index.html and

Make a folder named firstname-lastname-a1 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-a1 folder. 4. The

tag should read: Assignment 1 for . 5. Display the following information in

tag as heading in the index.html page: Assignment 1 Your FirstName Last Name 6. Add a

tag before and after the above heading. 7. After the 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 numbersin 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. Sample Run: Dialog Box Message Button Clicked Prompt Press + for ADDITION Press - for SUBTRACTION Press * for MULTIPLICATION Input and OK clicked Prompt What is 9-6 Input 3 and ok clicked alert Correct, got 1 point Ok Confirm Do you want to play again? OK Prompt Press + for ADDITION Press - for SUBTRACTION Press * for MULTIPLICATION Input + and OK clicked Prompt What is 3+5 Input 9 and ok clicked alert Incorrect Ok Confirm Do you want to play again? Cancel Alert Final score: Total points:1 Total incorrect questions=1 OK

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_2

Step: 3

blur-text-image_3

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

Learn Mysql The Easy Way A Beginner Friendly Guide

Authors: Kiet Huynh

1st Edition

B0CNY7143T, 979-8869761545

More Books

Students also viewed these Databases questions

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago