generate a table of compound interest factors

This is a discussion on generate a table of compound interest factors within the C Programming forums, part of the General Programming Boards category; 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 ...

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    15

    Red face 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.
    Last edited by MosunPinkie; 12-25-2009 at 03:28 AM. Reason: improper spelling

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,794
    Please do not bump old threads without very good reason.

    Also, read about the homework policy.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    15
    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. #4
    Registered User
    Join Date
    Dec 2009
    Posts
    15
    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. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    15
    laserlight.10ks so mch.pls jst try 2 do it 4 me.

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,794
    Quote 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.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Registered User
    Join Date
    Dec 2009
    Posts
    15
    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. #8
    Registered User
    Join Date
    Dec 2009
    Posts
    15
    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. #9
    Registered User
    Join Date
    Dec 2009
    Posts
    15
    i'm nt a student 4 christ sake.homework?nah.

  10. #10
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,794
    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.

    Quote 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.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  11. #11
    Registered User
    Join Date
    Dec 2009
    Posts
    15
    laserlight thanks.d 1st one is d annoying one.i don't knw arrays at all.i feel lyk crying now.

  12. #12
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,794
    Quote 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.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  13. #13
    Registered User
    Join Date
    Dec 2009
    Posts
    15
    let me try 2 do it.10ks 4 giuding me.i'm so grateful.

  14. #14
    Registered User
    Join Date
    Dec 2009
    Posts
    15
    don't let me deceive u nd myself.i can't write dis program.i've tried it b4.Merry Xmas!!!!!!!!!!!!!!!

  15. #15
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    I'd recommend learning English before you learn C. Reading what you type makes me want to punch myself in the eyes.


    Quzah.
    Hope is the first step on the road to disappointment.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 02-11-2009, 11:54 AM
  2. need help with compound interest
    By JoelearningC in forum C Programming
    Replies: 4
    Last Post: 03-09-2008, 10:32 AM
  3. Compound Interest Formula
    By veronicak5678 in forum C++ Programming
    Replies: 3
    Last Post: 09-16-2007, 05:16 PM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21