stickybytes
Golden Member
I need help writing the following boolean expressions given these conditions:
Fill in the spaces marked with ____ to complete the following Boolean expressions. Do not use the Boolean operator "!" in your answer. Write only in the spaces marked with ____. Assume that X, Y and Z are integer variables.
An expression that is true if X is strictly the largest of the three variables X, Y and Z. For example, if X is 50, Y is 40 and Z is 45, the expression should be true, but if X is 50, Y is 40, and Z is 50, the expression should be false, since X is not strictly greater than Z.
(______) _____ (______)
An expression that is true if X is is one of the largest of the three variables X, Y and Z. For example, if X is 50, Y is 40 and Z is 50, the expression should be true.
(______) _____ (______)
thanks.
Fill in the spaces marked with ____ to complete the following Boolean expressions. Do not use the Boolean operator "!" in your answer. Write only in the spaces marked with ____. Assume that X, Y and Z are integer variables.
An expression that is true if X is strictly the largest of the three variables X, Y and Z. For example, if X is 50, Y is 40 and Z is 45, the expression should be true, but if X is 50, Y is 40, and Z is 50, the expression should be false, since X is not strictly greater than Z.
(______) _____ (______)
An expression that is true if X is is one of the largest of the three variables X, Y and Z. For example, if X is 50, Y is 40 and Z is 50, the expression should be true.
(______) _____ (______)
thanks.