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
America is full of conversational monologues; he uses several literary and poetic devices to challenge several aspec...
testimonials icon
Special educators have an important role as case managers to collaborate with teachers, related service providers and parents while working with st...
testimonials icon
Running head: SUBTLE NUANCESSubtle Nuances and Secrets of Listening: The Lost Art and Most Difficult of all SciencesName of StudentName of Institutio...
testimonials icon
Support or criticize the statement that rude gestures (e.g., showing the middle finder to a police officer, etc.) would constitute fighting wo...
testimonials icon
In the United States, the majority of dams are old and close to failing. In fact, the average age...
testimonials icon
Module 4 – CaseAppreciative InquiryCase AssignmentFor this assignment, first carefully review the required background...
testimonials icon
 This assignment consists of three (4) sections: a written project plan, revised business requirements document, project plan PowerPoint presentat...
testimonials icon
A summary of the book (exposition of lean principles used in the book): You may summarize the book focusing on the following questions: ...
testimonials icon
there are two questions technically very easy. if you need more information let me know and i will post more photos i think this should be...
testimonials icon
3. (TCO 6) Yappy Company is considering a capital investment of $320,000 in additional equipment. The new equipment...
testimonials icon
Accounting is the study of how businesses track their income and assets over time. Accountants engage in a wide variety of activities in addition t...
testimonials icon
 Executive Summary Contents List of tables an...

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