Im trying to figure out the math for programming question but my brain isnt working.
Negotiating a consumer loan is not always straightforward. One form of loan is the discount
installment loan, which works as follows. Suppose a loan has a face value of $1,000,
the interest rate is 15%, and the duration is 18 months. The interest is computed by multiplying
the face value of $1,000 by 0.15, yielding $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. Repayment is
made in equal monthly installments based on the face value. So the monthly loan payment
will be $1,000 divided by 18, which is $55.56.
So
1000 x (.15 x 1.5) = 225
1000 - 225 = 775
Thats simple
This method of calculation may not be too
bad if the consumer needs $775 dollars, but the calculation is a bit more complicated if the
consumer needs $1,000.
Write a program that will take three inputs: the amount the consumer
needs to receive, the interest rate, and the duration of the loan in months. The program
should then calculate the face value required.
Ok, lets just say the consumer needs 775 dollars instead of 1000 right now. The consumer would need a face value of 1000 bucks.
I need to figure out how to get 1000 from the three inputs:
needs to received = 775
interest rate = 15%
duration = 18 months (1.5 years)
I cant figure out how to get 1000 bucks in face value out of these three inputs. Or 225 out of them.
haaaalp. This isnt part of any assigment. Its just making me crazy not being able to figure it out after reading and trying it.
Curse you alcohol and your many days of intoxication!



Reply With Quote





Bookmarks