1 - WARM UP (5 min)
2 - WE DO (5 min)
3 - UCSD DOES (7 min)
4 - TURN & TALK (3 min)
5 - WE DO (10 min)
6 - UCSD DOES (6 min)
7 - WE DO (10 min)
8 - YOU DO (17 min)
9 - REFLECT & SHARE (5 min)
Pairs, Groups,
Whole Class
1
(5 min)
In this lesson, we will be using functions, where a set of instructions or tasks are grouped together. Let's think about how we do this during our school day.
What happens when the teacher asks the class to clean up?
When the teacher asks ________,
it includes ________, ________, and ________.
When you eat a healthy lunch, what does it include?
When ________, it includes ________ and ________.
(5 min)
Let's use TRIPR to learn about functions in the Pack Some Snacks app.
Click on the app, and click "View Code."
Locate the Title and read it.
Locate the Remix button and click it.
Locate the Instructions and read them.
Locate the Purpose and read it.
Locate the Run button and try the app!
What do you notice?
(7 min)
(3 min)
The programmer notices the green function blocks in the app's code.
What does the function block do and why would you use it when you are programming?
How does the function block work with the "Pack Some Snacks" app?
Follow up with your partner.
Tell me more about ______.
Why do you think ______?
(6 min)
(10 min)
Open the Week 5 Student Hyperdoc provided by your teacher.
Click on one of the images to open the App Lab project.
Click on "View Code."
Sign in and click on "Remix" to create your own project copy.
Read the Instructions section at the top of the code to see what you need to fix.
(17 min)
Code: Change the amount of snacks needed for specific numbers of people.
Code: Change the score screen to display the total numbers of snacks gathered.
Last, make sure you have shared your project with your teacher using this week's hyperdoc.
Your project will automatically save in App Lab.
Pairs, Groups,
Whole Class
(5 min)
Today in App Lab, we used functions to keep several sets of instructions grouped together.
Share your project and talk about your process in completing the task.
Today I _______. Let me show you...
What did you notice or wonder while working in App Lab today?
I noticed ________.
I wonder _______.
Why _______?