Category : C Source Code
Archive   : TCHK20.ZIP
Filename : FINANCE.H

 
Output of file : FINANCE.H contained in archive : TCHK20.ZIP
/* TCHK 2.0 - Howard Kapustein's Turbo C library 12-3-88 */
/* Copyright (C) 1988, Howard Kapustein. All rights reserved. */

/* finance.h - header file for finance.c - financial functions */

#ifndef FINANCE_HEADER
#define FINANCE_HEADER 1

#include

#define SLD(c,s,l) straight_line_dep(c,s,l)
#define SYD(c,s,l,p) sum_year_digits_dep(c,s,l,p)
#define DDB(c,l,p) double_decline_bal_dep(c,l,p)
#define ACC_SLD(c,s,l) accum_dep(c,s,l,0,1)
#define ACC_SYD(c,s,l,p) accum_dep(c,s,l,p,2)
#define ACC_DDB(c,l,p) accum_dep(c,0,l,p,3)

/* function prototypes */
double straight_line_dep(double cost, double salvage, int life);
double sum_year_digits_dep(double cost, double salvage, int life, int period);
double double_decline_bal_dep(double cost, int life, int period);
double depreciation(double cost, double salvage, int life, int period, int dtype);
double accum_dep(double cost, double salvage, int life, int period, int dtype);
double PMT(double principal, double interest, int periods);
double PV(double payment, double interest, int periods);
double PVa(double payment, double interest, int periods);
double FV(double payment, double interest, int periods);
double FVa(double payment, double interest, int periods);

#endif /* FINANCE_HEADER */


  3 Responses to “Category : C Source Code
Archive   : TCHK20.ZIP
Filename : FINANCE.H

  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/