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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started