Question: Write a PYTHON program. Please put comments and doctrings in the code to explain the reader. The last two questions are used for testing the
ect 4.2 Financial calculators ou will write three calculators to help someone (maybe you) plan In this project, will for your financial future. part 1: How long will it take to repay my college loans? Vour first calculator will compare the amount of time it takes to repay student loans with two different monthly payment amounts. Your main program will need to prompt for . the student loan balance at the time repayment begins . the nominal annual interest rate (the monthly rate times twelve) two monthly payment amounts Then write a function comparePayoffs (amount, rate, monthly1, monthly2) that computes the number of months required to pay off the loan with each monthly payment amount. The interest on the loan balance should compound monthly at a rate of rate /100/12. Your function should also plot the loan balances, with each payment amount, over time until both balances reach zero. Then it should print the length of both repayment periods and how much sooner the loan will be pald off if the higher monthly payment is chosen. For example, your output might look like this: Example outpu Initial balance: 60000 Nominal annual percentage rate: 5 Monthly payment 1: 500 Monthly payment 2: 750 If you pay $500.00 per month, the repayment period vill be 13 and 11 months. If you pay $750.00 per month, the repayment period vill be 8 years and 2 months If you pay $250.00 more per month, you vill repay the loan 5 years and 9 months earlier. 60000 -$500.00 per month -$750.00 per month 50000 n 40000 30000 20000 10000 246 10 12 14 Years Question 4.2.1 How long would it take to pay off $20,000 in student loans with a 4% interest rate if you paid $100 per month? Apprormately how much would you have to pay per month to pay off the loan in ten years? Question 4.2.2 If you run your program to determine how long pay off the same loan if you paid only $50 per month, you should encoun problem. What is it? it would take to
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
