(Latest Revision: Sun Mar 22 01:11:18 PDT 2015 ) payments.script

payments.script


Script started on Sun Mar 22 01:06:30 2015
lucifer.local>> a.out

This program determines the monthly payment on a loan.

The user inputs the amount of the loan, the interest rate,
and the desired term of the loan.

The program outputs the amount of the payment, plus the total
amount that will be paid over the term of the loan, broken
down as the sum of the interest and the principal.


You must now enter the amount of the loan, in decimal form,
for example, a number like 16000.00. Do *not* use commas.

Enter the amount of the loan here ==> 1000

Now you must enter the annual interest rate
on the loan in 'decimal equivalent' form.
For example, you would enter 0.04125 for a 4.125% interest rate.

Enter R, the annual interest rate here ==> 1.2

You must now enter the term of the loan.
This is the number of monthly payments you will make,
for example, a number like 60, for a five-year loan.
You must enter a whole positive number, with no commas.

Enter the number of months here ==> 1

Here is your answer:

For a loan of $1000.00, at interest rate 120.000%,
paid out over 1 months,

the amount of the payment must be: $1100.00

The amount of interest paid is $100.00.
The principal paid is $1000.00.
The total paid is $1100.00.

lucifer.local>> a.out

This program determines the monthly payment on a loan.

The user inputs the amount of the loan, the interest rate,
and the desired term of the loan.

The program outputs the amount of the payment, plus the total
amount that will be paid over the term of the loan, broken
down as the sum of the interest and the principal.


You must now enter the amount of the loan, in decimal form,
for example, a number like 16000.00. Do *not* use commas.

Enter the amount of the loan here ==> 256000

Now you must enter the annual interest rate
on the loan in 'decimal equivalent' form.
For example, you would enter 0.04125 for a 4.125% interest rate.

Enter R, the annual interest rate here ==> 0.038

You must now enter the term of the loan.
This is the number of monthly payments you will make,
for example, a number like 60, for a five-year loan.
You must enter a whole positive number, with no commas.

Enter the number of months here ==> 240

Here is your answer:

For a loan of $256000.00, at interest rate 3.800%,
paid out over 240 months,

the amount of the payment must be: $1524.46

The amount of interest paid is $109871.32.
The principal paid is $256000.00.
The total paid is $365871.32.

lucifer.local>> a.out

This program determines the monthly payment on a loan.

The user inputs the amount of the loan, the interest rate,
and the desired term of the loan.

The program outputs the amount of the payment, plus the total
amount that will be paid over the term of the loan, broken
down as the sum of the interest and the principal.


You must now enter the amount of the loan, in decimal form,
for example, a number like 16000.00. Do *not* use commas.

Enter the amount of the loan here ==> 256000

Now you must enter the annual interest rate
on the loan in 'decimal equivalent' form.
For example, you would enter 0.04125 for a 4.125% interest rate.

Enter R, the annual interest rate here ==> 0.038

You must now enter the term of the loan.
This is the number of monthly payments you will make,
for example, a number like 60, for a five-year loan.
You must enter a whole positive number, with no commas.

Enter the number of months here ==> 360

Here is your answer:

For a loan of $256000.00, at interest rate 3.800%,
paid out over 360 months,

the amount of the payment must be: $1192.85

The amount of interest paid is $173426.29.
The principal paid is $256000.00.
The total paid is $429426.29.

lucifer.local>> exit
exit

Script done on Sun Mar 22 01:07:50 2015