Thomas CS1111 Unit3
Thomas CS1111 Unit3
Question 1
Let: M = Motion sensor in the living room is triggered D = Front door is opened
Question 2
De Morgan’s Theorems:
¬(A ∧ B) ≡ ¬A ∨ ¬B
¬(A ∨ B) ≡ ¬A ∧ ¬B
Distributive Law: A ∧ (B ∨ C) ≡ (A ∧ B) ∨ (A ∧ C)
Commutative Law: A ∨ B ≡ B ∨ A
Associative Law: (A ∨ B) ∨ C ≡ A ∨ (B ∨ C)
Question 3
M D M∧D
0 0 0
0 1 0
1 0 0
1 1 1
W = Windows closed
Question 4
SA ∨
SA W ¬(SA ∨ W )
W
0 0 0 1
CS 1111-01 - AY2025-T4: Introduction to Computer Science UoPeople
SA ∨
SA W ¬(SA ∨ W )
W
0 1 1 0
1 0 1 0
1 1 1 0
Expression: M ∧ D
b. Explanation:
The output is high (1) only when both M and D are 1.
This behavior is identical in both the expression and the truth table.
Question 5
Conclusion:
The alarm will only activate if:
The security system is not armed and windows are not closed