|
Engineers must be aware of some basic concepts of finance in order to be certain that their projects are economically justifiable. One simple calculation is to determine the periodic payment required to pay off a loan over a fixed period at a constant interest rate. The formula for determining the amount of this payment is given by the following equation:
where,
A is the amount of the payment,
n is the number of time periods over which the payment is to be made,
P is the original principal amount,
i is the periodic interest rate (annual interest rate divided by the number of payments per year).
Each payment must cover the interest due on the current remaining balance of the loan, plus repayment of some of the principal. An amortization schedule is a table showing how the loan will be paid off over time and usually includes columns containing how much of each periodic payment is going towards interest and how much is going towards reduction of principal, the cumulative amount of interest paid, and the remaining principal balance.
Suppose your company needs to purchase a new piece of heavy equipment that costs $650,000 and has an expected life of 10 years, at which time it will have no salvage value. Your company can borrow the required money at an annual interest rate of 8.5%. Under one possible arrangement, your company will make 10 annual payments while an alternate plan requires 120 monthly payments.
Write a C++ program that will compare these two alternatives. Use the formula given above to calculate the periodic payment for both cases, then prepare an amortization schedule for both loan arrangements. Compare the total interest costs for the two arrangements.
Caution: Remember that the smallest unit of currency is the penny.
|