Question: Develop a class Employee for storing the employee information. The employee object can contain following Data Members: Employee ID integer) Name string) Designation (string) Pay

 Develop a class Employee for storing the employee information. The employee

Develop a class Employee for storing the employee information. The employee object can contain following Data Members: Employee ID integer) Name string) Designation (string) Pay Scale (integer, must be a number between 1-20) Class should have following member functions: Getter, setter for all data members. Keep the data members private. Output function: displays ID, name, designation and pay scale of current employee. 1) Then write main function and create 3 Employee objects with following information, and display this information as output on screen. 1. 1, Ali, Sales Person, 10 (id, name,designation,pay scale) 2. 2, Babar, Manager, 17 3. 3. Sarwar, IT Administrator, 16 2) Create other 3 Employee objects and take these three employees information from user, and display this information as output on screen. 3) update the designaton of Babar from manager to sale person and also update his pay scale from 17 to 10. And display updated babar information on screen

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!