This program will generate random fraction problems and allow the student to enter the answer. It will give them feedback on whether they got it right or wrong.
will use a 'level of difficulty' input to decide how large the numbers are in the fractions. Three levels of difficulty are allowed. A level 1 problem will have numbers between 1 and 10, inclusive. A level 2 problem will have numbers between 6 and 15, inclusive. A level 3 difficulty problem will have numbers between 11 and 25, inclusive. If the user does not enter a 1, 2 or 3, then the program defaults to level 1.
The program will use a random number to choose which of 4 operations it will show in the problem: addition, subtraction, multiplication or division.
The program will ask for the numerator of the answer fraction and denominator of the fraction separately. The program will give feedback to the user based on their answers. Either the answer is right (both numerator and denominator) or one of the two answers is wrong or both are wrong. Different messages are output for each of these four cases.
one screen, which contains the program title and the prompts for name and difficulty.
Once those are complete, they are erased from the screen. The second screen has the name and difficulty and displays the problem in the form of fractions and input boxes for the user's answers.
Once the user has entered their answers, the feedback is given using gifs and text.
The program waits for a click then closes the window.
Make sure you eliminate the syntax and semantics errors
The easiest way to choose from the 4 operations is this statement "[login to view URL]("+-*/") This statement will return one of the four characters at random every time it is called.
The file names must be "[login to view URL]" and "[login to view URL]" for the right and wrong answer displays.
arrange items on the screen as you want, as long as the information is displayed somewhere, and fractions look like fractions.
must have a main function and call it to run the program. Your program has NO global code except for the import statements
must be completed today.
I have more example photos i will send once the job is rewarded.