Assuming there are no deposits other than the original investment, the balance in a savings account after one year may be calculated as:
•Amount=principal*(1+rate/T)T
Principal is the balance in the savings account, rate is the interest rate, and time is the number of times the interest is compounded during a year (i.e T is 4 if the interest is compounded quarterly).Write a program that asks for the principal, the interest rate, and the number of times the interest is compounded and then generate the amount in savings.
Your program should have a function named computeAmount.
Please I have done it but how to include the ComputeAmount function in my program is the problem. Please help me gurus.
bkay, if you just have other people do your homework for you, you will not learn anything. Furthermore, you will become a crappy programmer, and when you get a real job, you'll most likely get fired when your boss realizes you can't do the work (IF you get hired at all!).
@Momothegreat
Why are you doing his homework? Don't you have somthing better to do, like the rest of the people that passed over this leech's post?