Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials Of Federal Taxation 2019

Authors: Brian Spilker, Benjamin Ayers, John Robinson, Edmund Outslay, Ronald Worsham, John Barrick, Connie Weaver

10th Edition

1260189988, 1260189678, 9781260189674, 978-1259917103, 125991710X, 978-1260190045

Students also viewed these Accounting questions