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

Prob.Set 4, problem 4. I think I am reading this problem incorrectly. Is it the max amount to withdraw during retirement only, or both retirement and working years?

OpenStudy (anonymous):

Right now my result is 1213.35... if I make the total term to calculate == post+pre retirement. So I am off by about 16$.

OpenStudy (sasogeek):

what language are you coding in and where do you get your problem sets?

OpenStudy (anonymous):

the problem deals with savings, not total income. The idea is that you save a certain amount every year after expenses, and don't start withdrawing until you retire, after which you withdraw the same amount each month.

OpenStudy (anonymous):

sasogeek: Using Python 2.7. Problem sets are from the Opencourseware.

OpenStudy (anonymous):

Sorry, I meant to use consistent units of time.

OpenStudy (anonymous):

In that case, if I start withdrawing at Retirement, then by the problem, that would make the amount of time I retire == 5 years -> 1 for each value in PostRetireGrowthRates. In that case, my maxexpenses boost to 2335.53, which is more than double what is marked in the ps.assignments...because I need to withdraw enough each year, where at the end of my retirement I am left with nothing. That is how I am reading it...but then my result doesn't match the ps.set. handout.

OpenStudy (anonymous):

@Somnamniac: I was thinking about what you said and realized I had to use my function for problem 2, within this new function., as my salary for the maxexpenses. Once I did that - my code spat out 1229.95 as indicated. Thanks for getting me to think a little!

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!
Latest Questions
kaelynw: art igg
2 hours ago 6 Replies 1 Medal
XShawtyX: Art
14 hours ago 6 Replies 0 Medals
Nina001: teach me how to draw or just tell me the basics
16 hours ago 2 Replies 1 Medal
XShawtyX: We doing another drawing gimme ideas to add to this
17 hours ago 9 Replies 1 Medal
RAVEN69: What is x 3+y 3+z 3=k
21 hours ago 20 Replies 1 Medal
cinna: Who is good with photo editing? Dm me pls
1 day ago 2 Replies 0 Medals
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!