Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Java problem) Consider a class StaffMember that represents all workers in a certain organization, some of whom are managers, some are engineers and some are

(Java problem)
Consider a class StaffMember that represents all workers in a certain organization, some of whom are managers, some are engineers and some are administrative assistant. Each staff member has a name, ID, recruitment year and each member get paid monthly based on his type.
Managers: Basic salary + (Basic salary Serving years 0.01) Engineers: Basic salary + (Basic salary Serving years 0.02) Administrative Assistant: Working hours Hourly wage.
You are required to:
A. Implement StaffMember class and all of its subclasses.
B. Implement StaffMembersTest.java class that allows the user to choose from
the following menu options:
1. Add a new staff member.
2. Remove a staff member.
3. Display all staff members in the organization with complete
information.
4. Exit. Note: application will continue until the user chooses 4.
C. In StaffMembersTest.java, you are required to implement the following static methods:
1. displayMenu method that prints the menu and returns the user choice. 2. printMembers method that prints all members info.
3. addMember, that allows the user to add a new member based on the member type.
4. removeMember, that removes a member based on his ID.

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

Oracle PL/SQL Programming Database Management Systems

Authors: Steven Feuerstein

1st Edition

978-1565921429

More Books

Students also viewed these Databases questions