Create an Eclipse Java project that utilize attached Selection Sort and Binary Search algorithms to search for
Question:
Create an Eclipse Java project that utilize attached "Selection Sort" and "Binary Search" algorithms to search for an Employee object in an Employee[] of size 5, for which, need to write an Employee class, which should have first name (type String), last name (type String), and Employee ID number (type int), as well as getters, setters, constructor and necessary compareTo() method that facilitate sorting based on last name or Employee ID number. You need to modify or adapt the attached "Selection Sort" and "Binary Search" methods so that they can work with class objects in this exam project.
In the main() method, populate Employee array with sample Employee objects, perform Selection Sort() to sort the array, then test the binary Search method. The project should prompt the user for an Employee ID to search for, print unsorted array and sorted array as well as Binary Search results by displaying the first name, last name and Employee ID if the Employee object was found, otherwise, inform the user that the Employee object was not found.
Data Structures and Algorithm Analysis in Java
ISBN: 978-0132576277
3rd edition
Authors: Mark A. Weiss