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 10:40
When running anti-virus software , what could be a reason where recipitent is not guaranteed that data being streamed will not get interrupted?
Answers: 1
question
Computers and Technology, 22.06.2019 12:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
question
Computers and Technology, 22.06.2019 17:00
What allows you to create a wireless connection among your smart devices
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
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
question
Mathematics, 10.09.2019 01:30