Question: Create a function that randomly generates and returns a tuple of two or more positive integers. Use that function s result in your script to

Create a function that randomly generates and returns a tuple of two or more positive integers. Use that functions result in your script to prompt the user with a math question (such as: How much is 6 times 7?). Varying the computers responses can help hold the students attention. Prepare various comments which are displayed for each answer. Possible responses to a correct answer should include 'Very good!', 'Nice work!' and 'Keep up the good work!' Possible responses to an incorrect answer should include 'No. Please try again.', 'Wrong. Try once more.' and 'No. Keep trying.' Allow the user to pick a type of arithmetic problem to study e.g.,1 means addition problems only, 2 means subtraction problems only, 3 means multiplication problems only, 4 means 2 division problems only (avoid dividing by 0) and 5 means a random mixture of all these types.

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!