Click link for more description
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.
IMPORTANT: This program MUST be one .java file with ONE class called Titanic. NO COMMAND LINE. The titanic.txt file must be read into the program. I MUST HAVE A FEW SCREENSHOTS OF THE PROGRAM WORKING IN THE IDE.
I ATTACHED A PROGRAM THAT I BELIEVE IS GOOD, BUT MY TEACHER JUST INFORMED ME THAT WE ARE NOT TO USE ANY COMMAND LINE. SO IF SOMEONE CAN CHANGE THAT AND GET IT TO WORK...GREAT!
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 Titanicb. Percentage of passengers who perished on the Titanicc. Percentage of Passengers who survived the sinking of the Titanicd. 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 Titanicf. 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. Only one class called Titanic .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 separate methods for each of the required functionality. (e.g. getTotalPassengers() will return the total number of passengers on the Titanic.)d. 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.e. The menu system should be displayed within the IDE, 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 selectionf. 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.