Choose a country
Grade 2Computer scienceAlgorithms

Step by step: algorithms and “if”

Lesson goal: Build an algorithm for an everyday task, check the order of steps and use an “if… then…” condition.
← Algorithms

About this lesson

An algorithm is an exact order of steps for a task. A sandwich: 1) take bread, 2) spread butter, 3) add cheese, 4) cover with a second slice. Break the order and it fails. Sometimes a step depends on a condition: “If it is raining, then take an umbrella.”

Lesson goal: Build an algorithm for an everyday task, check the order of steps and use an “if… then…” condition.

What the book shows

In computer science the child first learns to think through unplugged games: recognising information, ordering steps and learning safety rules.

Textbook link:

This is not the textbook’s text but a short description of the topic. Check the exact page in your own textbook.

The lesson step by step

  1. 1

    Warm-up5 min

    Mixed-up cards.

  2. 2

    New topic10 min

    Algorithms and conditions.

  3. 3

    Practice10 min

    Order the cards.

  4. 4

    Game10 min

    “Robot teacher” game.

  5. 5

    Wrap-up5 min

    Morning algorithm.

Let’s understand

For the student Simple language

  1. 🍞 Take a slice of bread.
  2. 🧈 Spread butter.
  3. 🧀 Add cheese.
  4. 🍞 Cover with a second slice.
If you like tomatoes, then add a tomato after step 3.

Going deeper

Scientific language: for older students, parents and teachers.

A traffic light works by an algorithm too: “If red, stop; if green, go.”

Play and check

Which step comes first and which comes later?

How to write it down

  1. Write a 4-step algorithm for “making tea” or “planting a flower”.
  2. Add one “if… then…” condition.

How the classwork looks in the notebook

15 November1Classwork21 → 2 → 3 → 4 · if … then …3
Writing order: 1 Date 2 Heading 3 Line 3: 1 → 2 → 3 → 4 · if … then …
Sample: the date and heading follow this country’s notebook rules.

Open notebook

Watch out: common mistakes

Skipping a step. Write every step.
Forgetting the second half of a condition. If there is an “if”, there must be a “then”.

Where it helps in life

  • Loops: repeated steps
  • Controlling a robot

At home

Core

  1. Write a 5-step algorithm “getting ready for school”.

Extra ⭐

  1. Add 2 “if… then…” conditions.

How to do it

  1. Do the task with a grown-up.
  2. Explain in words what you noticed.
Answers for parents

For example: 1) get up, 2) wash, 3) dress, 4) eat breakfast, 5) take your bag. If it rains, then take an umbrella. If there is PE, then take your kit.

Step-by-step homework solution — Show the solution (try it yourself first)
  1. Find the mistake

    1. “Add cheese → take bread” is the wrong order: bread first, then cheese.

How the homework looks in the notebook

15 November1Homework2My algorithm3
Writing order: 1 Date 2 Heading 3 Line 3: My algorithm
Sample: the date and heading follow this country’s notebook rules.

Check yourself