Week 3 Lesson 3
Today we will learn how an if-then-else uses conditions to cause actions. We will also learn how variables track information.
65 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)
WARM UP
Pairs, Groups,
Whole Class
1
(5 min)
Today we will continue using if-then-else blocks, but we will also add variables to a project. In Week 2, we used a variable to keep score. Let's consider another way to use variables.
What type of information is important to keep track of or save?
I think it is important to _________
because _________.
How do you prefer to keep track of information in your life?
I prefer to _________ by using _________.
This helps me because _________.
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 light bulb and battery complete the circuit. However, part of the project is not working correctly. What is the problem and how do you think you can fix it?
The problem is _________.
One idea I have is to program _________.
This time, the variable does not keep track of points. What does the variable keep track of in this project?
In this project, when_________ the _________.
UCSD DOES
4
(5 min)
you do
6
(15 min)
Open the Week 3 Student Hyperdoc provided by your teacher.
Choose a starter project under the "You Do" section.
First, use GACC to fix any problems with the project.
Then, follow the additional instructions below each project.
you do
Add a switch sprite to control the flow of the circuit. Here's an image you can use.
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
8
(5 min)
Today in Scratch, we used if-then-else blocks to make the battery and light bulb complete a circuit. The variable kept track of this connection.
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 am impressed with ________ because ________.
On thing you could improve upon is ________.
Switch roles!