1 - WARM UP (5 min)
2 - WE DO (7 min)
3 - UCSD DOES (6 min)
4 - TURN & TALK (3 min)
5- WE DO (10 min)
6 - UCSD DOES (6 min)
7 - WE DO (10 min)
8 - YOU DO (20 min)
9 - REFLECT & SHARE (5 min)
Pairs, Groups,
Whole Class
1
(5 min)
This week, we will be using if-then-else in our code. Let's think about times when if-then-else happens during our day.
What happens when you are on time for school? Otherwise, what happens if you are late?
If _________ then __________.
Else __________.
We will also need to understand a coordinate plane in order to code.
Can you think of a time you needed to figure out an exact location?
When I went to _________,
I got there by _________.
(7 min)
Let's use TRIPR to learn about if-then-else in the Soccer Shooter 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?
(6 min)
(3 min)
The programmer notices that if the soccer player makes a goal, then something happens.
There is no action when a goal is not made. What is the problem?
How could you debug the if-then-else code?
Connect with your partner after they share.
That's an interesting idea. I think ______.
What I think is similar/different to you because _________.
(6 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)
Fix the condition of the if-else statement and add code blocks to play sound and speech when a goal is and isn't scored.
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 to make two different actions occur depending on if the goal was made or not.
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 _______?