Question: question: Write a program that uses these bounds and bisection search (for more info check out the Wikipedia page here) to find the smallest monthly
question: Write a program that uses these bounds and bisection search (for more info check out the Wikipedia page here) to find the smallest monthly payment to the cent (no more multiples of $10) such that we can pay off the debt within a year. Try it out with large inputs, and notice how fast it is.
Output Phython: Enter the outstanding balance on your credit card: 320000 Enter the annual credit card interest rate as a decimal: .2 RESULT Monthly payment to pay off debt in 1 year: 29643.05 Number of months needed: 12 Balance: -0.1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
