document.write( "Question 38180: In a survey,80 computer science teachers were asked which of the three programming languages, Pascal, Fortran and C,have they used to introduce programming to students. Forty (40) teachers said they have used Pascal,35 said they have used Fortran, 25 said they have used C,20 said they have used both Pascal and Fortran,17 said they have used Pascal and C, 5 said they have used Fortran and C,and 3 said they have used all the three languages.\r
\n" ); document.write( "\n" ); document.write( "a)How many teachers have used Fortran alone?
\n" ); document.write( "b)How many teachers have used both Pascal and C?
\n" ); document.write( "c)How many teachers have used Fortran, but not C?
\n" ); document.write( "d)How many used none of the three languages?\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #23831 by khwang(438)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( " Given P = 40, F = 35, C = 25.
\n" ); document.write( " P^F = 20, P^C = 17, F^C= 5, P^F^C = 3.
\n" ); document.write( "
\n" ); document.write( " A diagram wiil be helpful.
\n" ); document.write( " a) Use F alone: F - (F ^ P) - (F ^ C ) + P^F^C= 35 - 25 + 3 = 13.
\n" ); document.write( " b) 17 use both P and C , P^C - P^F^C = 17 - 3 = 14 use P & C only
\n" ); document.write( " c) F - F^C = 35 - 5 = 30\r
\n" ); document.write( "\n" ); document.write( " d) The formula about inclusion-exclusion: (or Venn diagram)
\n" ); document.write( " P U F U C = P + F + C - (P^F + P^C+ F^C) + P^F^C
\n" ); document.write( " = 40 + 60 - 42 + 3 = 61.\r
\n" ); document.write( "\n" ); document.write( " the complement (P U F U C )' = 80 - 61 = 19... using none of three\r
\n" ); document.write( "\n" ); document.write( " khwang
\n" ); document.write( "
\n" ); document.write( "
\n" );