The auto-pilot has jobs, loops, and checks.
Today the crew reads a program like that.
A job runs again and again inside a loop.
Nova also has something to show the crew.
It is one of the auto-pilot jobs.
Raven cannot wait to see it.
The climb job adds 1 to height.
Then it flies up height.
set height to 1 set count to 3 repeat count times: do climb stop if height over 3 then land otherwise say safe say height
The loop runs 3 rounds.
Climb runs once each round.
Height goes 2, then 3, then 4.
Build a flight with a job in a loop.
The wave job flashes the lights.
Wave two times, then land.
This is the check height job.
The drop happens inside it.
Nova keeps it folded for now.
We will open it in the bug hunt!
| about the program | true? |
|---|---|
| climb runs 3 times | ? |
| height ends at 3 | ? |
| the last climb flies up 4 | ? |
| Nova says safe | ? |
Here are new sight words.
Look at each word. Say it. Spell it.
Hear: H-E-A-R.
Without: W-I-T-H-O-U-T.
Second: S-E-C-O-N-D.
A do line inside a loop runs every round.
Long programs are just a few chunks.
Tomorrow: your own long flights!