# Functions & Parameters > Tenth graders make functions flexible with parameters and return values. You pass an argument in, the parameter receives it, the body runs, and return sends… **Computer Science** | **Grade 10** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g10-cs-functions-parameters.html* Tenth graders make functions flexible with parameters and return values. You pass an argument in, the parameter receives it, the body runs, and return sends a value back to the caller. They order the flow of a function call, then write functions that take inputs and return results. **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… - Use **parameters** and **arguments**. - Return a **value**. - Trace a **function call**. - Write a reusable function. How do parameters and return values make a function reusable? ## Order the Function Call Project this and have students put the steps of a function call in order. ## 55 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — One Function, Many Inputs How could ONE function compute the area of ANY circle? #### 👩‍🏫 Teacher Moves - Show area(5) and area(10). - Ask how one function handles both. - Set the goal. #### 🎒 Student Actions - Look. - Guess. - Get ready. ### Use — Functions & Parameters Students use the idea. #### 👩‍🏫 Teacher Moves - Send students to Order the Function Call. - Order the steps. - Note argument → parameter → return. #### 🎒 Student Actions - Order. - Say. - Note it. ### Modify — Change the Inputs Students modify. #### 👩‍🏫 Teacher Moves - Call the function with a new argument. - Add a second parameter. - Use the returned value in math. #### 🎒 Student Actions - Call. - Add. - Use. ### Create — Write a Function Students create. #### 👩‍🏫 Teacher Moves - Write a function with 1–2 parameters. - Return a computed result. - Call it with 3 different inputs. #### 🎒 Student Actions - Write. - Return. - Call. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - Say what a parameter is. - Say what return does. - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say. - 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 procedures with parameters to reduce complexity. Decompose problems into smaller components. Combine control structures to express ideas in code. Build reusable solutions. ## One lesson, every learner ### Multilingual Learners - Act out a value going in and out. - Label argument vs parameter. - Trace a call aloud. ### Support & Access - Use one parameter. - Return a simple value. - Use a call template. ### Stretch & Extend - Add default parameter values. - Return multiple values. - Pass a list as an argument. ### What to gather - 📽️Screen / board - 🧱Call-step cards - 💻Order the Function Call - 🐍Python / editor - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **function**: a named, reusable block of code - **parameter**: a variable in the function definition - **argument**: the value you pass in when calling - **return**: sends a value back to the caller - **caller**: the code that calls the function - **body**: the code inside the function - **reusable**: usable with many different inputs - **scope**: where a variable can be used ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: functions & parameters. Have students write a function with one parameter that returns a result. A printable functions worksheet is in the Computer Science library. ## Check your understanding **1. What does “function” mean?** - the value you pass in when calling - sends a value back to the caller - the code that calls the function - a named, reusable block of code *(correct)* “function” means: a named, reusable block of code **2. Which word means: “a variable in the function definition”?** - function - argument - body - parameter *(correct)* “parameter” means: a variable in the function definition **3. What does “argument” mean?** - sends a value back to the caller - the value you pass in when calling *(correct)* - usable with many different inputs - a variable in the function definition “argument” means: the value you pass in when calling **4. Which word means: “sends a value back to the caller”?** - body - return *(correct)* - function - caller “return” means: sends a value back to the caller **5. What does “caller” mean?** - the code that calls the function *(correct)* - a named, reusable block of code - the value you pass in when calling - where a variable can be used “caller” means: the code that calls the function **6. Which word means: “the code inside the function”?** - return - function - body *(correct)* - parameter “body” means: the code inside the function ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g10-cs-functions-parameters.html All lessons: https://lessonplans.k12academics.com/