Comparison operators let us compare two values. Using comparison operators in programming is similar to math in that less than <, greater than >, less than or equal to <=, and greater than or equal to >= are the same. The differences are that operators for equal to are == and not equal are !=. Using comparison operators allows our program to make decisions.


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


These are all the activities included in the lesson.


4.3.1 Comparison Operators


4.3.2 Comparison Operators Quiz


4.3.3 Voting Age


4.3.4 Grade Range


4.3.5 Rolling Dice

Exercise SHOW ME

4.3.6 All Star

Exercise SHOW ME

Open the Google Doc for this class. In your own words at the TOP of the Doc, explain what you learned today and how it can help you write programs.

SANDBOX–create a new programs that uses at least one WHILE LOOP and IF ELSE statement.  Include at least 2 of your own functions. Show me.

Leave a comment

Your email address will not be published. Required fields are marked *