[LON-CAPA-users] Forcing integer answer

Felicia Berryman lon-capa-users@mail.lon-capa.org
Wed, 20 Nov 2002 14:27:21 -0500


Lars Jensen wrote:
> On Wed, 20 Nov 2002, Felicia Berryman wrote:
> 
> 
>>Lars Jensen wrote:
>>
>>>How do I force the student to enter an integer answer. Say that the
>>>answer is 155 and I want to allow 154, 155, 156 as only possible
>>>answers. Values between these are not allowed. If I set the tolerance to
>>>1 the system allows values in between, and setting the format to "0f"
>>>only affects the display, not the student input. Is there some way I can
>>>force the answer to be an integer?
>>>
>>
>>Maybe string response?  Make the answer "155"?
>>
> 
> 
> Would string response allow three different correct answers?

I can't think of a way of doing this.  I'm not sure if you can put an 
"or" in the answer box.  If you can, I think you can get it to work.



> 
> --
> Lars Jensen, TMCC/Vista B200, 7000 Dandini Blvd, Reno NV 89512-3999. 
> Internet: <jensen@physics.unr.edu>, http://www.scsr.nevada.edu/~jensen
> Tel: 775.673.7113  FAX: 775.674.7592
> 
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users



-- 
Felicia Berryman
LON-CAPA Coordinator
Michigan State University
   Email:  felicia@lon-capa.org
   Phone:  (517)432-9866
http://www.lon-capa.org