## Forum archive 2000-2006

### Andrew L Vogel - Problem problem grader??

by Arnold Pizer -
Number of replies: 0
 Problem problem grader?? topic started 4/1/2004; 2:45:01 PMlast post 4/8/2004; 11:15:50 AM
 Andrew L Vogel - Problem problem grader??  4/1/2004; 2:45:01 PM (reads: 983, responses: 3) We have a problem we've written with value set at 4 points (there are four answer blanks) and some, not all, students are getting full credit for the problem after submitting an incorrect answer in the first answer blank.  When I look at their problem as an instructor and submit their answer the program even reports that their answer is incorrect(correctly), still they have 100% for the problem? here is the problem (I cannot figure out what's going on, any help is appreciated)  Andy ##DESCRIPTION ##KEYWORDS('probability','statistics','normal','normal distribution') ## ##ENDDESCRIPTION DOCUMENT();        # This should be the first executable line in the problem. loadMacros(PG.pl,PGbasicmacros.pl,PGchoicemacros.pl,PGanswermacros.pl,PGgraphmacros.pl,PGnumericalmacros.pl,PGstatisticsmacros.pl ); TEXT(beginproblem()); $showPartialCorrectAnswers = 1;$pv = random(6000,12000,500); $t = random(3,5,1);$int=random(1,2,1); $r = random(4,9,.25);$i = ($r/100)/12;$pmt = $pv*($i)/(1-(1+$i)**(-12*$t)); $ans1 =$pmt; $ans2 =$pmt*$t*12;$ans3= ($pmt*$t*12-$pv);$ans4 = $pmt*(1-(1+$i)**(-12*($t-$int)))/($i); BEGIN_TEXT$BR Tisha takes out a car loan for $pv dollars for$t years at $r % interest compounded monthly.$BR Her monthly payment is  {ans_rule(10)} $BR The total amount she pays for the car is {ans_rule(10)}$BR The total amount of interest she pays is   {ans_rule(10)} $BR The amount of money she owes after$int years is  {ans_rule(10)} END_TEXT ANS(num_cmp($ans1, tol=>0.005)); ANS(num_cmp($ans2, tol=>0.500)); ANS(num_cmp($ans3, tol=>0.500)); ANS(num_cmp($ans4, tol=>0.005)); ENDDOCUMENT();       # This should be the last executable line in the problem.<| Post or View Comments |>