Unit 1 Lesson 5 Compound Assignment Operators Lesson Plan
Unit 1 Lesson 5 Compound Assignment Operators Lesson Plan
Overview
This lesson introduces the concept of compound assignment operators and
corresponds to College Board AP CSA topic 1.4. Compound assignment
operators are shortcuts that do a math operation and assignment in one step.
Students will have the opportunity to manipulate compound assignment
operators and evaluate changes to an affected variable.
Note: If you wish to provide a URL/link for students to access this lesson, you
will need to replace “yourCustomCourseName” in the customized link below
with the name of your custom course that you created. For instructions on how to
set up a custom course, please see https://www.csawesome.org/runestone-e-book.
CON-1 the way variables and operators are sequenced and combined in a expression
determines the computed result.
1
Lesson Plan
Lesson 1.5: Compound Assignment
Operators
2
Lesson Plan
Lesson 1.5: Compound Assignment
Operators
Learning Activities
Tip: This lesson is meant to be done in pairs if possible. Teachers may assign pairs,
students may choose partners, however, students should not be forced to work with a
partner.
● Hook/Motivation (5 mins):
3
Lesson Plan
Lesson 1.5: Compound Assignment
Operators
○ Lesson 1.5 Practice Sheet Have students complete the practice sheet
then compare answers with their elbow partners. Teachers may elect to
provide an answer key for checking. This could be assigned as homework
if there is no time to complete it in class.
○ Rethink, Reflect, and/or Revise (5 mins):
■ Wrap up Discussion: Compare results from the Operator Maze
activity. Solicit student questions and answer as needed.
4
Lesson Plan
Lesson 1.5: Compound Assignment
Operators
Differentiation: Enrichment
Background Knowledge
5
Lesson Plan
Lesson 1.5: Compound Assignment
Operators
Teaching Tips
● CSP → CS A Tips
○ Students will mostly have learned an incremental assignment operator in a
looping structure such as counter = counter +1, or counter++. This lesson
expands on this concept.
● General Teaching Tips
○ The key to this lesson is to keep it simple. We are focusing on the basic
concept of changing the value and restoring that value back into the
variable.
○ When students do the practice and hands-on activity, they should be
allowed to use a calculator if they wish. The objective is to understand
how the computer evaluates the mathematical changes and maintains a
running value of a variable. Students should not be evaluated on their own
math skills.
After reviewing this lesson plan in the professional development, complete the form
found here to provide feedback on the lesson, materials provided, etc.
Attributions