# Variables > Sixth graders learn variables — named boxes that store values a program can remember and update, like a score or a name. They check the ideas, then use… **Computer Science** | **Grade 6** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g6-cs-variables.html* Sixth graders learn variables — named boxes that store values a program can remember and update, like a score or a name. They check the ideas, then use variables in a small 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… - Define a **variable**. - **Store** a value. - **Update** it. - Use variables in code. How does a program remember information, like your score? Project each one and have students answer about variables. ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Remember This How does a game keep track of your score as it changes? #### 👩‍🏫 Teacher Moves - Pose the question. - Share ideas. - Set the goal. #### 🎒 Student Actions - Think. - Share. - Get ready. ### Use — Variables Students learn. #### 👩‍🏫 Teacher Moves - Send students to Variables. - Note a named box. - Note store & update. #### 🎒 Student Actions - Answer. - Note it. - Note it. ### Modify — Use It Students practice. #### 👩‍🏫 Teacher Moves - Create a variable. - Give it a value. - Update the value. #### 🎒 Student Actions - Create. - Set. - Update. ### Create — Create Students apply. #### 👩‍🏫 Teacher Moves - Write a program with a score. - Change it with +. - Show the result. #### 🎒 Student Actions - Write. - Change. - Show. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - What is a variable? - What does it let a program do? - 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. Create and use variables. Use variables with control structures. Test programs that use variables. Reason about stored data. ## One lesson, every learner ### Multilingual Learners - Variable = box visual. - Frame: "a variable stores a ___." - Use real examples. ### Support & Access - Create one variable. - Use a template. - Use a visual. ### Stretch & Extend - Use several variables. - Swap two variables. - Use a variable in a loop. ### What to gather - 📽️Screen / board - 📦Variable cards - 💻Variables - 💻Code editor - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **variable**: a named box for a value - **value**: what a variable holds - **assign**: give a variable a value - **update**: change a value - **name**: what you call a variable - **number**: a numeric value - **string**: a text value - **store**: keep for later ## 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 write a program that stores and updates a score. A printable variables sheet is in the CS library. ## Check your understanding **1. What does “variable” mean?** - a named box for a value *(correct)* - what a variable holds - a numeric value - keep for later “variable” means: a named box for a value **2. Which word means: “what a variable holds”?** - assign - name - value *(correct)* - store “value” means: what a variable holds **3. What does “assign” mean?** - give a variable a value *(correct)* - what you call a variable - keep for later - a text value “assign” means: give a variable a value **4. Which word means: “change a value”?** - string - update *(correct)* - store - name “update” means: change a value **5. What does “name” mean?** - give a variable a value - change a value - what you call a variable *(correct)* - a numeric value “name” means: what you call a variable **6. Which word means: “a numeric value”?** - number *(correct)* - variable - update - name “number” means: a numeric value ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g6-cs-variables.html All lessons: https://lessonplans.k12academics.com/