Agenda

  1. Warm-up: Spot the Bug — one of these loops never ends
  2. Sorting exercise: eight problems, two piles — counted repetition and repetition that waits for something. Defend the pile you are least sure of.
  3. Tool: Using the Debugger — step one iteration at a time and watch the counter change
  4. Practise: Loops Practice

Things to do before our next class

  • Finish Loops Practice as far as the running total questions.
  • Journal: how you knew, before running it, that your loop would stop.