Distributive Law and Rectangle Perimeter Exercise

Distributive Law and Rectangle Perimeter Exercise
Loading the math board and drawing, please wait…
2021-08-20 18:21
This example demonstrates how to apply the distributive law to compute the perimeter of a rectangle, comparing the two formulas u = 2·(a+b) and u = 2a+2b. Core math concepts include the distributive law, commutative property of addition, rectangle perimeter formula, and multiple‑choice practice. Construction highlights: Polygon creates the rectangle; Segment, OrthogonalLine, and Intersect build edges and vertices; Textfield and InputBox handle text entry and answer validation; Shuffle, Element, Append, and Remove manage question randomization and feedback. Suitable for grades 5‑6 mathematics classrooms and for self‑practice or formative assessment.

GeoGebra Commands & Parameters

  1. Textfield(aInput) → InputBox1
  2. Textfield(bInput) → InputBox2
  3. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  4. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {6, 7, 10, 10, 4, 9, 1, 6, 6, 9, 7, 7, 10, 9, 2, 7, 8, 7, 0, 0, 10, 3, 3, 0, 7, 4, 10, 4, 10, 3, 9, 9, 9, 9, 7, 10, 0, 3, 1, 9, 10, 2, 1, 5, 0, 4, 9, 3, 7, 5, 1, 7, 6, 0, 1, 8, 7, 6, 8, 0, 4, 1, 0, 6, 10, 3, 6, 0, 5, 3, 0, 1, 6, 10, 3, 6, 2, 0, 3, 3, 9, 6, 8, 9, 10, 4, 3, 2, 2, 0, 4, 0, 1, 0, 1, 6, 2, 9, 10, 7}
  5. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  6. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {9, 4, 0, 10, 7, 9, 4, 0, 6, 2, 2, 6, 8, 0, 10, 8, 10, 2, 6, 1, 8, 4, 0, 0, 7, 1, 6, 0, 8, 6, 8, 4, 3, 3, 4, 3, 9, 0, 10, 8, 9, 5, 9, 6, 1, 7, 4, 5, 3, 2, 9, 10, 3, 10, 0, 8, 3, 7, 2, 7, 3, 1, 4, 9, 10, 5, 9, 8, 6, 5, 3, 2, 8, 4, 2, 6, 4, 0, 10, 1, 3, 1, 2, 8, 10, 9, 1, 8, 1, 7, 1, 1, 0, 1, 1, 6, 1, 0, 9, 10}
  7. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  8. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  9. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  10. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  11. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  12. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  13. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  14. Polygon(A, B, C, D) → v1, a, b, c, d
  15. Segment(E, F) → f
  16. Segment(F, G) → g
  17. Segment(G, H) → h
  18. Segment(H, I) → i
  19. Segment(J, K) → j
  20. Segment(K, L) → k
  21. Segment(L, M) → l
  22. Segment(M, N) → m
  23. OrthogonalLine(E, p) → n
  24. OrthogonalLine(F, p) → r
  25. OrthogonalLine(G, p) → s
  26. OrthogonalLine(H, p) → t
  27. OrthogonalLine(I, p) → e
  28. Intersect(n, p) → O
  29. Intersect(q, n) → P
  30. Intersect(p, r) → Q
  31. Intersect(q, r) → R
  32. Intersect(p, s) → S
  33. Intersect(q, s) → T
  34. Intersect(t, p) → U
  35. Intersect(q, t) → V
  36. Intersect(p, e) → W
  37. Intersect(q, e) → Z
  38. Segment(O, P) → f_1
  39. Segment(S, T) → h_1
  40. Segment(W, Z) → j_1
  41. OrthogonalLine(J, p_1) → k_1
  42. OrthogonalLine(K, p_1) → l_1
  43. OrthogonalLine(L, p_1) → m_1
  44. OrthogonalLine(M, p_1) → n_1
  45. OrthogonalLine(N, p_1) → r_1
  46. Intersect(k_1, p_1) → A_1
  47. Intersect(q_1, k_1) → B_1
  48. Intersect(q_1, l_1) → C_1
  49. Intersect(l_1, p_1) → D_1
  50. Intersect(m_1, p_1) → E_1
  51. Intersect(q_1, m_1) → F_1
  52. Intersect(n_1, p_1) → G_1
  53. Intersect(q_1, n_1) → H_1
  54. Intersect(r_1, p_1) → I_1
  55. Intersect(q_1, r_1) → J_1
  56. Segment(A_1, B_1) → s_1
  57. Segment(E_1, F_1) → a_1
  58. Segment(I_1, J_1) → c_1
  59. Segment(K_1, L_1) → d_1
  60. Segment(M_1, N_1) → e_1
  61. Segment(M_1, K_1) → f_2
  62. Segment(N_1, L_1) → g_2
  63. Segment(O_1, P_1) → t_1
  64. Segment(Q_1, R_1) → b_1
  65. Segment(S_1, T_1) → g_1
  66. Segment(U_1, V_1) → i_1

AI Drawing Prompt Reference

Draw a rectangle. There are two input boxes on the left for entering side lengths a and b. A rectangle is constructed on the right using four points, with feedback text boxes. The construction order is: create input boxes, then construct the rectangle, then add feedback text boxes.
The prompt above was compiled from the original drawing commands and is for reference only.