The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 6 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Complete the following tasks:
Â
a. Create a class named Employee. Data members include the Employee’s 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 Employees and write each Employee to a data file until the end-of-file is entered. Save the file as CreateEmployeeDataFile.cpp.
Â
b. Write a program that reads the Employee file and displays Employee data on the screen. Save the file as DisplayEmployeeData.cpp.
Â
c. 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.
d. 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
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------