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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started