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

I am having trouble on problem set 2: The credit card problem. I can create the program to write the remaining balance month by month but I have difficulty creating the loops to shorten the program.

OpenStudy (e.mccormick):

Well, think about what calculations are repated every time you do the new balance. Those are the things that should go into the loop. Which one is this one? The one where it optimizes the payment or the one where it says how much it would be paid down if you did a certain payment?

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!