Chapter 1: Q17P (page 14)
Determine whether each of these conditional statements is true or false.
a) If, then.
b) If, then.
c) If, then.
d) If monkeys can fly, then.
Short Answer
a) False
b) True
c) True
d) True
Chapter 1: Q17P (page 14)
Determine whether each of these conditional statements is true or false.
a) If, then.
b) If, then.
c) If, then.
d) If monkeys can fly, then.
a) False
b) True
c) True
d) True
All the tools & learning materials you need for study success - in one app.
Get started for freeWhat is the value of x after each of these statements is encountered in a computer program, if x = 1 before the statement is reached?
a) if then
b) if OR then
c) if AND then
d) if XOR then
e) if x < 2 then
Suppose that a truth table in propositional variables is specified. Show that a compound proposition with this truth table can be formed by taking the disjunction of conjunctions of the variables or their negations, with one conjunction included for each combination of values for which the compound proposition is true. The resulting compound proposition is said to be in disjunctive normal form
Suppose that Prolog facts are used to define the predicates motherand fatherwhich represent that Mis the mother of Yand Fis the father of X, respectively. Give a Prolog rule to define the predicate grandfather ,which represents that Xis the grandfather of Y. [Hint: You can write a disjunction in Prolog either by using a semicolon to separate predicates or by putting these predicates on separate lines.]
Write each of these statements in the form “if p, then q” in English. [Hint: Refer to the list of common ways to express conditional statements provided in this section.]
a) I will remember to send you the address only if you send me an e-mail message.
b) To be a citizen of this country, it is sufficient that you were born in the United States.
c) If you keep your textbook, it will be a useful reference in your future courses.
d) The Red Wings will win the Stanley Cup if their goalie plays well.
e) That you get the job implies that you had the best credentials.
f ) The beach erodes whenever there is a storm.
g) It is necessary to have a valid password to log on to the server.
h) You will reach the summit unless you begin your climb too late.
Use De Morgan’s laws to find the negation of each of the following statements.
(a) Kewame will take a job in industry or go to graduate school.
(b) Yoshiko knows Java and calculus.
(c) James is young and strong.
(d) Rita will move to Oregon or Washington.
What do you think about this solution?
We value your feedback to improve our textbook solutions.