|
From: Mitchell, T. (HNA) <Tam...@hj...> - 2002-09-11 12:37:23
|
Can anyone point me to a same program that calculates interest, and
determines number of months it will take to pay off a loan.
I have all my variables set but am not sure how to set up the loop. I need
to calculate months it will take to pay off a loan for $1000 ay 18%
interest with payment of $50/month
#include <iostream>
using namespace std;
void main()
{
double payment = 50;
double loan_amt = 1000;
double const interest_rate =.18;
double yrly_int = (loan_amt*interest_rate);
double monthly_int =(yrly_int/12);
double principle= (payment - monthly_int) ;
double new_bal = (loan_amt-principle);
}
Tamra Y. Mitchell
Database & Operating Systems Analyst
412-237-5232 - Work
412-996-9078 - Cell
|