It isn't. It's how you calculate the index, judging from a quick look.
Then again, I'm knackered

Anyway, try this:
cpp
#include <iostream>
using namespace std;
int main()
{
int count[9] = {0};
double gross;
bool quit = false;
while (!quit)
{
cout << "Enter employee gross sales (-1 to end): ";
gross = 0.0;
cin >> gross;
if (gross == -1.0)
quit = true;
double sale = gross * 0.09 + 200;
cout << "Employee Commission is $" << sale << endl;
int index = 0;
for (int i = 300; i <= 1000; i += 100)
{
if (sale < i)
break;
index++;
}
if (index > 8)
index = 8;
if (sale >= 200.0)
{
count[index]++;
cout << "hi";
}
}
cout << endl << "Employees in the range:\n";
for (int i = 200; i <= 1000; i += 100)
{
if (i < 1000)
cout << "$" << i << "-$" << i + 99 << " : ";
else
cout << "Over $1000 : ";
cout << count[(i - 200) / 100] << endl;
}
return 0;
}
Hope this helps