Here's the question you clicked on:
lopus
hello people i understand problem 2 spring 2011, what change in problem 1 to solve problem 2 http://dpaste.com/788497/
Paying Debt Off In a Year
The change is now instead of figuring out how long it will take to pay it off you have to figure out what price per month is necessary to pay it all off within 12 months. So you start at 10 per month. You run through a loop that pays 10 per month every month for 10 months. Then, you check to see if it was paid off, if not you add 10 more. Then you run through the loop that pays 20 per month for 12 months, etc Keep increasing by 10 per month until you find an amount that pays it off in under 12 months. Here's how I solved it: http://dpaste.com/hold/788521/
men thanks http://dpaste.com/788942/ this is my answer is very similar