Mortgage Payment Calculator
Write a program that stores the mortgage loan amount, monthly interest rate, and number of payments, and uses those values to calculate the monthly payment.
Use the following formula:
P * r (1 + r)^n P = Principal Loan amount ($)
------------------- r = Monthly Interest Rate (decimal)
(1 + r)^n - 1 n = Number of Payments (months)
- Have it display the value to 2 decimals, and including commas as needed for values greater than 999