Problem

The sales manager at Tompkins Company wants a program that calculates and displays each...

The sales manager at Tompkins Company wants a program that calculates and displays each salesperson’s commission, which is 10% of his or her sales. It also should display the total commission. Use a value-returning function to get the amount sold by a salesperson. The amount sold may contain a decimal place. Also use three void functions: one to calculate the 10% commission, another to display the commission, and another to calculate the total commission. The program should display the commission and total commission in fixed-point notation with two decimal places. Display the total commission only after the sales manager has finished entering the sales amounts. Use a sentinel value to end the program.

a. Create IPO charts for the problem.

b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 10-39. Then, code the algorithm into a program.

c. If necessary, create a new project named Intermediate21 Project and save it in the Cpp7\Chap10 folder. Enter your C++ instructions into a source file named Intermediate21.cpp. Also enter appropriate comments and any additional instructions required by the compiler.

d. Save and then run the program. Test the program using the following four sales amounts: 12000, 23000, 10000, and 25000. Then enter your sentinel value.

Figure 10-39

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