# Thread: generate a table of compound interest factors

1. ## generate a table of compound interest factors

pls help me solve this c programing.it's bin giving me problem.
here's the question:multi-dimensional arrays using the for-loop,i guess
1.write a complex c program that will generate a table of compound interest factors:f,p,where
f=p(1+i/100)raised to the power of n
In dis formula, f represents the future value of a given sum of money,p represents its present value,i represents the annual interest rate xpressed as a percentage and n represents the number of years. Let each row in the table correspond to different value on n,with n ranging from 1 to 30(hence 30 rows).
Let each column represent a different interest rate.include the following interest rates:4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5 ,8, 8.5, 9, 9.5, 10, 11, 12 and 15.(hence,a total of 16 columns).Be sure to label the rows and columns appropriately.

3. My second question:
Suppose that "p" dollars are borrowed from a bank,with the understanding that "a" dollars will be repaid each month until the entire loan has been repaid.Part of the monthly payment will b interest,calculated as "i" percent of the current unpaid balance.The remainder of the monthly payment will be applied towards reducing the unpaid balance,write a c program dt will determine the following information:
-the amount of interest paid each month
-the amount of money applied towards the unpaid balance each month
-the cummulative amount of interest that has been paid at the end of each month
-the amount of load that is still unpaid at the end of the month
-the number of monthly payments required to repay the entire loan
test ur program using the following data: p=\$40 000, A=\$2 000, I=% per month.

4. The third question:
A prime number is a positive integer quantity dt is evenly divisible(without a remainder)only by 1 or by itself. For example, 7 is a prime number but 6 is not.
Calculate nd tabulate d 1st n prime numbers(Hint: A number n will be a prime if the remainder of n/2,n/3,n/4,...............,n/square root of n are all non-zero).Test ur program by calculating the first 100 prime numbers.

5. laserlight.10ks so mch.pls jst try 2 do it 4 me.

6. Originally Posted by MosunPinkie
pls jst try 2 do it 4 me.
You should try and do them yourself.

After all, I need not try: I know I can complete all three in well under an hour... because I did my homework in the past.

7. Jst playing around with sum questions.i don't rily knw c programming very well nd my friend gave me sum questions 2 solve.i've solved 6 bt dis 3 av bin giving me crious headache.

8. laserlight,i've tried doin dem bt i don't knw.nt getting dem.again,i'm nt gud @ arrays.jst try dem 4 me.dis is even my 1st tym posting sumtin here. i don't feel comfortable wit it.

9. i'm nt a student 4 christ sake.homework?nah.

10. Well, pick one of the three. What do you find problematic about it?

By the way, please use proper spelling. It is difficult to understand you when you use unusual spelling and abbreviations.

Originally Posted by MosunPinkie
i'm nt a student 4 christ sake.homework?nah.
You might not be a student in an educational institution, but since you are learning C, you are a student of it Your friend was kind enough to give you homework, but you could have given yourself homework.

11. laserlight thanks.d 1st one is d annoying one.i don't knw arrays at all.i feel lyk crying now.

12. Originally Posted by MosunPinkie
d 1st one is d annoying one.i don't knw arrays at all.
Ah. So, you can gain some confidence by first dealing with the formula only. Are you able to write a program to compute the compound interest factor given an annual interest rate and number of years?

Next, try computing it for each of the interest rates listed, printing the results in one row. You will see that you need a loop, and in fact you do not need an array since you do not need to store the results for further use. Finally, add in the varying number of years by nesting the loop within another loop, and you're done.

13. let me try 2 do it.10ks 4 giuding me.i'm so grateful.

14. don't let me deceive u nd myself.i can't write dis program.i've tried it b4.Merry Xmas!!!!!!!!!!!!!!!

15. I'd recommend learning English before you learn C. Reading what you type makes me want to punch myself in the eyes.

Quzah.