Numbers on the board
Answers are for parents and teachers.
1
Write the blocks of a micro:bit program that shows how many wheels 7 cars have (4 wheels each) when button B is pressed. What does the board show?
on button B pressed: show number ((7) × (4)). The board shows 28.
2
Trace the program. What does the board show?
a = 20, b = 5, c = 20 ÷ 5 = 4, d = 4 − 1 = 3. The board shows 3.
3
Draw a flowchart for a program that asks for the price of one pencil and the number bought, and shows the total cost. What does it show for a price of 4 and 7 pencils?
Start, enter the price, enter the number, set total to price × number, show the total, stop. For 4 and 7 it shows 4 × 7 = 28.
4
Work out 4 + 5 × 2 and (4 + 5) × 2. Explain why the answers are different.
4 + 5 × 2 = 4 + 10 = 14, because multiplication is done first. (4 + 5) × 2 = 9 × 2 = 18, because the brackets are done first.
5
(if you have a computer or tablet) In a micro:bit simulator, build the price, count and cost program from this week. Then move the show block above the set cost block and see what changes.
With the right order it shows 15. With the show block first it shows 0, because cost has not been worked out yet.