For the questions that don’t fit in a textbook. Find their starting point
Fahahu

Ages 14–16 · O Level · Challenge

Repair a doubling accumulator

Repair a doubling accumulator

Understand the idea

An accumulator is a state variable updated by a repeated rule. Translate the stated process into an update before running the program.

Your challenge

A population model begins at 3 and doubles once per complete round for four rounds. Modify the loop to print the final model population. This is an abstract model, not a prediction about a real population.

How to explore

  • Predict the result on paper.
  • Edit the update using the supported teaching-language commands.
  • Run, inspect and check the output against the model.

Open the activity to work with its controls and check your reasoning. Progress stays in this browser.

Keep exploring

DON’T LET THE QUESTION END HERE

Give that curiosity
somewhere to go.

Open the learning space

Discovery

Digital models simplify the real world. Explore with a grown-up and talk about what you notice.

Find something worth exploring

Explore free activities and printables, or learn about the separately paid Academy courses.