Question: Project Features Adding, removing, searching, modifying, and sorting the passenger list. Project Operations Write a java program that will mimic a railway ticket reservation system
Project Features Adding, removing, searching, modifying, and sorting the passenger list. Project Operations Write a java program that will mimic a railway ticket reservation system using Linked List (Queues / Stacks). The program should be able to perform the following operations: 1. Add passenger details (first name, last name, phone number, city, address, sex and email, ticket number, Class) 2. Delete any passenger details by ticket number 3. Update passenger information by providing the passenger's ticket number 4. Display all passenger detail 5. Search the passenger by using the passenger's first name 6. Sort the passenger list in alphabetical order. Project Outputs The output has to display a menu of choices. Then the user can select which operation wants to perform. Also, you can use the method System.exit(0); to exit the program. The menu of choices will be: 1) Add Passenger 2) Remove the Passenger 3) Update a passenger's information using their ticket number. 4) Display the entire passenger list. 5) Search the passenger's number based on the passenger's name. 6) Sort the entire passenger list. 7) Exit the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
