Week 2 Lesson 2
Today we will learn how an if-then uses conditions to cause actions.
55 minutes
1 - Warm Up (5 min)
2 - We Do (5 min)
3 - Turn & Talk (5 min)
4 - UCSD Does (5 min)
5 - We Do (15 min)
6 - You Do (15 min)
7 - Reflect & Share (5 min)
WE DO
2
(5 min)
As a class, let's use TIPP and SEE to learn how the project works.
Click on the Scratch project.
Locate the Title and read it.
Locate the Instructions and read them.
Locate the Purpose and read it.
Play the project.
Locate See Inside and click on it.
Identify all Sprites and Events.
Explore the code, but don't make changes quite yet!
Turn & TALK
3
(5 min)
In the Scratch project, the self-driving car is supposed to drive along all the roads. Part of the project is not working correctly. What is the problem and how do you think you can fix it?
The problem is _________.
I think we need to program _________.
The car has three colored sensors on it. The red sensor makes the car move forward if it touches the road. What do you think the other sensors will do?
If the blue/green sensor _________ then _________.
UCSD DOES
4
(5 min)
you do
6
(15 min)
Open the Week 2 Student Hyperdoc provided by your teacher.
Open the project under the "You Do" section in your hyperdoc.
Play the project.
Choose the correct conditions so that the car moves left or right.
Change the numbers so that the car can drive on any path.
Do the advanced backdrops.
do more
Draw your own paths and have your classmates figure out how to drive on it.
Make sure you have shared your project with your teacher using your hyperdoc.
File -> Save to your computer to save your program for later.
(How To)
Reflect & Share
7
(5 min)
Today in Scratch, we used if-thens to make the self-driving car do something when the condition was met.
Partner A: Share your project and talk about your process.
Today I _______. Let me show you...
Partner B: Respond to your partner with feedback.
I can tell you worked hard on ________ because ________.
I think ________ could be even better if you ________.
Switch roles!