Question: Programming Assignment # 5 Employee Management GENERAL DESCRIPIION: Create an employee management system to manage set of employee information for human resources department of a

Programming Assignment #5
Employee Management
GENERAL DESCRIPIION:
Create an employee management system to manage set of employee information for human resources department of a company
DATA MODEL DEFINITION:
Employee: class with following private instance and static variables
lastAssignedId: static integer variable used to generate id starting at 200
id: auto-generated integer instance variable using static lastAssignedld field to set the value upon creation
name: string instance variable of format "FirstName LastName"
department: string instance variable with one of these values - Sales, Technology, or Executive. When creating object or setting department, validate that the department is one of these 3 values only. If the department is not valid, do not set the instance variable and throw an IllegalArgumentException with message: "Invalid Department fieldValue - only Sales, Technology, or Executive are allowed" where fieldValue is value of invalid department
phoneNumber: string of format "xxx-xxx-xxxx" where first 3 digits are the area code
METHODS DEFINITION:
All classes should have the following public instance methods:
Default constructor with no arguments
Constructor with all fields
Demo Requirements:
Write a demonstration program that will create multiple employees, store them in an array, demonstrate boolean methods, and print out all employees. You must include a try catch when creating objects where you demonstrate catching the IllegalArgumentException. You do not need to do user input. You should create at least 5 employee objects and store them in an array.
UML Class DIAGRAM:
The Employee class must match the information given in this class diagram.
\table[[Employee],[-lastAssignedId: int =200
Programming Assignment # 5 Employee Management

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!