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, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
question
Computers and Technology, 24.06.2019 21:40
Assume you need to test a function named inorder. the function inorder receives three int arguments and returns true if and only if the arguments are in non-decreasing order: that is, the second argument is not < the first and the third is not < the second. write the definition of driver function testinorder whose job it is to determine whether inorder is correct. so testinorder returns true if inorder is correct and returns false otherwise. for the purposes of this exercise, assume inorder is an expensive function call, so call it as few times as possible!
Answers: 1
question
Computers and Technology, 25.06.2019 15:30
What is the function of a computer screen?
Answers: 1
question
Computers and Technology, 25.06.2019 16:30
How many times do you usually use npm? put your answer in the box.
Answers: 1
You know the right answer?
#include employee. h" /* Define your class object implementation program here Save the following tes...
Questions
question
Physics, 04.12.2020 07:20
question
History, 04.12.2020 07:20
question
Arts, 04.12.2020 07:20
question
Mathematics, 04.12.2020 07:20
question
History, 04.12.2020 07:20
question
Mathematics, 04.12.2020 07:20
Questions on the website: 13722363