1. What 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 x + 2 = 3 then x := x + 1
D. Consider the following sets:
U= {1, 2, 3, 4, 5, 6, 7, 8, }, A= {1, 2, 3, 4, 5, 7}, B= {1, 5, 6, 7}, C= {1, 2, 3, 6}
16-20. Illustrate the Venn Diagram for the sets A, B, and C.
3) Is the relation on {0, 1, 2, 3} are partial ordering? Determine the properties of a partial ordering that it lacks.
{(0, 0), (1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3, 3)}
4) Is (S, R) a poset if S is the set of all people in the world and (a, b) ∈ R, where a and b are people, if a is taller than b?
5) Is (Z,≠) a poset?
Show that ( p → q) ∧ ( q → r) → ( p→ r) is a tautology by using truth table or rules of
logical equivalence
How many cards must you draw from a deck of cards to ensure you get at least 3 cards of the same colour?(red or black)
Let f be the function from R to R defined by
f (x) = x2. Find
Write the proposition “I come to class whenever there is going to be a quiz” in the
form “if p then q” then state its converse, contrapositive, and inverse.
a. Conditional “if p then q”
b. Converse:
c. Contrapositive:
d. Inverse:
an = an−1+ an-3, ao = 1, a₁ = 2, a2 = 0
Suppose that a department contains 10 men and 15 women. How many ways are there to form a committee with six members if it must have the same number of men and women?