Writing Word Problems for One-Step Inequalities

Writing Word Problems for One-Step Inequalities
Loading the math board and drawing, please wait…
2023-03-21 09:00
This example demonstrates how to write real-world word problems about a day at an amusement park using one-variable, one-step inequalities. It covers the math concepts of one-step inequalities and their application in practical scenarios. The construction utilizes GeoGebra commands such as Shuffle, Element, RemoveUndefined, Zip, Append, If, Polygon, Corner, centerBox, Text, Sequence, IndexOf, SelectedIndex, onboardingTextOffset, along with objects like randomNames, randomXVals, possibleOrdersA, randomCase, randomYVals, space2, space1, countQuestion, name, movingIndex, P3, P2, P1, movingPoints, PMove, valY, validX, valX, valDiff, homeIndices, textStrCurrent, boxText, currentLocations, questionA3, questionC3, questionD3, caseNum, expectedAns, order, studentAns, questionA1, questionA2, questionB2, questionB1, questionB3, questionC1, questionC2, questionD1, questionD2, currentQuestions. Suitable for students in grades 6-8 to learn how to apply mathematical concepts to real-world problems.

GeoGebra Commands & Parameters

  1. Shuffle({"Anara", "Leandro", "Viktoria", "Mari", "Elias", "Domenic"}) → randomNames, {"Leandro", "Anara", "Domenic", "Elias", "Mari", "Viktoria"}
  2. Shuffle(Sequence[42, 55]) → randomXVals, {54, 42, 46, 49, 47, 51, 44, 50, 45, 48, 52, 55, 43, 53}
  3. Shuffle({{1, 2, 3}, {1, 3, 2}, {2, 1, 3}, {2, 3, 1}, {3, 1, 2}, {3, 2, 1}}) → possibleOrdersA, {{1, 3, 2}, {3, 1, 2}, {2, 1, 3}, {3, 2, 1}, {1, 2, 3}, {2, 3, 1}}
  4. Shuffle(Sequence[1, 4]) → randomCase, {3, 2, 1, 4}
  5. Shuffle({46, 48, 50, 52, 54, 56}) → randomYVals, {56, 50, 54, 48, 52, 46}
  6. Element(movingPoints, movingIndex) → PMove
  7. Element(randomYVals, Mod[countQuestion, Length[randomYVals]] + 1) → valY
  8. RemoveUndefined(Zip[If[A < valY, A], A, randomXVals]) → validX
  9. Element(validX, Mod[countQuestion, Length[validX]] + 1) → valX
  10. Element(possibleOrdersA, Mod[countQuestion, Length[possibleOrdersA]] + 1) → homeIndices
  11. Zip(Element[{("" * valX), ("" * valY), ("" * valDiff)}, A], A, homeIndices) → textStrCurrent
  12. Zip(Text[("" * A), B, true, true, 0, 0], A, textStrCurrent, B, movingPoints) → boxText
  13. Element(randomCase, Mod[countQuestion, Length[randomCase]] + 1) → caseNum
  14. Element({{1, 2}, {2, 1}, {1, 2}, {2, 1}}, caseNum) → expectedAns
  15. Element(possibleOrdersA, Mod[countQuestion, Length[possibleOrdersA]] + 1) → order
  16. Zip(homeIndices(IndexOf[A, currentLocations]), A, {1, 2}) → studentAns
  17. Element({{questionA1, questionA2, questionA3}, {questionB1, questionB2, questionB3}, {questionC1, questionC2, questionC3}, {questionD1, questionD2, questionD3}}, caseNum) → currentQuestions
  18. Append("$\text\phantom{this is an empty line}$", Zip[(("$\text{" * currentQuestions(A)) * " }$"), A, order]) → selectQuestion
  19. If(SelectedIndex[selectQuestion] ≠ 1, order(SelectedIndex[selectQuestion] - 1), NaN) → selectedQuestion
  20. Element(positions, caseNum) → boxAnchors
  21. If(caseNum < 5, "", "^2") → power
  22. Append(studentAns, selectedQuestion) → inputCurrent
  23. Polygon(Zip[PixelsToPoint[Corner[1], Corner[3], Corner[5], A], A, {(pixelsLeft, pixelsTop), (pixelsLeft, y(Corner[5]) - pixelsBottom), Corner[5] - (pixelsRight, pixelsBottom), (x(Corner[5]) - pixelsRight, pixelsTop)}]) → borderBox
  24. Corner(5) → layoutAppSize
  25. centerBox(innerSize, innerSize, P1) → box1
  26. centerBox(innerSize, innerSize, P2) → box2
  27. centerBox(innerSize, innerSize, P3) → box3
  28. centerBox(innerSize, innerSize, PMove) → highlightBox
  29. Zip(HOME, A, movingPoints) → allHome
  30. Text(("" * boxText(movingIndex)), If[Defined[PMove], PMove, (300, 300)], false, true, 0, 0) → textHighlight
  31. Sequence((("SetFixed(box" * A) * ",false,enableInput)"), A, 1, Length[movingPoints]) → cmdFixBoxes
  32. Sequence((((((((("SetValue(P" * A) * ",If(currentLocations(") * A) * ")==HOME,homeLocations(") * A) * "),boxAnchors(currentLocations(") * A) * "))))"), A, 1, Length[movingPoints]) → cmdOrganize
  33. centerBox(boxWidth, boxHeight, boxAnchors(1)) → frame1
  34. centerBox(boxWidth, boxHeight, boxAnchors(2)) → frame2
  35. Sequence(HomeAnchor + (((A * 1.5) * boxWidth), 0), A, 0, Length[movingPoints] - 1) → homeLocations
  36. IndexOf(true, Zip[IsInRegion[PMove, A], A, {frame1, frame2}]) → locationPMove
  37. Element({{questionA1, questionA2, questionA3}, {questionB1, questionB2, questionB3}, {questionC1, questionC2, questionC3}, {questionD1, questionD2, questionD3}}, caseNum) → line3Options
  38. SelectedIndex(selectQuestion) → test
  39. centerBox(boxWidth, boxWidth, boxAnchors(locationPMove)) → highlightFrame
  40. onboardingTextOffset(Corner[onboardingText, 1], Corner[onboardingText, 3], onboardingCase, Corner[1], Corner[3], Corner[5]) → OnboardingTextOffset
  41. Zip(expandQuad[Vertex[A, 1], Vertex[A, 2], Vertex[A, 3], Vertex[A, 4], (pulsing * 7), Corner[1], Corner[3], Corner[5]], A, {box1, box2, box3}) → pulsingObjects

AI Drawing Prompt Reference

Create an exercise-style diagram for practicing one-step inequalities: generate varying random names, coordinate-like numbers, and an option order so the displayed text changes. Draw two equal-sized rectangular panels centered on the page, add an outer border/frame around them, and place a highlighted border plus a smaller inner highlight box on the currently active panel. Inside the highlight area, show the corresponding option/answer text as a label, and at the top display the current question/option string with an intentional blank line before it. Also include a separate input text area below that combines the student answer prefix with the selected option string. Arrange everything so the highlighted panel and the displayed text remain linked by the chosen current case.
The prompt above was compiled from the original drawing commands and is for reference only.