Question: I haven't learned elif, if else. Please use the WHILE LOOP or FOR LOOP (python) Part 1: How long will it take to repay my
I haven't learned elif, if else. Please use the WHILE LOOP or FOR LOOP (python)
Part 1: How long will it take to repay my college loans?
Your 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 paid off if the higher monthly payment is chosen. For example, your output might look like this:
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 will be 13 years and 11 months. If you pay $750.00 per month, the repayment period will be 8 years and 2 months.
If you pay $250.00 more per month, you will repay the loan 5 years and 9 months earlier.

60000 $500.00 per month $750.00 per month 50000 40000 Account balance (s) 30000 20000! 100001 0 0 IN 4 6 10 12 14 8 Years
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
