[npl] / trunk / NationalProblemLibrary / ASU-topics / setCount / sw10_1_7.pg Repository:
ViewVC logotype

View of /trunk/NationalProblemLibrary/ASU-topics/setCount/sw10_1_7.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 364 - (download) (annotate)
Fri Aug 25 00:47:18 2006 UTC (6 years, 9 months ago) by jjholt
File size: 925 byte(s)
Added/fixed tags.

    1 ## DESCRIPTION
    2 ## Discrete mathematics, counting
    3 ## ENDDESCRIPTION
    4 
    5 ## KEYWORDS('combinatorics', 'counting', 'permutation')
    6 ## Tagged by jjh2b, 08/24/06
    7 
    8 ## DBsubject('Discrete Mathematics')
    9 ## DBchapter('Combinatorics')
   10 ## DBsection('Counting')
   11 ## Date('')
   12 ## Author('')
   13 ## Institution('ASU')
   14 ## TitleText1('')
   15 ## EditionText1('')
   16 ## AuthorText1('')
   17 ## Section1('')
   18 ## Problem1('')
   19 
   20 DOCUMENT();        # This should be the first executable line in the problem.
   21 
   22 loadMacros(
   23 "PG.pl",
   24 "PGbasicmacros.pl",
   25 "PGchoicemacros.pl",
   26 "PGanswermacros.pl",
   27 "PGauxiliaryFunctions.pl"
   28 );
   29 
   30 TEXT(beginproblem());
   31 $showPartialCorrectAnswers = 1;
   32 
   33 $a=random(4,8,1);
   34 
   35 
   36 BEGIN_TEXT
   37 How many different ways can a race with $a runners be completed?
   38 (Assume there is no tie.)
   39 $BR
   40 Your answer is : \{ans_rule(25) \}
   41 $BR
   42 END_TEXT
   43 
   44 $ans = fact($a);
   45 ANS(num_cmp($ans));
   46 
   47 ENDDOCUMENT();        # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9