[npl] / trunk / NationalProblemLibrary / Rochester / setAlgebra01RealNumbers / sw1_2_49a.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/Rochester/setAlgebra01RealNumbers/sw1_2_49a.pg

Fri May 14 13:15:27 2010 UTC (3 years ago) by gage
File size: 935 byte(s)
fixing a problem in which   TEXT(beginproblem) appears in many files -- it should be
TEXT(beginproblem())


    1 ##DESCRIPTION
2 ##   Evaluation of a simple algebraic expression
3 ##ENDDESCRIPTION
4
5 ##KEYWORDS('algebra')
6 ## hcao tagged and PAID on 12-12-2003
7
8 ## DBsubject('Algebra')
9 ## DBchapter('Basic Algebra')
10 ## DBsection('Real Numbers')
11 ## Date('6/3/2002')
12 ## Author('')
13 ## Institution('')
14 ## TitleText1('College Algebra')
15 ## EditionText1('3')
16 ## AuthorText1('Stewart, Redlin, Watson')
17 ## Section1('1.2')
18 ## Problem1('49a')
19 DOCUMENT();        # This should be the first executable line in the problem.
20
22 "PG.pl",
23 "PGbasicmacros.pl",
24 "PGchoicemacros.pl",
26 "PGauxiliaryFunctions.pl",
27 "PGcourse.pl"
28 );
29
30 TEXT(beginproblem());
31
32 $a = random(25,49,1); 33$b = random(2,24,1);
34
35 TEXT(EV2(<<EOT));
36 Evaluate the expression
37 $\left| |-a|-|-b| \right|.$
38 $BR$BR \{ ans_rule(5) \}
39 $BR 40 EOT 41 42$answer = $a-$b;
43
45
46 ENDDOCUMENT();        # This should be the last executable line in the problem.