EBK DATA STRUCTURES AND ALGORITHMS IN C
EBK DATA STRUCTURES AND ALGORITHMS IN C
4th Edition
ISBN: 9781285415017
Author: DROZDEK
Publisher: YUZU
Question
Book Icon
Chapter 3, Problem 2PA
Program Plan Intro

Airline ticket reservation

Program plan:

  • Define a function named “reverselTicket()” that adds passenger information to linked list.
  • Define a function named “display()” that displays details of all passengers present in the linked list.
  • Declare a function named “checklTicket()” that checks whether a particular person has reserved a ticket.
  • Define a function named “cancellTicket()” that cancels a particular ticket reserved for a person.

Blurred answer
Students have asked these similar questions
A big integer is represented as a linked list of digits where each digit is an integer between 0 and 9. Write a program to build up a linked list for a big integer by asking the user to enter a big integer and each digit will be an element of the linked list. Example: 123456 The linked list: 1 2 3 4 5 6 Provide to the user the following operations Menu : 1. Print the digits. Example: 1 2 3 4 5 6 2. Print the digit in reverse order. Example: 6 5 4 3 2 1 3. Add a digit in a certain position in the linked list. Example, add 7 at position 7: 1 2 3 4 5 4. Delete digit from the linked list. Example, delete 4 1 2 3 6 7 5 5. Quit the operations menu. 6 7 Write a method for each method on the menu. The Program should keep displaying the menu until the user choose to quit.
Write a simple airline ticket reservation program. The program should display a menu with the following options: reserve a ticket, cancel a reservation, check whether a ticket is reserved for a particular person, and display the passengers. The information is maintained on an alphabetized linked list of names. In a simpler version of the program, assume that tickets are reserved for only one flight. In a fuller version, place no limit on the number of flights. Create a linked list of flights with each node including a pointer to a linked list of passengers. Maximum grade will be obtained for a full version (more flights available). You should implement and use linked list class (the option of using a list class from STL is acceptable, though discouraged) You will turn in a short written report containing: A description of the significant choices/issues in the design of your code. Listing of your experiments, showcasing the capabilities of the program. The source-code of your program.…
Write a program that prompts the user to input a string and then outputs the string in the pig Latin form. The rules for converting a string into pig Latin form are described in Programming Example: Pig Latin Strings Your program must store the characters of a string into a linked list and use the function rotate, as described in Programming rotate the string.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education