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

Wednesday

Inside check height
// The check reads the wrong box
⏱ about 15 min
Rocket the inventor holding his engineering tablet

Inside check height

Today the crew opens the check height job.

Clue two says the drop happens in here.

Nova shines her brightest light on the lines.

Raven reads every word, slowly and carefully.

Rocket leans in close. What will they find?

WARM-UP: THE TEST FLIGHTS
  • Read the lines.
  • Tap the answer.
set height to 3
set steps to 3
change steps by 1
do check height
?
set height to 3
set steps to 0
repeat 5 times:
move right
change steps by 1
do check height
stop
?
The check height job with four lines

Open the check height job

Line 2 is the if line.

Then with a colon runs the line under it.

Line 4 lowers height by 2.

job check height:
if steps over 4
then:
lower height by 2

Rocket wrote it to stop the ship flying too high.

Too high means height over 4.

At step 5, height holds 3 and steps holds 5

Step 3: check each box

At step 5, height holds 3.

Steps holds 5.

Is the ship too high?

CHECK EACH BOX
  • Nova stops at step 5.
  • Check every box. Tap the answer.
set height to 3
if height over 4
?
job check height:
if steps over 4
then:
lower height by 2
?
job check height:
if steps over 4
then:
lower height by 2
?
Raven the explorer with her wrist computer

What do you notice?

The job is named check height.

But the if line reads steps.

The check reads the wrong box!

Practice first! Build a check fuel job.

Its if line should read fuel.

BUILD A CHECK FUEL JOB
  • The job name goes first.
  • Then the check, then, and the action.
1line 1
2line 2
3line 3
4line 4
stepstepsheightcheck true?
step 113?
step 333?
step 443?
step 553?

Word Spot: above, girl

Here are new sight words.

Look at each word. Say it. Spell it.

Above: A-B-O-V-E.

Girl: G-I-R-L.

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?
?

The check reads the wrong box!

The job is named check height.

Its if line reads steps.

Tomorrow: find the fix!

← Tuesday