[LON-CAPA-users] help needed with organic response template

Guy Ashkenazi lon-capa-users@mail.lon-capa.org
Fri, 18 Feb 2005 01:36:21 +0200


Here is a template for <reactionresponse>:

<problem>
<script type="loncapa/perl">
$formula = "C2H5OH";
$name = "ethanol";
$answer = "C2H5OH + 3O2 -> 2CO2 + 3H2O";</script>
<startouttext />
Write a balanced reaction for the complete combustion of $name 
(<chem>$formula</chem>) in oxygen, using the smallest integer 
coefficients.<br /><endouttext />
<reactionresponse answer="$answer" initial="$formula ->">
    <textline />
    <hintgroup showoncorrect="no">
<stringhint answer="/\(g\)/" name="state" type="re" />
<hintpart on="state">
    <startouttext />
Do not include symbols for state of matter in your answer.<endouttext 
/>
</hintpart>
    <startouttext /><endouttext />
    </hintgroup>
<hintgroup showoncorrect="no">
    <startouttext /><endouttext />
</hintgroup>
</reactionresponse>
</problem>