I want a student to respond with the string "one" as a place value for the number 2 and have the answer checked.
I keep running into various messages depending on different tries.
I am also interested in converting a numeric to a string.
Thanks in advance for responses.
syntax error at (eval 4431) line 16, near "(cmp"
Error details
Problem2 ERROR caught by Translator while processing problem file:tmpEdit/setW10/blankProblem.pg.feinerh.tmp **************** syntax error at (eval 4431) line 16, near "(cmp" **************** ------Input Read 1 DOCUMENT(); 2 loadMacros( 3 "PGstandard.pl", # Standard macros for PG language 4 "MathObjects.pl", 5 ); 6 7 TEXT(beginproblem()); 8 Context()->normalStrings; 9 $two = "two"; 10 #Context()->texStrings; 11 BEGIN_TEXT 12 Write 2 in words: \{$two2->ans_rule\} 13 END_TEXT 14 Context()->normalStrings; 15 $ANS=$two; 16 ANS(cmp->$two2); 17 ENDDOCUMENT(); -----
Request information
Time | Fri Dec 11 02:03:15 2009 | ||||||||||||||||||
Method | GET | ||||||||||||||||||
URI | /webwork2/wlac_math112/W10/2/ | ||||||||||||||||||
HTTP Headers |
|