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

Hello, everybody. Do you have a solution for Problem 3 of Problem Set 2? I test it from 1 to 200, no number is match.

OpenStudy (harsimran_hs4):

can you please link to the problem set.....

OpenStudy (anonymous):

Thanks for your reply. Its here: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/assignments/pset2.pdf Problem 3. Also I want to know the diffirence between the 6.00 and the 6.00SC course.If I choose one, do I need the learn the other one?

OpenStudy (harsimran_hs4):

well looking at the content of the two courses i think they are pretty much same ...... as regarding your problem i am following 2011 couses and not 2008 so i`ll look into your problem ps2 (2008 course) ...... why don`t your try 6.00( 2011) instead of 6.00(2008) as everytime the way the couse is presented improves

OpenStudy (harsimran_hs4):

and if you have done the part 1 why don`t you give me a hint as problem 3 is somewhat linked to it

OpenStudy (harsimran_hs4):

check this code out it works on my machine http://dpaste.com/hold/889017/ i have put in comments to help you understand the code better if you still face any problem please do ask

OpenStudy (harsimran_hs4):

just a small error as i concentrated on getting your code to work so.........just replace NuBuys[5] by NuBuys[0]-1 and it will give the correct answer

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!