Question: Create a c++ code and answer number 1 Homework Ch. 13 - Employee Class 30 points Design a class named Employee that has the following
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 the appropriate member variables: Name and ID number. The department and position fields should be assigned empty strings( . . A default constructor that assigns empty strings(to the name, department and position member variables, and 0 to the ID Number Write appropriate mutator functions that store values in these member variables and accessor functions that return the values in these member variables. Once you have designed and written the class, write a separate program that crates three Employee objects to hold the following data: D Number Department 47899 9119 81774 Position Vice President Name Susan Meyers Mark Jones Joy Rogers IT The program should store this data in three objects and also display them. Please submit the following: 1. Your analysis What data member(s) and data types will you use to model the Employee attribute(s) a. 2. Your UML 3. Your source code, the entire project including all cpp and h files 4. The program output CIS-2541 C++ Language Programming Homework Ch. 13-Employee Class Points will be given based on the following requirements: . Program Specifications/ Correctness . Readability . Code Efficiency
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
