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

Variables in Scratch

Week 9 · Unit 4: Variables in programming · 3 lessons
Answers are for parents and teachers.
1
Use the tickets program (price 4). What does the sprite say if the user types 2, 5 and 10?
2
Write the blocks, in order, for a program that asks ‘What is your favourite number?’, stores the reply in a variable called favourite and then says the number times 2.
3
The tickets program (price 4) should say ‘Total: 12’ when the user types 3, but it says ‘Total: 7’. What is the bug and how do you fix it?
4
Draw a flowchart for a program that uses three variables: name, fish and cost. It asks for a name, asks how many fish, and then sets cost to fish × 3 and says the name and the cost.
5
(if you have a computer or tablet) Build the tickets program in Scratch with the monitors on. Click the flag, then the sprite, and watch the three monitors.