0

Effective January 1st of each year, Gabriela receives a 5% raise on

her previous year’s salary. She wants a program that calculates and

displays the amount of her annual raises for the next three years. The

program also should calculate and display her total salary for the

three years.

Annual salary is $10,000. (The raise amounts

are $500.00, $525.00, and $551.25. The total salary is $33,101.25.)

Iv'e been trying for a couple of hours but can't seem to get it right.

```
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
//declare variables
double TOTAL_SALARY = 0.0;
const double raise = .05;
double year_one = 0.0;
double year_two = 0.0;
double year_three = 0.0;
int current_salary = 10000;
cout << "current salary: ";
cin >> current_salary;
cout << "year one: ";
cin >> year_one;
cout << "year two: ";
cin >> year_two;
cout << "year three: ";
cin >> year_three;
//calculate total salary
;year_one = current_salary * raise;
year_two = year_one * raise;
year_three = year_two * raise;
TOTAL_SALARY = year_one + year_two + year_three
//end
;cout << "Total SALARY: $" << TOTAL_SALARY << endl;
system("pause");
return 0;
} //end of main function
```