| Course: |
CSE 103 |
| Project Number: |
2 |
| NSD Due Date: |
none (see NSD) |
| Project Due Date: |
(see the calendar on Angel) |
| Project Filename |
a:mortgage.bpr |
| Program Filename: |
a:mortgage.cpp |
| Output Filename: |
a:mortgage.txt |
| Project Objective: |
To attempt modularization and utilize the repetitive contruct. |
| Problem: |
- Given the principal P , annual interest rate
R in percent form, and term of the loan T in
years, write a modularized C++ program that will calculate the monthly
mortgage payment MP according to
MP = (( P * i ) / ( 1 1 / ( 1 + i ) t ))
where i is the monthly interest rate and
t is the term of the loan in months
- Generate an amortization schedule of payments.
- Determine the total cost of the mortgage.
- Determine the interest paid.
|
| Input: |
Enter the following data interactively:
- P = $65,000.00
R = 9.25% T = 12 years
- P = $20,000.00
R = 8.75% T = 5 years
|
| Output: |
Have a summary page containing the following information centered on the page:
- the amount of the principal P
- the annual interest rate R
- the term of the loan in years T
- the monthly payment MP
- the total amount of interest paid
- the total cost of the loan
Starting on a new page, generate a tabularized amortization schedule of
payment complete with heading.
|
| Reminder: |
Follow
General Instructions for Programming
and the
Basic Formatting Guidelines.
|