Question: Hello, I would like to make a python code for Math Quiz Create program that will help an elementary school student learn multiplication. 1)Ask the

Hello,

I would like to make a python code for Math Quiz

Create program that will help an elementary school student learn multiplication.

1)Ask the user for an integer to seed the random number generator

2)type loop to do the following:

3)Use random.randint() to produce two positive integers in the range 1 to 12. Your program should then write question such as: "How much is 6 times 7?" where 6 and 7 are the two random numbers you generated

4)Input the student's answer.

5)If the student answers -1, then exit the loop--the student is done.

6)Check the student's answer.

7)If it is correct, print Very good!!

8)Otherwise, the answer is wrong, so print No. Please try again... and then require the student try the same question again repeatedly until the student finally gets it right. (a nested loop).

9)After the student answers the question correctly, loop back up to step 1 above and ask another multiplication question.

Output should look like:

Notes

1)You cannot usebreakorcontinuestatements in your program.

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 Programming Questions!