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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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