Distributive Law and Rectangle Perimeter Exercise
Loading the math board and drawing, please wait…
In collections
Rechengesetze Multiplikation
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
Textfield(aInput) → InputBox1Textfield(bInput) → InputBox2Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedbackShuffle(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}Element(randomNosForX, Mod[questionCount, 100] + 1) → numXShuffle(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}Element(randomNosForY, Mod[questionCount, 100] + 1) → numYAppend(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayXAppend(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayYRemove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeatRemove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeatElement(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeatElement(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeatPolygon(A, B, C, D) → v1, a, b, c, dSegment(E, F) → fSegment(F, G) → gSegment(G, H) → hSegment(H, I) → iSegment(J, K) → jSegment(K, L) → kSegment(L, M) → lSegment(M, N) → mOrthogonalLine(E, p) → nOrthogonalLine(F, p) → rOrthogonalLine(G, p) → sOrthogonalLine(H, p) → tOrthogonalLine(I, p) → eIntersect(n, p) → OIntersect(q, n) → PIntersect(p, r) → QIntersect(q, r) → RIntersect(p, s) → SIntersect(q, s) → TIntersect(t, p) → UIntersect(q, t) → VIntersect(p, e) → WIntersect(q, e) → ZSegment(O, P) → f_1Segment(S, T) → h_1Segment(W, Z) → j_1OrthogonalLine(J, p_1) → k_1OrthogonalLine(K, p_1) → l_1OrthogonalLine(L, p_1) → m_1OrthogonalLine(M, p_1) → n_1OrthogonalLine(N, p_1) → r_1Intersect(k_1, p_1) → A_1Intersect(q_1, k_1) → B_1Intersect(q_1, l_1) → C_1Intersect(l_1, p_1) → D_1Intersect(m_1, p_1) → E_1Intersect(q_1, m_1) → F_1Intersect(n_1, p_1) → G_1Intersect(q_1, n_1) → H_1Intersect(r_1, p_1) → I_1Intersect(q_1, r_1) → J_1Segment(A_1, B_1) → s_1Segment(E_1, F_1) → a_1Segment(I_1, J_1) → c_1Segment(K_1, L_1) → d_1Segment(M_1, N_1) → e_1Segment(M_1, K_1) → f_2Segment(N_1, L_1) → g_2Segment(O_1, P_1) → t_1Segment(Q_1, R_1) → b_1Segment(S_1, T_1) → g_1Segment(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.