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

can anyone post problem set 2 solutions?

OpenStudy (anonymous):

You know they are posted already right? Problem Set 2 is due in lecture 6, and there is a zip file of solutions right there.

OpenStudy (anonymous):

which course?

OpenStudy (anonymous):

mit 6.00x intro computer science.

OpenStudy (anonymous):

I have seen there but their is no code.

OpenStudy (anonymous):

in lecture no 6. can you please tell me where that code is located in lec. 6

OpenStudy (anonymous):

i hav no idea where the code is in lec6

OpenStudy (anonymous):

RcMorea can you please tell where the problem set 2 in lecture 6? please help

OpenStudy (anonymous):

please can anyone tell me that in code how to subtract the payment and add the interest for each month ? in paying the minimum assignment. please help

OpenStudy (anonymous):

http://dpaste.com/994192/

OpenStudy (anonymous):

@bwCA wht is this you have posted above

OpenStudy (anonymous):

im not getting correct

OpenStudy (anonymous):

I'm really looking for the solutions as well. I found out about the class late (yesterday) and would really like to be able to proceed with the course without a missing assignment over my head.

OpenStudy (anonymous):

@Suchandrarao that code will find the minimum payment required to pay off a debt (with interest) in twelve months

OpenStudy (anonymous):

It looks to me like you are doing the "first" problem set...not counting the one where you just set up python. The similar problem set in the 2011 course has it's answers at the bottom of the 4th lecture for 2011, in a zip file. Here: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/unit-1/lecture-4-machine-interpretation-of-a-program/ps1_sol.zip.

OpenStudy (anonymous):

Of course I recommend you don't look at that until you have tried for quite a few hours yourself, but its there...

OpenStudy (anonymous):

I've actually seen those previously and unless I'm doing something wrong, they don't match the 'test answers' they suggest you use before submitting.

OpenStudy (anonymous):

I recall someone else saying they were getting an answer...450, if I recall...and the supposedly correct answer was 440. So, I ran it in my code and also got the same answer they did (have to admit I'm not really an expert here). So, I made an Excel spreadsheet, and it came up with the same answer too... So, I have to ask...are you getting 450 and the supposedly correct answer is 440?

OpenStudy (anonymous):

If the question you're referencing is "test case 2" under problem 2, then yes I'm having the same issue.

OpenStudy (anonymous):

personally, i think 450 is correct. i know one other person got that, i got that, and like i said, an Excel file which simply takes the original balance, times the interest rate, minus the payment, 12 times, yields a paid-off balance on 450, but a not paid-off balance on 440. Now, I'm not in your class and don't actually have your instruction sheet, so maybe there is some subtle thing, but otherwise thats how it seems to me.

OpenStudy (anonymous):

For what it's worth, I can think of one way 440 might be right...if you subtract the payment BEFORE you add the interest I think 440 might be right...so then that is just a question of what the instructions said to do...

OpenStudy (anonymous):

Well, I'm either just going to do the assignment late or genuinely attempt it myself after I've finished the lecture sequences and finger exercises. Tick tock until 10pm, I suppose! Thank you for the information, in any case.

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!