Question: If necessary, create a new project named Intermediate24 Project and save it in the Cpp8Chap14 folder. Also create a new source file named Intermediate24.cpp. If
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.
Step by Step Solution
3.45 Rating (164 Votes )
There are 3 Steps involved in it
Answer Code include include using namespace std int main int searchFor 0 int code 0 int salary 0 cha... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
2045_61d6ac3438e48_839916.pdf
180 KBs PDF File
2045_61d6ac3438e48_839916.docx
120 KBs Word File
