<div dir="ltr"><div>A little background information would help to clarify the problem. What format do you expect for a correct submission? Do you require the fraction to be reduced to lowest terms? Do you accept answers in decimal notation?<br>

<br></div>Justin<br></div><div class="gmail_extra"><br clear="all"><div><div><br></div><div><br></div><div style="color:rgb(102,102,102)">Justin Gray | Senior Lecturer</div><span style="color:rgb(102,102,102)">Department of Mathematics | Simon Fraser University</span><br style="color:rgb(102,102,102)">

<span style="color:rgb(102,102,102)">8888 University Drive, Burnaby | V5A 1S6 | Canada</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Tel: +1 778.782.4237</span><div><div><br></div></div></div>


<br><br><div class="gmail_quote">On Mon, May 20, 2013 at 6:51 PM, Carl Lira <span dir="ltr"><<a href="mailto:lira@egr.msu.edu" target="_blank">lira@egr.msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">I could not decipher what you were trying to do until I pasted it into a new problem. It looks like you want the students to answer with a formula using a + or – sign, you want the students to use a fraction, and you want to check for a specific answer, such as +1/4. You created a complex layout for a fairly simple input.<u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">You could just state that the answer should be a fraction with an explicit + or – sign and give an example in the statement or a hint. Then create a string response instead of a numerical problem. There are some more complicated example loncapa problems using the cas system, but if all you want to do is may sure that they have the correct numerator, denominator, and sign, then a string response should work, even though you are asking for numbers. The string will not evaluate as the same if they enter +.25. You should be able to build the string from random variables.<u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">-------------------------------<u></u><u></u></p><p class="MsoNormal">From loncapa listserv April Archives….<u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p><pre>Hi,<u></u><u></u></pre><pre><u></u> <u></u></pre><pre>does anyone know, how i can format the following problem without a table?<u></u><u></u></pre><pre><u></u> <u></u></pre><pre>

Thanks,<u></u><u></u></pre><pre>Christina<u></u><u></u></pre><pre><u></u> <u></u></pre><pre>%<-----------------begin  example <u></u><u></u></pre><pre>--------------------------------------------------------<u></u><u></u></pre>

<pre><u></u> <u></u></pre><pre><table><u></u><u></u></pre><pre><tr><td></td><td></td><td><numericalresponse answer="1" ><u></u><u></u></pre><pre>     <responseparam name="tol" default="0%" type="tolerance" <u></u><u></u></pre>

<pre>description="Numerical Tolerance" /><u></u><u></u></pre><pre>     <textline readonly="no" size="2" /><u></u><u></u></pre><pre>     <hintgroup showoncorrect="no"><u></u><u></u></pre>

<pre>     <startouttext /><endouttext /><u></u><u></u></pre><pre>     </hintgroup><u></u><u></u></pre><pre>     </numericalresponse></td></tr><u></u><u></u></pre><pre>     <tr>    <td></td><td><optionresponse max="1"  randomize="no" <u></u><u></u></pre>

<pre>TeXlayout="horizontal"><u></u><u></u></pre><pre>                           <foilgroup options="('+','-')" texoptions=""><u></u><u></u></pre><pre>                             <foil location="random" value="-" name="foil1"><u></u><u></u></pre>

<pre>                             </foil><u></u><u></u></pre><pre>                           </foilgroup><u></u><u></u></pre><pre></optionresponse></td><td>------</td></tr><u></u><u></u></pre>

<pre>     <tr> <td></td><td></td><td><numericalresponse answer="4" ><u></u><u></u></pre><pre>     <responseparam name="tol" default="0%" type="tolerance" <u></u><u></u></pre>

<pre>description="Numerical Tolerance" /><u></u><u></u></pre><pre>     <textline readonly="no" size="2" /><u></u><u></u></pre><pre>     <hintgroup showoncorrect="no"><u></u><u></u></pre>

<pre>     <startouttext /><endouttext /><u></u><u></u></pre><pre>     </hintgroup><u></u><u></u></pre><pre>     </numericalresponse></td></tr><u></u><u></u></pre><pre>     <tr> <td>a</td><td></td><td></td></tr><u></u><u></u></pre>

<pre></table><u></u><u></u></pre><pre><u></u> <u></u></pre><pre><u></u> <u></u></pre><pre>%<-----------------end  example <u></u><u></u></pre><pre>--------------------------------------------------------<u></u><u></u></pre>

<pre><u></u> <u></u></pre><pre>-- <u></u><u></u></pre><pre>Christina Möller, M.Eng.<u></u><u></u></pre><pre>Fachhochschule Stralsund<u></u><u></u></pre><pre>Centrum für bessere Übergänge und Studienbedingungen (CÜS)<u></u><u></u></pre>

<pre>Zur Schwedenschanze 15<u></u><u></u></pre><pre>18435 Stralsund<u></u><u></u></pre><pre><u></u> <u></u></pre><pre>Büro:   Haus 1, Raum 245/246<u></u><u></u></pre><pre>Tel:    <a href="tel:%2B49%203831%20457330" value="+493831457330" target="_blank">+49 3831 457330</a><u></u><u></u></pre>

<pre>Fax:    <a href="tel:%2B49%203831%20456680" value="+493831456680" target="_blank">+49 3831 456680</a><u></u><u></u></pre><pre>E-Mail: <a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target="_blank">Christina.Moeller at fh-stralsund.de</a><u></u><u></u></pre>

<pre>         <a href="http://www.cues.fh-stralsund.de" target="_blank">www.cues.fh-stralsund.de</a><u></u><u></u></pre><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>


LON-CAPA-users mailing list<br>
<a href="mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.org</a><br>
<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target="_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br>
<br></blockquote></div><br></div>