Problem

(Sales Commission Calculator) A large company pays its salespeople on a commission basis....

(Sales Commission Calculator) A large company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5000 worth of chemicals in a week receives $200 plus 9% of $5000, or a total of $650. Develop a C++ program that uses a while statement to input each salesperson’s gross sales for last week and calculates and displays that salesperson’s earnings. Process one salesperson’s figures at a time.

Enter sales in dollars (–1 to end): 5000.00Salary is: $650.00Enter sales in dollars (–1 to end): 6000.00Salary is: $740.00Enter sales in dollars (–1 to end): 7000.00Salary is: $830.00Enter sales in dollars (-1 to end): –1

a) Read the problem statement.


b) Formulate the algorithm using pseudocode and top-down, stepwise refinement.


c) Write a C++ program.


d) Test, debug and execute the C++ program.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT