Investment HW problem help

조회 수: 2 (최근 30일)
Joseph
Joseph 2014년 3월 27일
댓글: Joseph Cheng 2014년 3월 27일
Disclaimer: This is HW, but we are allowed to consult the Matlab forum for answers as long as they are cited. Thanks!
A student borrows $10,000 to buy a used car. Interest on loan is compounded at a rate of 2% per month while the outstanding balance of the loan is more than $5,000, 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 1 month after loan is paid out. Write a program which displays a monthly statement of the balance(after payment has been made), the final payment, and the month of final payment( in table form).
Guidlines:
1. Make program more flexible by having program user input the initial balance and monthly payment amount in command window.
2. Compute the minimum monthly payment needed to payy of the debt by computing the interest in the first month and adding $1 to it.
3. If the payment inputted is below the minimum value computed in step 2, the minimum required payment should be output again and the user should enter a new payment amount.
Thanks!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Portfolio Optimization and Asset Allocation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by