can anybody help me with writing this program?It calculates compound interest

This is a discussion on can anybody help me with writing this program?It calculates compound interest within the C Programming forums, part of the General Programming Boards category; Hey guys.I really need some advice with writing a program in c that will do the tasks below.Any help is ...

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    can anybody help me with writing this program?It calculates compound interest

    Hey guys.I really need some advice with writing a program in c that will do the tasks below.Any help is greatly appreciated.



    A bank gives 3% for deposits under 15000 and 5% for deposits over 15000.The interest is added to the principal in the end of every year (compound interest).
    Write a program in C which will want you to enter first the amount you would like to deposit and then the time (in years) for which you want to deposit your money.For every year then the program should calculate the interest and the total sum(principal +interest).
    In the end the program should write ina new file accounts.txt the initial deposit and then from below in two columns,for every year the interest and the total sum(principal+interest).In the end the program should write the sum of all the interest accrued from all of the years of the deposit.
    Note:The program should check every year in which interest category (3% or 5%) is the deposit depending on the amount.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    So, what have you done so far?

    Yes, we can HELP you. We are not going to do the work for you.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    3
    Ok I got the idea.Tomorrow I will post my best try

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,555
    We'll be waiting
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User
    Join Date
    Feb 2009
    Posts
    3
    Actually I think I passed the test for which I needed the program written so....
    But thanks anyway

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 04-01-2009, 12:06 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. compound interest
    By bliznags in forum C Programming
    Replies: 11
    Last Post: 03-20-2005, 12:46 AM

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