Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 20:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



hi need help

Discussion on hi need help within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
wildchild18's Avatar
 
elite*gold: 0
Join Date: Sep 2013
Posts: 786
Received Thanks: 23
Exclamation hi need help

hi can someone code this for me on c please?
a) Develop an algorithm to solve the following problem. Then write the program in C
to implement it.
€15,000 is deposited into a savings account paying 5% interest and €1,000 is withdrawn
from the account at the end of each year. How many years are required for the savings
account to be depleted? (Note: If at the end of a certain year the balance is €1,000 or less,
then the final withdrawal will consist of that balance and the account will be depleted.)

(b) Use your algorithm to solve the following problem - rework your answer to (1) so
that the amount of money deposited initially is input by the user and the program
computes the number of years required to deplete the account. Be careful to avoid infinite
loops. Devise suitable test cases to coverage test your code.
(
wildchild18 is offline  
Old 11/08/2013, 18:50   #2
 
Hiris's Avatar
 
elite*gold: 99
Join Date: Apr 2011
Posts: 730
Received Thanks: 236
Why would somebody do this? If you have a special question how to do something or need a tipp you are right here, if you want a solution you can go to coders trading and offer some money or google for it *lol*
Hiris is offline  
Reply




All times are GMT +1. The time now is 20:49.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.