[npl] / trunk / NationalProblemLibrary / ASU-topics / setFinance / p4stef.pg Repository:
ViewVC logotype

View of /trunk/NationalProblemLibrary/ASU-topics/setFinance/p4stef.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 61 - (download) (annotate)
Sat Jan 14 02:13:08 2006 UTC (7 years, 4 months ago) by jj
File size: 994 byte(s)
New problems for the library.

    1 ## DESCRIPTION
    2 ## Applied Mathematics
    3 ## ENDDESCRIPTION
    4 
    5 ## KEYWORDS('percent', 'mathematics for business', 'algebraic expression')
    6 ## Tagged by XW
    7 
    8 ## DBsubject('Applied Mathematics')
    9 ## DBchapter('Mathematics for Business')
   10 ## DBsection('Finance')
   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 "PGasu.pl"
   29 );
   30 
   31 TEXT(&beginproblem);
   32 
   33 $A = random(4,20,1)*100;
   34 $b = random(2,9,1);
   35 
   36 $c = random(4,15,1);
   37 $r=$c/100;
   38 
   39 $n=12*$b;
   40 $i=$r/12;
   41 
   42 TEXT(EV2(<<EOT));
   43 Find the principal needed to get  $DOLLAR$A in $b years at $c$PERCENT
   44 compounded monthly.
   45 $BR
   46 Principal = $DOLLAR \{ans_rule(20)\}
   47 EOT
   48 $ans = $A/((1+$i)**$n);
   49 
   50 &ANS(num_cmp($ans));
   51 
   52 ENDDOCUMENT();        # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9