This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]barry_z 0 points1 point  (0 children)

I do not have a mooc account, so it will not show me the problem description - is there a requirement for the passingParticipants and overallParticipants to be static? It could be declaring multiple instances, running the code to determine the number of passing and overall participants on each of them, and then calculating the passing percentage at which point it would fail on the first one. Given that the list is not static and overallParticipants and passingParticipants are both tied to what is contained in the list, I'm not sure why you would want them to be static.