Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

What are the main principles involved in strategic change?

Answered: 1 week ago