Cylinder Choices

Cylinder Choices
Loading the math board and drawing, please wait…
2018-05-25 09:04
This example demonstrates the construction of a cylinder, involving basic concepts such as radius, height, and lateral surface area. Using GeoGebra commands like Random, Mod, and If, the parameters of the cylinder can be dynamically changed, helping students understand the properties of a cylinder. Suitable for middle and high school students learning geometric construction and solid geometry.

GeoGebra Commands & Parameters

  1. Random(1, 20) → a
  2. Random(2, 25) → h
  3. Mod(b1, 1000) → bf10
  4. Mod(b2, 1000) → bf20
  5. Mod(b3, 1000) → bf30
  6. Mod(b4, 1000) → bf40
  7. If(b1 > 999.99 ∧ bf10 > 99.99, bf1 + "," + bf10, If[b1 > 999.99 ∧ bf10 > 9.99, bf1 + ",0" + bf10, If[b1 > 999.99 ∧ bf10 < 10, bf1 + ",00" + bf10, "" + bf10]]) → text3
  8. If(b2 > 999.99 ∧ bf20 > 99.99, bf2 + "," + bf20, If[b2 > 999.99 ∧ bf20 > 9.99, bf2 + ",0" + bf20, If[b2 > 999.99 ∧ bf20 < 10, bf2 + ",00" + bf20, "" + bf20]]) → text4
  9. If(b3 > 999.99 ∧ bf30 > 99.99, bf3 + "," + bf30, If[b3 > 999.99 ∧ bf30 > 9.99, bf3 + ",0" + bf30, If[b3 > 999.99 ∧ bf30 < 10, bf3 + ",00" + bf30, "" + bf30]]) → text5
  10. Random(1, 4) → b
  11. If(b4 > 999.99 ∧ bf40 > 99.99, bf4 + "," + bf40, If[b4 > 999.99 ∧ bf40 > 9.99, bf4 + ",0" + bf40, If[b4 > 999.99 ∧ bf40 < 10, bf4 + ",00" + bf40, "" + bf40]]) → text6
  12. Mod(c1, 1000) → cf10
  13. Mod(c2, 1000) → cf20
  14. Mod(c3, 1000) → cf30
  15. Mod(c4, 1000) → cf40
  16. If(c1 > 999.99 ∧ cf10 > 99.99, cf1 + "," + cf10, If[c1 > 999.99 ∧ cf10 > 9.99, cf1 + ",0" + cf10, If[c1 > 999.99 ∧ cf10 < 10, cf1 + ",00" + cf10, "" + cf10]]) → text11
  17. If(c2 > 999.99 ∧ cf20 > 99.99, cf2 + "," + cf20, If[c2 > 999.99 ∧ cf20 > 9.99, cf2 + ",0" + cf20, If[c2 > 999.99 ∧ cf20 < 10, cf2 + ",00" + cf20, "" + cf20]]) → text12
  18. If(c3 > 999.99 ∧ cf30 > 99.99, cf3 + "," + cf30, If[c3 > 999.99 ∧ cf30 > 9.99, cf3 + ",0" + cf30, If[c3 > 999.99 ∧ cf30 < 10, cf3 + ",00" + cf30, "" + cf30]]) → text13
  19. If(c4 > 999.99 ∧ cf40 > 99.99, cf4 + "," + cf40, If[c4 > 999.99 ∧ cf40 > 9.99, cf4 + ",0" + cf40, If[c4 > 999.99 ∧ cf40 < 10, cf4 + ",00" + cf40, "" + cf40]]) → text14
  20. If(d ≟ 1, text3, text11) → text7
  21. If(d ≟ 1, text4, text12) → text8
  22. If(d ≟ 1, text5, text13) → text9
  23. If(d ≟ 1, text6, text14) → text10
  24. If(d ≟ 1, text6, text14) → text15
  25. If(d ≟ 1, "ลบ.ซม.", "ตร.ซม.") → nui
  26. If(c ≟ 1, "ก.", If[c ≟ 2, "ข.", If[c ≟ 3, "ค.", "ง."]]) → text34
  27. If(b ≟ 1, "ก.", If[b ≟ 2, "ข.", If[b ≟ 3, "ค.", "ง."]]) → text35