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:

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.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.

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