Langkau ke kandungan

    If Island

    If–Then Umur 5–7

    Follow simple if–then rules from everyday life and help a robot decide what to do.

    • Umur 5–7
    • 3 misi
    • Permulaan → Semakin mahir → Cabaran

    Computers make choices using “if” rules: if something is true, then do this. Year 1 coders follow simple if–then rules from everyday life and see how robots use them to decide what to do.

    Apa yang akan dipelajari anak anda

    • Follow simple if–then rules
    • Know that the action only happens when the condition is true
    • Begin to use if–then–else to choose between two actions

    If this, then that

    We use if–then rules all the time: if it is raining, then take an umbrella. A computer checks the condition — is it raining? — and only runs the action if the answer is yes. “Else” says what to do when the answer is no.

    Contoh soalan

    Berikut ialah beberapa soalan seperti dalam misi pertama. Bolehkah anda menjawabnya?

    1. 1. Which word starts a rule that makes a choice?

      • Run
      • The
      • If
      • And
      Tunjuk jawapan

      Jawapan: If. “If” starts a condition.

    2. 2. If it is dark, you can…

      • put on sunglasses
      • turn off the lamp
      • open a book
      • turn on a light
      Tunjuk jawapan

      Jawapan: turn on a light. When it is dark, we switch on a light.

    3. 3. Rule: if you are cold, put on a jumper. You are warm. What do you do?

      • Put on two jumpers
      • Open the freezer
      • Nothing — you don’t need a jumper
      • Put on a jumper
      Tunjuk jawapan

      Jawapan: Nothing — you don’t need a jumper. You aren’t cold, so the rule doesn’t run.

    4. 4. Stop or go?

      • 🔴 red light
      • ✋ hand sign
      • 🟢 green light
      • 🚶 walking person sign

      Bakul: Stop · Go

      Tunjuk jawapan

      Jawapan: Stop: ✋ hand sign, 🔴 red light · Go: 🚶 walking person sign, 🟢 green light. IF the light is red THEN stop. IF it is green THEN go.

    Tip untuk orang dewasa

    • Play “Simon says” — it is an if–then game!
    • Make up if–then rules for the day: if it is sunny, we go to the park.