Snail Racing - Rational Numbers Addition and Subtraction

Snail Racing - Rational Numbers Addition and Subtraction
Loading the math board and drawing, please wait…
2025-08-28 02:19
This example demonstrates the addition and subtraction of rational numbers, showcasing the application of rational numbers in geometric shapes. The core mathematical concepts include the definition of rational numbers, addition and subtraction, and the construction of geometric shapes. The construction points include the use of GeoGebra commands: Textfield, Segment, Polygon, OrthogonalLine, Sequen

GeoGebra Commands & Parameters

  1. Textfield(input) → InputBox
  2. Segment((0, 0.7), (40, 0.7)) → f
  3. Segment((0, -9.3), (40, -9.3)) → g
  4. Polygon(E, F, G, H) → v1, e, f_1, g_1, h
  5. OrthogonalLine(A_1, xAxis) → i
  6. Sequence(Translate[Element[salat1, i], Vector[SalatPos1 + ((i - 1) * (dxFolge, 0))]], i, 1, 3) → showSalat1
  7. Sequence(Translate[Element[salat2, i], Vector[SalatPos2 + ((i - 1) * (dxFolge, 0))]], i, 1, 3) → showSalat2
  8. Sequence(Translate[Element[salat3, i], Vector[SalatPos3 + ((i - 1) * (dxFolge, 0))]], i, 1, 3) → showSalat3
  9. If(turboschnecke, 1 / 6, regenbogenschnecke, (1 / 6 * 0.8), (1 / 6 * 0.6)) → speed2
  10. Defined(input) → fixed
  11. Shuffle(Sequence[Random[2, 6], i, 1, 50]) → randomZahl3Nenner, {4, 2, 3, 2, 6, 6, 5, 4, 6, 4, 6, 6, 6, 4, 2, 5, 5, 6, 6, 2, 5, 6, 6, 2, 4, 2, 2, 3, 5, 4, 2, 6, 6, 5, 5, 5, 6, 5, 3, 2, 5, 5, 2, 4, 3, 3, 5, 6, 4, 5}
  12. Flatten(Sequence[Shuffle[1…4], k, 1, 50]) → VRAuswahl1
  13. Flatten(Sequence[Shuffle[1…4], k, 1, 50]) → VRAuswahl2
  14. Flatten(Sequence[Shuffle[1…4], k, 1, 50]) → VRAuswahl3
  15. Shuffle(Sequence[Random[1, 10], i, 1, 50]) → randomZahl11, {1, 9, 10, 9, 1, 3, 6, 5, 7, 4, 3, 10, 5, 8, 7, 7, 7, 8, 2, 1, 5, 4, 1, 1, 4, 1, 1, 4, 5, 1, 10, 6, 6, 2, 10, 7, 1, 5, 7, 1, 10, 4, 8, 4, 5, 3, 2, 10, 9, 10}
  16. Shuffle(Sequence[Random[1, 10], i, 1, 50]) → randomZahl12, {5, 3, 10, 6, 1, 4, 4, 3, 7, 6, 6, 6, 2, 1, 9, 7, 3, 2, 10, 10, 7, 2, 10, 8, 4, 5, 1, 2, 1, 5, 10, 1, 10, 2, 2, 2, 4, 8, 3, 3, 9, 8, 7, 8, 7, 3, 8, 6, 8, 7}
  17. Shuffle(Sequence[Random[1, 10], i, 1, 50]) → randomZahl13, {5, 9, 8, 5, 7, 8, 4, 5, 9, 5, 10, 2, 9, 9, 5, 2, 9, 8, 7, 8, 4, 1, 7, 5, 7, 2, 10, 8, 1, 7, 2, 4, 1, 2, 1, 4, 2, 5, 3, 7, 7, 3, 8, 3, 10, 4, 2, 9, 1, 6}
  18. Sequence(RandomElement[1…2], i, 1, 50) → random5050, {1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 1, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2}
  19. Shuffle(Sequence[RandomElement[(0…49) \ {0, -10, 10, -20, 20, -30, 30, -40, 40}] / 10, i, 1, 55]) → randomZahl212, {1.3, 0.8, 3.6, 4.2, 1.2, 4.6, 4.7, 0.5, 3.3, 0.2, 0.9, 2.5, 3.9, 0.9, 2.4, 0.8, 3.9, 0.6, 0.6, 3.9, 1.6, 4.8, 3.1, 3.1, 2.6, 1.6, 2.4, 2.6, 0.4, 3.7, 3.3, 4.1, 4.7, 2.8, 4.7, 0.2, 2.4, 4.8, 3.8, 4.4, 0.5, 3.8, 4.3, 2.1, 0.6, 0.7, 4.2, 3.5, 4.5, 2.3, 4.6, 3.5, 4.1, 4.8, 4.6}
  20. Shuffle(Sequence[RandomElement[(1…10) \ {10}] / 10, i, 1, 55]) → randomZahl211, {0.9, 0.6, 0.5, 0.8, 0.3, 0.1, 0.9, 0.8, 0.6, 0.3, 0.2, 0.8, 0.8, 0.6, 0.8, 0.9, 0.8, 0.9, 0.7, 0.6, 0.3, 0.7, 0.8, 0.4, 0.7, 0.9, 0.3, 0.8, 0.5, 0.5, 0.9, 0.4, 0.6, 0.9, 0.5, 0.7, 0.3, 0.9, 0.4, 0.6, 0.5, 0.6, 0.5, 0.1, 0.7, 0.3, 0.8, 0.4, 0.7, 0.2, 0.8, 0.2, 0.5, 0.8, 0.5}
  21. If(random5050(beispiel) ≟ 1, randomZahl211, randomZahl212) → randomZahl21
  22. Shuffle(Sequence[RandomElement[(1…10) \ {10}] / 10, i, 1, 55]) → randomZahl22, {0.1, 0.4, 0.8, 0.4, 0.6, 0.4, 0.6, 0.1, 0.8, 0.2, 0.8, 0.8, 0.7, 0.6, 0.8, 0.1, 0.5, 0.7, 0.1, 0.1, 0.2, 0.8, 0.5, 0.7, 0.5, 0.9, 0.1, 0.7, 0.4, 0.8, 0.8, 0.6, 0.3, 0.7, 0.9, 0.9, 0.2, 0.4, 0.4, 0.4, 0.5, 0.9, 0.4, 0.3, 0.4, 0.1, 0.4, 0.7, 0.4, 0.4, 0.9, 0.7, 0.7, 0.3, 0.1}
  23. Shuffle(Sequence[Random[1, 2], i, 1, 100]) → randomPosition2, {2, 2, 2, 2, 1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 1, 1, 2, 1, 2, 2, 1, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 2, 1, 1, 2, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 1}
  24. If(random5050(beispiel) ≟ 1, solution21, solution22) → solution2
  25. Sequence(If[randomZahl3Nenner(i) ≟ 2, Random[1, 2], randomZahl3Nenner(i) ≟ 3, Random[1, 3], randomZahl3Nenner(i) ≟ 4, Random[1, 4], randomZahl3Nenner(i) ≟ 5, Random[1, 5], randomZahl3Nenner(i) ≟ 6, Random[1, 6]], i, 1, 50) → randomZahl3Zähler1
  26. Sequence(If[randomZahl3Nenner(i) ≟ 2, Random[1, 2], randomZahl3Nenner(i) ≟ 3, Random[1, 3], randomZahl3Nenner(i) ≟ 4, Random[1, 4], randomZahl3Nenner(i) ≟ 5, Random[1, 5], randomZahl3Nenner(i) ≟ 6, Random[1, 6]], i, 1, 50) → randomZahl3Zähler2
  27. Flatten(Sequence[Shuffle[1…3], k, 1, 50]) → randomQuestionType
  28. If(questionType ≟ 1, solution1, questionType ≟ 2, solution2, solution3) → solution
  29. Split(Text[InputBox], {""}) → inputKeys
  30. CountIf(x ≟ " ", inputKeys) → NumOfLeer
  31. If(questionType ≟ 3, NumOfLeer ≤ 2, NumOfLeer ≟ 0) → correctKeys
  32. CountIf(x ≟ "+", inputKeys) → NumOfPlus
  33. CountIf(x ≟ "-", inputKeys) → NumOfMinus
  34. CountIf(x ≟ "/", inputKeys) → NumOfDurch
  35. CountIf(x ≟ "*", inputKeys) → NumOfMal