Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment Title: Employee Management System Implementation in Java Instructions: In this assignment, you are required to create a Java program that implements an Employee Management

Assignment Title: Employee Management System Implementation in Java
Instructions: In this assignment, you are required to create a Java program that implements an Employee
Management System using object-oriented principles. The system should consist of the following classes:
Employee Class:
Attributes: employeeID, name, department, salary, designation
Methods:
Accessor and mutator methods for all attributes
equals method to compare employees based on their designations
addBonus method to calculate the salary with a default bonus of $200? month
Manager Class (Subclass of Employee):
Methods:
Override the addBonus method to calculate the salary with a bonus of $300? month
Clerk Class (Subclass of Employee):
Methods:
Override the addBonus method to calculate the salary with a bonus of $100? month
Main Class:
Testbed for the system
Create instances of Employee, Manager, and Clerk with sample data
Demonstrate the use of methods like display, addBonus, and calculateDeductions
Calculate and display the total deductions for all employees based on their leave records (considering 20 working days per month)
Your program should showcase the following concepts:
Inheritance: Use of subclass (Manager and Clerk) extending superclass (Employee)
Method Overriding: Override the addBonus method in subclasses to customize behavior
Polymorphism: Use of overridden methods to achieve different behaviors based on the object's type
Submit your Java program with appropriate comments and test cases to demonstrate the functionality of the Employee Management System.
image text in transcribed

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago