Professional Documents
Culture Documents
Tourism Management Project
Tourism Management Project
project
By
TANAY KUMAR PRASAD(2K21/B16/41)
TUSHAL KUAMR (2K21/B16/45)
SUBMITTED TO –
MR RAHUL
OVERVIEW
The Tourism Management System is implemented by C
programming. It is as same as one can see while going for
online booking. Here, the underlying idea is to present
users with two choices International or India Tour
packages. Then according to the choice, the
available packages will be displayed. The next step is to
mention the total number of passengers and all the
necessary details of the passengers. The total amount
will be evaluated and a receipt will be generated on the
screen.
What is tourism management
Tourism has turned out to be an economic booster contributing to the
economic development of many countries over the last few decades.
People see holidays as a necessity, and not as luxury in the present
scenario. Tourism calls for coordination and cooperation between
travel agents, tour operators, and tourists. Tourism has a few major
elements − destinations, attractions, sites, accommodation, and all
ancillary services.
Tourism management involves the management of multitude of
activities such as studying tour destination, planning the tour, making
travel arrangements and providing accommodation. It also involves
marketing efforts to attract tourists to travel to particular destinations.
There is a subtle difference between just travelling and
tourism.
Travelling is going from the place of residence or work
to another distant or a neighboring place by any means
of transport. Routine commutation can be termed as
travelling.
Tourism is travelling with an objective. All tourism
necessarily include travel but all travel does not
necessarily include tourism. We can say, travelling is a
subset of tourism.
Factors that Motivate People to Travel
• A structure is implemented for taking the details of the passengers like name,
gender, and age.
• Six functions– void details(), void add_node(char, char, int), void receipt(), void
heading(), void inter(), void india() are created to handle different functionality.
• The heading() function is declared that will make the heading of the portal.
• Some character arrays are defined and some integer arrays as globally.
• The user has to give choice for International or Indian Tour packages.
• If the user choose International tour packages then inter() function will be called.
Here, the user has to choose certain packages from a list.
If the user choose the India tour package then india()
function will be called. Here,
the user has to choose certain packages from a list.
enum state{menu,loggedin};
enum state currentstate=menu;
void ShowBrochure();
user* InitializeList(user*);
user* AddUser(user*);
void LoginUser(user*);
void BookTicket(user*);
void PrintTicket(user*);
void CancelTicket(user*);
void ChangePassword(user*);
void LogoutUser();
void CheckTicket(user*);
void DisplayAll(user*);
void WriteToFile(user*);
void ExitProgram();
char currentuser[100];
int main()
{
printf("\t\t\t==== || TOURISM MANAGEMENT SYSTEM || ====\n");
user *h=NULL;
int ch1,ch2;
h=InitializeList(h);
while (1)
{
if(currentstate==menu)
{
switch(ch1)
{
case 1:
h=AddUser(h);
break;
case 2:
LoginUser(h);
break;
case 3:
ShowBrochure();
break;
case 4:
ExitProgram();
exit(0);
break;
default:
printf("Not a valid input at this stage\n");
}
}
else if(currentstate==loggedin)
{
system("CLS");
printf("\n\t\t\t\t=========================");
if(fp==NULL)
return NULL;
if(fgetc(fp)==EOF)
return NULL;
rewind(fp);
while(fscanf(fp,"%s %s %s %f
%d",temp.username,temp.password,temp.place,&temp.price,&temp.numtick)!=EOF)
{
ptr=(user*)malloc(sizeof(user));
strcpy(ptr->username,temp.username);
strcpy(ptr->password,temp.password);
strcpy(ptr->place,temp.place);
ptr->price=temp.price;
ptr->numtick=temp.numtick;
if(h==NULL)
h=t=ptr;
else
{
h->next=ptr;
h=ptr;
}
}
fclose(fp);
return t;
}
void ShowBrochure()
{
system("CLS");
printf("\tPRICE LIST\n=============================\n1. LL - Antelope Canyon Tours - $40\n2. JK
- Grand Canyon Local Tours - $60\n3. SK - San Francisco Local Tours - $25\n4. SHM - Miami Vacation -
$38\n"
"5. AND - Hawaii - $120\n6. BHB - Atlanta Vacation - $10\n7. AG - San Francisco - $30\n8. ND -
Alaska Vacation - $32000\n9. RJ - Orlando Vacation - Rs 45\n10. SI - South US Tour - $25\n");
}
user* AddUser(user* h)
{
user *t;
t=h;
user *nw;
nw=(user*)malloc(sizeof(user));
fflush(stdin);
printf("Enter username or email\n");
scanf("%s",nw->username);
while(h!=NULL)
{
if(!strcmp(h->username,nw->username))
{
printf("That email already exists\n");
return t;
}
h=h->next;
}
h=t;
fflush(stdin);
printf("Enter password\n");
scanf(" %[^\n]s",&nw->password);
nw->next=NULL;
strcpy(nw->place,"N/A");
nw->price=0.0;
nw->numtick=0;
if(h==NULL)
{
h=t=nw;
}
else
{
while(h->next!=NULL)
{
h=h->next;
}
h->next=nw;
}
WriteToFile(t);
return t;
}
void LoginUser(user* h)
{
char username[100];
char password[100];
fflush(stdin);
printf("\n\n");
printf("\t\tEnter Email/Username:\n\t\t");
scanf("%s",username);
fflush(stdin);
printf("\n\t\tEnter Password:\n\t\t");
scanf(" %[^\n]s",password);
while(h!=NULL)
{
if((!strcmp(h->username,username)) && (!strcmp(h->password,password)))
{
currentstate=loggedin;
strcpy(currentuser,username);
printf("\n\t\tLogin successful!\n");
system("PAUSE");
return;
}
else if((!strcmp(h->username,username)) && (strcmp(h->password,password)))
{
printf("Password mismatch\n");
return;
}
h=h->next;
}
else if(strcmp(place,"SI")==0)
price=pricelist[9];
else
{
printf("That tour code doesn't exist\n");
return;
}
printf("Enter the number of tickets you want to book?\n");
scanf("%d",&h->numtick);
if(h->numtick==0)
return;
strcpy(h->place,place);
h->price=price;
WriteToFile(t);
printf("Bookings Done!!\n");
system("PAUSE");
int flag=-1;
if(h==NULL)
printf("No such user\n");
if(strcmp(h->place,"LL")==0)
flag++;
else if(strcmp(h->place,"JK")==0)
flag++;
else if(strcmp(h->place,"SK")==0)
flag++;
else if(strcmp(h->place,"SHM")==0)
flag++;
if(strcmp(h->place,"AND")==0)
flag++;
else if(strcmp(h->place,"BHB")==0)
flag++;
else if(strcmp(h->place,"AG")==0)
flag++;
else if(strcmp(h->place,"ND")==0)
flag++;
else if(strcmp(h->place,"RJ")==0)
flag++;
else if(strcmp(h->place,"SI")==0)
flag++;
else
{
printf("You haven't booked a tour yet\n");
return;
}
if(flag==0)
{
printf("Your ticket has been successfully cancelled\nA refund of $ %f for Tour Code %s for %d tickets
will soon be made to your original source of purchase\n",h->price,h->place,h->numtick);
strcpy(h->place,"N/A");
h->price=0.0;
h->numtick=0;
WriteToFile(t);
}
void ExitProgram()
{
printf("Exiting...\n\nPress \"Enter/Return\" to exit");
char exitprog;
fflush(stdin);
scanf("%c",&exitprog);
}b
CONCLUSION –
The given cod is the main drive code which is able to make a proper interface to
interact with the customer. The given code will take a proper travelling package
from the user and then take personal details of the customer and their date of
departure .After that the payment is done and the receipt is given. The project
code
can be used in for tourism industries in a full fledge fashion.
The code take takes the user name and the password from the user to log in, if the
id or password is incorrect the code will display it . Then the user is to selected the
list of package from the list and the final amount and the date of departure is
taken and confirm