# Algorithms & Pseudocode > Eighth graders learn to design algorithms — clear, ordered steps a computer can follow — and to sketch them in pseudocode (plain-language code) before… **Computer Science** | **Grade 8** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g8-cs-algorithms.html* Eighth graders learn to design algorithms — clear, ordered steps a computer can follow — and to sketch them in pseudocode (plain-language code) before programming. They order the design steps, then write an algorithm for a real task. **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… - Define an **algorithm**. - Write **pseudocode**. - Add **decisions**. - Test & refine. How do you plan out the steps of a program before you code it? ## Order the Algorithm Steps Project this and have students put the steps for writing an algorithm in order. ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — A Recipe for Code Before coding, how do you plan what the program should do? #### 👩‍🏫 Teacher Moves - Pose the question. - Share ideas. - Set the goal. #### 🎒 Student Actions - Think. - Share. - Get ready. ### Use — Algorithms Students learn. #### 👩‍🏫 Teacher Moves - Send students to Order the Algorithm Steps. - Order the steps. - Note test with an example. #### 🎒 Student Actions - Order. - Say. - Note it. ### Modify — Write It Students practice. #### 👩‍🏫 Teacher Moves - Pick a simple task. - Write ordered steps. - Add an if/then. #### 🎒 Student Actions - Pick. - Write. - Decide. ### Create — Create Students apply. #### 👩‍🏫 Teacher Moves - Write pseudocode for a task. - Trace it with an example. - Refine any mistakes. #### 🎒 Student Actions - Write. - Trace. - Refine. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - What is an algorithm? - Why test with an example? - 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 the ISTE Standards for Students. Use flowcharts and pseudocode to design algorithms. Create variables within a program. Systematically test and refine. Break problems into ordered steps. ## One lesson, every learner ### Multilingual Learners - Step cards with icons. - Frame: "first define the ___." - Build an algorithm together. ### Support & Access - Use 3 core steps. - Use a simple task. - Provide a template. ### Stretch & Extend - Add a loop to the algorithm. - Draw a flowchart. - Convert pseudocode to code. ### What to gather - 📽️Screen / board - 🧩Algorithm cards - 💻Order the Algorithm Steps - 📋Pseudocode sheet - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **algorithm**: ordered steps to solve a problem - **pseudocode**: plain-language code - **step**: one instruction - **decision**: an if/then choice - **input**: data going in - **output**: the result - **trace**: follow the steps by hand - **refine**: improve the algorithm ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: algorithms & pseudocode. Have students write pseudocode for a real task. A printable pseudocode sheet is in the CS library. ## Check your understanding **1. What does “algorithm” mean?** - plain-language code - data going in - ordered steps to solve a problem *(correct)* - the result “algorithm” means: ordered steps to solve a problem **2. Which word means: “plain-language code”?** - output - trace - step - pseudocode *(correct)* “pseudocode” means: plain-language code **3. What does “step” mean?** - plain-language code - the result - one instruction *(correct)* - ordered steps to solve a problem “step” means: one instruction **4. Which word means: “an if/then choice”?** - algorithm - trace - decision *(correct)* - refine “decision” means: an if/then choice **5. What does “input” mean?** - data going in *(correct)* - plain-language code - improve the algorithm - an if/then choice “input” means: data going in **6. Which word means: “the result”?** - input - output *(correct)* - algorithm - refine “output” means: the result ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g8-cs-algorithms.html All lessons: https://lessonplans.k12academics.com/