Calculating the Average of a Quiz Score

Jun 10, 2019

Hi All,

I need some help using the division function in variables

I have created a quiz that has 8 multiple choice questions--each question has 5 possible answers, and each answer is scored with a value of 1 to 5. 

My result slide adds up the value of my multiple choice questions with the built in score variable Results.ScorePoints.  All good up to this point.

Here's what I can't figure out--I want to create an "average score" for the eight questions--I want to take the result.scorepoints and divide it by 8.  I can't figure out how to make it work.  

Any thoughts on how to construct this variable?  I'm doing this because I am using the quiz function to create a personal skill assessment.  I want the result to be calculated as an average of the 8 different questions.

Thanks!  

4 Replies
Jodi M. Sansone

Oh, I think I figured  out a very inelegant solution.  I created an additional variable called "result average" that replicated the quiz score.  Then I divided the "result average" by 8--and triggered that by the timeline.   I think I had the triggers mis-ordered.

If you have a better solution, please share it.  Otherwise I have enjoyed talking to myself today!

Sarah Hodge

Hi Hannah! I haven't done anything like this, but I'm guessing from Jodi's explanation that the variable 'results average' is initially set to the number 0 and the trigger is set to adjust that variable to Results.ScorePoints. The trigger after that divides the 'results average' variable by whichever amount you desire. See images for reference. 

If this doesn't work, it might help to see your story file so we can take a look.