version 1.6, 2004/04/22 17:14: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" /> |
<responseparam name="sig" type="int_range,0-16" default="0,15" description="Significant Figures" /> |
<textline /> |
<textline /> |
|
<hintgroup> |
|
<startouttext /><endouttext /> |
|
</hintgroup> |
|
</numericalresponse> |
</numericalresponse> |
|
|
</problem> |
</problem> |