Fraction of Chocolate Box

Fraction of Chocolate Box
Loading the math board and drawing, please wait…
2014-04-19 14:17
In collections Fraction Skills
This example demonstrates the fraction of chocolates left and eaten in a box. Key mathematical concepts include fractions and geometric construction. Using GeoGebra commands such as Random, Point, Vector, etc., the geometric shape of the chocolate box can be constructed, and the number of remaining and eaten chocolates can be calculated. Suitable for high-grade elementary or junior high school students to learn fractions and geometric construction.

GeoGebra Commands & Parameters

  1. Random(4, 8) → Stupci
  2. Random(4, 6) → Retci
  3. Random(0, Retci - 1) → PuniRetci
  4. Random(0, Stupci) → Jos
  5. Point(Ray[A, A + (1, 0)]) → B
  6. Point(Ray[C, C + (1, 0)]) → D
  7. Vector(C, D) → u
  8. Point(Ray[C, C + (0, 1)]) → E
  9. Vector(C, E) → v
  10. If(PuniRetci > 0, Sequence[Sequence[Translate[Bombon1, Vector[(i * u) + (j * v)]], j, 0, PuniRetci - 1], i, 0, Stupci - 1], Translate[Bombon1, Vector[(300 * u)]]) → Bomboni
  11. If(Jos > 0, Sequence[Translate[Bombon1, Vector[(i * u) + (PuniRetci * v)]], i, 0, Jos - 1], Translate[Bombon1, Vector[(300 * u)]]) → JosBombona
  12. Polygon(A, B, 4) → Prazni1, a_1, b, c, d, F, G
  13. If(PuniRetci + 1 < Retci, Sequence[Sequence[Polygon[Translate[A, Vector[(i * u) + (j * v)]], Translate[B, Vector[(i * u) + (j * v)]], Translate[F, Vector[(i * u) + (j * v)]], Translate[G, Vector[(i * u) + (j * v)]]], j, PuniRetci + 1, Retci - 1], i, 0, Stupci - 1], Polygon[Translate[A, Vector[(300 * u)]], Translate[B, Vector[(300 * u)]], Translate[F, Vector[(300 * u)]], Translate[G, Vector[(300 * u)]]]) → Prazni
  14. If(Jos < Stupci, Sequence[Polygon[Translate[A, Vector[(i * u) + (PuniRetci * v)]], Translate[B, Vector[(i * u) + (PuniRetci * v)]], Translate[F, Vector[(i * u) + (PuniRetci * v)]], Translate[G, Vector[(i * u) + (PuniRetci * v)]]], i, Jos, Stupci - 1], Polygon[Translate[A, Vector[(300 * u)]], Translate[B, Vector[(300 * u)]], Translate[F, Vector[(300 * u)]], Translate[G, Vector[(300 * u)]]]) → JosPraznih
  15. Distance(A, B) → distanceAB
  16. Translate(UnutrRub3, Vector[UnutrRub2, UnutrRub1]) → UnutrRub4
  17. Translate(VanjRub3, Vector[VanjRub2, VanjRub1]) → VanjRub4
  18. Polygon(UnutrRub1, UnutrRub2, UnutrRub3, UnutrRub4) → UnutrasKutije, unutrrub1, unutrrub2, unutrrub3, unutrrub4
  19. Polygon(VanjRub1, VanjRub2, UnutrRub2, UnutrRub1) → RubKutijeDonji, vanjrub1_1, vanjrub2_1, unutrrub2_2, unutrrub1_2
  20. Dilate(UnutrRub1, 1, A) → UnutrRub1'
  21. Dilate(UnutrRub2, 1, A) → UnutrRub2'
  22. Dilate(UnutrRub3, 1, A) → UnutrRub3'
  23. Dilate(UnutrRub4, 1, A) → UnutrRub4'
  24. Polygon(UnutrRub1', UnutrRub2', UnutrRub3', UnutrRub4') → UnutrasKutije', unutrrub1', unutrrub2', unutrrub3', unutrrub4'
  25. Polygon(VanjRub1, UnutrRub1, UnutrRub4, VanjRub4) → RubKutijeLijevi, vanjrub1, unutrrub1_1, unutrrub4_1, vanjrub4
  26. Polygon(VanjRub2, VanjRub3, UnutrRub3, UnutrRub2) → RubKutijeDesni, vanjrub2, vanjrub3, unutrrub3_1, unutrrub2_1
  27. Polygon(VanjRub3, VanjRub4, UnutrRub4, UnutrRub3) → RubKutijeGornji, vanjrub3_1, vanjrub4_1, unutrrub4_2, unutrrub3_2
  28. Segment(H, I) → h
  29. Segment(J, K) → i
  30. GCD(BrojBomb, Ukupno) → ZajDjelitelj
  31. Segment(L, M) → m
  32. Segment(N, O) → n

AI Drawing Prompt Reference

Draw a top view of a chocolate box with a rectangular outer frame and an inner grid divided into rows and columns. Some cells contain chocolates (shown as circles or squares), while others are empty. The number of chocolates is random but the grid is uniform. The box has thickness, indicated by inner and outer rectangles. Below or beside the figure, display the fraction of remaining chocolates out of total cells, and the fraction eaten. The layout is clear and suitable for teaching fractions.
The prompt above was compiled from the original drawing commands and is for reference only.