AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Micro:bit inputs and jobs

Week 20 · Unit 8: Be an innovator · 3 lessons
Answers are for parents and teachers.
1
Write the blocks for a game where each shake of the board earns 2 points and shows the score, and button B sets the score back to 0. What does the board show after 3 shakes?
2
The buttons are pressed in the order A, A, B, A, B, B. List the numbers that the board shows.
Achangecoinsby3show numbercoinson buttonApressedBchangecoinsby-2show numbercoinson buttonBpressed
3
Write a plan table (job, input, process, output) for a program that counts people who enter a room. A adds one person, B shows the number and A+B starts again.
4
Predict what the board shows for n = 17. Then say what it would show for n = 20 and for n = 9.
setnto17show iconyesshow numbern−10show iconnoifn≥10thenelseifn≥20thenelseon buttonApressed
5
(if you have a computer or tablet) Build the laps counter from this week in a micro:bit simulator. Press A five times, then B. Does it show 2000? Then press A+B.