Write a complete java console program to load the data file

Assignment Help Computer Engineering
Reference no: EM131853471

Assignment

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.

Reference no: EM131853471

Questions Cloud

What is environmental planning : Question: What is environmental planning and how has it helped or hurt the environment?
How algorithm could be implemented to search data structure : For 1 of the selected search algorithms, write pseudocode, and create flowchart to show how algorithm could be implemented to search data in the data structure.
Compare the two projects using the payback model : Compare the two projects using the payback model.Compare the two projects using the net present value model.
Which products should the company include in offerings : Locating a business can be a very complicated project. Select a company that is expanding in the U.S. and research factors that contribute.
Write a complete java console program to load the data file : For this assignment, you will write a complete Java console program to load the data file into an ArrayList data structure.
Calculate the arithmetic average of the test scores : A local university administers a comprehensive examination to the recipients of a B.S. degree in Business Administration.
Explian how well staff is able to handle the option : Explian how well staff is able to handle the option, Consistency with business group strategies and vision and Tool available that work with the type of system.
Discipline in the humanities learned : This discussion:What discipline in the humanities learned about this week (Art, Literature, or Music) do you feel has historically been the most important
Locate your top five potential funding sources for business : Locate your top five potential funding sources for your small business. These sources can be found online, in newspapers, trade publications.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd