Percentage Calculation Tricks

Percentage Calculation Tricks
Loading the math board and drawing, please wait…
2022-10-10 09:06
This example demonstrates how to quickly calculate percentages through several open-ended questions, involving basic concepts and methods of percentages. It uses GeoGebra commands like Textfield, Polygon, Shuffle, etc., for interactive teaching. Suitable for students in grades 5-6.

GeoGebra Commands & Parameters

  1. Textfield(aInput) → InputBox1
  2. Textfield(bInput) → InputBox2
  3. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  4. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {8, 7, 2, 9, 3, 10, 5, 5, 6, 5, 3, 0, 8, 9, 8, 6, 2, 3, 6, 7, 6, 5, 8, 3, 0, 6, 1, 9, 3, 4, 2, 0, 8, 7, 1, 3, 8, 9, 0, 3, 0, 9, 5, 6, 3, 0, 1, 1, 3, 10, 5, 5, 3, 4, 8, 2, 4, 4, 7, 10, 10, 9, 8, 6, 1, 2, 5, 7, 6, 10, 5, 5, 7, 5, 2, 7, 7, 8, 9, 7, 7, 4, 7, 9, 10, 5, 0, 0, 10, 5, 5, 7, 10, 6, 5, 9, 9, 6, 6, 0}
  5. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  6. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {0, 0, 0, 8, 10, 4, 3, 1, 4, 9, 9, 2, 6, 10, 8, 2, 0, 5, 0, 10, 1, 9, 1, 7, 7, 3, 7, 1, 4, 2, 8, 4, 10, 2, 8, 7, 6, 2, 4, 6, 10, 10, 1, 9, 9, 0, 6, 2, 8, 3, 8, 5, 2, 6, 8, 8, 8, 6, 3, 1, 8, 7, 3, 5, 4, 10, 3, 10, 1, 4, 2, 0, 3, 8, 6, 10, 4, 2, 1, 10, 9, 4, 5, 1, 4, 9, 9, 3, 7, 0, 9, 3, 5, 4, 5, 10, 6, 6, 9, 8}
  7. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  8. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  9. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  10. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  11. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  12. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  13. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  14. If(move ≟ 1 ∨ move ≟ 3, Pos1, If[move ≟ 2 ∨ move ≟ 4 ∨ move ≟ 5 ∨ move ≟ 6, Pos2]) → SelectedPos
  15. Textfield(cInput) → InputBox3

AI Drawing Prompt Reference

An interactive percentage practice interface featuring three answer input boxes, a rectangular feedback area that changes color based on correctness, two sets of randomly generated integers displayed as the problem's X and Y values, a question counter that selects which pair of numbers appears, a move indicator that determines the feedback rectangle's position, and a dynamic question number that updates the numbers each time the student submits an answer.
The prompt above was compiled from the original drawing commands and is for reference only.