Lesson 5
Definitely...yes?
In this lesson, students discuss the tradeoffs of storing users’ personal data in a program. They will add a question to their program asking users whether they would like their data stored. Using a conditional statement, they will add the user’s response to a list if the user says yes. Through a debugging activity, students will understand the importance of multiple variables in a program. By the end of the lesson, students will have a program that adds a user’s question to a program only if they want it to be stored.
Learning objective
Students will use a conditional to evaluate user input.
Standards
🌐 CSTA Standards
- 1B-AP-09: Create programs that use variables to store and modify data.
- 1B-AP-10: Create programs that include sequences, events, loops, and conditionals
- 1B-AP-15: Test and debug (identify and fix errors) programs.
- 1B-NI-05: Discuss real-world cybersecurity problems and how personal information can be protected
Multi-lesson projects
Students will use the same project across multiple lessons.
Lesson contents
Want to teach this lesson?
Log in and get access to the full curriculum for free.
Scratch projects
What are the odds?
Student resource
Log in to access
Multi-lesson project
Students will use the same project across multiple lessons