## Lesson: 4.1 Booleans

### Section:

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

## Lesson: 4.2 Logical Operators

### Section:

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