Figure 6-40 shows a partially completed chart for a program that displays the amount of a salespersons
Question:
Figure 6-40 shows a partially completed chart for a program that displays the amount of a salesperson’s commission. The commission is based on the salesperson’s sales amount, as indicated in the figure. Complete the selection structure in the Algorithm section of the chart. Also complete the C++ instructions section. After completing the chart, create a new project (if necessary) named TryThis10 Project, and save it in the Cpp8\Chap06 folder. Enter the C++ instructions into a source file named TryThis10.cpp. Also enter appropriate comments and any additional instructions required by the compiler.
Display the commission in fixed-point notation with two decimal places. Save and run the program. Test the program using the following sales amounts: 15250, 251990, 500670, and –5.
Step by Step Answer: