Amortization library

This is a discussion on Amortization library within the C++ Programming forums, part of the General Programming Boards category; I'm working on a programm that requires me to create a library and a programm at the same time to ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    5

    Amortization library

    I'm working on a programm that requires me to create a library and a programm at the same time to pay off a debt over time with equal payments... some of my functions are:


    double payment(), which returns the amount of each monthly payment
    double loan(), which returns the amount of the entire loan.
    int months(), which returns the number of monthly payments to be made
    - These functions should take each 3 parameters and return a single value.

    Does anyone own a library capable to do so because i'm not too familiar with libraries and calling of functions... thanks

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Considering that each of those functions can probably be written in about 5 lines of code, I'm not entirely sure why you expect to find that someone has published a LIBRARY to solve those problems.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Forget the library bit for now (it depends on your compiler).
    Can you solve some of the problem as just normal functions in a regular C++ file?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    All the information you'll need to write your amotization functions can be found here.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 05:00 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  3. Makefile for a library
    By sirmoreno in forum Linux Programming
    Replies: 5
    Last Post: 06-04-2006, 04:52 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  5. better c string functions
    By samps005 in forum C Programming
    Replies: 8
    Last Post: 11-04-2003, 12:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21