Computing.Net > Forums > Programming > (C) Computing interest

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

(C) Computing interest

Reply to Message Icon

Name: zerodepth
Date: October 25, 2005 at 18:29:22 Pacific
OS: Windows XP
CPU/Ram: Intel M 1 GB
Comment:

Hi, I'm having trouble coding a C program that computes the interest after the user inputs the
loan, monthly payment, and interest rate. Can anyone point me in the right direction (i.e. equations for computing interest?) Thanks for your time.




Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: October 25, 2005 at 22:34:22 Pacific
Reply:

First off. C is not my cup of tea. 25 years of BASIC, 10 years of Fox Base.
Next you should be familiar with the terms used in financial functions. Very seldom do you start with a monthly payment without knowing the term. In a normal amortized loan the monthly payment consists of two parts the interest charge and the payment to the loan. Interest is simply the interest rate (per period) multiplied by the outstanding balance of the loan. What you remember is the term is usually quoted in years but payments are made monthly and the quoted interest rate is annually but calculated monthly. There are other things to consider: points, effective interest rate, modified terms, irregular payments, balloon payments, negative ammortization, etc.
As you write your code and debug, I would recomment doing the same problem in a spreadsheet. Most spreadsheets have the equivalent financial functions. You should get the same values. Check rounding and significant places.


0

Response Number 2
Name: Zenith
Date: October 27, 2005 at 12:52:30 Pacific
Reply:

Most interest is compounded annually, but -

Basically, you subtract standard payments from the principal, then apply the interest rate for that period.

98% of the population is asleep. The other 2% are staring around in complete amazement, abject terror, or both.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: (C) Computing interest

Interesting C computing error.. www.computing.net/answers/programming/interesting-c-computing-error/7131.html

Advice www.computing.net/answers/programming/advice/2287.html

Dos / Batch queris.. www.computing.net/answers/programming/dos-batch-queris/15593.html