Question: If necessary, create a new project named Advanced28 Project and save it in the Cpp8Chap11 folder. Also create a new source file named Advanced28.cpp. The
If necessary, create a new project named Advanced28 Project and save it in the Cpp8\Chap11 folder. Also create a new source file named Advanced28.cpp. The program should declare a 20-element, one-dimensional int array named commission. Assign the following 20 numbers to the array: 300, 500, 200, 150, 600, 750, 900, 150, 100, 200, 250, 650, 300, 750, 800, 350, 250, 150, 100, and 300. The program should prompt the user to enter a commission amount from 0 through 1000. It then should display the number of salespeople who earned that commission. Use a sentinel value to end the program. Use the application to answer the following questions:
a. How many salespeople earned a commission of 100?
b. How many salespeople earned a commission of 300?
c. How many salespeople earned a commission of 50?
d. How many salespeople earned a commission of 900?
Step by Step Solution
3.33 Rating (165 Votes )
There are 3 Steps involved in it
To answer the questions you will need to write a C program that declares and initializes the commiss... View full answer
Get step-by-step solutions from verified subject matter experts
