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 HEREGive that curiosity
Open the learning space