Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions