If the loan was 20000 over 15 years at 12 percent the


Write a mortgage calculator PERL(.cgi) program that asks the user for the following information:

1. Loan amount

2. Number of years

3. Percent per year compound interest

Use the following formula to determine the total amount of each payment:

n = months * 12

r = percent per year compound interest

L = loan amount

P = Lr(1+r/1200)^n/[1200{(1+r/1200)^n - 1}]

The program must include a...

1. An array

2. A print function

3. One conditional component

4. One subroutine

Example:

If the loan was $20,000 over 15 years at 12 percent the repayment would be $240.08

Solution Preview :

Prepared by a verified Expert
Programming Languages: If the loan was 20000 over 15 years at 12 percent the
Reference No:- TGS01244766

Now Priced at $15 (50% Discount)

Recommended (94%)

Rated (4.6/5)