Section 1 - With Answers
Section 1 - With Answers
4. Define (using truth tables) the disjunction, conjunction, exclusive or, conditional, and
biconditional of the propositions p and q.
1
Department of IS/ Discrete Mathematics 2022-2023
5. Let p be the proposition “I will do every exercise in this book” and q be the proposition “I will
get an “A” in this course.” Express each of these as a combination of p and q.
a) I will get an “A” in this course only if I do every exercise in this book.
q → p.
b) I will get an “A” in this course and I will do every exercise in this book.
q ∧ p.
c) Either I will not get an “A” in this course or I will not do every exercise in this book.
¬q ∨ ¬p.
d) For me to get an “A” in this course it is necessary and sufficient that I do every exercise in
this book.
q ↔ p.
6. Translate the given statement into propositional logic using the propositions provided.
a) You can graduate only if you have completed the requirements of your major and you do
not owe money to the university and you do not have an overdue library book. Express your
answer in terms of g: “You can graduate,” m:“You owe money to the university, ”r: “You
have completed the requirements of your major,” and b: “You have an overdue library
book.”
Answer: Recall that p only if q means p →q. In this case, if you can graduate then you must
have fulfilled the three listed requirements. Therefore the statement is g→(r ∧ (¬m) ∧ (¬b)).
b) You are eligible to be President of the U.S.A. only if you are at least 35 years old, were born
in the U.S.A, or at the time of your birth both of your parents were citizens, and you have
lived at least 14 years in the country. Express your answer in terms of e: “You are eligible to
be President of the U.S.A.,” a: “You are at least 35 years old,” b: “You were born in the U.S.A,”
p: “At the time of your birth, both of your parents where citizens,” and r: “You have lived at
least 14 years in the U.S.A.”
Answer: This is like Exercise 3. If you are eligible to be President, then you must satisfy the
requirements: e → (a ∧ (b ∨p)∧r).