can you tell me please where I can use the array in this Question ?

Use one –dimensional array to solve the following problem. A company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receive $200 plus 9 percent of $5000, or total of $650. Write a program (using an array of counters)that determines how many of the salespeople earned salaries in each of the following ranges(assume that each salesperson's salary is truncated to an integer amount):

I solve it with out using array, because I don't understand the question clear ...

my code ..

#include<iostream> using namespace std; int main() { int earned; int i=0; const int size=8; while(i<size) { int grossSales; cout<<"Enter the Gross sales for this week: \n"; cin>>grossSales; earned=((grossSales*9)/100)+200; cout<<"The sales person earned this week in range: \n"; if(earned>=200 && earned<300) cout<<"$200-$299"<<endl; if(earned>=300 && earned<400) cout<<"$300-$499"<<endl; if(earned>=400 && earned<500) cout<<"$400-$599"<<endl; if(earned>=500 && earned<600) cout<<"$500-$699"<<endl; if(earned>=600 && earned<700) cout<<"$600-$799"<<endl; if(earned>=700 && earned<800) cout<<"$700-$899"<<endl; if(earned>=800 && earned<900) cout<<"$800-$999"<<endl; if(earned>=1000) cout<<"$1000 and over"<<endl; i++; } return 0; }