I had this working before, but I modified it and it stop working. So, I change the code back to when it was working and I'm not getting the same results.
Here is what I'm getting.
How many employees you want to enter?
3
Enter gross pay for each employee:
200
300
400
Here is the gross pay calculated for each employee:
0218
1227
2236
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
double weeklyPay[5];
//double payOut[5];
int count = 0;
double money = 0;
cout << "How many employees you want to enter?\n";
cin >> count;
cout << "Enter gross pay for each employee: \n";
for(int i = 0; i < count; i++)
{
cin >> weeklyPay[i];
}
cout << " Here is the gross pay calcuated for each employee: \n";
for(int i = 0; i < count; i++)
{
money = (weeklyPay[i] * .09) + 200;
cout << i << money << endl;
}
return 0;
}