version 1.7, 2008/05/19 20:38:30
|
version 1.8, 2009/07/06 17:12:47
|
Line 1
|
Line 1
|
<problem> |
<problem> |
<script type="loncapa/perl">#Enter the computations here
|
|
$a=&random(1,10,1);
|
<script type="loncapa/perl"> |
$b=&random(1,10,1);
|
#Enter the computations here |
$c=$a+$b;</script> |
$a=&random(1,10,1); |
<startouttext />Enter the problem text here.
|
$b=&random(1,10,1); |
What is $a + $b?<endouttext /> |
$c=$a+$b; |
|
</script> |
|
|
|
<startouttext /> |
|
Enter the problem text here. |
|
What is $a + $b? |
|
<endouttext /> |
|
|
<numericalresponse answer="$c"> |
<numericalresponse answer="$c"> |
<responseparam type="tolerance" default="5%" name="tol" description="Numerical Tolerance" /> |
<responseparam type="tolerance" default="5%" name="tol" description="Numerical Tolerance" /> |
<textline /> |
<textline /> |
</numericalresponse> |
</numericalresponse> |
|
|
</problem> |
</problem> |