Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: 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 lecturersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started