Learning goals
- the learner can explain that code is a set of instructions a computer follows
- the learner can describe why instructions must be clear and in order
- the learner can identify everyday examples of step-by-step instructions
- the learner can use the word algorithm to describe a set of steps
Key ideas
Code
Code is a list of instructions written in a special language that tells a computer exactly what to do.
Algorithm
An algorithm is a step-by-step plan for solving a problem, like a recipe for baking cookies.
Computer
A computer is a machine that follows instructions very fast but only does exactly what it is told.
Programmer
A programmer is a person who writes the instructions that tell a computer how to work.
Hands-on activity
The Robot Sandwich Game
2 slices of breadpeanut butter or jama butter knifea platepaper and pencil
- Tell your child they are going to program YOU like a robot. You will do only exactly what they say, nothing more.
- Ask them to write down step-by-step instructions for making a sandwich. Remind them to be very specific.
- Follow their instructions literally. If they write 'put peanut butter on the bread' without saying to open the jar first, pretend to try to spread with the closed jar.
- After any mix-ups, discuss together what went wrong and how to fix the instruction.
- Rewrite the corrected steps and try again until the sandwich is made successfully.
- Explain that a computer follows instructions the same way — it cannot guess what you mean.
Teaching tips
- Lean into the silly moments when you follow bad instructions literally — the laughter makes the lesson stick.
- If your child is frustrated, remind them that even professional programmers debug and rewrite instructions all the time.
- You can substitute any simple task (drawing a shape, building with blocks) if nut allergies are a concern.