Purchase Solution

Perl Program - Mortgage Calculator

Not what you're looking for?

Ask Custom Question

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

Purchase this Solution

Solution Summary

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

Solution Preview

Dear Student,

Attached is the perl file. It has all the things that the implementation asked for.

The formula seems to be incorrect. With the formula that you have given in the question, I was not getting the right mortage value. May be if you give me the right formula with ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Basic Networking Questions

This quiz consists of some basic networking questions.

Javscript Basics

Quiz on basics of javascript programming language.