Please enable JavaScript to use CodeHS

Introduction to Computer Science (Collie)

Lesson 5.3 Comparison Operators

Description

In this lesson, students learn how to use comparison operators. Comparison operators let students compare two values.


Objective

Students will be able to…

  • Explain the meaning of each of the comparison operators (<, <=, >, >=, ==, !=)
  • Create programs using the comparison operators to compare values
  • Predict the boolean result of comparing two values
  • Print out the boolean result of comparing values

Activities

These are all the activities included in the lesson

5.3.1 Comparison Operators
5.3.2 Comparison Operators Quiz
5.3.3 Voting Age
5.3.4 Grade Range
5.3.5 Rolling Dice
5.3.6 Girl Scout Designation