Question: How to solve this question using the for loop and if statement (array) in C++. Exercise #1: Salaries A company pays its salesmen on a
How to solve this question using the for loop and if statement (array) in C++.


Exercise #1: Salaries A company pays its salesmen on a commission basis. Each salesman receives $100 per week plus 7 percent of their gross sales for that week. For example, a salesman who grosses $5000 in sales in a week receives $100 plus 7 percent of S5000 (or a total of $450). Write a program in C++ that uses a one dimensional array to determine how many of the salesmen earned salaries fall in each of the following ranges a) $100-$199 b) $200-$299 c) $300-$399 d) S400-$499 e) $500-$599 f) $600-S699 g) S700-$799 h) $800-$899 i) $900-S999 j) $1000 and over
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
