If necessary, create a new project named Intermediate24 Project and save it in the Cpp8Chap14 folder. Also

Question:

If necessary, create a new project named Intermediate24 Project and save it in the Cpp8\Chap14 folder. Also create a new source file named Intermediate24.cpp. If you are using Microsoft Visual C++, copy the Intermediate24.txt file from the Cpp8\Chap14 folder to the Cpp8\Chap14\Intermediate24 Project folder. Use a text editor to open the Intermediate24.txt file, which contains payroll codes and salaries. Close the Intermediate24.txt file. Create a program that allows the user to enter a payroll code. The program should search for the payroll code in the file and then display the appropriate salary. If the payroll code is not in the file, the program should display an appropriate message. The program should allow the user to display as many salaries as needed without having to run the program again. Save and then run the program. Test the program by entering the following payroll codes: 10, 24, 55, 32, and 6. Stop the program.

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

Step by Step Answer:

Question Posted: