List data structures to be used in solution

Assignment Help JAVA Programming
Reference no: EM13313121

Objectives:

1. To gain experience with string objects.
2. To gain ArrayList
3. To gain experience with generic algorithms.
4. To gain experience with reading from a file and writing to a file.

Documentation:

1. Explain the purpose of the program as detail as possible
2. Develop a solution for the problem and mention algorithms to be used
3. List data structures to be used in solution.
4. Give a description of how to use the program and expected input/output
5. Explain the purpose of each class you develop in the program.

Programming:

6. For each method, give the pre and post conditions and invariant, if any
7. Program execution according to the requirements given
8. Naming of program as required
9. Print out of source code

Description of program:

You are to write a program that will prompt the user for an input file name to read from. The Input file will consist of records made up of first name, last name and an account balance of individuals and store the individuals in an ArrayList. Each line in the file would be made up of one record starting with the last name, first name and account balance. Each token is separated by ONE space. The individuals names' must be inserted in sorted order into the list - sort by last name and then first name.

The program must be named "test_Array_list.java" .

10. Display the contents from the list to the screen and into an output file - "output.txt".

11. Count the amount of individuals in the list and display the value on the screen and the output file.DO NOT USE ANY LIBRARY FUNCTION TO COUNT. YOU MUST WRITE YOUR OWN COUNTING FUNCTION.

Reference no: EM13313121

Previous Q& A

  Determine the kinetic energy of the system

A 4.0 kg mass and a 3.0 kg mass are attached to the opposite ends of a thin 42.0 cm long horizontal rod. determine the kinetic Energy of the system

  Evaluate apples resources and competitive position

Critically analyse how leadership impacts on the organisational culture of Apple and evaluate Apple's resources and competitive position.

  How do you find the maximum axial load using asd

An 8x12 column of No. 1 Spruce-Pine-Fir(South) has an unbraced length for buckling about the strong x axis of 16 feet and an unbraced length for buckling about the weak y axis of 8 ft. Cm = 1.0 and Ct = 1.0

  Determine the final velocities of both balls

A ping pong ball of mass 100 grams travelling at 10 m/s hits a stationary bowling ball of mass 3 kg, head on. determine the final velocities of both balls

  Determine the speed at which it crashed on the ground

At the beginning of 2013, an asteroid crashed in Russia, making for a very spectacular Youtube clip. determine the speed at which it crashed on the ground

  Emerging economics encourages globe economic development

ON ETHICS: Some argue that investing in emerging economics encourages globe economic development. Other contend that moving jobs to low-cost countries not only abandons firms' domestic CSR in developed economies, but also exploits the poor in low-cos..

  How long would it take to fill the available storage space

How many cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer.

  Determine the speeds and kinetic energies of both objects

A 250 g Teddy Bear and a 5 kg baby stroller are nudged off a window sill and fall 5 meters to the ground. Determine the speeds and kinetic energies of both objects

  What is the average force on the bullet

A 7.38- g bullet is moving at 670.00 m/s as it leaves the 0.62- m-long barrel of a rifle. What is the average force on the bullet

  Methodology for use in the gdtc is the project

Your supervisor is a aware of many different system life cycle models and requires you to describe, using diagrams and an appropriate range of at least two models and to distinct approaches that are common usage.

Reviews

Write a Review

 

Similar Q& A

  Develop a java application

Your task is to develop a Java Application that allows the user to read travel booking data from a text file, save data in a file, display data in a text area, sort data by booking name and search data by booking name.

  Java program to decide whether integer is perfect number

For example, 6 is a perfect number because 6 = 1 + 2 + 3. Write a Java program that decides whether integer is a perfect number.

  Write a class and client class that stores hotels ratings

Write a class and client class that stores hotels ratings over the years. The number of stars represents hotel ratings. Use a two dimensional integer array to represent the years and hotels

  What violations and crimes would you definitely file

What if you were a parole officer and had to decide whether or not to file complaints against your parolees? What violations and crimes would you definitely file complaints for and what would you most likely overlook and why?

  Compare the average completion times of all jobs

Compare the average completion times of all jobs for each scheduling algorithm. Output the details of each algorithm's execution. You need to show which jobs are selected at what times as well as their starting and stopping burst values. You can choo..

  Write a program that converts number from binary to decimal

write a program that Converts a Number from Binary to Decimal  by using reading keyboard input.

  Typical industrial engineering problem

A company manufactures two products, A and B. Product A can be sold for $145 per unit and B for $75 per unit. Management requires that at least 1850 units be manufactured each month.

  Class pointparameters

What is the output of the following Java program? Explain in terms of how parameters are passed in Java.import java.awt.*;class PointParameters

  Mutant bacterium-synthesize the amino acid tyrosine

Consider a mutant bacterium you have isolated which is unable to synthesize the amino acid tyrosine. You grow it in the presence of a chemical mutagen and isolate a single revertant, which is now able to grow in the absence of tyrosine

  An api for a library that provides for all these operations

Quaternions can be represented with four (4) real numbers (a,b,c,d). They can be added, subtracted, multiplied and divided. You can multiply a quaternion by a scalar (which produces a quaternion as a result)

  Using an array in java

Using an array in Java - have a list of keywords from a web service and have to print out the list of keywords on the screen with one keyword on each line. This is my code

  Create a world class that contains a 2d array

You have to create a world class that contains a 2d array then create an abstract class called organism that contains move() method the organism should move randomly one step at the time.

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