For teachers grading objective tests.
To change the program so it also provides Total Items correct, along
with indicating items marked correctly or incorrectly,
just change the last part of the last function so it reads:
for(var i=1;i<=noIS;i++)
{
fval += "Scale/Item " + i + " Score: " + results[i] + "\n";
tot = tot + results[i];
}
fval += "\n" + " Total = " + tot;
return;
}
AND
ADD:
var tot = 0;
to the variables declared at the top of the script.
This is great free objective scoring of tests and is absolutely
great if someone is a computer science teacher or teaches in
a class where students always have computers.