Question: In Python: Write a program to allow the user to input two numbers. Create a multiplication problem. Ask the user to solve the problem. If

In Python:

Write a program to allow the user to input two numbers. Create a multiplication problem. Ask the user to solve the problem. If they are incorrect, give a hint "too low" or "too high" and ask them to try again. Allow them to have 4 tries to solve the problem correctly. Provide a message if they solve the problem correctly and the number of times they attempted the problem. If they did not get the correct answer in 4 tries, print a message "No, you had 4 tries" and give the solution.

If the input is:

4

5

20

The output should be

4 * 5=20

EXCELLENT, it took 1 try/tries

if the input is:

4

5

6

10

4

9

The output should be:

4 * 5=6

No, hint- too low. Try again 4 * 5=10

No, hint- too low. Try again 4 * 5=4

No, hint- too low. Try again 4 * 5=9

No, you had 4 tries 4 * 5=20

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!