Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 20 Online
OpenStudy (anonymous):

Question on ps8b, greedy advisor. What if maxWork is never met, how do I end the while loop after it has tested all the subjects? Here is the code. http://dpaste.com/673771/ If maxWork is met, the loop stops. But I can't seem to write an "if" statement that states that "if all subjects have been test and maxWork > the total work: done = True. Any help is greatly appreciated. Thanks

OpenStudy (anonymous):

Forget it, I figured it out.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!