← Back to course
Code Crew G2 / Week 06 / Tuesday
2/6
Week 06 · This Way or That Way

Tuesday

Same lines, new number
// One check, two paths
⏱ about 15 min
Rocket the inventor holding his engineering tablet

Same lines, new number!

Rocket runs the same test flight three times.

Each time, the box starts with a new number.

The program lines do not change at all.

But the ship does something different!

Raven wants to know why.

WARM-UP: PICK THE PATH
  • Answer the check.
  • Tap what Nova does.
set height to 4
if height over 3
then say too high
otherwise say safe
?
fuel holds 3
if fuel under 2
then land
otherwise move right
?
A five line program with a speed check

One program, many flights

The lines stay the same.

The number in the box changes.

So the path can change too!

set speed to 2
if speed under 3
then flash lights
otherwise spin around
land
The speed box holds 5, so the false path runs and Nova spins around

Speed 5 takes the other path

Speed 2: Nova flashes the lights.

Speed 5: Nova spins around.

Same lines, new number, new path.

WHICH PATH THIS TIME?
  • Peek in the box.
  • Tap what Nova does.
set speed to 1
if speed under 3
then say slow
otherwise say fast
?
set speed to 4
if speed under 3
then say slow
otherwise say fast
?
set count to 2
if count is 2
then clap wings
otherwise take a bow
?

Build a flight where Nova says slow.

Put a small number in the box.

Land goes last.

MAKE NOVA SAY SLOW
  • Box first, then the check.
  • Land goes last.
1line 1
2line 2
3line 3
4line 4
5line 5
Raven the explorer with her wrist computer

What do you notice?

Nova always asks the check.

The answer depends on the box.

Change the box, change the path.

if height over 5
then say too high
otherwise say safe
land
height boxNova saystrue?
3safe?
7safe?
6too high?
5too high?

Word Spot: off, or, hard

Here are new sight words.

Look at each word. Say it. Spell it.

Off: O-F-F.

Or: O-R.

Hard: H-A-R-D.

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

New number, new path!

The check reads the box.

A new number can pick a new path.

See you tomorrow, Crew!

← Monday