Account Balance, Debt, and Account Balance

Account Balance, Debt, and Account Balance
Loading the math board and drawing, please wait…
2024-06-13 18:26
This example demonstrates how to use GeoGebra to show the relationship between account balance, debt, and account balance. The core math concepts involved include comparing and ordering integers, as well as interpreting integers in non-mathematical situations. The construction points include using GeoGebra commands/objects such as Join, If, Element, Sequence, IndexOf, Point, Textfield, and Polygon. It is suitable for 5-6 grade students' integer operations and comparisons.

GeoGebra Commands & Parameters

  1. Join({Shuffle[{1, 2, 3}], Shuffle[{4, 5, 6}], Shuffle[{7, 8}]}) → NosCase
  2. If(numCase ≟ 1 ∨ numCase ≟ 2 ∨ numCase ≟ 3, Shuffle[Sequence[Random[1, 3], i, 1, 100]], If[numCase ≟ 4 ∨ numCase ≟ 5 ∨ numCase ≟ 6, Shuffle[Sequence[Random[1, 1], i, 1, 100]], If[numCase ≟ 7 ∨ numCase ≟ 8, Shuffle[Sequence[Random[1, 4], i, 1, 100]]]]) → randomNosPositionAnswerCorrect1
  3. If(numCase ≟ 1 ∨ numCase ≟ 2 ∨ numCase ≟ 3, Sequence[RandomElement[Remove[Sequence[3], {randomNosPositionAnswerCorrect1(i)}]], i, 1, 100], If[numCase ≟ 4 ∨ numCase ≟ 5 ∨ numCase ≟ 6, Shuffle[Sequence[Random[2, 2], i, 1, 100]], If[numCase ≟ 7 ∨ numCase ≟ 8, Sequence[RandomElement[Remove[Sequence[4], {randomNosPositionAnswerCorrect1(i)}]], i, 1, 100]]]) → randomNosPositionAnswerWrong1
  4. If(numCase ≟ 1 ∨ numCase ≟ 2 ∨ numCase ≟ 3, Sequence[RandomElement[Remove[Remove[Sequence[3], {randomNosPositionAnswerCorrect1(i)}], {randomNosPositionAnswerWrong1(i)}]], i, 1, 100], If[numCase ≟ 4 ∨ numCase ≟ 5 ∨ numCase ≟ 6, Shuffle[Sequence[Random[1, 1], i, 1, 100]], If[numCase ≟ 7 ∨ numCase ≟ 8, Sequence[RandomElement[Remove[Remove[Sequence[4], {randomNosPositionAnswerCorrect1(i)}], {randomNosPositionAnswerWrong1(i)}]], i, 1, 100]]]) → randomNosPositionAnswerWrong2
  5. Element(randomNosPositionAnswerCorrect1, Mod[questionCount, 100] + 1) → numPositionAnswerCorrect1
  6. Element(randomNosPositionAnswerWrong1, Mod[questionCount, 100] + 1) → numPositionAnswerWrong1
  7. Element(randomNosPositionAnswerWrong2, Mod[questionCount, 100] + 1) → numPositionAnswerWrong2
  8. If(numCase ≟ 7, correctCases7, correctCasesOther) → correctCases
  9. Sequence(RandomElement[Remove[Remove[Remove[Sequence[4], {randomNosPositionAnswerCorrect1(i)}], {randomNosPositionAnswerWrong1(i)}], {randomNosPositionAnswerWrong2(i)}]], i, 1, 100) → randomNosPositionAnswerWrong3, {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}
  10. Element(randomNosPositionAnswerWrong3, Mod[questionCount, 100] + 1) → numPositionAnswerWrong3
  11. IndexOf(true, checkboxes) → SelectedCheckbox
  12. Point(Line[F11, Vector[(0, 0), (0, -1.2)]]) → F21
  13. Textfield(aInput) → InputBox1
  14. Textfield(bInput) → InputBox2
  15. If(numCase ≟ 7 ∨ numCase ≟ 8, correctCases(1) ≟ checkboxes(1) ∧ correctCases(2) ≟ checkboxes(2) ∧ correctCases(3) ≟ checkboxes(3) ∧ correctCases(4) ≟ checkboxes(4), If[numCase ≟ 4, checkboxes(1), If[numCase ≟ 5 ∨ numCase ≟ 6, checkboxes(2), If[numCase ≟ 1 ∨ numCase ≟ 3, checkboxes(2), If[numCase ≟ 2, checkboxes(1)]]]]) → correct
  16. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  17. Polygon(PtopLeftCornerFeedback1, PbottomLeftCornerFeedback1, PbottomRightCornerFeedback1, PtopRightCornerFeedback1) → rectangleCorrect1, i, j_1, k_1, l_1
  18. Polygon(PtopLeftCornerFeedback2, PbottomLeftCornerFeedback2, PbottomRightCornerFeedback2, PtopRightCornerFeedback2) → rectangleCorrect2, i_1, j_2, k_2, l_2
  19. If((numCase ≟ 1 ∨ numCase ≟ 3) ∧ checkbox1_1 ≟ true, false, If[numCase ≟ 2 ∧ checkbox1_1 ≟ true, true, If[numCase ≟ 8 ∧ numPositionAnswerCorrect1 ≟ 1 ∧ checkbox1_1 ≟ true, true, If[numCase ≟ 4 ∧ checkbox1_1 ≟ true, true, If[numCase ≟ 7 ∧ (numPositionAnswerCorrect1 ≟ 1 ∨ numPositionAnswerWrong1 ≟ 1 ∨ numPositionAnswerWrong2 ≟ 1) ∧ checkbox1_1 ≟ true, true, false]]]]) → c1
  20. If((numCase ≟ 1 ∨ numCase ≟ 3) ∧ checkbox2_1 ≟ true, true, If[numCase ≟ 2 ∧ checkbox2_1 ≟ true, false, If[numCase ≟ 8 ∧ numPositionAnswerCorrect1 ≟ 2 ∧ checkbox2_1 ≟ true, true, If[(numCase ≟ 5 ∨ numCase ≟ 6) ∧ checkbox2_1 ≟ true, true, If[numCase ≟ 7 ∧ (numPositionAnswerCorrect1 ≟ 2 ∨ numPositionAnswerWrong1 ≟ 2 ∨ numPositionAnswerWrong2 ≟ 2) ∧ checkbox2_1 ≟ true, true, false]]]]) → c2
  21. If((numCase ≟ 1 ∨ numCase ≟ 2 ∨ numCase ≟ 3) ∧ checkbox3_1 ≟ true, false, If[numCase ≟ 8 ∧ numPositionAnswerCorrect1 ≟ 3 ∧ checkbox3_1 ≟ true, true, If[numCase ≟ 7 ∧ (numPositionAnswerCorrect1 ≟ 3 ∨ numPositionAnswerWrong1 ≟ 3 ∨ numPositionAnswerWrong2 ≟ 3) ∧ checkbox3_1 ≟ true, true, false]]) → c3
  22. Join({Shuffle[{1, 2, 3}], Shuffle[{4, 5, 6}], Shuffle[{7, 8}]}) → randomNosCase
  23. If(numCase ≟ 8 ∧ numPositionAnswerCorrect1 ≟ 4 ∧ checkbox4_1 ≟ true, true, If[numCase ≟ 7 ∧ (numPositionAnswerCorrect1 ≟ 4 ∨ numPositionAnswerWrong1 ≟ 4 ∨ numPositionAnswerWrong2 ≟ 4) ∧ checkbox4_1 ≟ true, true, false]) → c4
  24. Polygon(PtopLeftCornerFeedback3, PbottomLeftCornerFeedback3, PbottomRightCornerFeedback3, PtopRightCornerFeedback3) → rectangleCorrect3, ptopleftcornerfeedback3, pbottomleftcornerfeedback3, pbottomrightcornerfeedback3, ptoprightcornerfeedback3
  25. If(numCase ≟ 1 ∨ numCase ≟ 2 ∨ numCase ≟ 3, 2, If[numCase ≟ 4 ∨ numCase ≟ 5 ∨ numCase ≟ 6, 1, 3]) → versuche

AI Drawing Prompt Reference

Draw an interactive teaching interface for integer comparison practice. Include two input boxes for entering account balance and debt values. Below them, place four checkboxes corresponding to different answer choices. Based on a randomly generated question type, among the four answer positions, one is correct and three are wrong; highlight the correct position with a green rectangle and mark wrong ones with red rectangles. Display the current question number and attempt count at the top. Arrange all elements neatly on a light background, suitable for elementary school students.
The prompt above was compiled from the original drawing commands and is for reference only.