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
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.