Calculate Percent Complete
April 8, 2011 12:00 AM
Hey everyone. I have a question about calculating the percent complete of a course. A little background is that there is a Main Menu page that lists 11 different "modules" in which each module has their own page. When the student clicks the link to go to a particular module, there is an action on that new page that changes a variable to set it to 1, showing that the module has been viewed. So when they go back to the Main Menu page there is now a check mark showing they have completed that page.
But what I would also like to show is a % complete at the bottom of the Main Menu page. Can anyone of you help me figure out the calculation? I've never had to create my own calculation like this. Here's on variable that is already set:
Total_Complete - Checks to see if module variable is set to one, if it is then it will add one to this variable.
Discussions have been disabled for this post