Skip to content

    Step-by-Step Stairs

    Year 4 Asas Pengaturcaraan

    What programming is, what an algorithm is, and putting the steps of everyday tasks in the right order.

    • Ages 8–10
    • 3 quests
    • Beginner → Getting stronger → Challenge

    A computer does nothing on its own — it follows instructions. A program (atur cara) is a set of instructions for a computer, and the person who writes it is a programmer (pengatur cara). Before writing a program we plan an algorithm: a list of clear steps, in order, that solves a problem.

    What your child will learn

    • Explain what programming and a program are
    • Explain what an algorithm is
    • Write an algorithm for an everyday task
    • Explain why the order of steps (sequence) matters

    Sequence: the order matters

    Brushing your teeth is an algorithm: take the brush, put on toothpaste, brush, rinse, put the brush away. Swap two steps and it stops making sense — that is why sequence (jujukan) is the first control structure we learn.

    Good algorithms are clear, have a beginning and an end, and do not skip steps. A computer cannot guess what we mean, so every step must be stated.

    Example questions

    Here are a few questions like the ones in the first quest. Can you solve them?

    1. 1. Selepas menuang air panas ke dalam cawan, langkah seterusnya membancuh teh ialah…

      🍵
      • menghidangkan cawan kosong
      • mencuci cawan
      • memasak air
      • memasukkan uncang teh
      Show answer

      Answer: memasukkan uncang teh. Uncang teh direndam dalam air panas.

    2. 2. Atur cara ialah…

      • set arahan untuk komputer
      • sejenis makanan
      • alat tulis
      • nama sukan
      Show answer

      Answer: set arahan untuk komputer. Komputer bekerja mengikut atur cara.

    3. 3. Komputer melakukan sesuatu tugas apabila…

      💻
      • diletakkan di bawah matahari
      • dicat
      • dimarahi
      • diberi arahan
      Show answer

      Answer: diberi arahan. Komputer tidak boleh berfikir sendiri.

    4. 4. Susun algoritma menanam benih.

      • Tutup dengan tanah
      • Siram air
      • Masukkan benih
      • Gali lubang
      Show answer

      Answer: Gali lubang → Masukkan benih → Tutup dengan tanah → Siram air. Setiap langkah dibuat satu demi satu.

    Tips for grown-ups

    • Ask your child to give you exact steps to make a drink — then follow them literally.
    • Play “robot” where one person gives step-by-step instructions to reach a target.