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

Build and judge programs

Week 15 · Unit 6: Sub-routines in programming · 3 lessons
Answers are for parents and teachers.
1
Part A is clap, clap, stamp. Part B is stamp, stamp, clap. Write the song A, B, A, A, B as calls. How many claps are in the whole song?
2
Write the algorithm for laying the table for four people using two sub-routines, ‘lay one place’ (put a plate, put a fork, put a cup) and ‘lay the table’, which calls lay one place for each seat. How many cups are put out?
3
Trace the program. What is the x position of the sprite at the end?
stepdefinestepchange x by10stridedefinestridesteprepeat3Main scriptwhenclickedgo to x:-20y:0stridestride
4
A school wants a program to practise times tables. Write one question for each of the four criteria, and say which one you think matters most and why.
5
(if you have a computer or tablet) In Scratch, make draw spoke and draw wheel from this week and run them. Change the number of spokes and the turn so that the wheel is still complete.