[npl] / trunk / NationalProblemLibrary / ASU-topics / setFinance / p4stef.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

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

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')
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
23 "PG.pl",
24 "PGbasicmacros.pl",
25 "PGchoicemacros.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.
```