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

Choices and loops on the board

Week 19 · Unit 8: Be an innovator · 3 lessons
Answers are for parents and teachers.
1
Write the blocks for this rule: if the temperature is more than 25, show the t-shirt icon, else show the sad icon. What does the program show for 25 and for 26?
2
Trace the program. What does the board show?
setato1changeaby4setatoa×2repeat3timesshow numberaon buttonApressed
3
Trace the loop. How many rounds does it run and what does the board show?
setnto80setnton÷2whilen>10show numbernon buttonApressed
4
Make a test table for the rule ‘free swimming for children under 8’. Include five tests, say which are boundary tests and give the expected results.
5
(if you have a computer or tablet) In a micro:bit simulator, build the temperature program from this week with three outcomes. Test it with a table of at least six values, including the edges.