subject

#include employee. h" /* Define your class object implementation program here Save the following test driver program to employee_Test. cpp which contains: // Use the below Driver program to demonstrate the class #include "employee. h" #include "print_me_first. h" // please include all other header files and anything you need int main() { print_me_first ("Ron Sha", "Cs - 116: Lab 3 - Employee"); //put your name ! // Create an Employee object to test constructor #1. Employee susan; susan. setInfo("Susan Meyers", 47899, "Accounting", "Vice President"); // Create an Employee object to test constructor #2. Employee mark; Mark. setInfo("Mark Jones", 39119,"Dept", "Title"); mark. setDepartment("IT"); I mark. setPosition("Programmer"); ! // Create an Employee object to test constructor #3. Employee joy; joy. setName("Joy Rogers"); joy. setIdNumber(81774); joy. setDepartment("Manufacturing"); joy. setPosition("Engineer"); // Display each employee's data. displayEmployee(susan); displayEmployee(mark); I displayEmployee(joy); return 0; } Use the test driver program as test cases for your program and your program should output similar to the one below: 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: • 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 written the class, write a separate program that creates three Employee objects to hold the following data: (Use the driver test program) Name ID Number Department Position Susan Meyers 47899 Accounting Vice President Mark Jones 39119 IT Programmer Joy Rogers 81774 Manufacturing Engineer You must use Makefile or similar to compile multiple cpp files into an executable program. • You need to define the class object definition in a .h header file. Save the file in employee. h Your employee. h should use #ifndef EMLOYEE_H #define EMPLOYEE_H /* define the class object Employee here */ #endif You need to place the class object implementation file in Employee. cpp You Employee. cpp should include employee. h Course Info: CS - 116: Lab 2 Date: Sun Feb 11 15:03:36 2018 Name: Susan Meyers ID Number: 47899 Department: Accounting Position: Vice President Name: Mark Jones ID Number: 39119 Department: IT Position: Programmer Name: Joy Rogers ID Number: 81774 Department: Manufacturing Position: Engineer

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which is produced by the endocrine system to control how cells and organs function
Answers: 2
question
Computers and Technology, 21.06.2019 23:30
You picked the corridor which led you here. if the guards find you, they're going to be really angry! what is the synonym of angry
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
You know the right answer?
#include employee. h" /* Define your class object implementation program here Save the following tes...
Questions
question
Physics, 22.10.2020 17:01
Questions on the website: 13722367