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 2
[28]
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, part-time, 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 human-readable 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.
2.1. Write a piece of code which define a class to represent a staff member in this application (10)
2.3. How would you handle storing a list of staff members in this application?
2.4. What basic design principle should be followed when designing the StaffMember class?
2.5. Write a code that define a method to save the staff members list to a file in a human-readable format?
2.6. 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.
Question 2 [ 2 8 ] Scenario Two Read the scenario

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!