Go to top of page

Robot sandwich maker

Computer scientists talk to computers using algorithms, which are step-by-step instructions. This resource explores algorithms without needing to use a computer.

 

Structure and features

How do you make a sandwich? Ask the student to give you step-by-step instructions and make sure you do exactly as they say. For example if the student says 'put the butter on the bread', put the whole tub or pack of butter unopened on the bread. This makes it clear that you need very specific instructions. Sometimes students call these the secret steps. In recipes there are often steps that are assumed.

Do the activity with these steps:

  1. Ask the student what their favourite sandwich is.
  2. Ask them to write or draw the instructions (algorithm) for the sandwich.
  3. Get the student to call out the steps to an adult who acts as a robot and only does as asked.
  4. Get the student to review their instructions and add in the 'secret' or missing steps as they go along.
  5. Reflection – ask the student to think about how they had to modify their algorithm. Ask them to identify any parts that were repeated, for example 'spread the butter'. These repeats are known as 'loops'.

Vocabulary

Use these words when talking with the student:

  • algorithm
  • loops
  • specific
  • instruction
  • step-by-step.

Food safety

Make sure you do not use a nut-based product in this activity. Use other toppings like vegemite, cheese or something students like and which they're not allergic to.

See more information: