Question: Using Python, write an application that tests an elementary school student on their basic math skill. The program should generate random equations to be solved

Using Python, write an application that tests an elementary school student on their basic math skill. The program should generate random equations to be solved with numbers between 0 and 12. The student should be told if they are correct or incorrect. If the user enters the word DONE, the program should end by telling the student their average (i.e. if they correctly answer 4 out of 8 problems, their average would be 50%).

To help modularize you code, create the following functions:

  • a function that randomly generates 2 integers between 0 and 12 and also generates a random number between 1 and 4 that is used to determine the operator (+, -, *, /). The function should ask the question "How much is 2*4?". The function should return the answer (i.e. the solution to the problem asked).
  • a function that accepts as parameter 2 values and displays the % correct to the student. This function returns nothing.

For evaluation, submit to Blackboard code that adheres to our Python standards.

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!