[Solved] Needs Python 3 Code Stuck Part Problem 1 1 X 2 3 Incorrect 1 X 2 4 Incorrect 1 X 2 2 Corre Q37290179
THIS NEEDS TO BE IN PYTHON 3!
I HAVE MOST OF THE CODE BUT AM STUCK ON : THIS PART(((((((((((Problem 1
1 x 2 = 3
No, incorrect
1 x 2 = 4
No, incorrect
1 x 2 = 2
Correct!))))))))))))))))))
I STILL NEED ALL THE CODE THOUGH,THANKS
The program should use at least four functions.
- This function will print an introduction to the program.
- This function will accept 2 integer parameters and present anaddition problem with these numbers.
- This function will accept 2 integer parameters and present amultiplication problem with these numbers.
- This function will accept 2 integer parameters representing theuser’s answer and the correct answer. It will check to see if theanswer is correct and print a message. If the parameters are equalthe function should return True; otherwise it should returnFalse.
The program should allow the user to input their choice foreither addition problems (enter +) or multiplication problems(enter x).
The user should also enter how many problems they wish to solve andhow many tries they will have to answer correctly.
If the input is: (input on left — description on right)
x # Choice of + or x
3 # 3 problems
4 #4 tries to get correct
1 # Number 1 in the problem 1
2 #Number 2 in the problem 1
3 #Solution 1
4 #Solution 2
2 #Solution 3 is correct
4 #Number 1 in problem 2
5 #Number 2 in problem 2
20 #Solution 1 is correct
8 #Number 1 in problem 3
7 #Number 2 in problem 3
5 #Solution 1
4 #Solution 2
11 #Solution 3
2 #Solution 4
The output should be:
This program would allow the user to select multiplication oraddition problems
You can also select how many problems you want and
the number of times you can try to get a correct solution
Enter + for addition or x for multiplication
How many problems?3
How many attempts to answer correctly?4
Problem 1
1 x 2 = 3
No, incorrect
1 x 2 = 4
No, incorrect
1 x 2 = 2
Correct!
Problem 2
4 x 5 = 20
Correct!
Problem 3
8 x 7 = 5
No, incorrect
8 x 7 = 4
No, incorrect
8 x 7 = 11
No, incorrect
8 x 7 = 2
No, incorrect
The correct answer is 56
Expert Answer
Answer to THIS NEEDS TO BE IN PYTHON 3! I HAVE MOST OF THE CODE BUT AM STUCK ON : THIS PART (((((((((((Problem 1 1 x 2 = 3 No, inc… . . .
OR

