Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language is C++ a. Create a date class with attributes of month, day, and year. b. Create an employee class for storing information related to

Language is C++

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

a. Create a date class with attributes of month, day, and year. b. Create an employee class for storing information related to employee information for the CSic Corporation. This class should contain the employee's name, employee's Id, phone number, age, gender, job title, salary, and hire date. 1. You should write a series of member functions that change the employee's name, employee's Id, phone number, age, job title, salary, and hire date. 2. You should use your date class (composition) when accessing hire date. 3. You should write a print function that prints all information related to an employee. 4. You should write a client to test all your member functions. Print the before and after when testing your change functions. You should write at least two different constructors (default and non-default). c. Create the following classes: 1. Programmer class that is derived from the employee class with the following private data members i. Department number ii. Supervisor's name iii. Percentage of last salary increase iv. A C++ identifier (true if the employee knows C++) V. A Java identifier (true if the employee knows Java) 2. Software architect class that is derived from the employee class with the following private data members i. Department number ii. Supervisor's name iii. Percentage of last salary increase iv. Years of experience designing software projects 3. You should write at least two different constructors (default and non-default) for the classes above. 4. You should write a series of member functions that change the private data members of the derived classes. 5. You should write a print function that prints all information related to the Programmer class and the Software architect class. 6. You should write a client to test all your member functions. Print the before and after when testing your change functions. One should be able to follow your output without looking at your source code. One should be able to follow your output without looking at your source code. Data: CISCEmployees Phone Age GenderJob title Salary Hire Date 949-555-1234 40 M Comedian $100,000 8/31/2014 Name Employee's Id Jimmy 12345 Fallon Stephan 12346 Colbert James 87654 Corden Katie Couric 77777 310-555-5555 51 M Comedian $70,123 05/08/2015 703-703-1234 37 M $900,000 12/25/2014 Talk Show Host News reporter 203-555-6789 58 F $500,500 03/01/2005 Programmers Name Phone Age GenderJob title Salary Hire Date Employee's Id 54321 819-123-4567 21 M Programmer $223,000 12/24/2011 Sam Software Mary Coder 65432 310-555-5555 28 F Programmer $770,123 02/08/2010 Name Department Supervisor's Name Joe Boss Raise % 4 C++ Knowledge Yes Java Knowledge No Sam 5432122 Software Mary Coder 6543222 Mary Leader 7 Yes Yes Software Architects Name Phone Age Gender Job title Salary Hire Date Alex Arch Sally Designer Employee's Id 88888 87878 819-123-4444 310-555-8888 31 38 M F Architect Architect $323,000 $870,123 12/24/2009 02/08/2003 Name Department Alex Arch Sally Designer Supervisor's Name Big Boss Big Boss Years of experience 4 11 5434222 6543422 Raise % 5 8 In your client, 1. Create at least one "employee" object with the default constructor 2. Create at least one "employee" object with the non-default constructor 3. Create at least one programmer" object with the default constructor 4. Create at least one programmer" object with the non-default constructor 5. Create at least one "software architect" object with the default constructor 6. Create at least one "software architect object with the non- default constructor 7. Write code to test changing the data members of a CS1Cemployee 8. Write code to test changing the data members of a Programmer class 9. Write code to test changing the data members of a Software Architect class a. Create a date class with attributes of month, day, and year. b. Create an employee class for storing information related to employee information for the CSic Corporation. This class should contain the employee's name, employee's Id, phone number, age, gender, job title, salary, and hire date. 1. You should write a series of member functions that change the employee's name, employee's Id, phone number, age, job title, salary, and hire date. 2. You should use your date class (composition) when accessing hire date. 3. You should write a print function that prints all information related to an employee. 4. You should write a client to test all your member functions. Print the before and after when testing your change functions. You should write at least two different constructors (default and non-default). c. Create the following classes: 1. Programmer class that is derived from the employee class with the following private data members i. Department number ii. Supervisor's name iii. Percentage of last salary increase iv. A C++ identifier (true if the employee knows C++) V. A Java identifier (true if the employee knows Java) 2. Software architect class that is derived from the employee class with the following private data members i. Department number ii. Supervisor's name iii. Percentage of last salary increase iv. Years of experience designing software projects 3. You should write at least two different constructors (default and non-default) for the classes above. 4. You should write a series of member functions that change the private data members of the derived classes. 5. You should write a print function that prints all information related to the Programmer class and the Software architect class. 6. You should write a client to test all your member functions. Print the before and after when testing your change functions. One should be able to follow your output without looking at your source code. One should be able to follow your output without looking at your source code. Data: CISCEmployees Phone Age GenderJob title Salary Hire Date 949-555-1234 40 M Comedian $100,000 8/31/2014 Name Employee's Id Jimmy 12345 Fallon Stephan 12346 Colbert James 87654 Corden Katie Couric 77777 310-555-5555 51 M Comedian $70,123 05/08/2015 703-703-1234 37 M $900,000 12/25/2014 Talk Show Host News reporter 203-555-6789 58 F $500,500 03/01/2005 Programmers Name Phone Age GenderJob title Salary Hire Date Employee's Id 54321 819-123-4567 21 M Programmer $223,000 12/24/2011 Sam Software Mary Coder 65432 310-555-5555 28 F Programmer $770,123 02/08/2010 Name Department Supervisor's Name Joe Boss Raise % 4 C++ Knowledge Yes Java Knowledge No Sam 5432122 Software Mary Coder 6543222 Mary Leader 7 Yes Yes Software Architects Name Phone Age Gender Job title Salary Hire Date Alex Arch Sally Designer Employee's Id 88888 87878 819-123-4444 310-555-8888 31 38 M F Architect Architect $323,000 $870,123 12/24/2009 02/08/2003 Name Department Alex Arch Sally Designer Supervisor's Name Big Boss Big Boss Years of experience 4 11 5434222 6543422 Raise % 5 8 In your client, 1. Create at least one "employee" object with the default constructor 2. Create at least one "employee" object with the non-default constructor 3. Create at least one programmer" object with the default constructor 4. Create at least one programmer" object with the non-default constructor 5. Create at least one "software architect" object with the default constructor 6. Create at least one "software architect object with the non- default constructor 7. Write code to test changing the data members of a CS1Cemployee 8. Write code to test changing the data members of a Programmer class 9. Write code to test changing the data members of a Software Architect class

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2019 Wurzburg Germany September 16 20 2019 Proceedings Part 2 Lnai 11907

Authors: Ulf Brefeld ,Elisa Fromont ,Andreas Hotho ,Arno Knobbe ,Marloes Maathuis ,Celine Robardet

1st Edition

3030461467, 978-3030461461

More Books

Students also viewed these Databases questions

Question

Understanding Groups

Answered: 1 week ago