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