Project: Comparing Loans
Problem Description:
Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8. Here is a sample run:
Loan Amount: 10000
Number of Years: 5
Interest Rate Monthly Payment Total Payment
5.000% $188.71 $11,322.74
5.125% $189.28 $11,357.13
5.250% $189.85 $11,391.59
...
7.875% $202.17 $12,129.97
8.000% $202.76 $12,165.83
Use the formulas below to compute monthly payment and total payment.
Design:
(Describe the major steps for solving the problem.)
Coding:
(Copy and Paste Source Code here. Format your code using Courier 10pts)
Output screenshot:
(Paste your output screenshot here)
Testing:
(Describe how you test this program)
Submit the following items:
1. This Word document and Submit to Moodle (you must submit the program regardless whether it complete or incomplete, correct or incorrect)
Hint:
1. Can you get the first four rows manually? This will help you understand how to compute the numbers mathematically.
2. Can you write a program to produce the first four rows? This will help you see the pattern.
3. Can you generalize it in a loop to produce all the rows?
4. Finally, format the output correctly.