|
From: Reid T. <Rei...@at...> - 2002-09-11 12:50:14
|
<http://www.tallahassee.cc.fl.us/dept/acsu/mc/docs/HTML/BUSFLOW.HTM> http://www.tallahassee.cc.fl.us/dept/acsu/mc/docs/HTML/BUSFLOW.HTM formulas listed at the bottom of the page. Do search on finance formulas -----Original Message----- From: Mitchell, Tamra (HNA) [mailto:Tam...@hj...] Sent: Wednesday, September 11, 2002 8:32 AM To: 'dev...@li...' Subject: [Dev-C++] Calculating interest 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>=20 using namespace std;=20 void main()=20 {=20 double payment =3D 50;=20 double loan_amt =3D 1000;=20 double const interest_rate =3D.18;=20 double yrly_int =3D (loan_amt*interest_rate);=20 double monthly_int =3D(yrly_int/12);=20 double principle=3D (payment - monthly_int) ;=20 double new_bal =3D (loan_amt-principle);=20 }=20 Tamra Y. Mitchell=20 Database & Operating Systems Analyst=20 412-237-5232 - Work=20 412-996-9078 - Cell=20 |