Reference no: EM13935457
Please apply the following formula below to the program so it works correctly!
The following formula is used to calculate the fixed monthly payment (P) required to fully amortize a loan of L dollars over a term of n months at a monthly interest rate of c. [If the quoted rate is 6%, for example, c is .06/12 or .005].
P = L[c(1 + c)n]/[(1 + c)n - 1]
I am currently getting the following errors
Number found where operator expected at calc.cgi line 38, near "#P = Lr(1+r/1200"
(Might be a runaway multi-line // string starting on line 15)
(Do you need to predeclare P?)
Unquoted string "n" may clash with future reserved word at mor_calc.cgi line 38.
Unquoted string "r" may clash with future reserved word at mor_calc.cgi line 38.
Unquoted string "n" may clash with future reserved word at mor_calc.cgi line 38.
Scalar found where operator expected at mor_calc.cgi line 39, near "$num_months"
(Missing semicolon on previous line?)
syntax error at mor_calc.cgi line 38, near "P = Lr(1+r/1200"
Missing right curly or square bracket at mor_calc.cgi line 61, at end of line
Execution of calc.cgi aborted due to compilation errors.
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
Use the gordon growth model to estimate the value
: Suppose Whole Foods’ projected free cash flow for next year is FCF = $8.75 billion, and due to expected lower revenues and slower growth sales FCF is expected to grow at a constant rate of only 4.5% into the infinite future. The company’s weighted av..
|
Find an mmwr article describing an outbreak
: Search the CDC website and find an MMWR article describing an outbreak that involved multiple federal, state, and local agencies, and/or a public/private partnership. List the various players/agencies, and give a brief description of the role's of..
|
Compute the company net income
: Fido's Dog Spa financial statements show that its total assets equal $100,000, its return on assets (ROA) is 3 percent, and its return on equity (ROE) is 5 percent. (a) Compute the company net income. (b) What portion of total assets is financed with..
|
The completion of units in process and their transfer
: The completion of units in process and their transfer to finished goods.
|
Write a mortgage calculator in perl
: The following formula is used to calculate the fixed monthly payment (P) required to fully amortize a loan of L dollars over a term of n months at a monthly interest rate of c. [If the quoted rate is 6%, for example, c is .06/12 or .005].
|
What is the intrinsic value of firm of projected dividends
: Whole Foods’ current dividend per share is $1.07. You expect dividends to grow at 5% per year into perpetuity. Whole Foods’ beta is 0.85. The current riskfree rate is 2.9%, and the expected return on the market portfolio is 7.4%. what is the intrinsi..
|
Organization seeks applicants for potential employment
: Recruitment: is the process through which the organization seeks applicants for potential employment. Mention Advantages Support it a reference Mention Disadvantages Support it a reference Give Recommendation Technology effect in job design
|
Assume the risk-free rate of return
: Assume the risk-free rate of return is 2% and the market risk premium is 8%. If you are a risk averse investor, which project should you choose? a. Either Project 2 or Project 3 because the higher expected return on project 3 offsets its higher risk.
|
Bid for each share of van buren common stock
: Harrison Corporation is interested in acquiring Van Buren Corporation. Assume that the risk-free rate of interest is 5% and the market risk premium is 6%. Van Buren currently expects to pay a year-end dividend of $3.00 a share (D1 = $3.00). If Harris..
|