Problems Figuring Percentage Score
Apr 26, 2013
Hello! I've created a freeform, 10 question quiz with radio buttons. I want the "Correct" and "Incorrect" layers to display the user's percentage correct (results.ScorePercent). This is a built-in variable when a results slide is added. However, I don't want to display a results slide. On top of that, I'm not sure how to get the user's responses to the radio buttons to factor into the percentage. I'm guessing, I need to use some sort of number variable and if that is the case, I really won't need to use the results.ScorePercent variable at all. It would just be the display of the number variable.
I understand this conceptually, but don't know how to put it into practial terms.
As a side note, I am trying to display layers from hotspots on the "Correct" and "Incorrect" layers. This isn't working, but as I type this, I think I could accomplish the effect I'm going for with states (typing out your problem can be theraputic sometimes...).
Find a sample file attached. Thanks, community!
4 Replies
Jonathan,
I think part of the problem with how you set things up is that you are trying to treat each option as a separate question, when in reality, the entire slide is one question. So you only have two options, 0% and 100%. You get 0% if even only one of the items is incorrect.
So basically, you need a variable to count how many correct radio buttons were selected, and then divide that count by 10 to get your percentage (of course mulitply that by 100 before dispalying). There are several ways to accomplish this. I'll try messing around with it later to give an example.
Thank you, Josh...I appreciate the help.
Ok, I've attached what I came up with. And here is an attempt to explain what I've done:
I think that is everything. I would also recommend removing the free form interaction, and just copying the Incorrrect Layer and renaming it "Feedback" as there is no need for a Correct and Incorrect layer. The incorrect layer has everything you need, and the free form isn't really needed since you want a score based off of each set of radio buttons rather than the full set.
There is, of course, the possibility that there is a much easier way and I'm making things way more difficult than they need to be..!??! Happy Friday!
Here is another version with the free form interaction removed (had to change the state of the submit button to hidden at the start of the feedback layer), and an alternative for your additional layers. I just added markers to the feedback slide.
This discussion is closed. You can start a new discussion or contact Articulate Support.