0% found this document useful (0 votes)
6 views2 pages

C++ Employee Management System Assignment

The document outlines a C++ programming assignment for creating an employee-based organization structure that includes Employee, HOD, and Visiting Faculty classes. It specifies attributes and methods for each class, including salary computation and task acceptance. The assignment also requires implementing an array to store employee details and providing options for hiring, displaying information, and calculating salaries using function overriding and casting.

Uploaded by

sumitpatait2001
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

C++ Employee Management System Assignment

The document outlines a C++ programming assignment for creating an employee-based organization structure that includes Employee, HOD, and Visiting Faculty classes. It specifies attributes and methods for each class, including salary computation and task acceptance. The assignment also requires implementing an array to store employee details and providing options for hiring, displaying information, and calculating salaries using function overriding and casting.

Uploaded by

sumitpatait2001
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

C++ Programming Assignment (PG_DAC Feb.

2025)

Fresh business scenario to apply inheritance , polymorphism to Institute based organization

scenario.

Create Employee based organization structure ---Employee ,HOD, Visiting_Faculty

1.1 Employee state--- id(int), name, deptid , basic(double) (as basic salary)

Accept all of above in constructor arguments.

Methods :

a) compute_ net_ salary ---ret 0

(eg : public double computeNetSalary(){return 0;})

1.2 HOD state ---id,name,deptid,basic, perfBonus

Add suitable constructor

Methods ----

a) computeNetSalary() (formula: basic+perfBonus) -- override computeNetSalary

b)Accept_Task() (accept any string type as a task)

1.3 Visiting_Faculty state --id,name,deptid,basic, Subject, hoursWorked,hourlyRate

Methods :

a) computeNetSalary ()(formula: = basic+(hoursWorked*hourlyRate) --override

computeNetSalary()

b) get_ hrlyRate() of the Visiting_Faculty -- add a new method to return hourly rate of a

Visiting_Faculty

Create suitable array to store organization details.

Provide following options-(use switch case)-

1. Hire HOD

I/P : HOD details

2. Hire Visiting_Faculty

I/P : Visiting_Faculty details


3. Display information of all employees.

4. Display net salary of employees (by invoking computeNetSal())

5. get hrlyRate() of Visiting_faculty and Accept task for HOD.

4. Exit

Use function overriding and casting wherever necessary. Use any other suitable function if
required. All the functions implementation is mandatory.

You might also like