Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise # 2 Write C + + program to maintain employee information for a business. There are two groups of employees, manager and worker .
Exercise #
Write C program to maintain employee information for a business. There are two groups of employees, manager and worker The suggested approach to complete the program is as follows:
Declare a class using the name employee with the following data items
Employee Number: a digit integer number
Name: up to characters
Age: a digit integer number
Gender Code: single character
Education: two character code. For example HSHigh School
ADAssociate Degree CDColl Degree MDMasters Degree
A worker class, which includes the above data items and has the following additional data items:
Hiring Date: in MMDDYYYY format
Dept. Name: characters, for example ACCTAccounting SALESales
HUMNHuman Resources
Hourly Rate: float
A manager class which includes the data items in class employee and has these additional data items:
Date of Promotion: in MMDDYYYY format
Department Name: characters
Job Title: characters
Yearly Salary: float
Your program should be menudriven, such that when it starts, the main menu will display options such as: add manager, add worker, display manager, display worker, modify manger, modify worker.....etc. By selecting an option, corresponding function of different classes will be executed.
Limit the number of manager to and workers to such that if a user attempts to add th manager a warning should be displayed informing the limit has been reached. Same with adding th worker.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started