LSU's simple gradebook had this capability and I believe they are still using some of their magnificent code even now so you might check with Robert Russo from there.
Gradebook
What if in user report
This discussion has been locked so you can no longer reply to it.