Skip Top Navigation Bar

Declaring and Initialing Variables

Overview

In this lesson, students will begin to develop an understanding of the different types of data that are stored by the computer.

Learning Objectives

Skills

Student Outcomes

Students will be able to:

Duration: 1 class period

Resources

Warm-up / Motivation

As students have seen throughout the first several lessons, data is critical to all programs. This lesson will teach them how to declare variables and store data.

Learn

Practice

Have students complete the practice: Practice: Declaring and Initializing Variables Practice

Wrap-up / Extensions

Have students revisit their data identifying activities from earlier and expand on that to create variables. They should consider the name and ensure that it will be descriptive of the value it will hold and consider the initial value that will be stored.

Next Lesson

Lesson Plan: Declaring String Variables and Using String Literals