Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a simple airline ticket reservation program, the program should display a

ID: 3562596 • Letter: W

Question

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 maintaind 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 linked list of passengers.

Explanation / Answer

#include<iostream.h>
#include<string.h>
#include<conio.h>
#include<stdlib.h>
class airline
{
public:
int a,i,n;
int tickets;
void book();
void check();
void reservation();
void cancellation();
void availability();
void displaypassengers();
void NewFlight(string Fl,int seats)
{
for(int i =0;i<fList.size();i++)

}

private:

struct flightno;
int seatno;
struct Passenger
{
string Name;
string PhoneNumber;
string FlightNo;
string Date;
void main()
{
flight f;
int ch;
cout<<“welcome to airline ticket reservation system”;
cout<<“enter your choice”;
switch(ch)
{
case1:
f.check();
break;
case2:
f.availability();
break;
case3:
f.display();
break;
case4:
f.cancel();
break;
default:
cout<<“error,enter a valid option”;
}
}