Loan Calculator
Assignment Objectives:
- Understand the difference between an operator and an operand
- Understand the difference between a unary, binary and ternary operator
- Understand precedence and associativity
- Understand comparison, logical and conditional operators
- The purpose of this assignment is to use PHP to calculate a fixed monthly payment to fully amortize a loan.
- A PHP expression is used to represent the following formula:
P = L[c(1+c)]n/[(1+c)n-1] - The monthly payment is to be formatted to reflect a dollar sign and two decimal points.