Fraction Subtraction Practice with Random Questions in GeoGebra

Fraction Subtraction Practice with Random Questions in GeoGebra
Loading the math board and drawing, please wait…
2022-08-03 17:22
This GeoGebra example demonstrates an interactive fraction subtraction practice applet that generates random questions and checks student answers. The core math concept is subtracting fractions, including matching student input to correct results and supporting classroom drills. The construction uses Shuffle to randomize question order, Element to select the current question, Translate to position input boxes, If to test correctness, and Textfield to create answer fields. Key objects include randomQuestions, actualQuestion, studentAnswer1 through studentAnswer3, correctq1 through correctq11, allSolutions, listCorrectq, and numberOfQuestions, enabling randomized item selection, answer validation, and simple scoring. It is suitable for grades 5-6, homework, or teacher-led practice.

GeoGebra Commands & Parameters

  1. Shuffle(Sequence[11]) → randomQuestions, {1, 4, 6, 11, 8, 7, 3, 5, 2, 10, 9}
  2. Element(randomQuestions, questionCount) → actualQuestion
  3. Translate({{(2.85, 6.7), (3.82, 7.3), (0, 0)}, {(1.75, 7.3), (1.75, 6.2), (0, 0)}, {(2.31, 7.3), (2.31, 6.2), (0, 0)}, {(-0.15, 6.7), (3.9, 7.3), (0, 0)}, {(0, 6.7), (0, 0), (0, 0)}, {(4, 6.7), (5, 7.3), (5, 6.2)}, {(2.38, 7.3), (4.55, 6.2), (0, 0)}, {(2.95, 7.3), (0, 0), (0, 0)}, {(2.9, 6.7), (5.5, 7.3), (0, 0)}, {(0.1, 6.7), (0, 0), (0, 0)}, {(1.8, 7.3), (4.15, 6.2), (0, 0)}}, (dx, 0)) → allInputBoxPositions
  4. Element(Element[allInputBoxPositions, actualQuestion], 1) → actualInputBoxPosition1
  5. Element(Element[allSolutions, actualQuestion], 1) → actualSolution1
  6. Element(Element[allSolutions, actualQuestion], 2) → actualSolution2
  7. If(Defined[(actualSolution1 * actualSolution2)], actualSolution1 / actualSolution2 ≟ studentAnswer1 / studentAnswer2, true) → correctq3
  8. If(Defined[(actualSolution1 * actualSolution2)], actualSolution1 / actualSolution2 ≟ studentAnswer1 / studentAnswer2, true) → correctq2
  9. If(Defined[(actualSolution1 * actualSolution2)], actualSolution1 + actualSolution2 / 7 ≟ studentAnswer1 + studentAnswer2 / 7, true) → correctq1
  10. If(Defined[(actualSolution1 * actualSolution2)], 5.5 - studentAnswer1 ≟ 3 + studentAnswer2 / 2, true) → correctq9
  11. If(Defined[(actualSolution1 * actualSolution2)], 1 - studentAnswer1 / 4 - 1 / studentAnswer2 ≟ 0, true) → correctq11
  12. Element(Element[allSolutions, actualQuestion], 3) → actualSolution3
  13. If(Defined[(actualSolution1 * actualSolution2)], 7 / 2 - studentAnswer1 / 2 ≟ 4 / studentAnswer2, true) → correctq7
  14. If(Defined[(actualSolution2 * actualSolution3)], actualSolution2 / actualSolution3 ≟ studentAnswer2 / studentAnswer3, true) → correctq6
  15. If(Defined[listCorrectq(actualQuestion)] ∧ actualQuestion ≠ 6, listCorrectq(actualQuestion), Defined[actualSolution1] ∧ actualSolution1 ≟ studentAnswer1 ∨ (¬Defined[actualSolution1])) → correct1
  16. Element(Element[allInputBoxPositions, actualQuestion], 3) → actualInputBoxPosition3
  17. Element(Element[allInputBoxPositions, actualQuestion], 2) → actualInputBoxPosition2
  18. If(Defined[listCorrectq(actualQuestion)], listCorrectq(actualQuestion), Defined[actualSolution3] ∧ actualSolution3 ≟ studentAnswer3 ∨ (¬Defined[actualSolution3])) → correct3
  19. If(Defined[listCorrectq(actualQuestion)], listCorrectq(actualQuestion), Defined[actualSolution2] ∧ actualSolution2 ≟ studentAnswer2 ∨ (¬Defined[actualSolution2])) → correct2
  20. Element(randomQuestions, Mod[questionCount, Length[randomQuestions]] + 1) → randomNumber
  21. Textfield(studentAnswer1) → inputBox1
  22. Textfield(studentAnswer2) → inputBox2
  23. Textfield(studentAnswer3) → inputBox3
  24. If(actualQuestion ≟ 6, Defined[((studentAnswer1 * studentAnswer2) * studentAnswer3)] ∨ studentAnswer2 > studentAnswer3, (Defined[studentAnswer1] ∨ (¬Defined[actualSolution1])) ∧ (Defined[studentAnswer2] ∨ (¬Defined[actualSolution2])) ∧ (Defined[studentAnswer3] ∨ (¬Defined[actualSolution3]))) → clickableBtnValidate

AI Drawing Prompt Reference

This is an interactive interface for fraction subtraction practice. The center displays a randomly generated fraction subtraction problem with three input boxes for student answers. Below, there is a validation area that automatically checks if the entered answers match the correct answers. The order of questions changes randomly to ensure variety. The interface is simple and suitable for elementary students.
The prompt above was compiled from the original drawing commands and is for reference only.