Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Construct a Class definition to represent an employee of a company. Each employe

ID: 3645063 • Letter: C

Question

Construct a Class definition to represent an employee of a company. Each employee is defined by an integer ID number, a double-precision pay rate, and the maximum number of hours the employee should work each week. The class should provide these services:the capability to enter data for a new employee, the capability to change data for a new employee, and the capability to display existing data for a new employee.

Include the class definition created above in a working C++ program that asks the user to enter data for three employees and then displays the entered data.

Also modify the program written above (asking the user to enter data for 3 employees & displaying it) to include a menu that offers the user the following choices:
1. Add an employee
2. Modify employee data
3. Delete an employee
4. Exit this menu

In response to the user's choice, the program should initiate an action to implement the choice.

Explanation / Answer

#include using namespace std; class Employee { public: int getID(void); float getPayRate(void); int getHours(void); void setID(int); void setPayRate(float); void setHours(int); void viewInfo(void); private: int ID; float payRate; int hours; }; int Employee::getID() { return ID; } float Employee::getPayRate() { return payRate; } int Employee::getHours() { return hours; } void Employee::setID(int value) { ID = value; } void Employee::setPayRate(float value) { payRate = value; } void Employee::setHours(int value) { hours = value; } void Employee::viewInfo() { cout