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!
  1 件のコメント
Joseph Cheng
Joseph Cheng 2014 年 3 月 27 日

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangePortfolio 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