Question: Needing help writing this program.. is it all in one? I attached the rubric Exercise1 : Defining Employee type and Creating a Driver Employee class

Needing help writing this program.. is it all in one? I attached the rubric  Needing help writing this program.. is it all in one? I
attached the rubric Exercise1 : Defining Employee type and Creating a Driver
Employee class private members , int phoneNumber: I/must be 7-digits , std:string

Exercise1 : Defining Employee type and Creating a Driver Employee class private members , int phoneNumber: I/must be 7-digits , std:string name: I/cannot be the empty string . std:string department: /must be a valid department code (see below) . All department codes are case-sensitive and these are the only valid codes: * "MARKETING" R&D ."GLOBAL" e double salary: I/cannot be negative You may also create some private helper method to do things like... , count the number of digits in a phone number public members . The following public setters should return false and NOT set the value if the parameter passed in is invalid . Return true and set the value if the parameter is valid , bool setPhoneNumberlint num) . bool setName(std:string name , bool setDepartment(std:string dept) , bool setSalary(double salary) . bool isSameDeptconst Employee& otherEmployee) . Take another Employee by const reference (see more notes below) . Returns true if the other Employee works in the same department: return false otherwise Reminders: . Remember. you will need a header file (h) and an implementation file (cpp) . You'll also need to update your Makefile NOTE: The Employee class should not do any input or output EmployeeDriver class private members Employee empl: Employee emp2: , void obtainEmployeed) e Talk with the user to obtain the data needed to create two employees It does not validate the values, but rather checks the return value from a call to Employee's methods , void printEmployeelnfoo) - Prints the following information about each of the Employees to the screen: - Their names. phone numbers, salaries. and departments - Lastly print whether or not the two Employee work in the same department . Again, you must use the Employee's methods to discern this, not just check the department strings locally

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!