Im new to programming and i cant seem to be able to figure this question out:

Write a c++ program that uses two functions, called simple_interest(float amount, int duration) and compound_interest(float amount, int duration), to compute interest on an investment. The program should take the name of client and initial investment of a the client and store them in two arrays, then asks user to enter the duration and interest rate.
The program then calls the appropriate function to compute either simple or compound interest. The program then adds the interest to the initial amount to obtain the current value of the investment.
The program then outputs the name, principle amount, duration, interest rate, interest and total amount for simple and compound interest options.

ive been working on this for two weeks, any help anyone?

Please post your code so that we can help you. What is the particular problem that you are having?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.