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

  Data members to store values of the two loans

A class that represents a person who belongs to a SACCO has two data members to store values of the two loans the person owes the SACCO. Add a parameterized constructor that initializes these loans using the two values passed as arguments.

  Write a program that reads the coordinates

Write a program that reads the (x,y) coordinates of a point in the Cartesian plane and prints a message telling in which quadrant, or on which axis (or axes) the point lies. The quadrants are labeled as follows:

  Design of implementation codes-object oriented programming

Supporting document is required to reflect design of implementation codes and implementation details which utilises object oriented programming concepts.

  My goal is to write down a php database application with a

my goal is to write a php database application with a gui that will display and update information on a remote database

  Write a program that uses is and else or if and elsif

write a program that uses is and else or if and elsif conditional statementsthat asks the user to enter a value for

  Formula translation

Write a c code that will evaluate the roots of a quadratic equation

  This is a programming assignment and it needs you to write

this is a programming assignment and it requires you to write the pseudocode for a program that solves the following

  Design fraction class to represent numerator and denominator

Design a fraction class. The class should have 2 data members to represent the numerator and denominator. Both of these numbers should obviously be integers.

  Program to display information about balance in account

Design an ordinary text file named solution06.txt. In that file, enter text required to make a web page that will display information about balance contained in family's account.

  Define a class rewardcard as an adt

Determine the cost of the two_day_ package represented by the instantiated object, then display the calculated cost also on the console - Define a class RewardCard as an ADT that uses separate files for the interface and the implementation

  Find out the total of balances

Display all the contents of the file in a tabular format with the first row being a header row and write to a file that is called account numbers.txt only the account numbers from the read file.

  Write bash script to copy file from one location to another

Write a bash script called mycopy that copies a file from one location to another. An example of running the script is given below.

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