# Arrays & Lists > Tenth graders learn about arrays and lists — ordered collections that store many values in a single variable — and how indexes let programs access, change… **Computer Science** | **Grade 10** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g10-cs-arrays.html* Tenth graders learn about arrays and lists — ordered collections that store many values in a single variable — and how indexes let programs access, change, and loop through data efficiently. **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 **array**. - Use an **index**. - Access and change **elements**. - Loop through a list. What if a program needs to store 100 test scores? Making 100 variables would be a nightmare. Arrays solve this. How do arrays store and organize many values at once? ## Arrays Check Project each item and have students answer about arrays. The tool explains collections, indexes, and elements. ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — 100 Scores Storing 100 scores in 100 variables is a nightmare — what’s the fix? #### 👩‍🏫 Teacher Moves - Pose the problem. - Introduce arrays. - Set the goal. #### 🎒 Student Actions - Consider. - Meet arrays. - Predict. ### Unplugged — Unplug It Students practice. #### 👩‍🏫 Teacher Moves - Number a row of boxes. - Store values by index. - Access one by index. #### 🎒 Student Actions - Number them. - Store values. - Access it. ### Use — Arrays in Code Students use. #### 👩‍🏫 Teacher Moves - Send students to Arrays Check. - Note indexes. - Access elements. #### 🎒 Student Actions - Answer. - Note index. - Access. ### Modify — Modify It Students modify. #### 👩‍🏫 Teacher Moves - Change an element. - Add or remove an item. - Loop through a list. #### 🎒 Student Actions - Change it. - Add/remove. - Loop it. ### Create — Create Students conclude. #### 👩‍🏫 Teacher Moves - Create and fill a list. - Access an element. - Complete the exit ticket. #### 🎒 Student Actions - Create it. - Access 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. Use lists to simplify solutions. Translate between data representations. Create programs that use collections. Computational Thinker. ## One lesson, every learner ### Multilingual Learners - Array + index diagrams. - Sentence frame: “arr[__] is ___.” - Use numbered boxes. ### Support & Access - Start with a 3-item list. - Use physical boxes. - Access index 0. ### Stretch & Extend - Loop through and total a list. - Use 2-D arrays. - Sort a list. ### What to gather - 📽️Projector / board - 📦Numbered boxes - 💻Arrays Check - 💻Coding tool - ✏️Pens - 🎫Exit-ticket slips ### Key terms - **array**: an ordered collection of values - **list**: another name for an array - **index**: the position number of an element - **element**: one item in an array - **zero-indexed**: counting positions from 0 - **length**: how many elements an array has - **collection**: a group of values - **iterate**: to loop through elements ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Create: build a list. Have students create a list of five items and write how they would access the first and last elements. A printable arrays sheet is in the Computer Science library. ## Check your understanding **1. What does “array” mean?** - counting positions from 0 - an ordered collection of values *(correct)* - a group of values - one item in an array “array” means: an ordered collection of values **2. Which word means: “another name for an array”?** - list *(correct)* - array - collection - index “list” means: another name for an array **3. What does “index” mean?** - the position number of an element *(correct)* - to loop through elements - counting positions from 0 - an ordered collection of values “index” means: the position number of an element **4. Which word means: “one item in an array”?** - length - iterate - index - element *(correct)* “element” means: one item in an array **5. What does “zero-indexed” mean?** - to loop through elements - the position number of an element - counting positions from 0 *(correct)* - a group of values “zero-indexed” means: counting positions from 0 **6. Which word means: “how many elements an array has”?** - collection - iterate - length *(correct)* - index “length” means: how many elements an array has ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g10-cs-arrays.html All lessons: https://lessonplans.k12academics.com/