![]() # Bring in all the variables to be modified. # Function to run the bisection method with a lower and upper limit # Save this to a separate variable so it can be reset later, when rerunning the bisection method. If you’re not a beginner, please critique my efforts and let me know how I can improve.ĭownPayment = downPaymentPercent * homeCostĬurrentSalary = int(input("Enter your current salary: ")) Please use this as reference if you’re a beginner and struggling like I am. I highly recommend watching Lecture 3 for more information. Keep in mind, I did not have the knowledge regarding bisection search offered in Lecture 3. With the hope that this post helps a stranger navigate through Problem Set 1, Part C, and to reinforce my own understanding of what I did, I am sharing my code below. You should be able to reuse some of the code you wrote for part B in this problem.” You should keep track of the number of steps it takes your bisections search to finish. You should use bisection search to help you do this efficiently. “In ps1c.py, write a program to calculate the best savings rate, as a function of your starting salary. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |