← Back to course
Code Crew G2 / Week 09 / Monday
1/6
Week 09 · Read Ten Lines

Monday

Read it in chunks
// Read a long program in chunks
⏱ about 15 min
Rocket, Raven, and Nova the drone-bird together

Ten lines? No problem!

The crew wants to read the whole auto-pilot.

But the auto-pilot is a long program.

Rocket says it looks really big.

Raven says, we can read it in chunks.

A chunk is a small group of lines.

This week, you read programs with ten lines!

WARM-UP: JOBS USE BOXES
  • Read each program.
  • Tap the answer.
the climb job
the program
?
the grow job
the program
?
the climb job
the program
?
A nine line program with two boxes, a loop, and a check

A nine line program

Nine lines can look big.

But you know every kind of line!

Boxes, loops, and checks.

set height to 2
set speed to 1
repeat 3 times:
change speed by 1
stop
fly up height
if speed over 3
then land
otherwise say safe
The program split into chunks: boxes, loop, fly, check

Find the chunks

Chunk one fills the boxes.

Chunk two is the loop.

Then Nova flies, and then the check.

Read one chunk at a time.

READ CHUNK BY CHUNK
  • Read each chunk card.
  • Tap the answer.
the loop chunk
?
lines 1 to 6
?
speed holds 4
the check chunk
?

Now build a loop chunk.

Speed starts at 1.

Nova must say 3.

BUILD A LOOP CHUNK
  • Start speed at 1.
  • Loop, stop, then Nova says 3.
1line 1
2line 2
3line 3
4line 4
5line 5
At the end: height holds 2 and speed holds 4

Check the whole program

set height to 2
set speed to 1
repeat 3 times:
change speed by 1
stop
fly up height
if speed over 3
then land
otherwise say safe
about the programtrue?
speed ends at 4?
Nova flies up 4?
Nova lands?
Nova says safe?

Word Spot: these, those

Here are new sight words.

Look at each word. Say it. Spell it.

These: T-H-E-S-E.

Those: T-H-O-S-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?
?

You read nine lines!

A chunk is a small group of lines.

Read one chunk at a time.

Track the boxes as you go.

Great work, Crew!