Test ships use fuel as they fly.
Rocket writes a program with a fuel box.
A loop takes fuel away, bit by bit.
Then a check looks at the fuel box.
Raven asks, which line will run?
You need to know the fuel first.
The loop changes two boxes.
Then the check reads the fuel box.
Work out the fuel before the check!
set fuel to 5 set height to 2 repeat 2 times: lower fuel by 1 change height by 1 stop if fuel under 4 then land otherwise say safe say height
After the loop, fuel holds 3.
Is 3 under 4? Yes!
So the then line runs.
Build a program that says safe.
Fuel starts at 6 and goes down 1.
Then the check runs.
Here are new sight words.
Look at each word. Say it. Spell it.
Carry: C-A-R-R-Y.
State: S-T-A-T-E.
Book: B-O-O-K.
Work out the box first.
Then read the check.
Only one line runs: then or otherwise.
Great work, Crew!