Wednesday, January 16, 2008

Assignment 2

Consider the following problem. Jaskom carries out a survey of Computer Science Students and the result shows the following:
a- For question "Do you have computers?", 221 answered "Yes".,
b- For question "Do you have Java programming books?", 159 answered "Yes", and
c- For question "Do you have computers and Java programming books?", 87 answered "Yes".

Do an analysis of these data and solve the following problems. Among the students of Computer Science who have at least computers and Java programming books, find the percentage (%) of students who :

Have computer = C
Have Java Programming book = J
Have Both = B
Total = T

B = 87


C + 87 = 221
C = 221 - 87
C = 134

J + 87 = 159
J = 159 - 87
J = 72

C + J + 87 = T
T = 134 + 72 + 87
T = 293


a) have at least one computers and programming books

(C + J)/293 *100
= (134 + 72)
/293 *100
= 70.31%


b) have only computers

C/293 *100
= 134
/293 *100
= 45.73%


c) have only programming books

J/293 *100
= 72
/293 *100
= 24.57%


d) have both computers and programming books

B
/293 *100
= 87
/293 *100
= 29.69%



No comments: