In: Computer Science
Write two simple logical statements in English. Negate your second simple
statement. Then write out a compound statement using your first simple statement and the
negated statement with the following connectives. In each case evaluate the truth value of your
compound statement.
(a) Logical AND
(b) Logical OR
(c) Logical XOR
(d) Logical implication
Statement 1: I'm 24 years old
Statement 2: I'm a boy
The negation of Statement 2: I'm not a boy
a) Logical AND
I'm 24 years old AND I'm not a boy
I'm 24 years old | I'm not a boy | I'm 24 years old AND I'm not a boy |
T | F | F |
T | T | T |
F | F | F |
F | T | F |
b) Logical OR
I'm 24 years old OR I'm not a boy
I'm 24 years old | I'm not a boy | I'm 24 years old OR I'm not a boy |
T | F | T |
T | T | T |
F | F | F |
F | T | T |
c) Logical XOR
Either I'm 24 years old, or I'm not a boy, but not both
I'm 24 years old | I'm not a boy | Either I'm 24 years old, or I'm not a boy, but not both |
T | F | T |
T | T | F |
F | F | F |
F | T | T |
d) Logical implication
if I'm 24 years old, then I'm not a boy
I'm 24 years old | I'm not a boy | if I'm 24 years old, then I'm not a boy |
T | F | F |
T | T | T |
F | F | T |
F | T | T |
Please don't forget to give a positive rating to the answer. Your rating motivates experts to help other students also. Thank you :)