← Back to course
Code Crew G2 / Week 11 / Tuesday
2/6
Week 11 Β· Find the Auto-pilot Bug

Tuesday

Run part of the flight
// The check reads the wrong box
⏱ about 15 min
Rocket the inventor holding his engineering tablet

Run part of the flight

Today the crew runs two test flights.

The ship flies over a wide, empty field.

Nova keeps the logbook the whole time.

Raven wants to run just part of the flight.

What if the ship flies only 4 steps?

Rocket says, let us see what happens!

WARM-UP: READ THE FLIGHT
  • Read the lines.
  • Tap the answer.
set steps to 0
repeat 3 times:
change steps by 1
stop
?
repeat 5 times:
move right
change steps by 1
do check height
stop
?
The test ship flies level at height 3, then drops to height 1 at spot 5

The same drop, every time

At spots 1 to 4, height stays 3.

At spot 5, the ship drops to 1.

Then it lands softly on the grass.

Test 1: the flight program with repeat 4 times

Test 1: stop after 4 steps

Rocket changed repeat 5 to repeat 4.

Now the flight stops after 4 steps.

Keep a logbook for steps and height.

set height to 3
set steps to 0
repeat 4 times:
move right
change steps by 1
do check height
stop
land
LOG TEST 1
  • Track steps and height.
  • Tap the answer.
set height to 3
set steps to 0
repeat 4 times:
move right
change steps by 1
do check height
stop
?
set height to 3
set steps to 0
repeat 4 times:
move right
change steps by 1
do check height
stop
?
set height to 3
set steps to 0
repeat 4 times:
move right
change steps by 1
do check height
stop
?
Test 2: steps starts at 3, then two steps run

Test 2: start at step 3

Test 2 skips ahead to the end.

Steps starts at 3, then two steps run.

Build test 2 yourself.

Set both boxes first. Then two steps.

BUILD TEST 2
  • Set both boxes first.
  • Then count and check, two times.
1line 1
2line 2
3line 3
4line 4
5line 5
6line 6
7line 7
Raven the explorer with her wrist computer

What do you notice?

No drop while steps is 4 or less.

The drop comes when steps is 5.

afterstepsheighttrue?
line 343?
line 441?
line 553?
line 653?

Word Spot: work, really, almost

Here are new sight words.

Look at each word. Say it. Spell it.

Work: W-O-R-K.

Really: R-E-A-L-L-Y.

Almost: A-L-M-O-S-T.

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 tests, one clue!

Test 1 ran 4 steps. No drop.

Test 2 started at step 3. Drop!

The drop needs steps to be 5.

See you tomorrow, Crew!

← Monday