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

Can someone explain to me the reasoning behind "Simulate passage of time until outstanding balance is paid off" used in Problem Set 1? I think it is used specifically on problems b and c.

OpenStudy (turingtest):

For every month, you pay off a certain amount of the debt. You can make a loop that iterates over the months, deducting the appropriate payment each month, that ends when the remaining balance is 0. That "simulates" giving a monthly payment over that period of time.

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!