Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

show steps plz 1. Define a Boolean predicate for each of the following statement

ID: 3595329 • Letter: S

Question

show steps plz

1. Define a Boolean predicate for each of the following statements: a. Tom's truck is red b. John's house is yellow c. Mary's car is blue 2. Declare a Java boolean variable for each of the Boolean predicates from the previous question 3. Write a Boolean expression for each of the following statements, using the Boolean predicates in question 1: a. John's house isinot yellow b. It is not the case that Mary's car is not blue c. Either Tom's truck is ked, or Mary's car is biue and Johh's house is yellow It is true that both Tom's truck is red or Mary's car is blue, and John's house is yellow e. Neither is John's house yellow, nor is Mary's car blue (in other words, John's house is not yellow, and Mary's car is not blue) f. Tom's truck is red and Mary's car is blue g. It is true that either John's house is yellow, or Tom's truck is red, but both are not true. h. Mary's car is blue if and only if John's house is yellow. 4. Write a Java boolean expression for each of the Boolean expressions from the previous question, using the boolean variables declared in question 2

Explanation / Answer

e. john’s house != yellow && Mary’s car != blue

f. Tom’s truck == red && Mary’s car == blue

g. (John’s house == yellow || Tom’s truck == red ) && (John’s house != yellow || Tom’s truck != red)

h. if ( John’s house == yellow ){ Mary’s car ==blue }