Mr Chesterman
Manchester Met University
Test Lesson
for new computing subject
Logic
Using logic to
make decisions
from conditions
Lesson aim
explore true / false logic to
make decisions
End goal
show understaning by using
logic in computer
programming techniques
Example:
Weather conditions
if _____________
then _____________
if _____________
then _____________
Can you think of an example?
if raining
then takeUmbrella
if raining
then takeUmbrella
if raining
then takeUmbrella
if raining
then takeUmbrella
if raining
then takeUmbrella
if raining
then
else
Boolean values are
TRUE or FALSE
raining
TRUE or FALSE?
Boolean Logic is named
after George Boole born in
1815.
TRUE or FALSE?
George Boole looked like
this.
TRUE or FALSE?
Boole has a crater on the
Moon named after him
Boolean
Logic
Is
Black and
White
Computers
What does Boole have to do
with computers?
Computer circuits
Computer Programming
Pac Man
if _______
then ______
if
OReatPellet eatsFruit
then scorePoints
if
ANDeatsPowerPellet
then killsGhost
touchingGhost
if NOT touchingGhost
then continueGame
else loseLife
We can use
AND & OR & NOT
with TRUE or FALSE
conditions
to make complex decisions
Class activity:
What's it like outside?
Ingredients:
Green – conditions
Blue – actions
Orange – decision control
Goal:
Create instructions for a
computer to choose what to
take outside based on the
weather
Recap
Use Bolean
logic to
make decisions
in programs
Boolean values
are TRUE or FALSE
You can combine
them with AND & OR
Use NOT to reverse
them

Boolean logic presentation