Question: Use data structure language to solve this program Q. No. 2: BIIT has different faculty members. A faculty member has id, designation, salary, gender as

 Use data structure language to solve this program Q. No. 2:

Use data structure language to solve this program

Q. No. 2: BIIT has different faculty members. A faculty member has id, designation, salary, gender as its attributes. Faculty members have designation Professor, Assistant Professor and Lecturer. Implement a class name Faculty. a) Write code for a function with name insertRecord. While inserting data it must be ensured that all the nodes in linklist having designation as Professor should appear before Assistant Professor. All nodes having designation Assistant Professor must appear before lecturer. b) Write code for a function with name display Salary. Function should display the total salary of Professors, total salary of Assistant Professor and total salary of lecturers. c) Write code for a function with name incrementSalary. That should increment 10% in the salaries of all Professors, 15% in the salaries of all Assistant Professors and 20% in the salaries of all lecturers. Q. No. 2: BIIT has different faculty members. A faculty member has id, designation, salary, gender as its attributes. Faculty members have designation Professor, Assistant Professor and Lecturer. Implement a class name Faculty. a) Write code for a function with name insertRecord. While inserting data it must be ensured that all the nodes in linklist having designation as Professor should appear before Assistant Professor. All nodes having designation Assistant Professor must appear before lecturer. b) Write code for a function with name display Salary. Function should display the total salary of Professors, total salary of Assistant Professor and total salary of lecturers. c) Write code for a function with name incrementSalary. That should increment 10% in the salaries of all Professors, 15% in the salaries of all Assistant Professors and 20% in the salaries of all lecturers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!