Lesson 2

Variables

This lesson introduces students to variables as a way to track values in a program. Students will create, name, and modify the value of a variable to program a simulated traffic light timer. Students then explore the user-centered design cycle and apply a solution to meet a specific user’s needs.

school
Grade 6
local_library
Subject Science, Technology
schedule
Length of lesson 50 minutes

Learning objective

Students will use variables to program a solution that meets a specific user’s needs.

Standards

CSTA Standards

  • 2-AP-11: Create clearly named variables that represent different data types and perform operations on their values.
  • 2-AP-17: Systematically test and refine programs using a range of test cases
  • 2-CS-01: Recommend improvements to the design of computing devices, based on an analysis of how users interact with the devices.

NGSS Standards

  • MS-ETS1-1: Define the criteria and constraints of a design problem with sufficient precision to ensure a successful solution, taking into account relevant scientific principles and potential impacts on people and the natural environment that may limit possible solutions.