Question: 1. Write a program called MathQuiz. Instead of having the user guess a secret number, have the program quiz the user on their multiplication skills.

 1. Write a program called MathQuiz. Instead of having the user

1. Write a program called MathQuiz. Instead of having the user guess a secret number, have the program quiz the user on their multiplication skills. Give the user 5 simple multiplication questions (use a loop). Each time through the loop generate two random numbers in the range 1 to 10 and ask the user to multiply them, e.g. "What is 7 times 3?" Check to see if the user gives the correct answer and inform them of the result, e.g. "Correct!" or "Incorrect". After they have done all five questions, tell the user how many they got right, e.g. "You got 4 / 5 = 80%". Using Python

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!