Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to sort a very LARGE number of employee records (hence, not all records can be stored in memory) from a text file
Write a program to sort a very LARGE number of employee records (hence, not all records can be stored in memory) from a text file and write the sorted records into an output text file. The input/output text file contains one employee record on each line with the field values separated by commas. An employee record is defined as followed: class Employee {String lastName; String firstname; int employeeNumber; float salary; int zipcode;} Your program must: - prompt users for the input filename - prompt users for the specific field to allow users to sort the employee records by - inform users of the output filename storing the sorted output records - use the external sorting algorithm discussed in class Requirements: - No Java Collection can be used - No Linked List structure/ADT can be used - No recursive function can be used - Arrays used cannot exceed size 10 Turn in: 1) Source code printouts - don't forget to comment your code 2) A disk (CD/DVD or flash drive) with ONLY the pertinent *.java and *.class files 3) Put everything into a folder 4) The instruction to run your program on DOS' command line in a README.txt file Write a program to sort a very LARGE number of employee records (hence, not all records can be stored in memory) from a text file and write the sorted records into an output text file. The input/output text file contains one employee record on each line with the field values separated by commas. An employee record is defined as followed: class Employee {String lastName; String firstname; int employeeNumber; float salary; int zipcode;} Your program must: - prompt users for the input filename - prompt users for the specific field to allow users to sort the employee records by - inform users of the output filename storing the sorted output records - use the external sorting algorithm discussed in class Requirements: - No Java Collection can be used - No Linked List structure/ADT can be used - No recursive function can be used - Arrays used cannot exceed size 10 Turn in: 1) Source code printouts - don't forget to comment your code 2) A disk (CD/DVD or flash drive) with ONLY the pertinent *.java and *.class files 3) Put everything into a folder 4) The instruction to run your program on DOS' command line in a README.txt file
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