Parent Directory
|
Revision Log
new problmes from mth150
1 ##DESCRIPTION 2 ##KEYWORDS('Standard Example') 3 ##problem 16 section 5.5 of Discrete Math by Kenneth Rosen 4 ##this problem is also located in the directory setSetTheroy1 5 ##ENDDESCRIPTION 6 7 DOCUMENT(); # This should be the first executable line in the problem. 8 9 loadMacros( 10 "PG.pl", 11 "PGbasicmacros.pl", 12 "PGchoicemacros.pl", 13 "PGanswermacros.pl", 14 "PGauxiliaryFunctions.pl" 15 ); 16 17 TEXT(&beginproblem); 18 19 $a=random(95,100,1); 20 $b=random(45,55,1); 21 $c=random(20,30,1); 22 $d=random(2,7,1); 23 $e=4*$a - 6*$b + 4*$c - $d; 24 25 BEGIN_TEXT 26 How many elements are in the union of four sets if each of the sets has \( $a \) elements, 27 each pair of sets share \( $b \) elements, each triple of sets shares \( $c \) elements 28 and there are \( $d \) elements in all four sets. 29 $BR 30 \{ ans_rule(40) \} 31 $PAR 32 END_TEXT 33 34 ANS( num_cmp( $e ) ); 35 36 37 ENDDOCUMENT(); # This should be the last executable line in the problem.;
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |