Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 14 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
whiteybulger: Music
1 hour ago 0 Replies 0 Medals
whiteybulger: Made this song last night should I drop
2 hours ago 9 Replies 0 Medals
whiteybulger: Should I drop this song i made last night in the studio
6 hours ago 52 Replies 0 Medals
Stewart: How do you know which tribe belongs to which reservation?
1 day ago 2 Replies 0 Medals
Breathless: What is vaka blast made out of?
4 hours ago 4 Replies 0 Medals
EdwinJsHispanic: another singing vid but for the people who knows spanish
1 day ago 16 Replies 1 Medal
EdwinJsHispanic: another singing vid, please give me your thoughts on it
2 days ago 20 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!