Annotation of loncom/homework/templates/customunit.problem, revision 1.1

1.1     ! www         1: <problem>
        !             2: 
        !             3: <script type="loncapa/perl">
        !             4: $pecks=&random(3,5,1);
        !             5: $bushels=&random(2,6,1);
        !             6: $total=4.4*(8*$bushels+2*$pecks);
        !             7: </script>
        !             8: 
        !             9: <startouttext />
        !            10: You go to the market and buy $pecks peck of apples and $bushels bushel of potatoes. How much produce did you buy? Note that these are dry goods.
        !            11: <endouttext />
        !            12: 
        !            13: <numericalresponse answer="$total" unit="L" format="3s">
        !            14:     <responseparam type="tolerance" default="5%" name="tol" description="Numerical Tolerance" />
        !            15:     <responseparam name="customunits" type="string_any" description="Custom-defined Units" default="peck=2*gallon,bushel=8*gallon,gallon=4.4*L" />
        !            16:     <textline readonly="no" />
        !            17: </numericalresponse>
        !            18: 
        !            19: </problem>

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