← Back to course
Code Crew G2 / Week 11 / Monday
1/6
Week 11 Β· Find the Auto-pilot Bug

Monday

Open the auto-pilot
// The check reads the wrong box
⏱ about 15 min
Rocket, Raven, and Nova the drone-bird together

Open the auto-pilot!

At last, the crew opens the auto-pilot program.

Raven reads her clue list out loud.

Clue one. The drop comes when steps reaches 5.

Clue two. The drop happens inside check height.

Test flights stay over safe, open ground.

So the crew can test as much as they like.

Rocket grabs his tablet. Let us hunt!

WARM-UP: THE BUG-HUNT METHOD
  • Read each round.
  • Tap the answer.
a bug is hiding
?
set speed to 1
change speed by 1
change speed by 1
lower speed by 1
?
set fuel to 2
change fuel by 2
say fuel
lower fuel by 3
?
Two clue notes on a board: steps reaches 5, and inside check height

Two clues so far

Clue one. The drop comes when steps reaches 5.

Clue two. It happens inside check height.

Now we read the real program.

The auto-pilot flight program does the check height job on every step

The auto-pilot has two parts

The flight program repeats 5 steps.

Every step does the check height job.

set height to 3
set steps to 0
repeat 5 times:
move right
change steps by 1
do check height
stop
land

Three lines sit between repeat and stop.

They run 5 times, once for each step.

READ THE AUTO-PILOT
  • Read the flight program.
  • Tap the answer.
repeat 5 times:
move right
change steps by 1
do check height
stop
?
repeat 5 times:
move right
change steps by 1
do check height
stop
?
set height to 3
set steps to 0
repeat 5 times:
move right
change steps by 1
do check height
stop
?

Rebuild the steps of the flight.

Move, count the step, then check height.

REBUILD THE FLIGHT STEPS
  • Read each card.
  • Move, count, check, then stop.
1line 1
2line 2
3line 3
4line 4
5line 5
Raven the explorer with her wrist computer

What do you notice?

Steps reaches 5 on the fifth step.

Right after that, the ship does check height.

about the auto-pilottrue?
height starts at 3?
steps starts at 5?
check height runs 5 times?
land runs 5 times?

Word Spot: why, wish

Here are new sight words.

Look at each word. Say it. Spell it.

Why: W-H-Y.

Wish: W-I-S-H.

FIND THE WORD
  • Listen to the word.
  • Tap it.
Listen and find
?
Listen and find
?
Listen and find
?
Listen and find
?
FILL THE GAP
  • Listen to the sentence.
  • Tap the missing word.
Which word fits?
?
Which word fits?
?

You opened the auto-pilot!

The flight repeats 5 steps.

Every step does check height.

Steps reaches 5 on the last step.

Great work, Crew!