Question: Use the same variable in Multipart questions with Maple T.A. 5

How can I use algorithmic variables in multiple parts of a multipart question? We used to do it like in the Tips & Techniques document http://www.maplesoft.com/tacontent/view.aspx?SID=5390. Now, the variables from the question algorithm seem hidden from the parts.

When I create the multipart question through the question editor, I get the following script:

mode=Multipart@
name=Multipart@
comment=@
editing=useHTML@
solution=@
algorithm=@
question=@
weighting=1,1@
numbering=alpha@
part.1.name=add@
part.1.answer.units=@
part.1.numStyle=   @
part.1.editing=useHTML@
part.1.showUnits=false@
part.1.question=<p>$a + 2</p>@
part.1.mode=Numeric@
part.1.grading=exact_value@
part.1.negStyle=minus@
part.1.algorithm=$a=rint(3,10);@
part.1.solution=@
part.1.answer.num=$a+2@
part.2.name=subtract@
part.2.answer.units=@
part.2.numStyle=   @
part.2.editing=useHTML@
part.2.showUnits=false@
part.2.question=<p>$a &minus; 2</p>@
part.2.mode=Numeric@
part.2.grading=exact_value@
part.2.negStyle=minus@
part.2.algorithm=$a=rint(3,10);@
part.2.solution=@
part.2.answer.num=$a-2@

I want to use the same $a in both parts, so I would normally change:

algorithm=$a=rint(3,10);@
part.1.algorithm=@
part.2.algorithm=@

These changes give an error message when I try to save them:

Part 1: The character $ cannot be used in a formula Part 2: The character $ cannot be used in a formula

 

After the following changes, I note that the $a in  part.x.question displays as the character "a".

algorithm=$a=5;@
part.1.algorithm=@
part.2.algorithm=@
part.1.answer.num=7@
part.2.answer.num=5@

What has changed and is there a workaround?

Please Wait...