Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

unemployed people

Answered: 1 week ago