Lesson library · Week 1 · 60 minutes

Program the robot teacher: precise instructions

Students write step-by-step instructions for a 'robot' teacher and discover why computers need precise algorithms.

Years 3-4Algorithms and codingAC9TDI4P02ISTE 1.5 Computational ThinkerBook: Algorithms

Learning intention

We are learning that an algorithm is a precise, ordered set of steps, and that computers follow steps exactly as written.

Success criteria

  • I can write instructions in a clear order.
  • I can find and fix a step that is missing or unclear (debugging).

You will need

  • Bread (or paper "bread" cut-outs), a spreadable (or a glue stick), a plate and a blunt knife
  • Paper and pencils for each pair

Hook (5 minutes)

Tell the class you have been replaced by a robot. The robot can only do exactly what it is told. Ask: "How would you get me to make a sandwich?"

Unplugged activity (20 minutes)

  1. In pairs, students write instructions for making a sandwich.
  2. Choose a pair to read their steps aloud. Follow them exactly. If they say "put the spread on the bread", put the jar on the loaf.
  3. After each failure, ask the class what the robot needed instead. Write their fixes on the board.
  4. Pairs rewrite their algorithm, then swap with another pair to test it.

Device activity (20 minutes)

In ScratchJr or Scratch, students program a sprite to walk to a "kitchen" and collect three items in order. Challenge: what happens if two blocks are swapped?

No devices? One student plays the robot and walks through a desk maze, following another group's written instructions.

Wrap-up and assessment check (10 minutes)

Exit ticket: "Write one instruction from today that a robot could misunderstand, and rewrite it so it can't."

Differentiation

  • Support: give picture cards of the steps to put in order before writing.
  • Extension: add a decision: "If there is no butter, then ..." This introduces branching.

Teacher's note

Ham it up. The laughter is the lesson: students remember that computers do what we say, not what we mean. Keep a wet cloth handy.