Answered step by step
Verified Expert Solution
Link Copied!

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 #2
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:
1. Declare a class (using the name employee) with the following data items
Employee Number: a 9-digit integer number
Name: up to 30 characters
Age: a 2-digit integer number
Gender Code: single character
Education: two character code. For example HS(High School),
AD(Associate Degree), CD(Coll. Degree), MD(Masters Degree)
2. A worker class, which includes the above data items and has the following additional data items:
Hiring Date: in MM/DD/YYYY format
Dept. Name: 4 characters, for example ACCT(Accounting), SALE(Sales)
HUMN(Human Resources)
Hourly Rate: float
3. A manager class which includes the data items in class employee and has these additional data items:
Date of Promotion: in MM/DD/YYYY format
Department Name: 4 characters
Job Title: 20 characters
Yearly Salary: float
Your program should be menu-driven, 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 3 and workers to 5 such that if a user attempts to add 4th manager a warning should be displayed informing the limit has been reached. Same with adding 6th worker.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

1. Why do people tell lies on their CVs?

Answered: 1 week ago

Question

2. What is the difference between an embellishment and a lie?

Answered: 1 week ago