Percent Question Generator with Bar Chart Visualization and Instant Feedback

Percent Question Generator with Bar Chart Visualization and Instant Feedback
Loading the math board and drawing, please wait…
2021-05-20 17:42
This interactive GeoGebra example demonstrates a percent question generator that creates random data and visualizes it through bar charts. Key mathematical concepts include percentage calculations, bar graph representation, random variable generation, and fundamental descriptive statistics such as median and variance. Construction highlights: Uses Random command for generating random numbers, Sequence for creating number lists, Element for random selection, If statements for answer verification, Textfield and InputBox for user input, and buttons to trigger feedback. Ideal for middle and high school mathematics courses focusing on statistics and probability units, suitable for student practice in percentage applications, chart interpretation, and data analysis skill development.

GeoGebra Commands & Parameters

  1. Random(1, 3) → rand
  2. Sequence(i, i, 1, 100, 1) → alist
  3. Random(1, 100) → arand
  4. Element(alist, arand) → a
  5. Sequence(i, i, 1, 100, 1) → blist
  6. Random(1, 100) → brand
  7. Element(blist, brand) → b
  8. Sequence(i, i, 1, 100, 1) → clist
  9. Random(1, 100) → crand
  10. Element(clist, crand) → c
  11. Max(b, c) → d
  12. Min(b, c) → e
  13. Textfield(g) → InputBox1
  14. If(rand ≟ 1, h, rand ≟ 2, i, j) → k
  15. If(g > k, "No. Too high.", "No. Too low.") → text8
  16. If(abs(g - k) < 1, "Very close! Did you round correctly?", "") → text10

AI Drawing Prompt Reference

Create an interactive bar-chart practice layout for a percentage question. First, generate random discrete integers and use a numbered index list to randomly select values that form the key variables for the task; derive a comparison target by taking the maximum and minimum of two selected values, then use these to judge the user’s answer. Provide an input box for the student to enter a numeric response and include buttons that trigger instant feedback text. Show “No. Too high.” or “No. Too low.” depending on whether the input is greater or less than the computed target, and add a separate message when the input is very close (encouraging the student to check rounding). Visualize the randomly generated data as a bar graph so the distribution is clear.
The prompt above was compiled from the original drawing commands and is for reference only.