title: C++ Programming - Calculating recurrent increases
body: <p>Effective January 1st of each year, Gabby recieves 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.</p>
  
  <p>I have to test the program and this is what i get but when i desk check it comes out wrong.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  using namespace std;
  
  int main()
  {
  const double RATE = .05;
  double salary = 0.0; 
  double raise = 0.0;
  double totalSalary = 0.0; 
  
  cout &lt;&lt; "Enter the salary:";
  cin &gt;&gt; salary;
  
  for(int counter = 0; counter &lt;=3; counter++)
  { 
  cout &lt;&lt;salary&lt;&lt;endl;
  raise = (salary * 0.05);
  
  
  }
  
  return 0;
  } //end of main function
  </code></pre>