Question
A student borrows 10,000 to buy a used car. Interest on her loan is compounded at the rate of 2% per month while the outstanding
A student borrows 10,000 to buy a used car. Interest on her loan is compounded at the rate of 2% per month while the outstanding balance of the loan is more than 5000e, and at 1% per month otherwise. She pays back 300 every month, except for the last month, when the repayment must be less than 300. She pays at the end of the month, after the interest on the balance has been compounded. The first repayment is made one month after the loan is paid out.
Write a program which displays in a plot a monthly statement of the balance (after the monthly payment has been made). The balance value in the months when the higher interest rate was applied should be plotted in red, and the ones with the lower interest rate - in blue color. In the same graph, include a constant black line at the level of 5000 over the entire repayment period. In the same figure plot the monthly payments as bars below Y axis (that is with negative values) and having the last payment in different color than the other ones.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started