The purpose of this assignment is to understand the mod operator in math, and to use boolean expressions within “if” and “repeat until” structures to make program decisions. The program has 5 variables: # correct - keeps track of how many problems you’ve correctly answered dividend - contains the first number for the mod operation divisor - contains the second number for the mod operation remainder - contains the answer to the mod problem example: for the problem “12 mod 5”, dividend = 12, divisor = 5, and remainder = 2 number of problems - the number of problems that you want the user to practice Your assignment is to accomplish the following: fill in a boolean expression in the “repeat until” blank that makes sure that dividend is bigger than or equal to divisor correctly set the value of remainder in the “create mod problem” block fill in a boolean expression in the “if” blank that will check if the user’s answer is correct make the program keep track of the number of problems you got correct (use the variable i’ve already created!) tell the user when they get a correct answer define the “find results” method using the following criteria if the user gets all problems correct, say “Perfect!” if the user misses some, but gets at least half correct, say “That was ok” if the user misses more than half, say “You need more mod practice!” 2 E.C. points: if the user gets all problems correct and averages under 5 seconds per problem, say “Amazing!”
thanks @cgentryakira