0

I can't get the accumulator right,

It just keeps giving what the pay for the next day would be.

Example: Enter 5 for workDays, get 0.32 for total

Please let me know what it is I need to change.

```
//This program calculates the total pay earned over x days.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double workDays, Day, pay;
double total = 0.0;
cout << "How many days will you be working? ";
cin >> workDays;
cout << "Day Pay\n";
// Finds the pay for each day worked.
for (Day = 1; Day <= workDays; Day++)
cout << Day << "\t" << pow(2, Day - 1)* 0.01 << endl;
cout << setprecision(2) << fixed;
//Finds the total pay for all days worked.
pay = pow(2, Day - 1)* 0.01;
total = total + pay;
cout << "Your total pay will be $" << total << endl;
return 0;
}
```