List: list to calculate salaries

Programming Project: Using a list to calculate salaries

Use a list to solve the following problem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week, plus 9% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales a week receives $200 plus 9% of $5000, or a total of $650. Write a program (using a list 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):
a. $200-299
b. $300-399
c. $400-499
d. $500-599
e. $600-699
f. $700-799
g. $800-899
h. $900-999
i. $1000 and over
NOTE: DO NOT USE “if” STATEMENTS.

Input Data: (must use this data)
gross_sales_list = [5390, 4850, 5762, 333, 4104, 720, 2854, 5730, 7918, 6582, 7874, 8703, 4006, 2027, 9410, 6294, 6083, 1494, 7337, 8682, 340, 4390, 8900, 3620, 776, 7049, 238, 7415, 9946, 4154, 2109, 6935, 2421, 7448, 9452, 3494, 91, 3702, 9641, 3630, 7291, 8624, 692, 2256, 8121, 6127, 4849, 7830, 570, 8699, 5365, 6325, 8620, 2079, 3331, 2962, 9853, 7798, 4051, 413, 1571, 267, 1954, 5118, 3639, 3215, 2705, 3600, 8949, 3337, 583, 8117, 1867, 810, 8477, 3298, 8705, 9704, 3446, 4812, 2182, 6387, 9933, 8049, 587, 7256, 7898, 4939, 4715, 4323, 2583, 4188, 4567, 6409, 9110, 458, 3187, 9742, 6964, 8245]

Output:
Display the categories as above followed by the frequency for each of them. For example:
$200 – $299 14 **************
$300 – $399 8 *********
$400 – $499 10 **********
$500 – $599 15 ***************

Include in your output
– Any error messages that show why your program doesn’t work.
– An explanation related to the program failure if that is the case.