π οΈ Section project: the countdown and the rocket
Section 12: Operators and timeLesson 12.3 Β· β± 10 min
π― Project goal
A variable count starts at 5; Robo says it and takes one away every second until zero, then βGo!β and he flies off.



π₯οΈ What happens on the stage?
At the end count = 0 (we tested it in Robo Block).
π Another example: a rocket with fuel
The variable fuel starts at 5, and every round the rocket goes up 40 and burns one unit of fuel, until the fuel is 0.



βοΈ Practise
Make your own rocket: choose where the countdown starts and how it takes off.
βοΈ Practise here in the lessonβ Close the labor open the lab in a new page β
π― Challenge yourself
Easy
A fast countdown from 10 (0.2 seconds for each number), then βGo! πβ.
π Show the solutionπ Hide the solution


Medium
A rocket that speeds up: the variable speed starts at 1, and every round Robo goes up by speed, then speed grows by one.
π Show the solutionπ Hide the solution


Hard
With every number of the countdown from 5, Robo gets 10 smaller. What is his size at the end?
π Show the solutionπ Hide the solution



