Lesson 5

Peanut Butter & Jelly Algorithms

In this unplugged lesson, students will construct algorithms to first create a peanut butter and jelly sandwich, and then to make their own sandwich.


  1. Video: Peanut Butter & Jelly (1:58)
  2. Class Activity: Peanut Butter & Jelly Algorithms
  3. Brain Break: No Crust by Koo Koo Kanga Roo (2:34)
  4. Individual Activity: Sandwich Algorithms
  5. Reflection & Close-Out:
    • What did you have to do to plan your sandwich algorithm?
    • Did you have to change anything about your algorithm once you started creating your sandwich?



algorithm: steps to complete a task

decomposition: breaking down a problem into smaller pieces

Additional Resources

  • Favorite Food Algorithms (English / Spanish) activity sheet to use, if opting to use a food other than a sandwich (see Lesson Notes for more information).


CA CSS: K-2.AP.10 Model daily processes by creating and following algorithms to complete tasks.

CA CSS: K-2.AP.13 Decompose the steps needed to solve a problem into a sequence of instructions.

CA CSS: K-2.AP.16 Debug errors in an algorithm or program that includes sequences and simple loops.