Reference no: EM132152672
Task : Calculate and print the total of he overtime pay along with the number of employees that worked overtime. (2 employees in the data worked overtime.)
Exam Program: Modify amtemp.cpp by removing the preassignment of the data for each array and by adding five new function templates.
The inst new function template should allow the user to enter the array data from the keyboard.
The secand ne N function template should print the smalles and second smaest distinct data, that is no values for an array without sorting, You may assume that each array descending order. The fourth new duplicates.
The third new function te should sort the array data function template should retrieve the function template should save the to text file.
The fifth new array ray data from the text file. array smallest and second smallest values for each Output should include the along with all three arrays being printed out in descending order twice, once before the text fle is saved and once after the array is retrieved from the text file.
(Warning make sure include the line template before each function template. Each array should be saved to a separate text file.
You will also need to show all three text fies which you can d rom any text editor when submitting this program