Tutorpip← About this lessonOpen the sheet →Download PDF
Ages 5+ · Coding · Step by step
Make a sandwich program
🧼wash hands🍞bread🫐jam🥪top slice😋cut and eat
Tiny steps, in order.
The big ideaA program is tiny, clear steps in the right order.

How it works

Bo cannot guess a step that is missing. He does exactly what he hears.

When Tess said, put the jam on the bread, Bo put on the whole jar!

A clear step says exactly what to do, in a tiny piece. Clear steps in the right order make a program.

Wash yourhandsLay out twoslices ofbreadSpread jamon oneslicePut theother sliceon topCut it inhalf andeat
Making a jam sandwich.

Example 1: Too big

  1. Tess says, make lunch.
  2. Bo does not know where to begin.
  3. Make lunch is too big a step. Bo needs tiny steps.

Example 2: Not clear

  1. Tess says, do the jam bit.
  2. Bo cannot guess what that means.
  3. Say exactly what Bo should do: spread jam on one slice.

Example 3: Tiny and clear

  1. Wash your hands.
  2. Lay out two slices of bread. Spread jam on one slice.
  3. Put the other slice on top. Cut it in half and eat.

Example 4: A coat program

  1. Tell a grown-up robot how to put on a coat.
  2. Hold the coat, put one arm in, put the other arm in, pull it up.
  3. The robot does only what you say, so be exact.

Words to know

clear
Says exactly what to do.
tiny step
One small thing to do.
program
Tiny, clear steps in order.
robot
A machine that does just what it is told.

Watch out

Try it

  1. What is the first step in the sandwich program?
  2. Which is a tiny, clear step: make lunch or spread jam on one slice?
  3. Tess said put the jam on the bread, and Bo put on the whole jar. Was Bo being silly?
  4. Can Bo guess a missing step?
Answers: 1. wash your hands · 2. spread jam on one slice · 3. no · 4. no
Try at homeBe the programmer! Tell a grown-up robot how to put on a coat, step by step. The robot does only what you say, so be exact: hold the coat, put one arm in, put the other arm in, pull it up. Laugh if it goes silly, then swap.
For grown-upsBe the programmer: tell a grown-up robot how to put on a coat, one tiny step at a time, and laugh when the robot does exactly what you say. Then swap.
Open these notes on screenScan the code, or go to tutorpip.com.