[LON-CAPA-cvs] cvs: loncom /homework/templates reaction.problem reaction.problem.meta

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 18 Feb 2005 05:42:45 -0000


albertel		Fri Feb 18 00:42:45 2005 EDT

  Added files:                 
    /loncom/homework/templates	reaction.problem reaction.problem.meta 
  Log:
  - adding a reaction response template
  
  

Index: loncom/homework/templates/reaction.problem
+++ loncom/homework/templates/reaction.problem
<problem>
<script type="loncapa/perl">
$formula = "C2H5OH";
$name = "ethanol";
$answer = "C2H5OH + 3O2 -> 2CO2 + 3H2O";
</script>
<startouttext />
<p>Write a balanced reaction for the complete combustion of $name
(<chem>$formula</chem>) in oxygen, using the smallest integer
coefficients.</p>
<endouttext />
  <reactionresponse answer="$answer" initial="$formula ->">
    <textline readonly="yes" />
    <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>
    </hintgroup>
  </reactionresponse>
</problem>


Index: loncom/homework/templates/reaction.problem.meta
+++ loncom/homework/templates/reaction.problem.meta
<title>Chemical Reaction Response</title>