Create a text file containing the following data (without the headings):
Name Social Security Number Hourly Rate Hours Worked
B Caldwell 555-88-2222 7.32 37
D Memcheck 555-77-4444 8.32 40
R Potter 555-77-6666 6.54 40
W Rosen 555-99-8888 9.80 35
(b) Write a C++ program that reads the data file created in Exercise (a) and computes and displays on the screen a payroll schedule. The output should list the Social Security number, name, and gross pay for each person, calculating gross pay as Hourly Rate × Hours Worked.
Well, I have sort of a the beginning of the pseudocode set up but I'm not quite sure how to edit the file and just display Social Security number, name, and gross pay for each person, instead of the original file.
Pseudocode:
Declare variables
Declare input and output stream objects
Read filename
Open input stream