|
-
September 26th, 2010, 08:08 PM
#1
Figuring out interest
Here is what I have below...
#include <iostream> // This program calculates the interest on a loan and the
using namespace std; // total amount of the loan after interest is added.
int main()
{ // Variables.
int preInterestLoan, interest, numOfPayments;
float monthlyPayments, amountPaidBack, interestPaid;
preInterestLoan = 10000; // Loan amount before interest.
interest = preInterestLoan * .01;
numOfPayments = 36; // 3 year loan.
return 0;
}
I still need to figure out how to calculate and display the monthlyPayments which are 332.14, the amountPaidBack which will total to $11,957.15, and the interestPaid which will obviously be $1,957.15. Any help as to how I can add them into the program? Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|