[npl] / trunk / NationalProblemLibrary / Rochester / setVectors2DotProduct / UR_VC_1_F.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/Rochester/setVectors2DotProduct/UR_VC_1_F.pg

Wed May 10 16:17:05 2006 UTC (7 years ago) by jjholt
File size: 1139 byte(s)
```Added tags.
```

```    1 ## DESCRIPTION
2 ##   The Dot Product
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('Dot Product')
6 ## Tagged by nhamblet
7
8 ## DBsubject('Calculus')
9 ## DBchapter('Vectors and the Geometry of Space')
10 ## DBsection('The Dot Product')
11 ## Date('8/3/2000')
12 ## Author('Joseph Neisendorfer')
13 ## Institution('Rochester')
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            "PGbasicmacros.pl",
24            "PGchoicemacros.pl",
26            "PGauxiliaryFunctions.pl"
27           );
28
29 TEXT(beginproblem());
30
31 #Do not show partial correct answers
33
34 \$mc = new_multiple_choice();
35
36 \$mc->qa(
37   "If Yoda says to Luke Skywalker, \${LQ}The Force be with you,\$RQ then the dot
38   product of the Force and Luke should be:",
39   "positive",
40 );
41
42 \$mc->extra("zero", "negative", "any real number");
43
44 BEGIN_TEXT
45 \$PAR
46 \{\$mc->print_q\}\$BR
47 \{\$mc->print_a\}
48 END_TEXT
49
50 ANS(str_cmp(\$mc->correct_ans) );
51
52 ENDDOCUMENT();    # This should be the last executable line in the problem.
```