Grader Plug-ins
If the final answer is correct, then the problem is given full credit and a message is generated to that effect. Otherwise, partial credit is given for previous parts.
This problem grader custom_problem_grader_fluid was contributed by Prof. Zig Fiedorowicz, Dept. of Mathematics, Ohio State University on 8/25/01.
This grader expects two array references to be passed to it, eg. $ENV{'grader_numright'} = [2,5,7,10]; $ENV{'grader_scores'} = [0.1,0.4,0.6,1] Both arrays should be of the same length, and in strictly increasing order. The first array is an array of non-negative integers: the number of parts of the problem the student might get right. The second array is the corresponding array of scores the student would be credited with for getting that many parts right. The scores should be real numbers between 0 and 1. The last element of the 'grader_scores' array should be 1 (perfect score). The corresponding last element of 'grader_numright' would be the total number of parts of the problem the student would have to get right for a perfect score. Normally this would be the total number of parts to the problem. In the example shown above, the student would get 10% credit for getting 2-4 parts right, 40% credit for getting 5-6 parts right, 60% credit for getting 7-9 parts right, and 100% credit for getting 10 (or more) parts right. A message to be displayed to the student about the grading policy for the problems should be passed via $ENV{'grader_message'} = "The grading policy for this problem is..."; or something similar.