Advertisement
akosiraff

Download Titanic

May 7th, 2015
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/titanic/
  3. Design 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
  4. number of passengers on the Titanic b. Total number of passengers who perished on the Titanic c. Total number of Passengers who survived the sinking of the Titanic d. Number of passengers who survived the sinking of the Titanic as a function of the passenger
  5. class (e.g. 1,2,3) e. Number of passengers who survived the sinking of the Titanic as a function of the passenger gender (e.g., male, female) f. A list of the names of passengers who paid greater than $200 for their tickets g. A list of the names of passengers
  6. who were less than 10 years old who survived the sinking of the Titanic h. A list of the names of passengers who were less than 10 years old who perished on the Titanic i. The count of the number of passengers as a function of the first letter of their last
  7. name. (e.g., A: 13, B:33 …) j. 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
  8. 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.
  9. 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.)
  10. 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
  11. 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
  12. 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 2 application should provide a prompt thanking the user for trying the Titanic program and providing
  13. the total time elapsed. Here is sample run: java TestTitanic Titanic.txt ********** Welcome to the Titanic Statistical Application ************************** Enter the number of the question you want answered. Enter ‘Q’ to quit the program : 1. How many passengers
  14. were on the Titanic?
  15. Download: http://solutionzip.com/downloads/titanic/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement