Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

< script type = text/javascript > Write a program that will help elementary school student learn multiplication. Use math.random to produce two positive one-digit integers.

<script type = "text/javascript"> 

Write a program that will help elementary school student learn multiplication. Use math.random to produce two positive one-digit integers. It should then display a question such:

How much is 5 times 6?

The student then types the answer into a text field. Your program checks a students answer. If it is correct the string says.

Very good!

Excellent!

Nice Work!

Keep up the good work!

If the student answers wrong:

No. Please try again.

Wrong. Try once more.

Dont give up!

No. Keep trying.

Use a random number generation to choose a number from 1 to 4 that will be used to select an appropriate response to each answer. Use a switch statement to issue the responses. Let the student

Students try the same question again repeatedly until they get it right. A separate function should be used to generate each new question. This function should be called once when the script begins execution and each time the user answer the question.

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

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago