Skip to main content
AP CSP course

Topic 3.13 · Interactive concept example

Refactor copies and test meaningful parameters

  • One shared definition
  • Modularity
  • Ignored parameters and compatible calls

Change it · step through · explain

Change an input, predict what will happen, then advance one step. Read why the state changes, reset and experiment. This fixed teaching model does not save progress or award XP.

Ready · Make a prediction

Ready to explore: Refactor copies and test meaningful parameters
  1. First caller threshold (0–10)3Waiting
  2. Second caller threshold (0–10)5Waiting
  3. ImplementationsharedWaiting

Ready to explore: Refactor copies and test meaningful parameters

Why: Change an input, predict the first effect, then advance one step.

Try this: Change one input or choose another listed case. Predict the effect, reset and compare the states and governing rule.