Question: 1. Define a Java class called Employee. The class has data members and accompanying accessor and mutator methods for each of the following six data

 1. Define a Java class called Employee. The class has data

1. Define a Java class called Employee. The class has data members and accompanying accessor and mutator methods for each of the following six data items. (This involves creating the file Employee.java.) * id (string) name (string) salary (double) department (string) position (string) "years of service (integer) 2. Create a text (data) file containing data for at least five different employees (objects). Let each data item sit on its own line in the text file. For example, the first six lines of the file might look like: 086244 Sally L. Smith 100000.00 Accounting Manager 3. 'Heap' is a tree-based data-structure that satisfies the heap property. A max-heap is a complete binary tree in which the value in each internal node is greater than or equal to the values in the children of that node. By having a heap (or an array that satisfies the heap property), it would be more efficient ( perform important tasks on the array such as finding the maximum element in the array (and removing it) and sorting the array faster) to In this assignment, you will have to write a program that reads a list of employees from a file. The name of the file will beEmployee.txt.. The program should output the sorteda array to a file called "SortedEmployee.txt

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 Databases Questions!