Problem

Complete Figure 6-46 by writing the algorithm and corresponding C++ instructions. Employ...

Complete Figure 6-46 by writing the algorithm and corresponding C++ instructions. Employees with a pay code of either 4 or 9 receive a 5% raise. Employees with a pay code of either 2 or 10 receive a 4% raise. All other employees receive a 3% raise. Use the multiple-alternative form of the if statement to code the multiple-alternative selection structure.

If necessary, create a new project named TryThis10 Project and save it in the Cpp7\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 new pay in fixed-point notation with two decimal places. Save and run the program. Test the program using 1 and 500 as the pay code and current pay, respectively. The new pay should be $515.00. Now test the program using the following four sets of input values: 4 and 450, 9 and 500, 2 and 625, 10 and 500. (The answers to TRY THIS Exercises are located at the end of the chapter.)

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 6