Loan Payment Program assignment

# Loan Payment Program assignment - Loan Payment Program This...

This preview shows pages 1–2. Sign up to view the full content.

Loan Payment Program This assignment will involve creating two files. One will be a form that lets the user enter information for a fixed-interest loan. The second file will be your PHP script that will compute the monthly payment for that loan and the total of all the payments over the life of the loan. Your form should look something like this: Principal: Interest: Years: The calculation to computer the payment amounts is complex, but you should be able to program it using what you know about the mathematical operators, parentheses, and the order of operations. It is easiest to work the formula in two steps, computing a temporary value (\$temp) first, which will be used in the second step: 1 temp = ------------------------- interest 1 + ------------- 12 (1 - temp) * principal payment = ------------------------- months temp * (1 - temp ) The denominator in the payment calculation is: "temp times (1 minus temp to the months power)". This means that you will need to use an exponent in your caclucation. There is no

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 03/07/2010 for the course CIS CIS105/100 taught by Professor Mr.mccoy during the Spring '10 term at Elgin Community College.

### Page1 / 2

Loan Payment Program assignment - Loan Payment Program This...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online