Robot Teacher

Can you give perfect instructions?


Year 7 Computer Science — Algorithms

The Problem

Teacher says: "Draw a house."

Robot draws... something. Maybe not what you imagined.


Teacher says: "Make it bigger. Add a door. Put a window somewhere."


What went wrong?


The robot followed the instructions exactly. The problem was the instructions.

The Key Idea

An algorithm is a precise, step-by-step set of instructions.

Computers follow them EXACTLY — no guessing, no common sense, no interpretation.

Every word matters. Every missing word matters too.

Your Challenge

Write instructions for your robot to draw:

A square with 5 cm sides,
with a triangle sitting on top.
The triangle's base = the top side of the square.
SWAP!

You are now a ROBOT


Writer: watch silently. No hints!

Debug Time


Then SWAP again and test the revised instructions.

Discussion

Key Takeaway

An algorithm is a precise, ordered set of instructions.

Computers follow them exactly — every single time.

No guessing. No common sense. No mercy for ambiguity.
1 / 8