Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The goal of this assignment is to reinforce the concept of linked lists in Java. Problem Name: Linked List Assignment: Employee Management System Problem Description:
The goal of this assignment is to reinforce the concept of linked lists in Java. Problem Name: Linked List Assignment: Employee Management System Problem Description:
You are tasked with implementing an Employee Management System using linked lists in Java. The system should be able to perform basic operations such as adding, deleting, and displaying employee records. Each employee record should store information such as employee ID name, position, and salary.
Requirements:
Employee Class:
Create a class named Employee with the following attributes:
int employeeIDString name
String positiondouble salary
LinkedList Class:
Implement a linked list to store Employee objects.
Create a class named EmployeeLinkedList with the following methods:
void addEmployeeEmployee emp Add a new employee to the list.
void deleteEmployeeint employeeID Delete an employee by their IDvoid displayEmployees Display details of all employees in the list.
MenuDriven Program:
Implement a menudriven program in the main class that allows users to interact with the Employee
Management System.
The menu should include options for:
Adding a new employee Deleting an employee
Displaying all employees Exiting the program
Data Validation:
Validate user input to ensure that the employee ID is unique, and that salary is a positive number. Handle edge cases gracefully eg deleting an employee not in the list
Example:
java
public class Employee
Employee class implementation
public class EmployeeLinkedList
LinkedList class implementation
public class EmployeeManagementSystem public static void mainString args
Menudriven program implementation
Submission Guidelines:
Submit the Java source code files.
Include comments to explain your code.
Provide a brief report on the design choices you made, challenges faced, and any improvements you would make if you had more time.
Submission:
Please submit to the assignment submission folder in DL by the due date posted in DL No zip file submission. No late submissions are accepted. Once again, please include author header block in each file no headers, no points.
Name:
Class:
Term:
Instructor: Assignment:
CS Section#
Umama Tasnim
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started