Determine the total amount of payment


Discuss the below:

Q: 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: Determine the total amount of payment
Reference No:- TGS01938455

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)