Traffic lights, a cake recipe, a bus-stop announcement: each one follows a fixed order of steps. What happens if one step is missing or in the wrong place?
Today you write precise step-by-step instructions for a real classroom job. Then you change one step so the job goes wrong, swap with another group, and hunt for the mistake they hid in their steps. Finding that mistake and repairing it is the main work of the lesson. After that we try the same thinking on a robot route on the board.
Watch how I write steps for watering the classroom plant. Which details would you keep, and which would you leave out?
Those ordered steps are an algorithm. When a step is wrong or missing, that mistake is a bug. Finding the mistake, fixing it, and testing again is debugging.
Here is the classroom job we are all thinking about for the next two minutes: put three story books back on the class library shelf in alphabetical order by the author's surname.
With your group, call out steps you would keep in the instructions and details you would leave out. Be ready to say why. Which step, if it were missing, would make the job fail? Which detail sounds important but does not change where the books end up?
Quick class vote first: which change is most likely to make a job fail — a missing step, steps in the wrong order, or a wrong direction? (An extra step that does nothing is usually clutter, not a bug.)
Your group has one task card. Work through these jobs in order:
On your Investigation Journal page, record four short notes about the work you have just done. Keep each note to one or two lines. Here is what a finished set looks like, using the library job as the example:
Now write your own four notes: your group's steps, the bug you found in the other group's cards, the fix that worked, and one detail you decided to leave out because it would not change the result.
You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.