Write a mortgage calculator in perl

Assignment Help Programming Languages
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

Reference no: EM13935457

Questions Cloud

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..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd