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

Preparation Work In your assignment 1, you wrote employee class. Plan is to writ

ID: 3835764 • Letter: P

Question

Preparation Work In your assignment 1, you wrote employee class. Plan is to write a linked ist class, which has the Node class defined as below: struct Node Employee Emp; Node Next: Node (Employee E Employee(), Node N nullptr) const string toString const; The header file for linked list class is given below: struct EmpLinkedListH Node Head Emp LinkedList();// Constructor EmpLinked List (const EmpLinkedList & other); Copy constructor EmpLinked List & operator (const EmpLinkedList & other); Assignment operator virtual Emp LinkedList(): Destructor const string toString const; void insert (const Employee & E); Page 1 of 6

Explanation / Answer

Please find the working code as per the problem statement:

*****************************

*************************

Output:

********************

The list is empty
Name: Employee 1, Age: 25, Year Of Work: 1
Name: Employee 2, Age: 32, Year Of Work: 4
Name: Employee 3, Age: 31, Year Of Work: 5
Employee x not found
Destructor of Employee
Name: Employee 1, Age: 25, Year Of Work: 1
Name: Employee 3, Age: 31, Year Of Work: 5
Destructor of Employee
Destructor of Employee

*********************