Lesson A12 - Iterations |
|
|
Payments Background: Borrowing money for expensive items has become a way of life for most Americans. To illustrate the high cost of borrowing and how such loans work, you will be writing a class to calculate the following monthly analysis of a loan.
The loan analysis above started with the following information:
The monthly interest rate is found by dividing the annual rate among 12 months. For the above example the monthly rate is 1.0 %. The last three values of each line are calculated as follows:
The new balance becomes the starting principal amount for the next month. As you can see, progress toward decreasing the principal is slow at the beginning of the loan. Assignment: Write a class to represent a loan as described above using the five-column format. Your class must accomplish the following:
Instructions:
Extending the Lab:
|
|