Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write the Flowchart and Python code for the following programming problem based

ID: 3632889 • Letter: W

Question

Write the Flowchart and Python code for the following programming problem based on the problem definition below. Use modular design according to the suggested modules below.

Write a program that will allow a student to enter their name and then ask them to solve 10 mathematical equations. The program should display two random numbers that are to be subtracted.

247
- 129

The program should allow the student to enter the answer. The program should then display whether the answer was right or wrong, and accumulate the correct values. After the 10 questions are asked, calculate the average correct. Then display the student name, the number correct, and the average correct in both decimal and percentage format.

In addition to any built-in functions you may use, you might consider the following functions:
• A function that allows the student to enter their name.
• A function that gets two random numbers, anywhere from 1 to 500.
• A function that displays the equation (*for extra credit, either addition or subtraction) and asks the user to enter their answer.
• A function that checks to see if the answer is right and accumulates the number right.
• A function that calculates the results.
• A function that displays the student name, the number right, and the average right.

Explanation / Answer

Enter Student Name: Katie What is the answer to the following equation 424 - 28 What is the answer: 394 Wrong What is the answer to the following equation 163 - 233 What is the answer: -70 Right What is the answer to the following equation 285 - 453 What is the answer: 168 Wrong Etc…(through 10 iterations) Information for student: Katie The number right: 5 The average right is 0.50 or 50.0 % *EXTRA CREDIT: (+25 points) Program the problem to present an addition or subtraction at random depending upon a code generated at random…a code=0 can represent a subtraction equation and code=1 can represent an addition problem.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote