1 - WARM UP (2 min)
2 - WE DO (7 min)
3 - UCSD DOES (5 min)
4 - TURN & TALK (3 min)
5 - WE DO (10 min)
6 - UCSD DOES (5 min)
7 - WE DO (10 min)
8 - YOU DO (20 min)
9 - REFLECT & SHARE (5 min)
Pairs, Groups,
Whole Class
1
(2 min)
What do you remember about the if-then-else in the Soccer Shooter project from the previous lesson?
I remember that if _________ then __________.
Otherwise __________
(7 min)
Let's use TRIPR to learn about if-then-else in the Where Should I Vacation? 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?
(5 min)
(3 min)
The programmer notices that if the temperature is set to a certain number, the airplane changes color and the destination changes.
What is the problem when the temperature is less than 45 degrees?
How could you debug the if-then-else?
Connect with your partner after they share.
That's an interesting idea. I think ______.
What I think is similar/different to you because _________.
(5 min)
(10 min)
Open the Week 3 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.
(20 min)
Add code blocks in an if-else if-else so that the destination screens for Finland and South Korea show based on the temperature slider input.
Fill in the conditions and code for an if-else if-else conditional so the correct destination screens show based on temperature slider input.
Create an if-else if-else conditional so the correct destination screens show based on temperature slider input.
Design: Add an Image Element
Code: Add onEvent code or playSound code
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 an if-then-else code block to make three different actions occur, depending on the temperature.
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 _______?