Investment program help

I do not fully understand where to go with this program.
please help with this assignment:

" Write compile and run a program the calculates and displays the yearly amount available if $1000 is invested in a bank account for 10 years.
Your program should display the amounts available for interest rates 6%-12%,in 1%increments.
Outer loop should have fixed count 7%, and inner loop having fixed count 10%.
Use this relationship: money available at end of each year = amount of money in account at start of year+(interest rate* amount available at start of the year)"

This is my code so far, i just get an infinite loop..
help

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <iostream>
#include <cmath>
using namespace std;
void investment();

int main()
{

investment();


return 0;

}



void investment()
{


int invMoney;

        cout<<"Please enter amount of money you want to invest for a 10 year period:\n"<<"$";
        cin>>invMoney;

        double per; //percentage rate

        for (per=.05;per<=.12;per=+.01)
        {
        cout<<"At:"<<per<<endl;

        for (double year=1;year<=10;year++)
        {
        double answr;
        answr= invMoney+(per*invMoney);
        cout<<"\n"<<answr;
        }

        }
return;

}

  
per=+.01
to
per+=.01
Topic archived. No new replies allowed.