Saturday

March 28, 2015

March 28, 2015

Posted by **Anonymous** on Thursday, October 24, 2013 at 10:29am.

In this problem, we will not be dealing with a minimum monthly payment rate.

The following variables contain values as described below:

balance - the outstanding balance on the credit card

annualInterestRate - annual interest rate as a decimal

The program should print out one line: the lowest monthly payment that will pay off all debt in under 1 year, for example:

Lowest Payment: 180

Assume that the interest is compounded monthly according to the balance at the end of the month (after the payment for that month is made). The monthly payment must be a multiple of $10 and is the same for all months. Notice that it is possible for the balance to become negative using this payment scheme, which is okay. A summary of the required math is found below:

Monthly interest rate = (Annual interest rate) / 12.0

Monthly unpaid balance = (Previous balance) - (Minimum monthly payment)

Updated balance each month = (Monthly unpaid balance) + (Monthly interest rate x Monthly unpaid balance)

Test Cases to Test Your Code With. Be sure to test these on your own machine - and that you get the same output! - before running your code on this webpage!

Click to See Problem 2 Test Cases

The code you paste into the following box should not specify the values for the variables balance or annualInterestRate - our test code will define those values before testing your submission.

**Answer this Question**

**Related Questions**

Computer Programming using python - Now write a program that calculates the ...

computer programming - Paying Off Credit Card Debt Each month, a credit card ...

Computer Programming using python - Write a program to calculate the credit card...

Computer Programming using python - Write a program to calculate the credit card...

Computer science - Paying Off Credit Card Debt Each month, a credit card ...

Math - The outstanding balance on Bill's credit card account is 3690 dollars. ...

computer programming - Paying Off Credit Card Debt Each month, a credit card ...

linear algebra - The outstanding balance on Peter's credit card account is 4730 ...

finance - You have credit card debt of $25,000 that has an APR (monthly ...

math - When Beth finishes college, she has a balance of $2876.37 on a credit ...