my neighbor (the kid taking C++ this summer at the tech school) needs help.
Ok, heres the problem.... he has to write a program to calculate the simple interest of a loan payment. The instructions are not very clear on where the variable are coming from. The interest amount I get and what the book lists are too different ones. (I am doing paper math here.)
Here is the program list:
The monthly payment on a loan may be calculated by the following formula:
Payment = Rate * (1 + Rate)N / ((1 + Rate)N -1) * L
Rate is the monthly interest rate, which is the annual interest rate divided by 12. (A 12 percent annual interest would be 1 percent monthly interest) N is the number of payments and L is Loan Amount. Write a program that asks for these values and displays a report similiar to :
Loan Amount: $ 10000.00
Monthly Interest Rate 1%
Number of Payments 36
Monthly Payment 332.14
Amount Paid Back 11957.15
Interest Paid 1957.15
Ok, for the life of me.. I can not get that math formula to work. The interest rate I get whether doing a flat rate or variable rate (it doesn't say which, so I tried each) will not work with those figures.
Can someone help? Big karma slam to everyone.
Ok, heres the problem.... he has to write a program to calculate the simple interest of a loan payment. The instructions are not very clear on where the variable are coming from. The interest amount I get and what the book lists are too different ones. (I am doing paper math here.)
Here is the program list:
The monthly payment on a loan may be calculated by the following formula:
Payment = Rate * (1 + Rate)N / ((1 + Rate)N -1) * L
Rate is the monthly interest rate, which is the annual interest rate divided by 12. (A 12 percent annual interest would be 1 percent monthly interest) N is the number of payments and L is Loan Amount. Write a program that asks for these values and displays a report similiar to :
Loan Amount: $ 10000.00
Monthly Interest Rate 1%
Number of Payments 36
Monthly Payment 332.14
Amount Paid Back 11957.15
Interest Paid 1957.15
Ok, for the life of me.. I can not get that math formula to work. The interest rate I get whether doing a flat rate or variable rate (it doesn't say which, so I tried each) will not work with those figures.
Can someone help? Big karma slam to everyone.