Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
41 views

National University of Computer and Emerging Sciences, Lahore Campus

The document provides details for a programming assignment to build a hierarchical employee management system for a company called Arsaz Solutions using linked lists, with classes defined for Level and Employee and instructions to implement functions to add, remove, and retrieve employees and levels from the hierarchy. Students are asked to submit their code in a zip file by a deadline and provide a hardcopy of their assignment for evaluation.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

National University of Computer and Emerging Sciences, Lahore Campus

The document provides details for a programming assignment to build a hierarchical employee management system for a company called Arsaz Solutions using linked lists, with classes defined for Level and Employee and instructions to implement functions to add, remove, and retrieve employees and levels from the hierarchy. Students are asked to submit their code in a zip file by a deadline and provide a hardcopy of their assignment for evaluation.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

National University of Computer and Emerging Sciences, Lahore Campus

Course: Data Structures and Algorithms Course Code: CS210


Program: BS (Electrical Engineering) Semester: Fall 2019
Assessment
Tool Programming Assignment # 1

Total Marks: 30

PROBLEM CLO [2]

A company named Arsaz Solutions require a Hierarchical management system for their employees.
They approach you with the hope that you would help them build a system that would allow them to
keep track of all the employees that follow the hierarchy established in the company.

E.g. consider the organization structure given in the figure below in which at the top level is the
company CEO. At the next level are two Managers who report directly to the CEO and so on.

There is no limit on the number of levels in the company and also on the number of employees that
could belong to a certain level. (you will need a linked list of levels and each level will consist of a
linked list of employees belonging to that level).

You are NOT ALLOWED to use arrays for this assignment.

//sample class structure of Level and Employee classes


#include<string>
#include “DList.h” // you are free to use any of the linked lists you have implemented in the lab
class Employee
{
string name;
string designation;
}
class Level
{
int numberOfEmployees;
string rank;
DList<Employee*> * list;
}
1) Please implement the above classes. You just need to plug in any of the linked lists that you
have already implemented in the lab and call their functions (insert/delete etc) on need basis.
You should add any getter/setter functions needed yourself. You might need to overload
certain operators in these classes e.g. overload the stream insertion operator (<<) to work
with the print function in the linked list.
2) The code for the above structure should include the option to add a new level e.g between
CEO and Managers, delete a level, add/remove an employee from an existing level, report
on the employee hierarchy level present in the company and the employees within.You may
write client menu based program (described above) that will do as stated.

Submission Guidelines:
Archive your files (.h and .cpp) in a zip file named as your roll number(s). Upload this file on slate
under the assignment submission section till Monday 14th October till 4pm.
Please hand me the hardcopy of the assignment in the class on Tuesday 15th October that day. Code
should be documented and well written in C++. It must compile.

VERY IMPORTANT
Academic integrity is expected of all the students. Plagiarism or cheating in any assessment will
result in negative marking or an F grade in the course, and possibly more severe penalties.

You might also like