# Writing an Algorithm > Second graders build algorithmic-thinking skills by learning that an algorithm is a clear set of steps in order, using the example of making a sandwich, and put the steps in the right sequence. **Computer Science** | **Grade 2** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g2-cs-algorithm-sandwich.html* Second graders learn that an algorithm is just a clear list of steps in the right order, using the fun example of making a sandwich, and put the steps in sequence. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Explain what an **algorithm** is. - Put steps in **order**. - See why **order matters**. - Sequence the steps. Put the bread on last instead of first and the sandwich falls apart. Why does the order of steps matter so much in an algorithm? ## Order the Steps Project this and put the sandwich algorithm in order — tap each step from the bread to serving. ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Steps in Order If you put the bread on last instead of first, your sandwich falls apart. Why does the order of steps matter so much? #### 👩‍🏫 Teacher Moves - Mime making a sandwich wrong. - Ask what went wrong. - Set the goal. #### 🎒 Student Actions - Watch. - Share. - Get ready. ### Use — Order the Steps Students put the sandwich algorithm in order. #### 👩‍🏫 Teacher Moves - Send students to Order the Steps. - Order the steps. - Name each one. #### 🎒 Student Actions - Order. - Say. - Note it. ### Modify — What If We Swap? Students test out-of-order steps. #### 👩‍🏫 Teacher Moves - Pick two steps. - Swap their order. - Say what would go wrong. #### 🎒 Student Actions - Pick. - Swap. - Say. ### Create — My Own Algorithm Students write a simple algorithm. #### 👩‍🏫 Teacher Moves - Pick an everyday task. - List the steps in order. - Number each step. #### 🎒 Student Actions - Pick. - List. - Number. ### Reflect — Clear Steps in Order Students reflect on algorithms. #### 👩‍🏫 Teacher Moves - What is an algorithm? - Why does the order of steps matter? - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say it. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and ISTE Standards for Students. Develop programs that express a sequence of steps to accomplish a task. Decompose the steps needed to solve a problem into a precise sequence. Model the way an algorithm follows a clear order of steps. Break a task into an ordered sequence of steps that a computer could follow. ## One lesson, every learner ### Multilingual Learners - Step picture cards. - Sentence frame: “First ___ , then ___ .” - Order two steps at a time. ### Support & Access - Start with first and last steps. - Act out the steps together. - Add one step at a time. ### Stretch & Extend - Write an algorithm with a loop (repeat). - Find a missing step in an algorithm. - Compare two algorithms for the same task. ### What to gather - 📽️Projector / board - 🖼️Step picture cards - 💻Order the Steps - 🥪Pretend sandwich parts - ✏️Pencils - 🎫Exit-ticket slips ### Key terms - **algorithm**: a clear set of steps, in order, to do a task - **sequence**: the order that steps happen in - **step**: one action in an algorithm - **order**: which step comes first, next, and last - **instruction**: a single direction telling you what to do - **task**: the job you are trying to finish - **precise**: exact and clear, with no guessing - **decompose**: to break a task into smaller steps ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Create: my own algorithm. Have students pick an everyday task, list its steps in order, and number each one, so they see an algorithm as something they write. A printable algorithm worksheet is in the Computer Science library. ## Check your understanding **1. What does “algorithm” mean?** - a clear set of steps, in order, to do a task *(correct)* - the order that steps happen in - one action in an algorithm - which step comes first, next, and last “algorithm” means: a clear set of steps, in order, to do a task **2. Which word means: “the order that steps happen in”?** - algorithm - sequence *(correct)* - step - order “sequence” means: the order that steps happen in **3. What does “step” mean?** - a clear set of steps, in order, to do a task - the order that steps happen in - one action in an algorithm *(correct)* - which step comes first, next, and last “step” means: one action in an algorithm **4. Which word means: “which step comes first, next, and last”?** - algorithm - sequence - step - order *(correct)* “order” means: which step comes first, next, and last **5. What does “instruction” mean?** - a single direction telling you what to do *(correct)* - a clear set of steps, in order, to do a task - the order that steps happen in - one action in an algorithm “instruction” means: a single direction telling you what to do **6. Which word means: “the job you are trying to finish”?** - algorithm - task *(correct)* - sequence - step “task” means: the job you are trying to finish ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g2-cs-algorithm-sandwich.html All lessons: https://lessonplans.k12academics.com/