Computers and Technology

#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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:30, ibrahimuskalel
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
image
Computers and Technology, 22.06.2019 22:30, hmontalvo22
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, valeriegarcia12
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, cam961
What are "open-loop" and "closed-loop" systems
Answers: 1
Do you know the correct answer?
#include employee. h" /* Define your class object implementation program here Save the following tes...

Questions in other subjects:

Konu
Mathematics, 03.12.2020 19:00
Konu
Mathematics, 03.12.2020 19:00
Konu
History, 03.12.2020 19:00
Konu
Mathematics, 03.12.2020 19:00