Assignment 02 SP23
Assignment 02 SP23
Islamabad Campus
Department of Computer Science
the solution files of some students are same then I will reward zero marks to
all those students.
5. The deadline for this assignment is April 14, 2023. This deadline will not be extended.
SET
Question # 1
The Venn diagram shows the elements in the set A, B and C.
Question # 4
It is given that U={ x : x is a real number , -15 ≤ x ≤ 15}, A={ x : --15 ≤ x ≤ 15}, B={x : 5 ≤ x ≤ 15}, C={x : -
10 ≤ x ≤ 10} and D= {x : -15 ≤ x ≤ 8}
Write expression for the following, illustrating each solution on number line.
(i) A’
(ii) B∩C
(iii) C∩D
(iv) B∪D
(v) B ∩ D’
Question # 5
68 elderly men failed a medical test because of defects in at least one of these organs: the heart, lungs and
Kidney. 30 heart disease, 30 lung disease and 33 kidney disease. 7 of them had both lung and heart diseases,
10 had lung and kidney and lung disease while 11 had kidney and heart diseases. Draw a Venn diagram to
illustrate this information. Find the number of elderly men:
(i) Who suffered from all three diseases,
(ii) Had only lung disease
RELATION
Question # 6
i. Write the relation R, given by the matrix, as a set of ordered pairs. Also Find Domain and Range of
each relations
IV. Complete each matrix of a relation on {a, b, c} in such a way that the relation has the given property.
- 1 0
0 - 1
1 0 -
1 - 0
1 0 1
- - 1
- 1 -
- 1 1
1 - -