Code Crew G3 / Week 01 / Tuesday
2/5
Week 01 Β· Sequencing

Tuesday

// What comes first?

Tuesday: Pancake Code

Rocket wants pancakes. The recipe steps below got mixed up. Put them in the order they should happen, first to last.

PANCAKE RECIPE
  • ?Mix flour, milk, and eggs in the bowl
  • ?Flip when bubbles appear
  • ?Eat the pancake
  • ?Pour batter into the pan
  • ?Heat the pan on the stove
  • ?Get out a bowl and a pan
WHY THIS EXERCISEReal code has dependencies. You have to do the early steps before you can do the later ones. Programmers call this 'order of operations.'
β—‡ PARTNER MOVE
Read your order out loud to a partner.
Did anything sound silly? Fix it before you flip the page.

More Sequencing

ROBOT DANCE (4 MOVES)
CREATIVE Β· NOT GRADED

Drag the moves into the order you want for your dance, then save it.

  • ?Spin around
  • ?Clap
  • ?Step left
  • ?Step right
BEDTIME ROUTINE
  • ?Climb into bed
  • ?Put on pajamas
  • ?Read a book
  • ?Turn off the light
  • ?Brush teeth
WHY THIS EXERCISEDaily routines are perfect examples of sequences. Programmers build big programs by chaining simple, predictable sequences like this one.
Try Without Paper
Tell someone the steps to make your favorite sandwich.
Did you skip a step? That's a BUG. (More on bugs in Week 6.)
← Monday