Thread: math problem

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    153

    math problem

    Hey everyone,
    I'm writing this simple program that does a little math, and I felt like I wasnt given enough information. How can I go about figuring out the following problem:

    Suppose a loan has a face value of $1000, the interest rate is 15%, and the duration is 18 months. The interest is computed by multiplying the face value by 0.15 to get $150. That figure is then multiplied by the loan period of 1.5 years to yield $225 as the total interest owed. That amount is immediately deducted from the face value, leaving the consumer with only $775. This calculation may be ok if the consumer need $775, but the calculation is a bit more complicated if the consumer needs $1000.
    So the program is to take the amount the consumer wants, the interest rate, and the loan duration. It is then to calculate the face value required in order for the consumer to receive the amount needed.

    The problem I'm having is that all the calculations need the face value to fulfill the calculation, so I find myself with too little info to go on. I'm pretty sure this is due to my own mathematical shortcomings haha. I wrote the program by just assuming a $1000 face value in the first place (which is different than the face value needed to receive the amount requested), anyone have any ideas? Any help would be great! -Chap

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    Say the unknown total to borrow is A, rather than the 1000 in your example. Then A times .15 is the total interest in the first year and A times .15 times 1.5 is the interest over 18 months. That value is then subtracted from A to give a total to the customer of 1000. So

    A - A(.15)(1.5) = 1000;

    Now solve for A which is the actual amount to borrow to receive 1000 at the usurous rate of 15%/y off the top under the current scenario.
    You're only born perfect.

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    153
    ok I read the problem wrong, I'm retarded (not that there's anything wrong with that....must remain PC ) that's the way I solved it as well....now I understand the question. Thanks for the help elad! -Chap

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  2. Help!!c problem in math
    By feelsunny in forum Tech Board
    Replies: 2
    Last Post: 10-06-2007, 03:35 AM
  3. Math Problem....
    By NANO in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 11-11-2002, 04:37 AM
  4. math problem
    By unixOZ in forum Linux Programming
    Replies: 4
    Last Post: 10-19-2002, 12:17 AM
  5. Little math problem
    By Thantos in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-27-2001, 07:44 PM