- Generate story style math problems given a configuration that regulates the types of arithmetic operations and the numbers to be used.
- Generate simple equation problems that help kids with basic arithmetics.
An arithmetic operation is a representation of a simple X + Y = Z equation. The operations are formed by two operands, one operator sign (addition, subtraction, multiplication, division) and the total.
Three variations of problems are generated for each arithmetic operation:
- Find the left operand: X + 2 = 5
- Find the right operand: 3 + X = 5
- Find the total: 3 + 2 = X
The generator is given a maximum number which is used with two rules:
- The number is used as the upper limit to any of the problems. None of the problems generated will go over it.
- The number is used to generate all the operands that respect the first rule and ensure all operands are covered as the operations are generated.
As an exmple, if the number 10 is given as the maximum. Then the generator will use all the numbers from 0 to 10 to create operations. With the restriction that the operation cannot exceed 10 itself.
Stories are generated by combining story templates, predefined story elements and a generated Arithmetic Operation. Each story template defines what type problem and which operator can be used with it. During run time, when an Arithmetic Operation is generated, it is used as input for the Story generation which selects among the adequate templates available.
Here are some examples of stories that map to each of the three variations of problems:
- John has some bananas, then he buys 2 more. Now John has 5. How many did he had at the beginning?.
- John has 3 bananas, then he buys some more. Now John has 5. How many bananas did he buy?.
- John has 3 bananas, then he buys 2 more. How many bananas does John have now?.