Fewer steps, less time
Answers are for parents and teachers.
1
Write two algorithms for putting 12 books from a table onto a shelf: one carries one book at a time, and one carries 4 books at a time. How many trips does each need?
One at a time: 12 trips. Four at a time: 3 trips (12 ÷ 4). The second algorithm is more efficient.
2
A floor robot takes 2 seconds for each forward and 3 seconds for each turn. A route has 6 forwards and 3 turns. How long does it take?
6 × 2 + 3 × 3 = 12 + 9 = 21 seconds.
3
Draw a micro:bit and write a program that picks a random number from 1 to 5 once, stores it in a variable and shows a happy face only when the number equals 5. On how many of the numbers is the face shown?
The face is shown on 1 of the 5 numbers. A good program sets the variable once and then has one if block.
4
Traffic lights follow algorithms. Write two sentences about why an efficient traffic light algorithm helps people.
An efficient algorithm lets cars and people move safely with short waiting times, so less time and fuel are wasted.
5
(if you have a computer or tablet) Build the mood board in a micro:bit simulator. Press the logo ten times and put a tick each time it shows exactly one picture.
The correct program should always show one picture per press. A wrong version with three picks sometimes shows none or two.