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, 22.06.2019 22:30
You are new to microsoft certification and want to start out by getting a certification geared around windows 8. what microsoft certification should you pursue?
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
Suppose you have 9 coins and one of them is heavier than others. other 8 coins weight equally. you are also given a balance. develop and algorithm to determine the heavy coin using only two measurements with the of the balance. clearly write your algorithm in the form of a pseudocode using the similar notation that we have used in the class to represent sorting algorithms
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
Visually impaired individuals generally rely on the for navigation. thus, designers need to ensure that mouse-specific inputs, such as pointing, clicking, and hovering, can be done without a mouse.
Answers: 1
You know the right answer?
#include employee. h" /* Define your class object implementation program here Save the following tes...
Questions
Questions on the website: 13722363