Interactive Exercise on Commutative Law of Addition with Random Numbers

Interactive Exercise on Commutative Law of Addition with Random Numbers
Loading the math board and drawing, please wait…
2022-08-08 07:06
① This example demonstrates the commutative law of addition in multi‑addend sums and asks students to decide whether subtraction also obeys the commutative law. ② Core math concepts: commutative law of addition, non‑commutativity of subtraction, explanation and application of arithmetic laws. ③ Construction highlights: commands Join, Element, If, Textfield, Segment, Midpoint together with objects count, randomNos, num, randomNos1, numTry, num1, E, F, aInput, InputBox1, c1, losgehts, zurueck, move, s, totalAttempts, loesung1, buttonText, bInput, InputBox2, c2, s_1, loesung2, weiter, inactiveButtonBackgroundColor, text5, A, B, f, C, g, D, h, i, G, H, j, k, l, m create random number generation, input boxes, button feedback, and geometric segments with midpoints for interactive exploration. ④ Suitable for grades 5‑6 (Schulstufe 5‑6) mathematics lessons, self‑study, or flipped‑classroom activities.

GeoGebra Commands & Parameters

  1. Join({{7, 3, 5}, Shuffle[Sequence[Random[2, 7], i, 1, 100]]}) → randomNos
  2. Element(randomNos, Mod[count, 100]) → num
  3. Join({{6, 4, 2}, Shuffle[Sequence[Random[2, 7], i, 1, 100]]}) → randomNos1
  4. Element(randomNos1, Mod[count, 100]) → numTry
  5. If(numTry ≟ num ∧ numTry < 7, numTry + 1, If[numTry ≟ num ∧ numTry ≟ 7, numTry - 1, numTry]) → num1
  6. Textfield(aInput) → InputBox1
  7. Textfield(bInput) → InputBox2
  8. Segment(A, B) → f
  9. Segment(B, C) → g
  10. Segment(D, E) → h
  11. Segment(E, F) → i
  12. Segment(G, H) → j
  13. Segment((x(A), y(A) - 0.2), (x(A), y(A) + 0.2)) → k
  14. Segment((x(D), y(D) - 0.2), (x(D), y(D) + 0.2)) → l
  15. Segment((x(G), y(G) - 0.2), (x(G), y(G) + 0.2)) → m
  16. Segment((x(B), y(B) - 0.2), (x(B), y(B) + 0.2)) → n
  17. Segment((x(E), y(E) - 0.2), (x(E), y(E) + 0.2)) → p
  18. Segment((x(C), y(C) - 0.2), (x(C), y(C) + 0.2)) → q
  19. Segment((x(F), y(F) - 0.2), (x(F), y(F) + 0.2)) → r
  20. Segment((x(H), y(H) - 0.2), (x(H), y(H) + 0.2)) → t
  21. Midpoint(A, B) → I
  22. Midpoint(B, C) → J
  23. Midpoint(D, E) → K
  24. Midpoint(F, E) → L
  25. Midpoint(G, H) → M

AI Drawing Prompt Reference

Please draw an interactive exercise diagram demonstrating the commutative law of addition, including randomly generated numbers, input boxes, and button feedback. First, generate two sets of random number sequences, each containing 100 integers between 2 and 7. Then select a number from these sequences for comparison and adjust the value based on certain conditions. Next, create two input boxes for user input. Finally, draw geometric shapes including multiple segments and their midpoints to allow users to interactively explore the commutative law of addition and the non-commutativity of subtraction.
The prompt above was compiled from the original drawing commands and is for reference only.