← Back to course
Code Crew G2 / Week 07 / Monday
1/6
Week 07 Β· Name a Job

Monday

Give lines a name
// A job is lines with a name
⏱ about 15 min
Rocket, Raven, and Nova the drone-bird together

Give lines a name!

Raven reads the auto-pilot program again.

She finds lines that start with the word do.

Rocket asks what do means.

Nova beeps. Do runs a job!

A job is a group of lines with a name.

Raven wants to learn how jobs work.

WARM-UP: TWO PATHS
  • Answer the check.
  • Tap what Nova does.
set height to 6
if height over 5
then say too high
otherwise say safe
?
set fuel to 3
if fuel under 2
then land
otherwise move right
?
set count to 5
if count is 3
then say yes
otherwise say no
?
A job card named takeoff holding three lines

Meet a job

job takeoff: gives the job a name.

The lines under it belong to the job.

Coders call a job a function.

job takeoff:
flash lights
beep 2 times
move up
Raven the explorer with her wrist computer

What do you notice?

Naming a job does not run it.

Its lines wait on the job card.

A do line runs them.

The takeoff job card beside a program, with an arrow from do takeoff

Nova runs the job

At do takeoff, Nova jumps to the job.

Flash, beep beep, move up!

Then Nova comes back and keeps going.

wiggle wings
do takeoff
move right
land
WHAT DOES NOVA DO?
  • Read the job card and the program.
  • Tap the answer.
the wave job
the program
?
the wave job
the program
?
the show job
the program
?

Now build a job card named show.

Spin around, wiggle wings, take a bow.

The name line goes on top.

BUILD THE SHOW JOB
  • Put the name line on top.
  • Then spin, wiggle, and bow.
1name line
2job line 1
3job line 2
4job line 3
TRICKY ONES!
  • Read both cards.
  • Count carefully.
the show job
the program
?
the hop job
the program
?

Word Spot: pull, read

Here are new sight words.

Look at each word. Say it. Spell it.

Pull: P-U-L-L.

Read: R-E-A-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?
?

You named a job!

A job is lines with a name.

Naming it does not run it.

A do line runs the job.

Great work, Crew!