Question: Create a class named Employee. Data members include the Employees ID number, first and last names, and hourly pay rate. Member functions include overloaded insertion

Create a class named Employee. Data members include the Employees ID number, first and last names, and hourly pay rate. Member functions include overloaded insertion and extraction operators. Continue to prompt the user for data for Employee sand write each Employee to a data file until the end-of-file is entered. Save the file as CreateEmployeeDataFile.cpp.

Write a program that reads the Employee file and displays Employee data on the screen. Save the file as DisplayEmployeeData.cpp.

Revise the CreateEmployeeFile application so the user is prompted for a filename for the output file. Execute the program twice, using different filenames to represent files of Employee data from the North and South divisions of the company. Save the file as RequestEmployeeFileName.cpp.

Add an overloaded operator>()function to the Employee class. The operator>()function compares Employee ID numbers and is used to sort Employee objects. Write an application that reads the North and South division files created in part c of this exercise. As each record is read, display it and load it into an array of Employee objects. Then sort the array by Employee ID number and display the newly merged and sorted records. Save the file as MergeEmployeeRecords.cpp.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!