I've just tried changing the assigned score values from fractions to decimals 
and this gives the same results.

As another data point, a score of 12/15 in the puzzle with an assigned_score of 
.8000 comes out as 4.85714285714285 points out of 5 in the course. I am 
expecting that to be 4 out of 5.


Doug

Douglas Mills
Director of Instructional Technology
Department of Chemistry
University of Illinois


From: "Mills, Douglas G" <dmi...@illinois.edu>
Date: Wednesday, March 20, 2019 at 10:22 AM
To: Discussion list for LON-CAPA users <lon-capa-users@mail.lon-capa.org>
Cc: "Mills, Douglas G" <dmi...@illinois.edu>
Subject: assigned_score and unexpected results

Hi All,

I have a word search activity implemented in Lon-Capa worth 5 course points if 
completed with no hints. There are 12 words to find plus 3 "starter points" 
that you can spend on 3 different hints for a total of 15 possible points. In 
the course parameters I've weighted the activity to 5 points. In the activity 
itself I've used assigned_score as follows:

if($submission eq "12|3"){return (ASSIGNED_SCORE,15/15)}; #12|3 means all words 
found and no hints used, etc.
if($submission  eq "12|2"){return (ASSIGNED_SCORE,14/15)};
if($submission  eq "12|1"){return (ASSIGNED_SCORE,13/15)};
if($submission  eq "12|0"){return (ASSIGNED_SCORE,12/15)};

My expectation then, for example, is that if I complete the puzzle using two 
hints, in the course I should see 4.333 points awarded.  However, what I'm 
seeing in the course for that outcome is a score of 4.90476190476191 out of 5.

The Word Search problem itself is a one-part problem with 7 customresponses; 
however, the score should be coming from only the customresponse with the 
assigned_score section shown above. All of the other 6 customresponses are 
weighted at 0.

So what am I missing?  Thanks!

Doug

Douglas Mills
Director of Instructional Technology
Department of Chemistry
University of Illinois

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

Reply via email to