Give

Loops inside loops

Put a loop inside a loop to draw rows, grids and woven patterns.

Planned. This module is part of the plan and is not written yet.

COCO-BLK-LOP-0303Level5–7

Why it matters

Planting a farm in rows means repeating 'plant a seed' along a row, then repeating whole rows. That is a loop inside a loop.

Draft outline · in review
For
Level 5–7 · Primary 5 to JSS 1
Inside
4 lessons and a test · about 45 minutes
Topic
Loops · core, 2 of 4
Plate CO-BLK-LOP-03: planned.

Inside the module.

4 lessons in order, about 45 minutes in all, then a short test. Learners go at their own pace; the minutes are a guide, not a timetable.

Draft outline · in review

  1. Lesson 1: A loop inside a loop

    See how the inner loop runs all the way through each time the outer loop runs once.

    Explain10 min, from minute 0

  2. Lesson 2: Rows of seeds

    Plant a field of seeds, row by row, with two loops.

    Worked example10 min, from minute 10

  3. Lesson 3: Grids and woven patterns

    Draw grids and basket-weave patterns with nested loops.

    Practice15 min, from minute 20

  4. Lesson 4: Count the runs

    Work out how many times the inner block runs before running the program.

    Practice10 min, from minute 35

  5. End-of-module test

    Build rows and grids with nested loops and work out how many times the inner instruction runs.

    Mastered at 85% or more. Retake it until you pass; nothing is lost, and each try gives feedback.

    Already know it? A Challenge Test (planned) clears the whole module: 90% overall, no objective below 75%.

    Last stageafter about 45 min

Practicalities

Draft outline · in review
  • Built to run offline

    Planned to run on the Lantern's own computer, with no internet needed.

  • Languages

    Planned first in English; every module aims to reach all of the Lantern's languages.

Try a question.

One question from the module, as a learner would meet it. Have a go, then open the worked solution a step at a time.

Draft outline · in review

repeat 3 times [ repeat 5 times [plant a seed], move to the next row ]. How many seeds are planted?

Your answer

Particulars

Where it sits

Coding · Block coding · Loops

What a learner can do after it

  1. Use a loop inside another loop to draw rows and grids.
  2. Work out how many times the inner instruction runs.

Unlocks

Nothing requires this module yet.

Suggested before

Level

Level 5–7 · Primary 5 to JSS 1

Show levels in

Level mappings are approximate. A qualified teacher or lecturer in each country must check them before they appear in the app.

Difficulty for its level

2 of 4 · Core

Time

About 45 minutes

Alignments

None drafted yet.

Alignment in review until a qualified teacher or lecturer checks it. No exam body, university or vendor endorses us; learners still sit the real exam.

Challenge Test

Planned: a Challenge Test to prove you know it and skip it. Pass at 90% overall, with no objective below 75%.

The route here.

Everything this module builds on, drawn as a route from its foundations. Solid lanes must be mastered first, or cleared by a Challenge Test; dashed lanes are suggestions that never lock anything.

  1. CO-BLK-SEQ-01Instructions in orderCoding · Primary 1 to Primary 4 (Level 1–4) · Planned
  2. MA-ARI-OPS-02Multiplication as equal groupsMaths · Primary 2 to Primary 3 (Level 2–3) · Sample lesson in the demo · recommendedTry the sample lesson: Multiplication as equal groups
  3. CO-BLK-LOP-01Repeat blocksCoding · Primary 3 to Primary 5 (Level 3–5) · Sample lesson in the demo Needs Instructions in order (required).Try the sample lesson: Repeat blocks
  4. CO-BLK-LOP-02Patterns with loopsCoding · Primary 4 to Primary 6 (Level 4–6) · Planned Needs Repeat blocks (required).
  5. CO-BLK-LOP-03Loops inside loopsCoding · Primary 5 to JSS 1 (Level 5–7) · Planned · the destination Needs Patterns with loops (required), Multiplication as equal groups (recommended).
5 stops across Coding and Maths. 2 have a sample lesson in the demo; the other 3 are planned and not yet written.

Help light the room where this is learned.

Every route on this map starts in a classroom with 24 stations, a tutor that works offline and a facilitator upstairs. Four are planned and waiting for light.