Hi. I'm currently stuck here trying to figure out this code I'm trying to construct. I'm trying to write a function that computes future investment value at an interest rate given for a number of years.

so far I've constructed this.

Code:
#include <iostream>
using namespace std;
int main()
{
double futureInvestmentValue (double investmentAmount,
      double monthlyInterestRate, int years);

accumulatedValue =
investmentAmount x (1 + monthlyInterestRate)





system ("pause");
return 0;
}

I believe I should have something that involves/looks like this?

The amount invested: 1000
Annual interest rate: 9%

Years Future Value

1 1093.8
2 1196.41
...
29 13467.25
30 14730.57