← Back to course
Code Crew G2 / Week 06 / Monday
1/6
Week 06 Β· This Way or That Way

Monday

One check, two paths
// One check, two paths
⏱ about 15 min
Rocket, Raven, and Nova the drone-bird together

One check, two paths!

Last week the crew learned about checks.

A check asks a question about a box.

The answer is true or false.

Rocket reads the auto-pilot program again.

He finds a check with two paths.

One path is for true. One path is for false.

Raven wants to know which path the ship takes.

WARM-UP: TRUE OR FALSE?
  • Look in the box.
  • Tap true or false.
height holds 5
if height over 3
?
speed holds 2
if speed is 4
?
fuel holds 1
if fuel under 2
?
A check with a true path on the left and a false path on the right

One check, two paths

True takes the then path.

False takes the otherwise path.

Otherwise means: if not, do this.

set height to 5
if height over 3
then say too high
otherwise say safe
land
Raven the explorer with her wrist computer

What do you notice?

Only one path runs.

Never both. Never none.

The check picks the path.

WHICH PATH RUNS?
  • Read every line.
  • Tap what Nova does.
set height to 5
if height over 3
then say too high
otherwise say safe
?
set height to 2
if height over 3
then say too high
otherwise say safe
?
set fuel to 1
if fuel under 2
then land
otherwise move right
?

Now build a fuel check.

Low fuel? The ship lands.

Plenty of fuel? It moves right.

BUILD THE FUEL CHECK
  • Fill the box first.
  • Then the check and its two paths.
1line 1
2line 2
3line 3
4line 4
Nova the drone-bird hovering with glowing eyes

Nova takes one path

Nova peeks and answers the check.

Nova runs one path and skips one.

Then Nova keeps going.

TRICKY ONES!
  • Read every word.
  • Tap the answer.
height holds 6
if height over 3
then say too high
otherwise say safe
?
set height to 3
if height over 3
then say too high
otherwise say safe
?

Word Spot: made, many

Here are new sight words.

Look at each word. Say it. Spell it.

Made: M-A-D-E.

Many: M-A-N-Y.

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

Two paths, one choice!

True runs the then line.

False runs the otherwise line.

Only one path runs.

Great work, Crew!