Distribute Money 2

Distribute Money 2
Loading the math board and drawing, please wait…
2025-04-03 15:04
This example demonstrates how to use a money exchange machine to evenly distribute an amount of money into multiple wallets. The core mathematical concepts involved include division and natural numbers. Key construction points: Utilizes GeoGebra commands such as Polygon, CountIf, Flatten, Translate, Join, If, Sequence, Min, Textfield, Shuffle, Element, Append, Point, Length, Zip, Sum, and objects like showButtonValidateGrauAfterTryAgain, Maschine1, V01, V02. Suitable for middle or high school students to learn and practice solving distribution problems.

GeoGebra Commands & Parameters

  1. Polygon(V01, (x(V01), y(V02)), V02, (x(V02), y(V01))) → v0, f, g, h, k
  2. CountIf(P ∈ v0, P, RemoveUndefined[{MG1, MG2, MG3, MG4, MG5, MG6, MG7, MG8, MG9, MG10, MG11, MG12, MG13, MG14, MG15, MG16, MG17, MG18, MG19, MG20, MG21, MG22}]) → inv02
  3. CountIf(P ∈ v0, P, RemoveUndefined[{MH1, MH2, MH3, MH4, MH5, MH6, MH7, MH8, MH9, MH10, MH11, MH12, MH13, MH14, MH15, MH16, MH17, MH18, MH19, MH20, MH21, MH22}]) → inv01
  4. CountIf(P ∈ v0, P, RemoveUndefined[{MF1, MF2, MF3, MF4, MF5, MF6, MF7, MF8, MF9, MF10, MF11, MF12, MF13, MF14, MF15, MF16, MF17, MF18, MF19, MF20, MF21, MF22}]) → inv05
  5. CountIf(P ∈ v0, P, RemoveUndefined[{ME1, ME2, ME3, ME4, ME5, ME6, ME7, ME8, ME9, ME10, ME11, ME12, ME13, ME14, ME15, ME16, ME17, ME18, ME19, ME20, ME21, ME22, ME23, ME24, ME25, ME26, ME27}]) → inv010
  6. CountIf(P ∈ v0, P, RemoveUndefined[{MD1, MD2, MD3, MD4, MD5, MD6, MD7, MD8, MD9, MD10, MD11, MD12, MD13, MD14, MD15, MD16, MD17, MD18, MD19, MD20, MD21, MD22, MD23, MD24, MD25, MD26, MD27}]) → inv020
  7. CountIf(P ∈ v0, P, RemoveUndefined[{MC1, MC2, MC3, MC4, MC5, MC6, MC7, MC8, MC9, MC10, MC11, MC12}]) → inv050
  8. Flatten(Sequence[Sequence[BagPoint + (m * (bagsizex + 0.1, 0)) + (j * (0, bagsizey + 0.1)), m, 0, 2], j, 0, 2]) → listBagPoints
  9. Translate(Polygon[(0, 0), (bagsizex, 0), (bagsizex, bagsizey), (0, bagsizey)], listBagPoints(2)) → v2
  10. Translate(Polygon[(0, 0), (bagsizex, 0), (bagsizex, bagsizey), (0, bagsizey)], listBagPoints(3)) → v3
  11. Translate(Polygon[(0, 0), (bagsizex, 0), (bagsizex, bagsizey), (0, bagsizey)], listBagPoints(4)) → v4
  12. Translate(Polygon[(0, 0), (bagsizex, 0), (bagsizex, bagsizey), (0, bagsizey)], listBagPoints(5)) → v5
  13. Translate(Polygon[(0, 0), (bagsizex, 0), (bagsizex, bagsizey), (0, bagsizey)], listBagPoints(6)) → v6
  14. Translate(Polygon[(0, 0), (bagsizex, 0), (bagsizex, bagsizey), (0, bagsizey)], listBagPoints(7)) → v7
  15. Translate(Polygon[(0, 0), (bagsizex, 0), (bagsizex, bagsizey), (0, bagsizey)], listBagPoints(8)) → v8
  16. Translate(Polygon[(0, 0), (bagsizex, 0), (bagsizex, bagsizey), (0, bagsizey)], listBagPoints(9)) → v9
  17. Translate(Polygon[(0, 0), (bagsizex, 0), (bagsizex, bagsizey), (0, bagsizey)], listBagPoints(1)) → v1
  18. CountIf(P ∈ v0, P, RemoveUndefined[{MA1, MA2, MA3, MA4, MA5, MA6}]) → inv0200
  19. CountIf(P ∈ v0, P, RemoveUndefined[{MB1, MB2, MB3, MB4, MB5, MB6, MB7, MB8, MB9, MB10, MB11, MB12}]) → inv0100
  20. Join({{3}, Shuffle[Sequence[1, maxexnum] \ {3}], Join[Sequence[Shuffle[Sequence[1, maxexnum]], m, 1, floor(110 / maxexnum)]]}) → listExNums
  21. If(startpage, 9, listExNums(Mod[questionCount, 100] + 1)) → exnum
  22. Sequence(Element[{inV1, inV2, inV3, inV4, inV5, inV6, inV7, inV8, inV9}, m], m, 1, numBeutel) → listVs
  23. Sequence(PS + ((m * absscheinex) + 0.2, 0), m, 0, 4) → listPSBegin
  24. Flatten(Sequence[Sequence[PS + (m * (absscheinex + 0.2, 0)) - (j * (0, (1.2 * picheight200))), m, 0, 4], j, 0, 3]) → listPSExercise
  25. Polygon(PBild1, (x(PBild1), y(PBild2)), PBild2, (x(PBild2), y(PBild1))) → vBild, a_1, i, b_2, j
  26. If(b ≤ 2, Min[{floor((num - (num200 * 200)) / 100), max100}], 0) → num100
  27. If(b ≤ 5, Min[{floor((num - (num200 * 200) - (num100 * 100) - (num50 * 50) - (num20 * 20)) / 10), max10}], 0) → num10
  28. Min({floor((num - (num200 * 200) - (num100 * 100) - (num50 * 50) - (num20 * 20) - (num10 * 10) - (num5 * 5) - (num2 * 2)) / 1), max1}) → num1
  29. Textfield(input1) → Eingabefeld1
  30. Textfield(input2) → Eingabefeld2
  31. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, rectangleCorrectS3, rectangleCorrectS4, rectangleCorrectS2, rectangleCorrectS1
  32. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {10, 5, 5, 10, 10, 2, 2, 6, 5, 3, 2, 5, 10, 3, 2, 1, 8, 7, 8, 8, 9, 6, 7, 0, 1, 1, 7, 7, 0, 9, 3, 1, 1, 4, 5, 8, 0, 0, 8, 4, 1, 10, 7, 0, 1, 3, 1, 6, 2, 2, 1, 0, 0, 1, 3, 9, 6, 10, 9, 5, 3, 4, 10, 9, 8, 8, 5, 4, 10, 10, 9, 7, 8, 5, 2, 2, 3, 5, 10, 1, 10, 10, 5, 0, 5, 8, 8, 0, 6, 10, 8, 4, 2, 7, 5, 4, 3, 3, 2, 6}
  33. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {0, 9, 4, 9, 10, 9, 0, 8, 1, 10, 3, 10, 6, 4, 0, 2, 7, 0, 3, 10, 9, 5, 3, 7, 4, 4, 10, 0, 4, 2, 10, 9, 6, 0, 2, 8, 4, 4, 1, 3, 7, 2, 4, 10, 9, 10, 5, 2, 10, 9, 3, 5, 0, 6, 3, 7, 3, 1, 8, 6, 6, 5, 9, 7, 8, 5, 2, 6, 2, 3, 2, 3, 9, 3, 9, 0, 6, 9, 0, 1, 9, 10, 8, 1, 7, 7, 9, 1, 1, 2, 0, 3, 0, 2, 8, 0, 7, 7, 10, 8}
  34. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  35. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  36. Point(Line[Maschine1, xAxis]) → Maschine2
  37. Textfield(num) → Eingabefeld0
  38. Flatten(Sequence[Sequence[PC + (m * (absscheinex, 0)) - (j * (0, (0.8 * absscheiney))), j, 0, 8], m, 0, 2]) → listPC
  39. Length(listPC) → lengthPC
  40. Sequence(listPC(m), m, 1, listChange(2)) → listPC200
  41. Sequence(Element[Remove[listPC, listPC200], m], m, 1, listChange(3)) → listPC100
  42. Sequence(Element[Remove[listPC, Join[{listPC200, listPC100}]], m], m, 1, listChange(4)) → listPC50
  43. Sequence(Element[Remove[listPC, Join[{listPC200, listPC100, listPC50}]], m], m, 1, listChange(5)) → listPC20
  44. Sequence(Element[Remove[listPC, Join[{listPC200, listPC100, listPC50, listPC20}]], m], m, 1, listChange(6)) → listPC10
  45. Sequence(Element[Remove[listPC, Join[{listPC200, listPC100, listPC50, listPC20, listPC10}]], m], m, 1, listChange(7)) → listPC5
  46. Sequence(Element[Remove[listPC, Join[{listPC200, listPC100, listPC50, listPC20, listPC10, listPC5}]], m], m, 1, listChange(8)) → listPC2
  47. Sequence(Element[Remove[listPC, Join[{listPC200, listPC100, listPC50, listPC20, listPC10, listPC5, listPC2}]], m], m, 1, listChange(9)) → listPC1
  48. If(startpage, listPSBegin, listPSExercise) → listPS
  49. Sequence(listPS(m), m, 1, listStart(1)) → listPS200
  50. Sequence(Element[Remove[listPS, listPS200], m], m, 1, listStart(2)) → listPS100
  51. CountIf(P ∈ vBild, P, RemoveUndefined[{MH1, MH2, MH3, MH4, MH5, MH6, MH7, MH8, MH9, MH10, MH11, MH12, MH13, MH14, MH15, MH16, MH17, MH18, MH19, MH20, MH21, MH22}]) → inBild1
  52. CountIf(P ∈ vBild, P, RemoveUndefined[{MF1, MF2, MF3, MF4, MF5, MF6, MF7, MF8, MF9, MF10, MF11, MF12, MF13, MF14, MF15, MF16, MF17, MF18, MF19, MF20, MF21, MF22}]) → inBild5
  53. CountIf(P ∈ vBild, P, RemoveUndefined[{ME1, ME2, ME3, ME4, ME5, ME6, ME7, ME8, ME9, ME10, ME11, ME12, ME13, ME14, ME15, ME16, ME17, ME18, ME19, ME20, ME21, ME22, ME23, ME24, ME25, ME26, ME27}]) → inBild10
  54. CountIf(P ∈ vBild, P, RemoveUndefined[{MD1, MD2, MD3, MD4, MD5, MD6, MD7, MD8, MD9, MD10, MD11, MD12, MD13, MD14, MD15, MD16, MD17, MD18, MD19, MD20, MD21, MD22, MD23, MD24, MD25, MD26, MD27}]) → inBild20
  55. CountIf(P ∈ vBild, P, RemoveUndefined[{MC1, MC2, MC3, MC4, MC5, MC6, MC7, MC8, MC9, MC10, MC11, MC12}]) → inBild50
  56. CountIf(P ∈ vBild, P, RemoveUndefined[{MB1, MB2, MB3, MB4, MB5, MB6, MB7, MB8, MB9, MB10, MB11, MB12}]) → inBild100
  57. CountIf(P ∈ vBild, P, RemoveUndefined[{MA1, MA2, MA3, MA4, MA5, MA6}]) → inBild200
  58. CountIf(P ∈ vBild, P, RemoveUndefined[{MG1, MG2, MG3, MG4, MG5, MG6, MG7, MG8, MG9, MG10, MG11, MG12, MG13, MG14, MG15, MG16, MG17, MG18, MG19, MG20, MG21, MG22}]) → inBild2
  59. Polygon(VA1, (x(VA1), y(VA2)), VA2, (x(VA2), y(VA1))) → vAusgabe, va1, l, va2, m
  60. CountIf(Defined[P] ∧ P ∈ vAusgabe, P, {MA1, MA2, MA3, MA4, MA5, MA6, MB1, MB2, MB3, MB4, MB5, MB11, MB12, MC1, MC2, MC3, MC4, MC5, MC6, MC7, MC8, MC9, MC10, MC11, MC12, MD1, MD2, MD3, MD4, MD5, MD6, MD7, MD8, MD9, MD10, MD11, MD12, MD13, MD14, MD15, MD16, MD17, MD18, MD19, MD20, MD21, MD22, MD23, MD24, MD25, MD26, MD27, ME1, ME2, ME3, ME4, ME5, ME6, ME7, ME8, ME9, ME10, ME11, ME12, ME13, ME14, ME15, ME16, ME17, ME18, ME19, ME20, ME21, ME22, ME23, ME24, ME25, ME26, ME27, MF1, MF2, MF3, MF4, MF5, MF6, MF7, MF8, MF9, MF10, MF11, MF12, MF13, MF14, MF15, MF16, MF17, MF18, MF19, MF20, MF21, MF22, MG1, MG2, MG3, MG4, MG5, MG6, MG7, MG8, MG9, MG10, MG11, MG12, MG13, MG14, MG15, MG16, MG17, MG18, MG19, MG20, MG21, MG22, MH1, MH2, MH3, MH4, MH5, MH6, MH7, MH8, MH9, MH10, MH11, MH12, MH13, MH14, MH15, MH16, MH17, MH18, MH19, MH20, MH21, MH22}) → inVAusgabe
  61. CountIf(P ∈ vBild, P, RemoveUndefined[{MB11, MB12}]) → inBild100Start
  62. CountIf(P ∈ vBild, P, RemoveUndefined[{ME26, ME27}]) → inBild10Start
  63. CountIf(P ∈ vBild, P, RemoveUndefined[{MH21, MH22}]) → inBild1Start
  64. CountIf(P ∈ vBild, P, RemoveUndefined[{MA4, MA5, MA6}]) → inBild200Start
  65. CountIf(P ∈ vBild, P, RemoveUndefined[{MD26, MD27}]) → inBild20Start
  66. CountIf(P ∈ vBild, P, RemoveUndefined[{MG21, MG22}]) → inBild2Start
  67. CountIf(P ∈ vBild, P, RemoveUndefined[{MC11, MC12}]) → inBild50Start
  68. CountIf(P ∈ vBild, P, RemoveUndefined[{MF21, MF22}]) → inBild5Start
  69. Zip((numBeutel * m), m, listSol) → listSolNums
  70. Polygon(VVB1, (x(VVB2), y(VVB1)), VVB2, (x(VVB1), y(VVB2))) → vForbidden, vfb1, n, vfb2, p
  71. Sequence(Element[Remove[listPS, Join[{listPS200, listPS100}]], m], m, 1, listStart(3)) → listPS50
  72. Sequence(Element[Remove[listPS, Join[{listPS200, listPS100, listPS50}]], m], m, 1, listStart(4)) → listPS20
  73. Sequence(Element[Remove[listPS, Join[{listPS200, listPS100, listPS50, listPS20}]], m], m, 1, listStart(5)) → listPS10
  74. Sequence(Element[Remove[listPS, Join[{listPS200, listPS100, listPS50, listPS20, listPS10}]], m], m, 1, listStart(6)) → listPS5
  75. Sequence(Element[Remove[listPS, Join[{listPS200, listPS100, listPS50, listPS20, listPS10, listPS5}]], m], m, 1, listStart(7)) → listPS2
  76. Sequence(Element[Remove[listPS, Join[{listPS200, listPS100, listPS50, listPS20, listPS10, listPS5, listPS2}]], m], m, 1, listStart(8)) → listPS1
  77. Sum(listStart) → numStart
  78. Sequence(numX, m, 1, 8) → listNumsX, {111, 111, 111, 111, 111, 111, 111, 111}
  79. Flatten(Sequence[Sequence[PRest + (m * ((0.5 * picsize100), 0)) + (j * (0, absscheiney)), m, 0, 4], j, 0, 12]) → listRestPoints
  80. Sequence(listBagPoints(2) + ((0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPoints2
  81. Sequence(listBagPoints(3) + ((0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPoints3
  82. Sequence(listBagPoints(4) + ((0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPoints4
  83. Sequence(listBagPoints(5) + ((0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPoints5
  84. Sequence(listBagPoints(6) + ((0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPoints6
  85. Sequence(listBagPoints(7) + ((0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPoints7
  86. Sequence(listBagPoints(8) + ((0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPoints8
  87. Sequence(listBagPoints(9) + ((0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPoints9
  88. Sequence(listBagPoints(3) + (3 + (0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPointsRest
  89. Length(listRestPoints) → a
  90. Sequence(listBagPoints(1) + ((0.3 * bagsizex), (0.5 * bagsizey) - (m * absscheinesol)), m, 0, Sum[listSol]) → listSolPoints1
  91. Sequence(Element[Zip[Text["\textsf\small{" + correctValue + ((" €" * "}")), P + (1.33, 2), true, true, -0, 1], P, listBagPoints], m], m, 1, numBeutel) → listSolText

AI Drawing Prompt Reference

Draw a money‑exchange machine scene: a central machine with nine rectangular wallets arranged in a 3×3 grid on each side. Above the machine show a total‑amount input field, below two answer input fields. Inside each wallet place bill icons of denominations 200, 100, 50, 20, 10, 5, 2, 1 distributed by division. A horizontal line on the right of the machine marks the outlet, and a feedback rectangle appears at the top. The layout uses a grid, includes randomly generated exercise numbers and a validation button.
The prompt above was compiled from the original drawing commands and is for reference only.