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, 22.06.2019 05:00
Modern businesses use different technologies to accomplish work tasks
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
You know the right answer?
Now write a program that calculates the minimum fixed monthly payment needed in order pay off a cred...
Questions