- 2

How I do that in python?

Problem 3 - Using Bisection Search to Make the Program Faster 0.0/20.0 points (graded) You'll notice that in Problem 2, your monthly payment had to be a multiple of $10. Why did we make it that way? You can try running your code locally so that the payment can be any dollar and cent amount (in other words, the monthly payment is a multiple of $0.01). Does your code still work? It should, but you may notice that your code runs more slowly, especially in cases with very large balances and interest rates. (Note: when your code is running on our servers, there are limits on the amount of computing time each submission is allowed, so your observations from running this experiment on the grading system might be limited to an error message complaining about too much time taken.) Well then, how can we calculate a more accurate fixed monthly payment than we did in Problem 2 without running into the problem of slow code? We can make this program run faster using a technique introduced in lecture - bisection search!

17th Sep 2018, 6:27 AM
horacio981
horacio981 - avatar
1 ответ
+ 13
Hola horacio981 👋🏻, intenta hacer tu tarea y si te trabas o necesitas ayuda con tu solución entonces la comunidad de SoloLearn intentará ayudarte. [EN] Hi, try doing your homework on your own and if you get stuck or need help with your solution then SoloLearn’s community will try to help you.
17th Sep 2018, 6:42 AM
Pao
Pao - avatar