subject

Now write a program that calculates the minimum fixed monthly payment needed in order pay off a credit card balance within a user defined number of months. we will not be dealing with a minimum monthly payment rate.
take as  input()  the following floating point numbers:
the outstanding balance on the credit cardannual interest rate as a decimalthe number of to pay off the debt
print out the fixed minimum monthly payment, number of months (at most the number of user defined months  and possibly less than that) it takes to pay off the debt, and the balance (likely to be a negative number).
assume that the interest is compounded monthly according to the balance at the start of the month (before 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. in short:
monthly interest rate  = annual interest rate / monthschosen
updated balance each month  = previous balance * (1 + monthly interest rate) โ€“ minimum monthly payment
test case 1
> > >
enter the outstanding balance on your credit card:   1200
enter the annual credit card interest rate as a decimal:   .18
enter the number of months have the debt paid off by:   12
result
monthly payment to pay off debt in 1 year: 120
number of months needed: 11
balance: -10.05
> > >
test case 2
> > >
enter the outstanding balance on your credit card:   32000
enter the annual credit card interest rate as a decimal:   .2
enter the number of months have the debt paid off by:   24
result
monthly payment to pay off debt in 1 year: 1480
number of months needed: 24
balance: -88.92
> > >
hints
start at $10 payments per month and calculate whether the balance will be paid off (taking into account the interest accrued each month). if $10 monthly payments are insufficient to pay off the debt within a year, increase the monthly payment by $10 and repeat.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
question
Computers and Technology, 24.06.2019 12:00
What is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer?
Answers: 3
question
Computers and Technology, 24.06.2019 13:00
Append and make table queries are called queries. select complex simple action i think action
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is the total number of time zones that can be configured to show by default in a calendar in outlook 2016?
Answers: 1
You know the right answer?
Now write a program that calculates the minimum fixed monthly payment needed in order pay off a cred...
Questions
question
Mathematics, 05.04.2021 03:20
question
Mathematics, 05.04.2021 03:20
question
Mathematics, 05.04.2021 03:20
Questions on the website: 13722362