Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PA06 Employee ADT Create an Employee ADT using the following specifications. It must have the following attribute member variables: name: holds the employee's name idnumber:

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
PA06 Employee ADT Create an Employee ADT using the following specifications. It must have the following attribute member variables: name: holds the employee's name idnumber: a number that holds the employee's ID number department: holds the name of the department where the employee works position: holds the employee's job title pay: holds the employee's pay performance: hold the a string value showing the employee's performance Method members The ADT must have the following constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate member variables:employee's A constructor that accepts the following values as arguments and assigns them to the appropriate member variables employee's name, employee's ID number, department, position, pay, and performance A constructor that accepts the following values as arguments and assigns them to the appropriate member variables:employee's name, employee's ID number, and employee's pay. The department, position, performance must be assigned an empty string(""). A default constructor that assigns empty srings ("") to the name, department, position, perforamnce member variables and 0 to the idnumber and pay variables Write the appropriate setter methods that store values:- one method for each member variable that stores that member variable. one method that stores all the member variables Write the apprpriate getter methods (one for each member variables) that return the values in the member variables. Write an appropriate method that implements the following main robove the employee. Employee Assignments Write the apprpriate getter methods (one for each member variables) that return the values in the member variables. Write an appropriate method that implements the following main behavior of the employee. Employee gets a pay raise if the performance is more than good. This method accepts as input one of the values given below in red fond (in increased order of improved performance), and calculates and updates that employee pay with the pay raise if the performance is good or above: average, ok, good, better, best, excellent. Once you finish the above Employee ADT, write in C++ the necessary application/user/client program that creates three employee objects to hold the following data. Name ID Number Department John Johnson 1234 Sam Samson 4567 Finance Jane Doe 3456 Manufacturing Positic Directe Manag Engine NOTE: Imnleme NOTE: Implement in C++ Implement using the Object-Oriented paradigm (the way we did in the class showing modularity) Make sure your application/user/client program shows an example of the use of each of the methods in your class, at least once. Make sure you comment appropriately Make sure your program is indented properly NO PLGIARISM in ANY FORM The instructor may ask questions and not give any points if you cannot answer questions on the your program

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

More Books

Students also viewed these Databases questions

Question

Organize and support your main points

Answered: 1 week ago

Question

Move smoothly from point to point

Answered: 1 week ago

Question

Outlining Your Speech?

Answered: 1 week ago