Use a one-dimensional array to solve thefollowing problem. A company pays its sa
ID: 3613082 • Letter: U
Question
Use a one-dimensional array to solve thefollowing problem. A company pays its salespeople on a commissionbasis. The salespeople each receive $200 per week plus 9 percent oftheir gross sales for that week. For example, a salesperson whogrosses $5000 in sales in a week receives $200 plus 9 percent of$5000, or a total of $650. Write a program (using an array ofcounters) that determines how many of the salespeople earnedsalaries in each of the following ranges (assume that eachsalesperson's salary is truncated to an integer amount):
$200$299
$300$399
$400$499
$500$599
$600$699
$700$799
$900$999
$1000 and over
Explanation / Answer
please rate - thanks careful-- you had 19% not 9%, in addition to 1 or 2 other minorproblems #include using namespace std; int main() { const int blah=9; int saleAmt; int i, counter[blah]; int total; saleAmt = 0; for( i = 0 ; iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.