Booleans refer to a value that is either true or false. Named after English-born mathematician, philosopher and logician, George Boole, Booleans are used to test whether a condition is true or false.

Objective

Students will be able to…

  • Create boolean variables to represent meaningful yes/no values
  • Print out the value of a boolean variable

Activities

These are all the activities included in the lesson.

Activity

4.1.1 Booleans

Video

4.1.2 Booleans Quiz

Quiz SHOW ME

4.1.3 First Boolean

Example

4.1.4 Do You Have a Dog?

Exercise SHOW ME

Logical operators allow us to connect or modify Boolean expressions. Three logical operators are the !, ||, && characters.
! = NOT
|| = OR
&& = AND
Logical operators can be used in combination.

With these logical operators, we can construct logical statements such as “I go to sleep when I am tired OR it’s after 9pm”, “I wear flip flops when I am outside AND it is NOT raining”

Objective

Students will be able to…
* Describe the meaning and usage of each logical operator: OR (||), AND (&&), and NOT (!)
* Construct logical statements using boolean variables and logical operators

Activities

These are all the activities included in the lesson.

Activity

4.2.1 Logical Operators

Video

4.2.2 Logical Operators Quiz

Quiz SHOW ME

4.2.3 Light Switch

Example

4.2.4 President

Example

4.2.5 Wasting Time

Example

4.2.6 Can You Graduate?

Exercise SHOW ME

4.2.7 School’s Out

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 Reply

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