Question: Problem 6 : Creating an Amortization Schedule Assume that you have decided to borrow $ 1 6 0 , 0 0 0 to purchase a
Problem : Creating an Amortization Schedule
Assume that you have decided to borrow $ to purchase a house. Suppose that the loan has a monthly interest rate
of and that you will repay it over a period of years months According to your results in the previous problem,
you should see that this will result in monthly payments of $ In this problem, we will use a loop to determine how
much will still be owed on the loan at the end of each year.
Perform the following steps in a single code cell.
Create variables named balance, i and pmt to store the initial loan amount, interest rate, and monthly
payment amount mentioned in the paragraph above.
Use a loop to perform the following tasks times. As in Problem you will need to use a name other than i
for the loop counter. For convenience, I recommend starting the loop counter at rather than
Calculate the new balance. This will be done by multiplying the current balance by i and then
subtracting the payment amount. Store the result back into balance, rounded to decimal places.
If current payment marks the end of a year of payments ie if the loop counter is a multiple of
then print a message in the format shown below. Match the format exactly, including the inclusion of
the period at the end of the sentence. Do not include extra spaces.
The balance at the end of xxxx months will be $xxxx
No lists should be created for this problem, and only one loop should be used.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
