Tourism Management System Project in C with Source Code
The Tourism Management System Project in C is a consoled based application and created using c programming language. This system is a simple mini project and compiled in Code::Blocks IDE using GCC compiler. This simple mini project for Tourism Management System is complete and totally error free and also includes a downloadable Source Code for free, just find the downloadable source code below and click to start downloading. Before you start to click the download now first you must click the Run Quick Scan for secure Download.
The Tourism Management System Project in C depends on an idea of keeping up visit bundles for the vacationers. Before venturing into the principle framework a client needs to go through login framework to get access, at that point just he/she can utilize the highlights of the framework which incorporates booking bundle, seeing ticket, dropping a ticket, seeing the travel industry handout. It likewise contains a sign-up include.
Discussing the highlights of Tourism Management System framework, a client needs a specific id to get access. For this, the client can essentially join by giving username and secret word. In the wake of signing in as a client, there are a few choices to perform. The client can check for occasion bundles and book.
So as to book a bundle, the client needs to choose inside given bundle information and enter the quantity of individuals. After the booking is done, he/she can check for the ticket information which shows the absolute cost and ticket of the bundle. Altogether there are 10-occasion bundles. At whatever point the client needs to drop the tickets, he/she can without much of a stretch drop it and get the discount.
Watch the video here to see the full running Tourism management System project in C programming.
There are other things like a client can just book one bundle from one client id. So as to book more bundles, he/she needs to drop their present appointments. Each bundle contains a one of a kind code, which the client must enter during booking strategy. The last element of this undertaking is tied in with changing the secret password. A client can change his/her secret password whenever just by giving their present secret password(to confirm client) and entering another secret password. After all these, the client can likewise log out of their present id. The framework makes an outside document to store the client’s information forever.
Anyway if you want level up your knowledge in programming especially C/C++ Programming Language, try this new article I’ve made for you Best C Projects with Source Code for Beginners Free Download 2020.
To start creating a Tourism Management System Project in C , make sure that you have a Code Blocks or any platform of C installed in your computer.
Steps on how to create a Tourism Management System Project in C with Source Code
Tourism Management System Project in C with Source Code
- Step 1: Create a new project.
First open the code blocks IDE and click “create a new project“.
- Step 2: Choose console application.
Second click the “console application” and after that click “next“.
- Step 3: Choose C language.
Third choose “C language” and click “next“.
- Step 4: Name your project.
Fourth name the project you’ve created and click “next” after that click “finish“.
- Step 5: The actual code.
You are free to copy the given source code below or download the downloadable source code given.
This function is for the login menu
In the code given below, which is for the function for the login menu in the system. Includes such as add user, login user, exit and brochure.(Tourism Management System Project in C)
1 2 3 4 5 6 7 8 9 |
int main() { printf("\t\t\t**** || TOURISM MANAGEMENT SYSTEM || ****\n"); userprofile *hello=NULL; int choice1,choice2; hello=InitializeListing(hello); while (1) { if(currentwindow==main_menu) { printf("\n\t\t\t\tAdd User - 1\n\t\t\t\tLogin User - 2\n\t\t\t\tBrochure - 3\n\t\t\t\tExit - 4\n\n\t\t\t\tEnter:"); scanf("%d",&choice1); switch(choice1) { case 1: hello=Adding_Client(hello); break; case 2: login_client(hello); break; case 3: ShowBrochure(); break; case 4: exit_system(); exit(0); break; default: printf("Not a valid input at this stage\n"); } } |
This function is for the main menu
In the code given below, which is for the function for the main features of the system which is the menu. Where in the menu you can choose an option like booking a ticket, checking ticket, printing ticket, cancelling a ticket, and also you can change the password, logout user, showing brochure, and the last is the exit option.(Tourism Management System Project in C)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
system("CLS"); printf("\n\t\t\t\t========================="); printf("\n\t\t\t\tTOURISM MANAGEMENT SYSTEM"); printf("\n\t\t\t\t=========================\n"); printf("\n\t\t\t\tBook Package - 1\n\t\t\t\tCheck Ticket - 2\n\t\t\t\tPrint Ticket - 3\n\t\t\t\tCancel Ticket - 4\n\t\t\t\tChange Password - 5" "\n\t\t\t\tLogout User - 6\n\t\t\t\tBrochure - 7\n\t\t\t\tExit - 8\n"); scanf("%d",&choice2); switch(choice2) { case 1: booking_ticket(hello); system("PAUSE"); system("CLS"); break; case 2: checking_ticket(hello); system("PAUSE"); system("CLS"); break; case 3: printing_ticket(hello); system("PAUSE"); system("CLS"); break; case 4: cancelling_ticket(hello); system("PAUSE"); system("CLS"); break; case 5: changing_pass(hello); system("PAUSE"); system("CLS"); break; case 6: logout_client(hello); system("PAUSE"); system("CLS"); break; case 7: ShowBrochure(); system("PAUSE"); system("CLS"); break; case 8: exit_system(); exit(0); break; default: printf("Not a valid input at this stage\n"); } } } return 0; } |
This function is for the viewing brochure
In the code given below, which is for the function viewing brochure.(Tourism Management System Project in C)
1 2 3 4 5 6 |
void ShowBrochure() { system("CLS"); printf("\tPRICE LIST\n=============================\n1. AA - Isla Gigantis Tours - P 3000\n2. BB - Mag-Aso Falls Tours - P 5000\n3. CC - Mambukal Resort Tours - P 2000\n4. DD - Boracay Beach Resort - P 10000\n" "5. EE - Whispering Palms Island Resort - P 12000\n6. FF - La Vista Highlands - P 5000\n7. GG - Punta Bulata Resort & Spa - P 7000\n8. HH - Big BamBoo Beach Resort - P 8000\n9. II - Nature's Village Resort - P 12000\n10. JJ - Artistic Diving & Beach Resort - P 14000\n"); } |
This function is for the checking ticket
In the code given below, which is for the function for the checking a ticket if your already book a ticket.(Tourism Management System Project in C)
1 2 3 |
void checking_ticket(userprofile <em>hello) { while(hello!=NULL) { if(!strcmp(hello->user_fname,current_client)) break; hello=hello->next; } if(!strcmp(hello->user_place,"\0") || hello->ticket_price==0.0 || hello->user_numtick==0) { printf("You do not have a ticket booked yet\n"); return; } float tot=0.0; tot=(hello->ticket_price)</em>(hello->user_numtick); printf("You have booked %d tickets for a sum total of P %f for tour code %s\n",hello->user_numtick,tot,hello->user_place); } |
This function is for the add user
In the code given below, which is for the function to add a new user.(Tourism Management System Project in C)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
void login_client(userprofile* hello) { char client_username[100]; char client_password[100]; fflush(stdin); printf("\n\n"); printf("\t\tEnter Email/Username:\n\t\t"); scanf("%s",client_username); fflush(stdin); printf("\n\t\tEnter Password:\n\t\t"); scanf(" %[^\n]s",client_password); while(hello!=NULL) { if((!strcmp(hello->user_fname,client_username)) && (!strcmp(hello->user_password,client_password))) { currentwindow=login_system; strcpy(current_client,client_username); printf("\n\t\tLogin successful!\n"); system("PAUSE"); return; } else if((!strcmp(hello->user_fname,client_username)) && (strcmp(hello->user_password,client_password))) { printf("Password mismatch\n"); return; } hello=hello->next; } printf("Sorry, no such user record was found\n"); } |
This function is for the booking ticket
In the code given below, which is for the function for the user to book a ticket.(Tourism Management System Project in C)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
void booking_ticket(userprofile *hello) { userprofile *trans=hello; char place[100]; while(hello!=NULL) { if(!strcmp(hello->user_fname,current_client)) break; hello=hello->next; } if(hello==NULL) return; if(hello->ticket_price!=0.0) { printf("You must cancel your previous ticket before buying a new one\n"); return; } ShowBrochure(); float pricelist[]={3000.0,5000.0,2000.0,10000.0,12000.0,5000.0,7000.0,8000.0,12000.0,14000.0}; fflush(stdin); printf("\nEnter place code (eg: AA, BB)\n"); scanf(" %[^\n]s",place); char choice; fflush(stdin); printf("\nWould You Like to Confirm Booking?\n[1] - Yes\n[2] - No\n"); scanf("%c",&choice); float price; if(choice!='1') return; if(strcmp(place,"LL")==0) price=pricelist[0]; else if(strcmp(place,"AA")==0) price=pricelist[1]; else if(strcmp(place,"BB")==0) price=pricelist[2]; else if(strcmp(place,"CC")==0) price=pricelist[3]; else if(strcmp(place,"DD")==0) price=pricelist[4]; else if(strcmp(place,"EE")==0) price=pricelist[5]; else if(strcmp(place,"FF")==0) price=pricelist[6]; else if(strcmp(place,"GG")==0) price=pricelist[7]; else if(strcmp(place,"HH")==0) price=pricelist[8]; else if(strcmp(place,"II")==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",&hello->user_numtick); if(hello->user_numtick==0) return; strcpy(hello->user_place,place); hello->ticket_price=price; WriteToFile(trans); printf("Bookings Done!!\n"); system("PAUSE"); } |
This function is for the printing of ticket
In the code given below, which is for the function to the user to print their ticket.(Tourism Management System Project in C)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
void printing_ticket(userprofile <em>hello) { while(hello!=NULL) { if(!strcmp(hello->user_fname,current_client)) break; hello=hello->next; } if(!strcmp(hello->user_place,"\0") || hello->ticket_price==0.0 || hello->user_numtick==0) { printf("You do not have a ticket booked yet\n"); return; } float tot=0.0; tot=(hello->ticket_price)</em>(hello->user_numtick); FILE *fileopen; char filename[50]; strcpy(filename,hello->user_fname); strcat(filename,"_ticket.txt"); fileopen=fopen(filename,"w"); if(fileopen==NULL) { printf("Problem opening the file\n"); return; } if(fgetc(fileopen)==EOF) { fprintf(fileopen,"TOURISM TICKET\n===============\n\n"); } fprintf(fileopen,"Email ID: %s\nTour Code: %s\nTicket Cost: P %f\nNumber of tickets: %d\nTotal Cost: P %f\n",hello->user_fname,hello->user_place,hello->ticket_price,hello->user_numtick,tot); fclose(fileopen); } |
This function is for the cancelling a ticket
In the code given below, which is for the function for the user to cancel their ticket.(Tourism Management System Project in C)
1 2 3 4 5 6 7 8 9 10 11 |
void cancelling_ticket(userprofile *hello) { userprofile *trans=hello; while(hello!=NULL) { if(!strcmp(hello->user_fname,current_client)) break; hello=hello->next; } int flag=-1; if(hello==NULL) printf("No such user\n"); if(strcmp(hello->user_place,"AA")==0) flag++; else if(strcmp(hello->user_place,"BB")==0) flag++; else if(strcmp(hello->user_place,"CC")==0) flag++; else if(strcmp(hello->user_place,"DD")==0) flag++; else if(strcmp(hello->user_place,"EE")==0) flag++; else if(strcmp(hello->user_place,"FF")==0) flag++; else if(strcmp(hello->user_place,"GG")==0) flag++; else if(strcmp(hello->user_place,"HH")==0) flag++; else if(strcmp(hello->user_place,"II")==0) flag++; else if(strcmp(hello->user_place,"JJ")==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 P %f for Tour Code %s for %d tickets will soon be made to your original source of purchase\n",hello->ticket_price,hello->user_place,hello->user_numtick); strcpy(hello->user_place,"N/A"); hello->ticket_price=0.0; hello->user_numtick=0; WriteToFile(trans); } } |
This function is for the changing password
In the code given below, which is for the function for the user to change their password.(Tourism Management System Project in C)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
void changing_pass(userprofile *hello) { userprofile *trans=hello; char passcurr[100]; fflush(stdin); printf("Enter your current password to continue:\n"); scanf(" %[^\n]s",passcurr); while(hello!=NULL) { if(!strcmp(hello->user_fname,current_client)) break; hello=hello->next; } if(hello==NULL) return; if(!strcmp(passcurr,hello->user_password)) { printf("Enter new password:\n"); scanf(" %[^\n]s",hello->user_password); } WriteToFile(trans); } |
This function is for the user logout
In the code given below, which is for the function for the user to logout in the system.(Tourism Management System Project in C)
1 2 3 4 5 6 7 8 9 10 11 |
void logout_client() { if(currentwindow==main_menu || strcmp(current_client,"\0")==0) { printf("You must be logged in to logout\n"); return; } strcpy(current_client,"\0"); currentwindow=main_menu; printf("You have been successfully logged out\n"); } |
This function is for the exit
In the code given below, which is for the function for the exit in the system.(Tourism Management System Project in C)
1 2 3 4 5 6 7 |
void exit_system() { printf("Exiting…\nBrought To You By ITSOURCECODE.COM\n\nPress \"Enter/Return\" to exit"); char exitprog; fflush(stdin); scanf("%c",&exitprog); } |
Run Quick Virus Scan for secure Download
Run Quick Scan for safe DownloadDownloadable Source Code
Summary
In summary, this 2020 Tourism Management System Project in C project can be useful to students or professional who wants to learn C programming language. This project can also be modified to fit your personal requirements. Hope this project will help you to improve your skills.
That’s how you create Tourism Management System Project in C with Source Code in your projects. You can always expand and try different ways in implementing the Tourism Management System Project in C in your C projects. In this Mini Project for Tourism Management System Project in C with Source Code is free to download and It is easy to understand and manipulate this project and use for education purpose only.
Related Articles
- Student Record System in C with Source Code
- Calendar In C Programming With Source Code
- Mini Project for Phonebook in C with Source Code
- Employee Management System In C With Source Code
- School Billing System in C with Source Code
- Library Management System In C++ With Source Code
- School Management System In C++ With Source Code
- Bus Reservation System in C++ with Source Code
- Bank Management System in C++ with Source Code
- Student Management System In C++ With Source Code
- Hostel Booking System Project in C++ with Source Code
- Food Ordering System Project in C++ with Source Code
- Department Store Management System Project in C with Source Code
- Number System Conversion Project in C with Source Code
Inquiries
If you have any questions or suggestions about Tourism Management System Project in C with Source Code, please feel free to leave a comment below.