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

Problem Set 1: Paying off Credit Card Debt: Problem #2 I could be wrong (at this point, possibly very, very wrong) but I feel it's necessary to have a loop nested inside of another loop in order to answer this question. The first loop for setting up the min monthly pay to increment up and the second for decrementing down the months. I'm at this point not even sure if this is the case. Though if it is I have no idea how to attach the "Updated balance each month = Previous balance*(1+ monthly interest rate)-Minimum monthly payment" to the monthly loop in order to get it to (post 1 of 2)

OpenStudy (anonymous):

(post 2 of 2) cycle through the each month while updating the previous balance. Then if 0 is not reached for it to break out of the nested loop, add an additional 10, and then cycle through again. I know that's sort of the whole algorithm but it is what it is. I can post attempts if it would be helpful

OpenStudy (anonymous):

did you have a question?

OpenStudy (anonymous):

Ya I actually figured it out but I agree that this was sort of a poorly formed question. I guess I was trying to find out 1. if I was taking the right approach. If I was on the right track I was going to 2. have someone look at my code and maybe give me some insight into where I was going wrong. Or 3. help me figure out what was wrong with my approach.

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
HeyItsAlicia: Mits midnight!!! Happy 16th bday to me !!
11 minutes ago 16 Replies 4 Medals
XShawtyX: Art
4 hours ago 1 Reply 1 Medal
RAVEN69: My drawing so far is actually fire
1 week ago 9 Replies 2 Medals
PureSoulless: is staying at your friend's house while you're homeless legal.
2 weeks ago 5 Replies 1 Medal
whyjustwhy: i did that one TV girl trend with blake (aka @ShadowKid3)
1 week ago 12 Replies 2 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!