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: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Database Systems For Advanced Applications Dasfaa 2023 International Workshops Bdms 2023 Bdqm 2023 Gdma 2023 Bundlers 2023 Tianjin China April 17 20 2023 Proceedings Lncs 13922

Authors: Amr El Abbadi ,Gillian Dobbie ,Zhiyong Feng ,Lu Chen ,Xiaohui Tao ,Yingxia Shao ,Hongzhi Yin

1st Edition

3031354141, 978-3031354144

More Books

Students also viewed these Databases questions

Question

a neglect of quality in relationship to international competitors;

Answered: 1 week ago