Question: use python PROGRAM INTRODUCTION In this program you are required to write a python program that uses the graphics library (created by Dr. Zelle). The

use python

use python PROGRAM INTRODUCTION In this program you are required to write

a python program that uses the graphics library (created by Dr. Zelle).

PROGRAM INTRODUCTION In this program you are required to write a python program that uses the graphics library (created by Dr. Zelle). The program helps the elementary students to learn the basic mathematical operations (addition and subtraction) of mixed numbers (explained in the previous page). You are going to develop a program that is similar to some apps that you can find on apple/google apps stores.

PROGRAM FLOW The general flow of your program will be as follows.

1. The program is going to display 20 different mathematical problems to the user (one problem at a time). Each problem uses the random library to generate two mixed numbers parts and a random operation too (0 for addition and 1 for subtraction).

2. The program then allows the student user- to enter his/her answer for the problem.

3. The program then compares between the users answer and the right answer. Based on the comparison result, then program gives an instance feedback for the user. The feedback shows if the answer is right or wrong. o In case the answer is wrong, then the program shows the right answer.

4. The program goes back to step 1 and asks the next problem until it finishes the 20 problems.

5. At the end, the program displays a summary of the number of corrected answers, number of wrong answers, and a percentage of the corrected answers.

WHAT DO YOU NEED TO USE? In this program you are going to use the following topic that we learned in this class: random library, building mathematical equation, if statement, loop, functions, list, and the graphics library. To break the program into smaller tasks, you should define and use several functions. The program uses the random number library for two things:

The two mixed numbers for every problem and

The mathematical operations that will be used in every problem - addition or subtraction-.

Each mixed number consists of three numbers. A whole number, a numerator and a denominator. The three numbers should not be zeros and they should between 1 and 9 (inclusive) for simplicity. Once the user input his/her answer to the problem (through inputting the results into three entry objects), the program compares the users answers to the correct one and it gives an instance feedback. You can display some compliment to the user using (phrases, pictures or green/red circles or a mix). For example, in case of correct answer, you can display a green circle at the bottom of the screen. While in case of wrong answer, you can display a red circle and the correct answer at the bottom of the page.

The above process is repeated for 20 different problems. At the end of the program, the user sees a summary of number of questions, number of corrected answers, number of wrong answers, and the percentage of the corrected answers.

GRAPHICS REQUIREMENTS The program contains the following graphical parts:

1. For every problem, display on the screen several Text objects that display the two random mixed numbers, the random operation (+/-), the = symbol. Also display 2 lines and 3 Entry boxes, so the user can input his/her answer.

2. After the user enter his/her answer, show an instance feedback to him/her. That includes showing text, circle or image, or a mix.

3. After finishing all the questions, the screen displays a window that shows the statistics required about the users performance. You need to use Texts objects here.

4. The program then waits for the user to click before terminating the program.

What 1s Mixed Fractions? It is also called "Mixed Numbers". . . A Mixed Fraction is a whole number and a proper fraction combined. Such as 1 3/4 4 (one and three-quarters) Examples 23/8 71/4 1 14/15 21 4/5 See how each example is made up of a whole number and a proper fraction together? That is why it is called a "mixed" fraction (or mixed number) Names We can give names to every part of a mixed fraction Whole Number Denominator Types of Fractions: There are three types of fraction (or equal) Larger What 1s Mixed Fractions? It is also called "Mixed Numbers". . . A Mixed Fraction is a whole number and a proper fraction combined. Such as 1 3/4 4 (one and three-quarters) Examples 23/8 71/4 1 14/15 21 4/5 See how each example is made up of a whole number and a proper fraction together? That is why it is called a "mixed" fraction (or mixed number) Names We can give names to every part of a mixed fraction Whole Number Denominator Types of Fractions: There are three types of fraction (or equal) Larger

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!