[LON-CAPA-users] Format of solution fields

Carl Lira lira at egr.msu.edu
Mon May 20 21:51:35 EDT 2013


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.

 

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.

 

 

-------------------------------

>From loncapa listserv April Archives
.

 

Hi,
 
does anyone know, how i can format the following problem without a table?
 
Thanks,
Christina
 
%<-----------------begin  example 
--------------------------------------------------------
 
<table>
<tr><td></td><td></td><td><numericalresponse answer="1" >
     <responseparam name="tol" default="0%" type="tolerance" 
description="Numerical Tolerance" />
     <textline readonly="no" size="2" />
     <hintgroup showoncorrect="no">
     <startouttext /><endouttext />
     </hintgroup>
     </numericalresponse></td></tr>
     <tr>    <td></td><td><optionresponse max="1"  randomize="no" 
TeXlayout="horizontal">
                           <foilgroup options="('+','-')" texoptions="">
                             <foil location="random" value="-" name="foil1">
                             </foil>
                           </foilgroup>
</optionresponse></td><td>------</td></tr>
     <tr> <td></td><td></td><td><numericalresponse answer="4" >
     <responseparam name="tol" default="0%" type="tolerance" 
description="Numerical Tolerance" />
     <textline readonly="no" size="2" />
     <hintgroup showoncorrect="no">
     <startouttext /><endouttext />
     </hintgroup>
     </numericalresponse></td></tr>
     <tr> <td>a</td><td></td><td></td></tr>
</table>
 
 
%<-----------------end  example 
--------------------------------------------------------
 
-- 
Christina Möller, M.Eng.
Fachhochschule Stralsund
Centrum für bessere Übergänge und Studienbedingungen (CÜS)
Zur Schwedenschanze 15
18435 Stralsund
 
Büro:   Haus 1, Raum 245/246
Tel:    +49 3831 457330
Fax:    +49 3831 456680
E-Mail: Christina.Moeller at fh-stralsund.de
<http://mail.lon-capa.org/mailman/listinfo/lon-capa-users> 
         www.cues.fh-stralsund.de

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20130520/b3ad6304/attachment.html>


More information about the LON-CAPA-users mailing list