Even complicated and confusing topics will be easily developed and covered if you request our help writing an essay. Place an order today!

One of the fundamental requirements of programs is to use data stored

in permanent storage such as a hard disk file. Programs must be able to

read and write this type of data and use appropriate data structures

within the program to work with the data. In this assignment, you will

write a program to load and manipulate a data file. The data file can be

downloaded from the following link: Unit 4 Sample Data.

The file should not be a comma delimited file and should have the following record structure:

  • FirstName – Character – Size (12)
  • LastName – Character – Size (16)
  • Company – Character – Size (32)
  • Address – Character – Size (32)
  • City – Character – Size (24)
  • County – Character – Size (24)
  • State – Character – Size (2)
  • ZIP – Number – Size (5)
  • Phone – Character – Size (12)
  • Fax – Character – Size (12)
  • Email – Character – Size (32)
  • Web – Character – Size (42)

Step 1:For this assignment, you will write a complete Java console program to load the data file into an ArrayList data structure. Store each line from the file as a separate record in the ArrayList. To read the file, you should use a FileReader wrapped in a BufferedReader. If you create a Java class to contain each record, you will be able to create an object for each record and store the object in the ArrayList. Sorting the data can then be done using another wrapper class that contains the ArrayList and has methods for sorting and output of the data.

Step 2:After the file is loaded into the ArrayList, sort the data in ascending order based on the LastName field, and display the following fields:

  • First name
  • Last name
  • Company

Step 3:Next, sort the data in descending order based on the ZIP field, and display the following fields:

  • First name
  • Last name
  • Company
  • ZIP

Step 4:Display all of the records (and all of the fields) for everyone that is in the state "NY."

Step 5:The submission should be a single MS Word document with the program source code for the solution and screenshots of the output for the following list:

  1. Sorted data based on last name
  2. Sorted data based on ZIP
  3. Everyone in the state of NY

testimonials icon
 PLEASE READ BELOW AND ANSWER ABOVE QUESTION. IN 300 WORDSPursing a doctorate degree especially when you have been out of school for a long...
testimonials icon
Course titleStudent nameInstitution affiliation1Response to VarshaThe application of situational awareness into cybersecurity has helped many organiz...
testimonials icon
Need TONIGHT (in a couple of hours), 360 words per bullet for ALEXIS (in bold), APA style for MKT/421 with references....
testimonials icon
Resources: Undergraduate APA Sample Paper, Center for Writing ExcellenceThere are several factors that can influence the a...
testimonials icon
  How Do We Compare to other Health Care Organizations-  ...
testimonials icon
  THE HISTORY, DEFINITION, AND USE OF LEADERSHIP COMPETENCY MODELS WERE ADDRESSE...
testimonials icon
Describe an application of epidemiology and give a current, real world example of it. 250 words with a least 2 scholarly reference. ...
testimonials icon
Module 05 Project - Bank Lending PracticesFor this phase of the course project, you will conduct additional research for th...
testimonials icon
  PLEASE COMPLETE BY APRIL 21, 2017 Social, Ethical, and Legal Implications...
testimonials icon
  Elizabeth Jones, FNP-BC, has been an NP for 8 years. She has worked in the primary care setting, as well as the urgent care setting. She...

Other samples, services and questions:

Calculate Price

When you use PaperHelp, you save one valuable — TIME

You can spend it for more important things than paper writing.

Approx. price
$65
Order a paper. Study better. Sleep tight. Calculate Price!
Created with Sketch.
Calculate Price
Approx. price
$65