๐ LOCKED
๐ The Christmas Code Day unlocks , 14 days before Christmas.
Teachers: add ?preview=1 to the address to open it early.
๐ CHRISTMAS CODE DAY
Gift-Wrapping Loop
An elf must wrap 10 presents. Each present needs the same 4 steps. Write a program with a LOOP so the elf does not have to write the steps 10 times.
- Write the 4 wrapping steps once: cut paper, fold, tape, add bow.
- Wrap them in a repeat: repeat 10 [ ...steps... ].
- Act it out with a partner counting the loops.
- What changes if there are 25 presents? How many words did you change?
Level up: Grades 3-8: Some presents are fragile. Add IF fragile THEN add bubble wrap inside the loop.
Present Packet Delivery
Networking & routing
Route the present through the network of houses by the shortest path.
> run packet-delivery.exe
Elf Loops
Loops
Program the elf to wrap presents with a repeat block instead of many single steps.
> run elf-loops.exe
Secret Santa Cipher
Encryption
Decode a holiday message with a Caesar shift wheel.
> run santa-cipher.exe
$ cat fact.txt