Thinking like a computer with precise algorithms, drawing flowcharts, and using selection to programme a micro:bit score counter.
Lesson 8 — Think Like a Computer: Algorithms
What you'll achieve: expose the gaps in a hand-written algorithm using the sandwich challenge, then plan a precise 12-step algorithm of your own.
BrowserBooklet
Algorithm
A precise set of step-by-step instructions for solving a problem.
Precision
Being exact and leaving nothing open to guessing.
Debug
Finding and fixing a mistake in a set of instructions or code.
I Do
Watch your teacher write a vague "how to make a sandwich" algorithm on the board, then follow it literally and exactly — doing something silly when a step is unclear.
We Do
As a class, spot every gap in the teacher's sandwich algorithm and rewrite one unclear step so it's precise.
You Do
Write your own step-by-step sandwich algorithm — be as precise as you can.
Swap algorithms with a partner.
Your partner follows your instructions exactly and literally.
Note down every gap or mistake that gets exposed.
Debug your algorithm by rewriting the unclear steps.
Use the 12-step planning grid to plan a new everyday algorithm of your choice.
What you'll achieve: trace a ready-made flowchart and design your own using the correct shapes.
Diagrams.netBrowser
Flowchart
A diagram that shows the steps of an algorithm using connected shapes.
Oval
The shape used to show the start or end of a flowchart.
Decision
A diamond-shaped step that asks a yes/no question and branches the path.
I Do
Watch your teacher go through the flowchart shapes reference: an oval for start/end, a parallelogram for input/output, a rectangle for a process, and a diamond for a decision.
We Do
As a class, trace through the "what to eat for lunch" flowchart on the algorithms resource page, following each shape and answering the decision questions together.
You Do
Choose your own everyday decision, e.g. what to wear or which route to school.
Sketch it out on paper first using the correct flowchart shapes.
Open diagrams.net and build your flowchart digitally.
Include at least one diamond decision shape with two branches.
Check your flowchart with a partner — can they follow it?