Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are required to create a c++ program to emulate a companys employee management system. The program needs to be hard coded or user input

You are required to create a c++ program to emulate a companys employee management system.

The program needs to be hard coded or user input based for correct output. Do not save to a file.(No .txt can be included)

Requirements

1. The program shall store information for two types of employees: full time and part time.

2. The program shall store the following information about all employees:

a. First name

b. Middle name

c. Last name

d. Social Security Number

e. Employee ID

f. Date of birth

g. Race

3. The program shall, additionally, store the following information for full time employees:

a. Yearly salary

4. The program shall, additionally, store the following information for part time employees:

a. Hourly wage

5. The program shall utilize a shared private attribute among all full time objects and a shared private attribute among all part time objects to store the employee classification (e.g., Full Time or Part Time).

6. Part time employees shall have a method overriding the base employee method to print the Employee ID that will prepend PT--.

7. The program shall contain a method to print all employee information as demonstrated by the Example Output section.

8. The program shall instantiate 1 full time employee object ($80,000 yearly salary) and 2 part time employee objects ($35.56 and $45.34 hourly wages).

9. The program output shall match, exactly, the output shown in the Example Output section

Restrictions

1. Object--oriented design shall be properly used

2. Appropriate getters/setters shall be available for cases where the data is known and where the user must be prompted to enter the data

3. Getters shall not be allowed to modify class attributes

4. Appropriate constructors shall be utilized that call the appropriate setters (i.e., no custom code)

5. Appropriate header/implementation files shall be utilized for all objects

a. The correct midterm project will utilize 4 header files (.h) and 5 implementation files (.cpp)

6. The main() function shall not contain any superfluous code and must match, exactly, the code shown in the main() function section.

7. Date of Birth shall be a user--defined object

8. Social Security Number shall be declared as an integer

9. Race shall be an enum type contained within the employee object

10. The Date of Birth object shall be initialized via composition

11. Bi--weekly pay shall be displayed with 2 decimal places

This is what int main() should look like.

Int main()

{

fulltime emp1(ext.---------------------------------------------------------------)

parttime emp2(ext.---------------------------------------------------------------)

parttime emp3(ext.---------------------------------------------------------------)

cout << Employee 1 << endl << ------------ <, endl;

emp1.print();

cout << Employee 2 << endl << ------------ <, endl;

emp2.print();

cout << Employee 3 << endl << ------------ <, endl;

emp3.print();

return 0;

}

This is an example of the expected output.

Employee 1 ---------------

Smith, John K

190-21-4698

SMI1017

Full Time

1972-10-22

White

$2,249.72

Employee 2

---------------

Jones, Jessica S

742-52-9872

PT-JON7211

Part Time

1992-07-17

White

$4,201.99

Employee 3

---------------

Moore, Susan R

261-89-9889

PT-MOO7561

Part Time

1985-02-28

Black

$1752.97

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_2

Step: 3

blur-text-image_3

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

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

=+what information would you need about the compact disc industry?

Answered: 1 week ago