File:  [LON-CAPA] / loncom / homework / templates / numerical.problem
Revision 1.7: download - view: text, annotated - select for diffs
Mon May 19 20:38:30 2008 UTC (16 years ago) by www
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_99_1, version_2_6_99_0, bz5969, HEAD, GCI_2, GCI_1, BZ5971-printing-apage, BZ5434-fox
Bug #1724: Categories, helplinks, and examples for templates

    1: <problem>
    2: <script type="loncapa/perl">#Enter the computations here
    3: $a=&random(1,10,1);
    4: $b=&random(1,10,1);
    5: $c=$a+$b;</script>
    6: <startouttext />Enter the problem text here.
    7: What is $a + $b?<endouttext />
    8: <numericalresponse answer="$c">
    9: 	<responseparam type="tolerance" default="5%" name="tol" description="Numerical Tolerance" />
   10: 	<textline />
   11: </numericalresponse>
   12: </problem>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>