Create a date class with attributes of month, day, and year.
Create an employee class for storing information related to
employee information for the CS1C Corporation. This class should contain the employee’s name, employee’s Id, phone number, age, gender, job title, salary, and hire date.
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.
You should use your date class (composition) when accessing hire date.
You should write a print function that prints all information related to an employee.
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).
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
You should write at least two different constructors (default and non-default) for the classes above.
You should write a series of member functions that change the private data members of the derived classes.
You should write a print function that prints all information related to the Programmer class and the Software architect class.
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.
Data: C1SCEmployees
|
Name |
Employee’s Id |
Phone |
Age |
Gender |
Job title |
Salary |
Hire Date |
|
Jimmy Fallon |
12345 |
949-555-1234 |
40 |
M |
Comedian |
$100,000 |
8/31/2014 |
|
Stephan Colbert |
12346 |
310-555-5555 |
51 |
M |
Comedian |
$70,123 |
05/08/2015 |
|
James Corden |
87654 |
703-703-1234 |
37 |
M |
Talk Show Host |
$900,000 |
12/25/2014 |
|
Katie Couric |
77777 |
203-555-6789 |
58 |
F |
News reporter |
$500,500 |
03/01/2005 |
HW03 – Class Constructors, Inheritance & Init [100 pts] Programmers
|
Name |
Employee’s Id |
Phone |
Age |
Gender |
Job title |
Salary |
Hire Date |
|
Sam Software |
54321 |
819-123-4567 |
21 |
M |
Programmer |
$223,000 |
12/24/2011 |
|
Mary Coder |
65432 |
310-555-5555 |
28 |
F |
Programmer |
$770,123 |
02/08/2010 |
|
Name |
Department |
Supervisor’s Name |
Raise % |
C++ Knowledge |
Java Knowledge |
|
Sam Software |
5432122 |
Joe Boss |
4 |
Yes |
No |
|
Mary Coder |
6543222 |
Mary Leader |
7 |
Yes |
Yes |
Software Architects
|
Name |
Employee’s Id |
Phone |
Age |
Gender |
Job title |
Salary |
Hire Date |
|
Alex Arch |
88888 |
819-123-4444 |
31 |
M |
Architect |
$323,000 |
12/24/2009 |
|
Sally Designer |
87878 |
310-555-8888 |
38 |
F |
Architect |
$870,123 |
02/08/2003 |
|
Name |
Department |
Supervisor’s Name |
Raise % |
Years of experience |
|
Alex Arch |
5434222 |
Big Boss |
5 |
4 |
|
Sally Designer |
6543422 |
Big Boss |
8 |
I wrote all the code but I'm get errors of redefinition and not sure why,
it's too much to post here trying to get someone to help me with it.
Thank you.
Create a date class with attributes of month, day, and year. Create an employee class for...
Create a date class with attributes of month, day, and year. Create an employee class for storing information related to employee information for the CS1C Corporation. This class should contain the employee’s name, employee’s Id, phone number, age, gender, job title, salary, and hire date. 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. You should use your date class (composition) when accessing hire date....
Design and write a class named Employee that inherits the Person class from the previous exercise and holds the following additional data: ID number, department and job title. Once you have completed the Employee class, write a Python program that creates three Employee objects to hold the following data: Name ID Number Department Job Title Phone Susan Meyers 47899 Accounting Vice President 212-555-1212 Mark Jones 39119 IT Programmer 212-555-2468 Joy Rogers 81774 Operations Engineer 212-555-9753 The Python program should store...
Using C++, Write a class named Employee that has the following member variables: name. A string that holds the employee's name. idNumber. An int variable that holds the employee's ID number. department. A string that holds the name of the department where the employee works. position. A string that holds the employee's job title. The class should have the following constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: employee's name,...
c++ only Design a class representing an Employee. The employee would have at least these private fields (Variables): name: string (char array) ID: string (char array) salary: float Type: string (char array) All the variables except for the salary should have their respective setters and getters, and the class should have two constructors, one is the default constructor and the other constructor initializes the name,ID and type of employee with valid user input. The class should have the following additional...
Write a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title. Don't include a constructor or any other methods. Written in Python and formatted like it says below!!!!! Once you have written the class, write a program that creates three Employee objects to hold the following data: Name ID Number Department Job Title Susan Meyers 47899 Accounting Vice President Mark Jones 39119 IT Programmer Joy Rogers 81774 Manufacturing Engineering...
Define a class named Employee . Derive this class from the class Person. An employee record inherits an employee's name from the class Person. In addition, an employee record contains an annual salary (represented by a single value of type double), a hire date that gives the year hired (as a single value of type int), an identification number of type int, and a department of type String. Give your class a reasonable complement of constructors, accessors, mutators, an equals...
Create a c++ code and answer number 1
Homework Ch. 13 - Employee Class 30 points Design a class named Employee that has the following attributes: * Name ID Number- (Employee's] Identification Number " Department-the name of the department where the employee works " Position-the employee's job title The class should have the following constructors: A constructor that accepts values for all the member data as arguments A constructor that accepts the following values as arguments and assigns them to...
Create a Java application, that support the following: Create an Employee class, which holds following information: Employee First Name Employee Last Name Employee Phone Number Employee Address Employee id Employee Title Employee salary Create an application that uses the Employee class Constructors –Getters and setters A minimum of 3 constructors including default constructor equals() method Helper methods toString() method Create an array of 5 Employee objects Use a Scanner to read in 5 employee information Change 2 employees information (3-items...
Within c++ Create a simple Employee class with name, department, and title. Create an hourlyEmployee class (which inherits from the Employee class) for a basic payroll program to compute the net pay salary of hourly based employees. Your program should also find the average net pay for a small company. To define the class, include the appropriate data members, member functions, constructors, and access modifiers. For simplicity, use a constant tax rate of 30% to compute the tax amount. Employees...
Part (A) Note: This class must be created in a separate cpp file Create a class Employee with the following attributes and operations: Attributes (Data members): i. An array to store the employee name. The length of this array is 256 bytes. ii. An array to store the company name. The length of this array is 256 bytes. iii. An array to store the department name. The length of this array is 256 bytes. iv. An unsigned integer to store...