Solution 1 1 Allen Miss Elisabeth Walton female 29 211 3375 1 1 Allison Master Hudson Trevor male 0 9167 151 5500 1 0 Allison Miss Helen Loraine female
Solution Allen Miss Elisabeth Walton female Allison Master Hudson Trevor male Allison
Solution Allen Miss Elisabeth Walton female Allison Master Hudson
Elisabeth Walton female Allison Master Hudson Trevor male Allison Miss Helen Loraine female
Solution Allen Miss Elisabeth Walton female Allison Master
Hudson Trevor male Allison Miss Helen Loraine female
Solution Allen Miss Elisabeth Walton female
Solution Allen Miss
(Solution) 1 1 Allen, Miss. Elisabeth Walton female 29 211.3375 1 1 Allison, Master. Hudson Trevor male 0.9167 151.5500 1 0 Allison, Miss. Helen Loraine female...

Category: General
Words: 1050
Amount: $12
Writer:

Paper instructions

Design a Java application that will read a file containing data related to thepassengers 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. Total number of passengers who perished on the Titanicc. Total number of Passengers who survived the sinking of the Titanicd. Number of passengers who survived the sinking of the Titanic as a function of the passenger 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 ticketsg. A list of the names of passengers who were less than 10 years old who survived the sinking of the Titanich. A list of the names of passengers who were less than 10 years old who perished on the Titanici. The count of the number of passengers as a function of the first letter of their last name. (e.g., A: 13, B:33 ...)j. Additional statistical results you add to enhance the functionalityThe 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 designand 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 selectiong. 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.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 were on the Titanic?2. What is the total number of passengers who perished on the Titanic?3. What is the total number of passengers who survived the sinking of the Titanic?4. What is the total number of passengers who survived for each of the three classes?5. What is the total number of passengers who survived as a function of gender?6. What specific passengers paid more than $200 for their tickets?7. What specific passengers who were less than 10 years old perished on the titanic?8. What specific passengers who were less than 10 years old survived the sinking of the titanic?9. For each letter in the alphabet, how many passengers last names started with that letter?Q. Quit the programEnter your selection: 1There were 1310 Passengers on the Titanic.Enter the number of the question you want answered. Enter ‘Q’ to quit the program :1. How many passengers were on the Titanic?2. What percentage of passengers perished on the Titanic?3. What percentage passengers survived the sinking of the Titanic?4. What percentage of passengers survived for each of the three classes?5. What percentage of passengers survived as a function of gender?6. What specific passengers paid more than $200 for their tickets?7. What specific passengers who were less than 10 years old perished on the titanic?8. What specific passengers who were less than 10 years old survived the sinking of the titanic?9. For each letter in the alphabet, how many passengers last names started with that letter?Q. Quit the programEnter your selection: 6The following passengers paid more than $200 for their tickets:Allen, Miss. Elisabeth WaltonAstor, Col. John JacobAstor, Mrs. John Jacob (Madeleine Talmadge Force)Baxter, Mr. Quigg EdmondBaxter, Mrs. James (Helene DeLaudeniere Chaput)Bidois, Miss. RosalieBird, Miss. EllenBowen, Miss. Grace ScottCardeza, Mr. Thomas Drake MartinezCardeza, Mrs. James Warburton Martinez (Charlotte Wardle Drake)Chaudanson, Miss. VictorineDouglas, Mrs. Frederick Charles (Mary Helene Baxter)Endres, Miss. Caroline LouiseFarthing, Mr. JohnFortune, Miss. Alice ElizabethFortune, Miss. Ethel FloraFortune, Miss. Mabel HelenFortune, Mr. Charles AlexanderFortune, Mr. MarkFortune, Mrs. Mark (Mary McDougald)Geiger, Miss. AmalieKeeping, Mr. EdwinKreuchen, Miss. EmilieLesurer, Mr. Gustave JMadill, Miss. Georgette AlexandraRobbins, Mr. VictorRobert, Mrs. Edward Scott (Elisabeth Walton McMillan)Ryerson, Master. John BorieRyerson, Miss. Emily BorieRyerson, Miss. Susan Parker "Suzette"Ryerson, Mr. Arthur LarnedRyerson, Mrs. Arthur Larned (Emily Maria Borie)Straus, Mr. IsidorStraus, Mrs. Isidor (Rosalie Ida Blun)Ward, Miss. AnnaWidener, Mr. George DuntonWidener, Mr. Harry ElkinsWidener, Mrs. George Dunton (Eleanor Elkins)Enter the number of the question you want answered. Enter ‘Q’ to quit the program :1. How many passengers were on the Titanic?2. What percentage of passengers perished on the Titanic?3. What percentage passengers survived the sinking of the Titanic?4. What percentage of passengers survived for each of the three classes?5. What percentage of passengers survived as a function of gender?6. What specific passengers paid more than $200 for their tickets?7. What specific passengers who were less than 10 years old perished on the titanic?8. What specific passengers who were less than 10 years old survived the sinking of the titanic?9. For each letter in the alphabet, how many passengers last names started with that letter?Q. Quit the programEnter your selection: QThank you for trying the Titanic Program.Elapsed time in seconds was: 95The following grading rubric will be used to determine your grade:Attribute Exceeds Meets Does not meetDesign (5 points) (5 points)Exhibits proper use of parameters, and selection of data types all of the time.Employs correct and appropriate use of programming structures (loops, conditionals, classes etc.) all of thetime.Efficient algorithms used all of the time.(9-10 points)Extra effort was apparent through the addition of significant and additional functionality beyond the scope of the assignment.Test cases (5 points) (5 points)Test cases provide comprehensive coverage of all code paths.Discussion of run-time errors included.(5 points)Code impeccably neat and well-organized.Extensive In-line comments providing additional insight into code design and functionality Submission requirements:Your deliverables include all Java files (.java) and a single word (or PDF) document. The Java files should be named appropriately for your applications. Your word document should include screen shots showing the successful compiling and running of each application, and a detailed description of the test plan for each application. The test plan should include the input, expected output, actual output and if the test case passed or failed. Submit your files to the Final Project assignment area no later than the due date listed in the calendar.Titanic Data Description:The attached tab delimited file, named titanic.txt contains the known passengers on the Titanic. There are 6 fields included in the file in the order:Passenger class (1,2,3)Survived (1=yes, 0=no)Name (Passenger name)sex (male or female)age (some values are blank)fare (some values are blank)Please help with this final project1 1 Allen, Miss. Elisabeth Walton female 29 211.3375 1 1 Allison, Master. Hudson Trevor male 0.9167 151.5500 1 0 Allison, Miss. Helen Loraine female 2 151.5500 1 0 Allison, Mr. Hudson Joshua Creighton male 30 151.5500 1 0 Allison, Mrs. Hudson J C (Bessie Waldo Daniels)female 25 151.5500 1 1 Anderson, Mr. Harry male 48 26.5500 1 1 Andrews, Miss. Kornelia Theodosia female 63 77.9583 1 0 Andrews, Mr. Thomas Jr male 39 0.0000 1 1 Appleton, Mrs. Edward Dale (Charlotte Lamson) female 53 51.4792 1 0 Artagaveytia, Mr. Ramon male 71 49.5042 1 0 Astor, Col. John Jacob male 47 227.5250 1 1 Astor, Mrs. John Jacob (Madeleine Talmadge Force) female 18 227.5250 1 1 Aubart, Mme. Leontine Pauline female 24 69.3000 1 1 Barber, Miss. Ellen Nellie female 26 78.8500 1 1 Barkworth, Mr. Algernon Henry Wilson male 80 30.0000 1 0 Baumann, Mr. John D male 25.9250 1 0 Baxter, Mr. Quigg Edmond male 24 247.5208 1 1 Baxter, Mrs. James (Helene DeLaudeniere Chaput)female 50 247.5208 1 1 Bazzani, Miss. Albina female 32 76.2917 1 0 Beattie, Mr. Thomson male 36 75.2417 1 1 Beckwith, Mr. Richard Leonard male 37 52.5542 1 1 Beckwith, Mrs. Richard Leonard (Sallie Monypeny) female 47 52.5542 1 1 Behr, Mr. Karl Howell male 26 30.0000 1 1 Bidois, Miss. Rosalie female 42 227.5250 1 1 Bird, Miss. Ellen female 29 221.7792 1 0 Birnbaum, Mr. Jakob male 25 26.0000 1 1 Bishop, Mr. Dickinson H male 25 91.0792 1 1 Bishop, Mrs. Dickinson H (Helen Walton) female 19 91.0792 1 1 Bissette, Miss. Amelia female 35 135.6333 1 1 Bjornstrom-Steffansson, Mr. Mauritz Hakan male 28 26.5500 1 0 Blackwell, Mr. Stephen Weart male 45 35.5000 1 1 Blank, Mr. Henry male 40 31.0000 1 1 Bonnell, Miss. Caroline female 30 164.8667 1 1 Bonnell, Miss. Elizabeth female 58 26.5500 1 0 Borebank, Mr. John James male 42 26.5500 1 1 Bowen, Miss. Grace Scott female 45 262.3750 1 1 Bowerman, Miss. Elsie Edith female 22 55.0000 1 1 Bradley, Mr. George (George Arthur Brayton) male 26.5500 1 0 Brady, Mr. John Bertram male 41 30.5000 1 0 Brandeis, Mr. Emil male 48 50.4958 1 0 Brewe, Dr. Arthur Jackson male 39.6000 1 1 Brown, Mrs. James Joseph (Margaret Tobin) female 44 27.7208 1 1 Brown, Mrs. John Murray (Caroline Lane Lamson) female 59 51.4792 1 1 Bucknell, Mrs. William Robert (Emma Eliza Ward)female 60 76.2917 1 1 Burns, Miss. Elizabeth Margaret female 41 134.5000 1 0 Butt, Major. Archibald Willingham male 45 26.5500 1 0 Cairns, Mr. Alexander male 31.0000 1 1 Calderhead, Mr. Edward Pennington male 42 26.2875 1 1 Candee, Mrs. Edward (Helen Churchill Hungerford) female 53 27.4458 1 1 Cardeza, Mr. Thomas Drake Martinez male 36 512.3292 1 1 Cardeza, Mrs. James Warburton Martinez (Charlotte Wardle Drake) female 58 512.3292 1 0 Carlsson, Mr. Frans Olof male 33 5.0000 1 0 Carrau, Mr. Francisco M male 28 47.1000 1 0 Carrau, Mr. Jose Pedro male 17 47.1000 1 1 Carter, Master. William Thornton II male 11 120.0000

Answer

Get Essay Answer
1,200,000+ Questions
Satisfaction guaranteed