Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 13 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
Countless7Echos: ik i'm late but finished ToT added some details :p
3 hours ago 2 Replies 0 Medals
Grimson: What's your new years resolution.
8 hours ago 1 Reply 1 Medal
LemmyluvsGelo: Why be sad when you could js be Gone . ud83dudd7a
7 hours ago 4 Replies 1 Medal
Ferrari: anyone have insta??
4 hours ago 23 Replies 3 Medals
xXAikoXx: I made art
12 hours ago 6 Replies 3 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!