Element Check Random Practice - Level 2

Element Check Random Practice - Level 2
Loading the math board and drawing, please wait…
2022-09-05 14:44
In collections Ⓔ Zahlenmengen
This example demonstrates how to randomly select and check element membership from a set of geometric objects. The core mathematical concepts involve set theory element checking (Element command), conditional logic (If command), and random shuffling (Shuffle command). Construction highlights: Using Polygon command to create multiple quadrilateral objects (P0-P20), displaying corresponding text labels via Textfield (text0-text20), applying Shuffle command to randomly shuffle object indices, extracting elements in sequence with Element command, and implementing interactive Q&A through If conditional judgment. This exercise is suitable for middle school mathematics curricula, teaching set concepts, element-set membership relationships, and developing students' logical reasoning abilities. It also serves as a practical case for integrating information technology with mathematics education.

GeoGebra Commands & Parameters

  1. Join({{2}, Shuffle[{5, 4, 9, 7, 3, 6, 8, 1}]}) → randomNosForBsp
  2. Polygon(A, B, C, D) → region1, a, b, c, d
  3. Polygon(E, F, G, H) → region2, e, f, g, h
  4. If(bsp ≟ 1 ∧ IsInRegion[P20, region1], true, If[bsp ≟ 5 ∧ IsInRegion[P20, region1], true, If[bsp ≟ 6 ∧ (¬(IsInRegion[P20, region1] ∨ IsInRegion[P20, region2])), true, If[bsp ≟ 9 ∧ IsInRegion[P20, region2], true, false]]]) → correct20
  5. If(bsp ≟ 1 ∧ IsInRegion[P19, region2], true, If[bsp ≟ 5 ∧ (¬(IsInRegion[P19, region1] ∨ IsInRegion[P19, region2])), true, If[bsp ≟ 6 ∧ IsInRegion[P19, region1], true, If[bsp ≟ 9 ∧ (¬(IsInRegion[P19, region1] ∨ IsInRegion[P19, region2])), true, false]]]) → correct19
  6. If(bsp ≟ 1 ∧ IsInRegion[P18, region1], true, If[bsp ≟ 5 ∧ IsInRegion[P18, region1], true, If[bsp ≟ 6 ∧ IsInRegion[P18, region1], true, If[bsp ≟ 9 ∧ IsInRegion[P18, region2], true, false]]]) → correct18
  7. If(bsp ≟ 1 ∧ IsInRegion[P17, region2], true, If[bsp ≟ 5 ∧ (¬(IsInRegion[P17, region1] ∨ IsInRegion[P17, region2])), true, If[bsp ≟ 6 ∧ IsInRegion[P17, region1], true, If[bsp ≟ 7 ∧ IsInRegion[P17, region2], true, If[bsp ≟ 9 ∧ (¬(IsInRegion[P17, region1] ∨ IsInRegion[P17, region2])), true, false]]]]) → correct17
  8. If(bsp ≟ 1 ∧ IsInRegion[P16, region1], true, If[bsp ≟ 5 ∧ (¬(IsInRegion[P16, region1] ∨ IsInRegion[P16, region2])), true, If[bsp ≟ 6 ∧ (¬(IsInRegion[P16, region1] ∨ IsInRegion[P16, region2])), true, If[bsp ≟ 7 ∧ (¬(IsInRegion[P16, region1] ∨ IsInRegion[P16, region2])), true, If[bsp ≟ 9 ∧ (¬(IsInRegion[P16, region1] ∨ IsInRegion[P16, region2])), true, false]]]]) → correct16
  9. If(bsp ≟ 1 ∧ IsInRegion[P15, region2], true, If[bsp ≟ 3 ∧ IsInRegion[P15, region2], true, If[bsp ≟ 5 ∧ (¬(IsInRegion[P15, region1] ∨ IsInRegion[P15, region2])), true, If[bsp ≟ 6 ∧ (¬(IsInRegion[P15, region1] ∨ IsInRegion[P15, region2])), true, If[bsp ≟ 7 ∧ IsInRegion[P15, region2], true, If[bsp ≟ 9 ∧ (¬(IsInRegion[P15, region1] ∨ IsInRegion[P15, region2])), true, false]]]]]) → correct15
  10. If(bsp ≟ 1 ∧ IsInRegion[P14, region1], true, If[bsp ≟ 3 ∧ (¬(IsInRegion[P14, region1] ∨ IsInRegion[P14, region2])), true, If[bsp ≟ 5 ∧ (¬(IsInRegion[P14, region1] ∨ IsInRegion[P14, region2])), true, If[bsp ≟ 6 ∧ (¬(IsInRegion[P14, region1] ∨ IsInRegion[P14, region2])), true, If[bsp ≟ 7 ∧ (¬(IsInRegion[P14, region1] ∨ IsInRegion[P14, region2])), true, If[bsp ≟ 8 ∧ IsInRegion[P14, region1], true, If[bsp ≟ 9 ∧ IsInRegion[P14, region1], true, false]]]]]]) → correct14
  11. If(bsp ≟ 1 ∧ IsInRegion[P13, region2], true, If[bsp ≟ 3 ∧ IsInRegion[P13, region2], true, If[bsp ≟ 5 ∧ (¬(IsInRegion[P13, region1] ∨ IsInRegion[P13, region2])), true, If[bsp ≟ 6 ∧ (¬(IsInRegion[P13, region1] ∨ IsInRegion[P13, region2])), true, If[bsp ≟ 7 ∧ (¬(IsInRegion[P13, region1] ∨ IsInRegion[P13, region2])), true, If[bsp ≟ 8 ∧ IsInRegion[P13, region1], true, If[bsp ≟ 9 ∧ (¬(IsInRegion[P13, region1] ∨ IsInRegion[P13, region2])), true, false]]]]]]) → correct13
  12. If(bsp ≟ 1 ∧ IsInRegion[P12, region1], true, If[bsp ≟ 2 ∧ (¬(IsInRegion[P12, region1] ∨ IsInRegion[P12, region2])), true, If[bsp ≟ 3 ∧ (¬(IsInRegion[P12, region1] ∨ IsInRegion[P12, region2])), true, If[bsp ≟ 4 ∧ IsInRegion[P12, region1], true, If[bsp ≟ 5 ∧ IsInRegion[P12, region2], true, If[bsp ≟ 6 ∧ (¬(IsInRegion[P12, region1] ∨ IsInRegion[P12, region2])), true, If[bsp ≟ 7 ∧ (¬(IsInRegion[P12, region1] ∨ IsInRegion[P12, region2])), true, If[bsp ≟ 8 ∧ IsInRegion[P12, region1], true, If[bsp ≟ 9 ∧ IsInRegion[P12, region1], true, false]]]]]]]]) → correct12
  13. If(bsp ≟ 2 ∧ IsInRegion[P11, region1], true, If[bsp ≟ 3 ∧ IsInRegion[P11, region2], true, If[bsp ≟ 4 ∧ (¬(IsInRegion[P11, region1] ∨ IsInRegion[P11, region2])), true, If[bsp ≟ 5 ∧ (¬(IsInRegion[P11, region1] ∨ IsInRegion[P11, region2])), true, If[bsp ≟ 6 ∧ IsInRegion[P11, region2], true, If[bsp ≟ 7 ∧ (¬(IsInRegion[P11, region1] ∨ IsInRegion[P11, region2])), true, If[bsp ≟ 8 ∧ IsInRegion[P11, region1], true, If[bsp ≟ 9 ∧ (¬(IsInRegion[P11, region1] ∨ IsInRegion[P11, region2])), true, false]]]]]]]) → correct11
  14. If(bsp ≟ 2 ∧ (¬(IsInRegion[P10, region1] ∨ IsInRegion[P10, region2])), true, If[bsp ≟ 3 ∧ (¬(IsInRegion[P10, region1] ∨ IsInRegion[P10, region2])), true, If[bsp ≟ 4 ∧ (¬(IsInRegion[P10, region1] ∨ IsInRegion[P10, region2])), true, If[bsp ≟ 5 ∧ (¬(IsInRegion[P10, region1] ∨ IsInRegion[P10, region2])), true, If[bsp ≟ 6 ∧ (¬(IsInRegion[P10, region1] ∨ IsInRegion[P10, region2])), true, If[bsp ≟ 7 ∧ (¬(IsInRegion[P10, region1] ∨ IsInRegion[P10, region2])), true, If[bsp ≟ 8 ∧ (¬(IsInRegion[P10, region1] ∨ IsInRegion[P10, region2])), true, false]]]]]]) → correct10
  15. If(bsp ≟ 2 ∧ IsInRegion[P7, region2], true, If[bsp ≟ 3 ∧ (¬(IsInRegion[P7, region1] ∨ IsInRegion[P7, region2])), true, If[bsp ≟ 4 ∧ IsInRegion[P7, region2], true, If[bsp ≟ 7 ∧ IsInRegion[P7, region1], true, If[bsp ≟ 8 ∧ (¬(IsInRegion[P7, region1] ∨ IsInRegion[P7, region2])), true, false]]]]) → correct7
  16. If(bsp ≟ 2 ∧ (¬(IsInRegion[P8, region1] ∨ IsInRegion[P8, region2])), true, If[bsp ≟ 3 ∧ (¬(IsInRegion[P8, region1] ∨ IsInRegion[P8, region2])), true, If[bsp ≟ 4 ∧ (¬(IsInRegion[P8, region1] ∨ IsInRegion[P8, region2])), true, If[bsp ≟ 7 ∧ (¬(IsInRegion[P8, region1] ∨ IsInRegion[P8, region2])), true, If[bsp ≟ 8 ∧ (¬(IsInRegion[P8, region1] ∨ IsInRegion[P8, region2])), true, false]]]]) → correct8
  17. If(bsp ≟ 2 ∧ IsInRegion[P9, region1], true, If[bsp ≟ 3 ∧ (¬(IsInRegion[P9, region1] ∨ IsInRegion[P9, region2])), true, If[bsp ≟ 4 ∧ (¬(IsInRegion[P9, region1] ∨ IsInRegion[P9, region2])), true, If[bsp ≟ 6 ∧ IsInRegion[P9, region2], true, If[bsp ≟ 7 ∧ IsInRegion[P9, region1], true, If[bsp ≟ 8 ∧ (¬(IsInRegion[P9, region1] ∨ IsInRegion[P9, region2])), true, false]]]]]) → correct9
  18. If(bsp ≟ 2 ∧ IsInRegion[P5, region2], true, If[bsp ≟ 3 ∧ IsInRegion[P5, region1], true, If[bsp ≟ 4 ∧ IsInRegion[P5, region2], true, If[bsp ≟ 7 ∧ IsInRegion[P5, region1], true, If[bsp ≟ 8 ∧ (¬(IsInRegion[P5, region1] ∨ IsInRegion[P5, region2])), true, false]]]]) → correct5
  19. If(bsp ≟ 2 ∧ IsInRegion[P4, region2], true, If[bsp ≟ 3 ∧ IsInRegion[P4, region1], true, If[bsp ≟ 4 ∧ (¬(IsInRegion[P4, region1] ∨ IsInRegion[P4, region2])), true, If[bsp ≟ 8 ∧ IsInRegion[P4, region2], true, false]]]) → correct4
  20. If(bsp ≟ 2 ∧ (¬(IsInRegion[P3, region1] ∨ IsInRegion[P3, region2])), true, If[bsp ≟ 3 ∧ IsInRegion[P3, region1], true, If[bsp ≟ 4 ∧ IsInRegion[P3, region2], true, If[bsp ≟ 8 ∧ (¬(IsInRegion[P3, region1] ∨ IsInRegion[P3, region2])), true, false]]]) → correct3
  21. If(bsp ≟ 2 ∧ IsInRegion[P6, region2], true, If[bsp ≟ 3 ∧ IsInRegion[P6, region1], true, If[bsp ≟ 4 ∧ (¬(IsInRegion[P6, region1] ∨ IsInRegion[P6, region2])), true, If[bsp ≟ 7 ∧ (¬(IsInRegion[P6, region1] ∨ IsInRegion[P6, region2])), true, If[bsp ≟ 8 ∧ IsInRegion[P6, region2], true, false]]]]) → correct6
  22. If(bsp ≟ 1 ∧ IsInRegion[P1, region1], true, If[bsp ≟ 2 ∧ (¬(IsInRegion[P1, region1] ∨ IsInRegion[P1, region2])), true, If[bsp ≟ 4 ∧ IsInRegion[P1, region2], true, false]]) → correct1
  23. If(IsInRegion[P0, region1] ∨ IsInRegion[P0, region2], false, true) → correct0
  24. If(bsp ≟ 2 ∧ (¬(IsInRegion[P2, region1] ∨ IsInRegion[P2, region2])), true, If[bsp ≟ 4 ∧ (¬(IsInRegion[P2, region1] ∨ IsInRegion[P2, region2])), true, If[bsp ≟ 8 ∧ IsInRegion[P2, region2], true, false]]) → correct2
  25. Textfield(aInput) → InputBox1
  26. Textfield(bInput) → InputBox2
  27. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  28. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {7, 9, 5, 6, 9, 1, 2, 10, 5, 0, 4, 5, 10, 3, 2, 2, 4, 9, 10, 7, 2, 2, 0, 4, 8, 8, 2, 1, 0, 4, 3, 6, 3, 10, 0, 9, 10, 2, 0, 9, 5, 8, 7, 5, 7, 6, 0, 8, 7, 9, 4, 9, 7, 5, 5, 7, 9, 1, 5, 6, 6, 3, 8, 4, 0, 9, 5, 0, 5, 3, 6, 5, 3, 1, 10, 9, 8, 6, 3, 9, 3, 6, 5, 9, 6, 9, 1, 0, 6, 4, 6, 2, 2, 9, 3, 5, 6, 4, 3, 2}
  29. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  30. If(bsp ≟ 3 ∨ bsp ≟ 6 ∨ bsp ≟ 8, Pos2, Pos1) → Position1
  31. If(bsp ≟ 2 ∨ bsp ≟ 5, Pos4, Pos3) → Position2

AI Drawing Prompt Reference

Construct two quadrilaterals, randomly shuffle indices, and check if points corresponding to the indices are inside the quadrilaterals. Display the results through conditional logic, use a text box for input, and draw a feedback rectangle based on the answer.
The prompt above was compiled from the original drawing commands and is for reference only.