# Variables > Fourth graders meet variables — labeled boxes that hold information a program remembers. A score box holds points; a lives box holds tries left. They match… **Computer Science** | **Grade 4** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g4-cs-variables.html* Fourth graders meet variables — labeled boxes that hold information a program remembers. A score box holds points; a lives box holds tries left. They match variables to what each one holds, then use a variable in a program. **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 a **variable** is. - Match a variable to what it **holds**. - **Change** a value. - Use a variable in a program. How does a program remember information while it runs? ## Match the Variable to What It Holds Project this and match each variable to what it holds — tap the variable, then tap the value. ## 45 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — A Box That Remembers How does a game remember your score? #### 👩‍🏫 Teacher Moves - Show a score going up. - Ask how it remembers. - Set the goal. #### 🎒 Student Actions - Watch. - Guess. - Get ready. ### Use — Variables Students use the idea. #### 👩‍🏫 Teacher Moves - Send students to Match the Variable. - Match each one. - Note a variable holds a value. #### 🎒 Student Actions - Match. - Say. - Note it. ### Modify — Change the Value Students modify. #### 👩‍🏫 Teacher Moves - Set score to 0, then add 1. - Lower lives by 1. - See what changed. #### 🎒 Student Actions - Set. - Lower. - See it. ### Create — Use a Variable Students create. #### 👩‍🏫 Teacher Moves - Name a variable (coins). - Give it a starting value. - Change it in a step. #### 🎒 Student Actions - Name. - Set. - Change. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - Say what a variable is. - Name a value one could hold. - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Name one. - 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. Create programs that use variables to store and modify data. Create programs with sequences, events, loops & conditionals. Decompose a problem into smaller parts. Represent and use data. ## One lesson, every learner ### Multilingual Learners - Label real boxes. - Frame: “___ holds ___.” - Pair talk first. ### Support & Access - Start with score only. - Use a counter. - One change at a time. ### Stretch & Extend - Use two variables together. - Change a value in code. - Compare number vs text. ### What to gather - 📽️Screen / board - 📦Labeled boxes - 💻Match the Variable - 🎮Scratch or paper code - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **variable**: a labeled box that holds a value - **value**: what is inside the box - **score**: a number variable in games - **text**: letters and words - **number**: a value you can count with - **set**: put a value in a variable - **change**: update what a variable holds - **remember**: keep a value while the program runs ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: variables. Have students name a variable a game needs and what it holds. A printable variables worksheet is in the Computer Science library. ## Check your understanding **1. What does “variable” mean?** - a labeled box that holds a value *(correct)* - put a value in a variable - letters and words - a number variable in games “variable” means: a labeled box that holds a value **2. Which word means: “what is inside the box”?** - text - variable - value *(correct)* - remember “value” means: what is inside the box **3. What does “score” mean?** - a number variable in games *(correct)* - put a value in a variable - letters and words - what is inside the box “score” means: a number variable in games **4. Which word means: “letters and words”?** - remember - number - text *(correct)* - change “text” means: letters and words **5. What does “number” mean?** - what is inside the box - a value you can count with *(correct)* - a number variable in games - put a value in a variable “number” means: a value you can count with **6. Which word means: “put a value in a variable”?** - value - set *(correct)* - remember - score “set” means: put a value in a variable ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g4-cs-variables.html All lessons: https://lessonplans.k12academics.com/