Test a java application that will read file containing data

Assignment Help JAVA Programming
Reference no: EM131122003

1. Design, Implement and test a Java application that will read a file containing data related to the passengers on the Titanic. The description of the file is shown below. The application should provide statistical results on the passengers including:

a. Total number of passengers on the Titanic

b. Percentage of passengers who perished on the Titanic

c. Percentage of Passengers who survived the sinking of the Titanic

d. Percentage passengers who survived the sinking of the Titanic as a function of the passenger class (e.g. 1,2,3)

e. A list of the names of passengers who were less than 10 years old who perished on the Titanic

f. The count of the number of passengers as a function of the first letter of their last name. (e.g., A: 13, B: 33 ...)

g. At least one additional statistical results you add to enhance the functionality.

The following are some design criteria and specific requirements that need to be addressed:

a. Use command line arguments to send in the name of the Titanic file.

b. Use a 2D array to store the Titanic data. (Hint: You will probably need to store the array as String values and then convert to other types as needed since some data is null)

c. You should create at least 2 Java classes - Titanic and TestTitanic. You are welcome to create additional classes if you want to further separate the functionality.

d. You should create separate methods for each of the required functionality. (e.g. getTotalPassengers() will return the total number of passengers on the Titanic.)

e. A user-friendly and well-organized menu should be used for users to select which data to return. A sample menu is shown in run example. You are free to enhance your design and you should add additional menu items and functionality.

f. The menu system should be displayed at the command prompt, and continue to redisplay after results are returned or until Q is selected. If a user enters an invalid menu item, the system should redisplay the menu with a prompt asking them to enter a valid menu selection

g. The application should keep track of the elapsed time (in seconds) between once the application starts and when the user quits the program. After the program is exited, the application should provide a prompt thanking the user for trying the Titanic program and providing the total time elapsed.

Reference no: EM131122003

Questions Cloud

Define a conditional sales contract a chattel mortgage : Define the following: a. A conditional sales contract b. A chattel mortgage
Evaluate the top-three concepts covered in the course : Evaluate the top-three concepts covered in this course that provided the most value to you and how you might incorporate those concepts or processes into your current job or future endeavors.
What does water seem to represent in these works : "Yet Do I Marvel" contains many classical references. Look up the meaning of one of them. Explain what that reference contributes to your understanding of the poem. How does it relate to the overall message?
Prepare the end-of-month closing entries : Prepare the end-of-month closing entries. Record these entries in the general journal and post them to the general ledger. Update balances in the general ledger accounts.
Test a java application that will read file containing data : Design, Implement and test a Java application that will read a file containing data related to the passengers on the Titanic
Alpine consulting is a consulting firm owned and operated : Alpine Consulting is a consulting firm owned and operated by Scott Young. The end-of- period spreadsheet (work sheet) shown below was prepared for the year ended March 31, 2010.
What are the ethical issues raised by this procedure : Compare your reactions to that procedure with your reactions to an analogous one in which people are given false feedback that they possess a very favorable personality trait or a very high ability level.
Would you consider the problem to be tractable why : Would you consider the problem to be tractable? Why?
Discuss achebe own work in light of this essay : In "An Image of Africa: Racism in Conrad's Heart of Darkness," Nigerian novelist Chinua Achebe critiques Conrad's representation of Africa and European imperialism. Discuss Achebe's own work in light of this essay. What exactly does Achebe think i..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a statement to output the volume of the blue box

Write the statement to instantiate an Box object, blueBox, with a length of 6, width of 4, and height of 2. Write a statement to output the volume of the blue box

  Write a java loop

write a java loop ( of your choice ) that produces exactly the following output to the screen: 2-4-6-8-

  Create an interface that includes a group box

Create an interface that includes a group box that contains 3 check box and 3 text box, the three text boxes should be invisible when the application starts

  Discussion htmlcssjavascript placementnbspplease respond to

discussion htmlcssjavascript placementnbspplease respond to the followingcompare and contrast the process of adding

  Write a method heading for each method

Write a method heading for each method, write preconditions and postconditions for each method.

  Explain how cookies are used to implement sessions

Describe a set of four methods that a queue would need to implement using a circular array and show the Java code to implement them if using an implementation given the outline definition below. Do not use any methods of the Collection classes.

  An n n matrix is called a positive markov matrix

An n n matrix is called a positive Markov matrix if each element is positive and the sum of the elements in each column is 1. Write a program MarkovMatrix.java that prompts the user to enter a 33 matrix of double values. Use a method with the followi..

  Write a function that searches a [n][n] matrix

there is a y or multiple y values with a blank on one side (left/right or top bottom) and a x on the other

  Create a method that would search through an arraylist

What is the best way of the following ways (For each, Iterator, While with index) that you would use to create a method that would search through an ArrayList of files for a certain file and then delete it, and why?

  What is a java package and how is it used

What is a Java package and how is it used? What are synchronized methods and synchronized statements?

  Java socket hello i need to this assignment done in net

hello i need to this assignment done in net beans . and i want comment in code .also screen shots of running program

  The project involves benchmarking the behavior of java

The project involves benchmarking the behavior of Java implementations of one of the following sorting algorithms, bubble sort, selection sort, insertion sort, Shell sort, merge sort, quick sort or heap sort. You must post your selection in the "Ask ..

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