Logical Gates Formative
Logical Gates Formative
AND
∨ + OR
For Each Scenario:
1. Graphical Representation:
o Represent the logic functions using AND, OR, and NOT gates.
T = ¬A ∧ (B ∨ C)
Logic Function:
The sprinkler turns on (T = 1) if it’s not raining (¬A) and either the
soil is dry (B) or the temperature is high (C).
Scenario 1 Answers:
¬A ∧ (B V
C)
A B C ¬A BVC T=
0 0 0 1 0 0
0 0 1 1 1 1
0 1 0 1 1 1
0 1 1 1 1 1
1 0 0 0 0 0
1 0 1 0 1 0
1 1 0 0 1 0
1 1 1 0 1 0
T = (A ∨ B) ∧ C
Logic Function:
∧C
A B C AVB T = (A V B)
0 0 0 0 0
0 0 1 0 0
0 1 0 1 0
0 1 1 1 1
1 0 0 1 0
1 0 1 1 1
1 1 0 1 0
1 1 1 1 1
In this scenario the cars safety system is determined by the seatbelt status (A),
the door (B), and the engine status (C). The logical gate ensures that the safety
systems alert the driver in unsafe conditions when the car is on.
T = A ∧ (B ∨ C)
Logic Function:
The light turns on (T = 1) if the room is dark (A) and either someone is
in the room (B) or movement is detected (C).
Scenario 3 Answers:
T = A ∧ (B V
C)
A B C BVC
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 1 0
1 0 0 0 0
1 0 1 1 1
1 1 0 1 1
1 1 1 1 1
In this scenario the smart light is managed by the lights condition(A), The
presence of someone in the room (B), and motion detection (C). The logical gate
ensures that the smart light only operates when needed, it saves energy by only
lighting up when someone is in the room.