← Back to course
Code Crew G2 / Week 12 / Monday
1/6
Week 12 Β· Ship the Fix

Monday

Swap one word
// Fix the bug, test it, graduate
⏱ about 15 min
Rocket, Raven, and Nova the drone-bird together

Ship the fix week, Crew!

Last week, Raven found the auto-pilot bug.

It was hiding inside the check height job.

The check peeked in the wrong box.

It read steps when it should read height.

This week, the crew ships the fix.

Then the crew tests it, again and again.

WARM-UP: THE BUG WE FOUND
  • Remember last week.
  • Tap the answer.
job check height:
if steps over 4
then:
lower height by 2
?
set height to 3
set steps to 5
if steps over 4
?
if ____ over 4
?
A test ship flight path that drops down at the same spot

The drop at step 5

Every flight dropped at the same spot.

The steps box had just reached 5.

The check read steps, not height.

The check line with steps crossed out and height written in

Swap one word

Cross out steps.

Write height in its place.

Every other word stays the same.

job check height:
if height over 4
then:
lower height by 2
Raven the explorer with her wrist computer

What do you notice?

The job is named check height.

Now the check reads height too.

The name and the check match!

TEST THE FIXED CHECK
  • The job check height is fixed now.
  • Tap what Nova says.
set height to 3
set steps to 5
do check height
say height
?
set height to 6
set steps to 2
do check height
say height
?
set height to 4
set steps to 5
do check height
say height
?

Now you build the fixed job.

Put the four lines in order.

BUILD THE FIXED JOB
  • Read each card.
  • Build the fixed check height job.
1line 1
2line 2
3line 3
4line 4
boxes holdship lowers?
height 3, steps 5?
height 6, steps 1?
height 4, steps 6?
height 5, steps 2?

Word Spot: would, write

Here are new sight words.

Look at each word. Say it. Spell it.

Would: W-O-U-L-D.

Write: W-R-I-T-E.

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

One word, one fix!

The bug read the wrong box.

You swapped steps for height.

Tomorrow: the first test flight!