Need help on this c-code with arrays and loop
A company payes a sales staff on a commission basis. Each member of the sales staff receives $200 per week, plus 9% of their gross sales for that week. For example, sales person who grosses $5000 in sales in a week receives $200 plus 9% of $5000, a total of $650. Write an application (using an array) to determine how many of the sales staff earned salaries in each of the following ranges (assuming that each person's salary is truncated to an integer amount): $200-299, $300-399, $400-499, $500-599, $600-699, $700-799, $800-899, $900-999 and over $999. _________________________________________________________ I know what to do..but I am just having trouble with the array and what to put for the loop.
Well, each staff member will be a position in the array. The loop will walk through the array and look at how much each person made.
Join our real-time social learning platform and learn together with your friends!