Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(1) Create a text (data) file containing data for three different employees. In

ID: 3638335 • Letter: #

Question

(1) Create a text (data) file containing data for three different
employees.
In your main method (of course, in a separate "main module"),
do the following:

(a) Create three Employee records. (Make certain to declare
three separate Employee references and use these in
the record creation process.)

(b) Read all the employee data from the data file into the
three respective Employee records that you created.

(c) Print all the data for the three employees (retrieved from
the records) on the screen in a neat format.

(d) Print the average years of service of the three employees
(as a real number).

(e) Print the difference in years of service between
employee 1 and employee 2, the difference in years of
service between employee 1 and employee 3, and the
difference in years of service between employee 2 and
employee 3. Do not print negative numbers. Use the
built-in method Math.abs to get the absolute value of
the difference.

Explanation / Answer

#include using namespace std; class Time { int hrs,mins,secs; public: Time(){hrs=mins=secs=0;} void display() { cout