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

could I please see someone's code for question 4.

OpenStudy (maitre_kaio):

which assignment ? If it is the 4th, please don't post the same question multiple times.

OpenStudy (lucifer):

sorry. pset 4, I meant.

OpenStudy (anonymous):

any question in particular? Or just the whole pset?

OpenStudy (lucifer):

yes, whole! since questions build on previous ones.

OpenStudy (anonymous):

i didn't really clean it up (have a lot of test cases in between), and not sure how helpful posting the whole code is for you, but here it is anyway http://codepad.org/hOALkjU6 would be best if you had specific questions

OpenStudy (anonymous):

http://codepad.org/8Jn2xmzY Just finished it up today. Does anyone have a function to give more test cases for debugging? Also, what are thoughts on the most efficient way to code looping through the years for problems 2 and 3? I tried to vary my loop structure to find the most clean and efficient way solve the problem. Personally I like the loop I used in problem 3.

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!