Chapter 3: Part 2
Functions
Icebreaker: What is your absolute dream job?
Agenda:
Key Vocabulary:
Function: A list of steps in a program that are all wrapped up together, like a math problem. When you give information, or "input" to the function, the function processes the information and gives you back an answer, or an "output".
Parameters: A kind of variable that gets passed through a function. It is the "input" that you send to the function.
Read and Reflect:
You may answer these questions in the comment section below:
1. Define the term function in your own words.
2. What are some ways that functions are similar to algorithms? What are some ways that they are different?
3. What is the difference between defining and calling a function?
0 comments:
Post a Comment