Question: In this exercise, you modify the program from Computer Exercise 28. If necessary, create a new project named Advanced29 Project and save it in the
In this exercise, you modify the program from Computer Exercise 28. If necessary, create a new project named Advanced29 Project and save it in the Cpp8\Chap11 folder. Also create a new source file named Advanced29.cpp. Copy the C++ instructions from the Advanced28.cpp file into the Advanced29.cpp file. Change the filename in the first comment to Advanced29.cpp. Modify the program so that it prompts the user to enter a minimum commission amount and a maximum commission amount. Swap the amounts if the minimum amount is greater than the maximum amount. The program should display the number of salespeople who earned a commission within that range. Use a sentinel value to end the program. Save and then run the program. Use the program to answer the following questions.
a. How many salespeople earned a commission from 100 through 300?
b. How many salespeople earned a commission from 700 through 800?
c. How many salespeople earned a commission from 0 through 200?
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
include using namespace std int main int commission count 0 min max cout Enter the minimum ... View full answer
Get step-by-step solutions from verified subject matter experts
