Year 3Technologies 60 minAC9TDI4P04: implement simple algorithms as visual programs involving control structures and input
We are learning to
- We are learning to turn an algorithm into a visual program that responds to input.
- We are learning to use a repeat block so a program does the same steps more than once.
Success criteria: I can…
- I can write the steps of my algorithm in order before I code.
- I can use Start on Tap so my koala does something when a user taps it.
- I can use Start on Bump so my koala reacts when the leaf touches it.
- I can use a Repeat block instead of the same block many times.
- I can test my program, find a bug and fix it.
Key competenciesDigital LiteracyCritical and Creative ThinkingNumeracy
Lesson sequence
60 min total- 1
Human program: tap and react
Starter 0–8 minTeacher- Ask a volunteer to be the koala. Give them this algorithm card: "When someone taps your shoulder: say Hello, then hop 3 times."
- Tap their shoulder. They follow the algorithm.
- Ask: What made the koala start? (the tap)
- Say: “The tap is an input. The program waits for the input, then runs its steps.”
- Ask: I wrote hop 3 times. How else could I write that? (hop, hop, hop)
- Say: “Writing 'hop 3 times' is a repeat. Programmers use repeats so they do not write the same step again and again.”
Students- Watch the human program.
- Name the input and the repeated step.
Algorithm card: When someone taps your shoulder: say Hello, then hop 3 times. - 2
Plan the algorithm
Main 8–18 minTeacher- Show the project goal: a koala sits on the right of a forest scene and a gum leaf sits on the left. When you tap the koala, it says Hello and hops 3 times. When you press the green flag, the leaf moves right until it bumps the koala. Then the koala says Yum and grows, and the leaf disappears.
- Give pairs the planning sheet (text in Resources). Together, fill in the first script as a model:
- Koala script 1: When tapped, say Hello, repeat 3 times: hop.
- Pairs write the other three scripts in words.
- Check plans before coding.
- Questions
- 1.Which script starts with the green flag? (the leaf moving right)
- 2.Which two scripts start with a bump? (koala says Yum and grows; leaf hides)
- 3.Which script uses a repeat? (the koala hopping 3 times; the leaf moving can use one too)
Students- Write the four scripts in words on the planning sheet.
- Check the plan with the teacher.
Planning sheet, one per pair (text in Resources) - 3
Build it in ScratchJr
Main 18–40 minTeacher- On the big screen, model these setup steps:
- 1.Start a new project. Choose a forest or outdoor background.
- 2.Delete the cat: press and hold it, then tap the red cross.
- 3.Add a koala: tap +, then the paintbrush, and draw a simple grey koala. (Any animal character is fine if drawing takes too long.)
- 4.Add a leaf: tap + and draw a green gum leaf. Drag it to the left of the koala, at the same height.
- Model Koala script 1: yellow Start on Tap, purple Say block (type Hello), then an orange Repeat block with the number 3 and a blue Hop block inside it.
- Say: “The Repeat block wraps around the blocks it repeats. The number on it says how many times.”
- Pairs now build the other three scripts from their plan:
- Leaf script 1: Start on Green Flag, then Move Right. Change the number so the leaf reaches the koala.
- Koala script 2: Start on Bump, Say Yum, Grow.
- Leaf script 2: Start on Bump, Hide.
- Tip: tap the number on a block to change it with the number pad.
- Tip: after each test, drag the leaf back to its start or add a Go Home block, and use the Show block to bring it back.
Students- Set up the scene with a koala and a leaf.
- Build the four scripts.
- Take turns: one partner drags blocks, the other reads the plan.
Tablets with ScratchJr, charged Planning sheets Block reference card (text in Resources) - 4
Test and debug
Main 40–50 minTeacher- Give pairs the test card (text in Resources) and ask them to run each test and tick what happened.
- Show two common bugs on the big screen and ask the class to fix them:
- Bug 1: the leaf stops before it reaches the koala. Ask: "What should we change?" (make the Move Right number bigger, or repeat the move more times)
- Bug 2: the koala hops once, not 3 times. Ask: "Where is the bug?" (the Hop block is outside the Repeat block, or the number is 1)
- Challenge for early finishers: replace the leaf's single Move Right block with a Repeat block that moves it in small steps, so it slides more slowly.
Students- Run the three tests.
- Fix any bugs they find and test again.
Test card, one per pair (text in Resources) - 5
Share and explain
Plenary 50–60 minTeacher- Choose two pairs to show their program on the big screen.
- Questions
- 1.What are the two inputs in this program? (a tap on the koala, and the leaf bumping the koala)
- 2.Which block makes a script wait for a tap? (Start on Tap)
- 3.Why did we use a Repeat block? (so we did not need three Hop blocks; it is shorter and easier to change)
- 4.Tell us about one bug you fixed. (any real example, such as a number that was too small)
- Students save their project with a clear name, for example Feed the Koala and their initials.
Students- Show or watch programs.
- Answer the questions.
- Save the project.
Key vocabulary
algorithm
a list of steps in order to do a task
program
an algorithm written in a way a computer can follow
input
something the program notices and reacts to, such as a tap
trigger block
a yellow ScratchJr block that starts a script when something happens
repeat
do the same steps a set number of times
bug
a mistake in a program that stops it working the way we planned
debug
find and fix a bug
Differentiation
Support
- Give pairs a printed picture strip of Koala script 1 to copy block by block before they build the others.
- Build only two scripts: the tap script and Koala script 2 (bump), with the leaf moved by the teacher's model.
Extension
- Add a second leaf that starts from the top of the screen and moves down to the koala.
- Add a Repeat Forever block so the koala keeps turning slowly after it grows, and explain how it is different from Repeat 3.
- Record a sound for the koala's Yum using the green sound blocks.
Accessibility
- Turn on the tablet's zoom or use a stylus for students who find small blocks hard to drag.
- Pair EAL/D learners with a partner and point to each block's picture as you say its name, since ScratchJr blocks show symbols rather than words.
- Let students describe their algorithm aloud while a partner scribes it on the planning sheet.
Assessment
- Check each pair's planning sheet: four scripts in the right order, each with the correct trigger.
- Watch the program run: tapping the koala makes it say Hello and hop 3 times using a Repeat block; the green flag sends the leaf to the koala; the bump makes the koala say Yum and grow and the leaf hide.
- Plenary answers: students who name both inputs and explain why a Repeat block is used meet the success criteria.
Resources
- Planning sheet: Feed the Koala. Koala script 1, starts when: ____. Then: ____. Leaf script 1, starts when: ____. Then: ____. Koala script 2, starts when: ____. Then: ____. Leaf script 2, starts when: ____. Then: ____. Model answers: Koala 1: tapped; say Hello, repeat 3 times hop. Leaf 1: green flag; move right until it reaches the koala. Koala 2: bump; say Yum, grow. Leaf 2: bump; hide.
- Block reference card: Yellow (triggers): Start on Green Flag, Start on Tap, Start on Bump. Blue (motion): Move Right, Hop, Go Home. Purple (looks): Say, Grow, Hide, Show. Orange (control): Repeat (wraps around blocks, with a number for how many times). Red (end): Repeat Forever.
- Test card: Test 1: Tap the koala. Does it say Hello and hop 3 times? Yes / Not yet. Test 2: Press the green flag. Does the leaf reach the koala? Yes / Not yet. Test 3: When they touch, does the koala say Yum and grow, and does the leaf hide? Yes / Not yet. Bug I fixed: ____.
- Tablets with ScratchJr installed (free app), one per pair
Safety notes
- ScratchJr projects stay on the device and are not shared online, so no student accounts are needed. Remind students not to put their full name or photo of their face in a project if your devices are shared.