Question: Question 2 [ 2 8 ] Scenario Two Read the scenario below and answer the questions that follow: You are developing an application to manage
Question
Scenario Two
Read the scenario below and answer the questions that follow:
You are developing an application to manage staff member details for an organization. Each staff member's data includes their name, birthdate, and appointment type which can be one of the following: permanent, parttime, or contract The appointment type should be stored and handled as an enum. The application will feature a GUI that allows users to input staff details. Once entered, these details should be stored in a list or other appropriate container box or cylinder Additionally, the user should be able to save this list to a file in a humanreadable format when needed.
As you design this solution, ensure that you adhere to basic design principles, avoid common antipatterns, and implement all necessary getter and setter functions.
Write a piece of code which define a class to represent a staff member in this application
How would you handle storing a list of staff members in this application?
What basic design principle should be followed when designing the StaffMember class?
Write a code that define a method to save the staff members list to a file in a humanreadable format?
Design and implement the StaffManager class that will manage the list of staff members. Include methods for adding new staff members, removing staff members, and retrieving all staff members.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
