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

  Make an explicit statement of the invariant of the set class

Write a new container class called ser, which is similar to a bag, except that a set can contain only one copy of any given item, You will need to change the interface a bit. For example, instead of the bag's count function, you'll want a constant..

  Prepare a basic code to do the followingwrite a program

prepare a basic code to do the following.write a program that shows the current time and date evaluated from the

  Development of a graphical user interface

Understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

  Write a program which randomly chooses an integer

Write a program which randomly chooses an integer from 1 to 100. The program should then tell the user.The program should then ask the user to complete the puzzle such that each row and each column consists of the letters

  Cognitive-based approaches to understanding motivation

Compare and contrast the need-based and cognitive-based approaches to understanding motivation?

  What are the main differences between javabeans and applets

What are the main differences between JavaBeans and applets? How do I use an applet that resides on a remote machine?

  Type i and type ii virtualizations

Compare and contrast at least two (2) similarities and two (2) differences between Type I and Type II virtualizations. Using your comparison, choose either a Type I or Type II virtualization and determine a specific networking scenario in which yo..

  An elementary calculation yields the result

An elementary calculation yields the result that theoretically, the probability of turning up 7 when two dice are thrown is 1/6, or .166666. But what if more dice are thrown? If 3 dice are thrown, what is the probability that some 2 of three sum to 7..

  Build a thread system

Identify all Nachos classes that you will modify and where you plan to do you modifications - Identify all classes that you plan to implement and give the API for each class,

  Complete the method named countoutofrange

The element is greater than or equal to min AND less than or equal to max. The method should return the new array -

  The williamsburg women''s club

The Williamsburg Women's Club offers scholarships to local high school students who meet any of several criteria. Write an application that prompts the user for a student's numeric high school grade point average (for example, 3.2), the student's num..

  Create a data set with 100 integer values.

Create a data set with 100 integer values. Create a program that uses the division method of hashing to store the data values into hash tables with table sizes of 7,,51 and 151. Use the linear probing method of collision resolution. Print out the ..

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