[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lon-capa-users
Subject:    Re: [LON-CAPA-users] Answer display of the student's submission.
From:       Rex Abert <ABERTR () tcc ! fl ! edu>
Date:       2015-06-05 12:53:30
Message-ID: BY1PR03MB13409AFBFA3F82DC2EAB8EF6E2B20 () BY1PR03MB1340 ! namprd03 ! prod ! outlook ! com
[Download RAW message or body]

Thanks, Gerd and Doug!  I also had a peek at some code contained in the videos from a \
year ago about integrating Geogebra into LonCapa (from Brad Moffat at Selwyn, I \
believe), and got it working.

Rex Abert
Associate Professor of Mathematics
Tallahassee Community College
________________________________________
From: lon-capa-users-bounces@mail.lon-capa.org \
[lon-capa-users-bounces@mail.lon-capa.org] on behalf of Gerd Kortemeyer \
                [kortemey@msu.edu]
Sent: Thursday, June 4, 2015 6:17 PM
To: Discussion list for LON-CAPA users
Cc: Mills, Douglas G
Subject: Re: [LON-CAPA-users] Answer display of the student's submission.

Hi,

> On Jun 4, 2015, at 4:37 PM, Mills, Douglas G <dmills@illinois.edu> wrote:
> 
> One way I've done this is to check in the script at the head of the
> problem to see if the question has been answered correctly and if so, set
> the correct answer to the student answer.

I assume this is customresponse or mathresponse.

The method that Doug describes actually always works.

Make some variable for your displayed answer, say $answer, and use that.

<problem>
<part id=“1”>

<script type=“loncapa/perl”>
…
$answer=“A correct answer is 42.”;
</script>
<solved>
<script type=“loncapa/perl">
$answer=“Your correct answer is “.&submission(1,11).”.”;
</script>
</solved>

<customresponse answerdisplay=“$answer” id="11">
…
</customresponse>
</part>
</problem>

- Gerd.

--
Gerd Kortemeyer, Ph.D.
Associate Professor of Physics
Director, LON-CAPA Project
Michigan State University
http://www.msu.edu/user/kortemey/




_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic