Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago