Question: < 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!