Category : C Source Code
Archive   : C-AIDS-3.ZIP
Filename : AMORTIZ2.C

 
Output of file : AMORTIZ2.C contained in archive : C-AIDS-3.ZIP
/*
** determine payment if balance and rate and term is known


*amount = starting balance
*balance = remaining balance
*rate = interest rate per period
*rate1 = interest rate per year
*payment = monthly payment
*principal = payment to principle
*interest = payment of interest per period
*number = number of payments

* payment=Balance/((1-(1+rate)^-Number)/rate)
*/

float amount; /* declare external veriables */
float rate;
float payment;
float rate1;

#include "math.h" /* include declaration for pow() */
pymt()
{
float number;

printf("How many payments ? ");
scanf("%f",&number);


payment = amount / ((1 - pow((1. + rate),-number))/rate);


}


  3 Responses to “Category : C Source Code
Archive   : C-AIDS-3.ZIP
Filename : AMORTIZ2.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/