If necessary, create a new project named ModifyThis19 Project and save it in the Cpp8Chap12 folder. Enter

Question:

If necessary, create a new project named ModifyThis19 Project and save it in the Cpp8\Chap12 folder. Enter the C++ instructions shown earlier in Figure 12-10 into a new source file named ModifyThis19.cpp. Change the filename in the first comment. Save and then run the program. Test the program using the following two pay codes: 6 and 5. Enter –1 to stop the program. Add a new pay code and pay rate to the array. The new pay code is 11, and its corresponding pay rate is $23. Make the appropriate modifications to the code. Save and then run the program. Test the program using the following three pay codes: 6, 5, and 11. Enter –1 to stop the program. 


1 //Wilson Company.cpp - displays the pay rate 2 //corresponding to the pay code entered by the user 3 //Created/revised by  on  4 5 #include  6 using namespace std; 7 8 int main() 9 { 10 //declare array and variables 11 int codesAndRates[4][2] = {{3, 8}, {6,


Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: