Code Crew G2 / Week 01 / Tuesday
2/6
Week 01 Β· Memory and the Missing Bug

Tuesday

The box remembers
// A memory box holds one number
⏱ about 15 min
Rocket the inventor holding his engineering tablet

The box remembers!

Rocket and Raven watch a test ship fly.

The auto-pilot reads a number from a box.

The number tells the ship how high to fly.

Raven has a big question.

Does the box forget its number?

Rocket says, let us test it and see.

WARM-UP: FILL AND PEEK
  • Read the lines.
  • Tap the answer.
set height to 6
?
set height to 1
say height
?
The program: set height to 3, fly up height, land

Use the box later

Line one puts 3 in the box.

Line two says fly up height.

Nova peeks in the box and finds 3.

So Nova flies up 3 spaces!

Raven the explorer with her wrist computer

What do you notice?

The number is written only once.

The box keeps it for later.

set height to 3
flash lights
spin around
fly up height

Lines two and three do not touch the box.

The box still holds 3.

Line four uses it. Up 3 spaces!

HOW HIGH DOES NOVA FLY?
  • Read the whole program.
  • Tap how high Nova flies.
set height to 2
fly up height
?
set height to 4
beep a song
fly up height
?
set height to 5
spin around
flash lights
fly up height
?

Now build a flight.

Nova must fly up 4 spaces.

Then flash the lights and land.

BUILD A FLIGHT UP 4
  • Read each card.
  • Fly up 4, flash, then land.
1line 1
2line 2
3line 3
4line 4
Two memory boxes: height holds 2 and speed holds 5

Two boxes, two names

TRICKY ONES!
  • Read every line carefully.
  • Tap what Nova does.
set height to 2
set speed to 5
fly up height
?
fly up height
set height to 3
?

The box remembered!

Fill the box once.

Use it lines later.

The box does not forget.

See you tomorrow, Crew!

← Monday