0% found this document useful (0 votes)
90 views25 pages

Movie Ticket Booking System: Koneru Lakshmaiah Education Foundation Freshman Engineering Department

This document describes a movie ticket booking system project implemented in C programming language. The project allows users to book and cancel movie tickets. Key features include storing ticket information like seat number and customer name in a file, validating available seats, and generating ticket receipts. The implementation covers functions for menu selection, booking a ticket by selecting a valid empty seat, cancelling a booked ticket by entering the seat number, and generating different ticket formats based on the selected movie. The project aims to help understand file handling, functions, and other C programming concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views25 pages

Movie Ticket Booking System: Koneru Lakshmaiah Education Foundation Freshman Engineering Department

This document describes a movie ticket booking system project implemented in C programming language. The project allows users to book and cancel movie tickets. Key features include storing ticket information like seat number and customer name in a file, validating available seats, and generating ticket receipts. The implementation covers functions for menu selection, booking a ticket by selecting a valid empty seat, cancelling a booked ticket by entering the seat number, and generating different ticket formats based on the selected movie. The project aims to help understand file handling, functions, and other C programming concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

Koneru Lakshmaiah Education Foundation

(Deemed to be University)

FRESHMAN ENGINEERING DEPARTMENT


A Project Based Lab Report
On

MOVIE TICKET BOOKING SYSTEM


SUBMITTED BY:

I.D NUMBER NAME

2200032832 : A. Poojasri
2200032865 : G .SOWMYA
2200033055 : M.SRIBASIVIREDDY
2200033060 : K.TEJASWI

UNDER THE GUIDANCE OF

Mr.Bhaskar
Associate Professor

KL UNIVERSITY
Green fields, Vaddeswaram – 522 302
Guntur Dt., AP, India.
DEPARTMENT OF BASIC ENGINEERING SCIENCES-1

CERTIFICATE

This is to certify that the project based laboratory report entitled

“MovieBookingSystem”submitted by A.Poojasri,G.SOWMYA,M.SRIBASIVIREDDY,
K.TEJASWI bearingRegd.No.2200032832,2200032865,2200033055,2200033060
to the Department of Basic Engineering Sciences-1, KL University in partial
fulfillment of the requirements for the completion of a project based Laboratory in
“DATA STRUCTURES”course in I B Tech 2 Semester, is a bonafide record of the work
carried out by him/her under my supervision during the academic year 2022 – 2023.

PROJECT SUPERVISOR HEAD OF THE DEPARTMENT

Mr..Bhaskar Dr. D.Haritha


ACKNOWLEDGEMENTS

It is great pleasure for me to express my gratitude to our honorable


President Sri. Koneru Satyanarayana, for giving the opportunity and platform
with facilities in accomplishing the project based laboratory report.

I express the sincere gratitude to our principal Dr. A. Jagadeesh for his
administration towards our academic growth.

I express sincere gratitude to HOD-BES-1 Dr. D. Haritha for her leadership and
constant motivation provided in successful completion of our academic semester.
I record it as my privilege to deeply thank for providing us the efficient faculty
and facilities to make our ideas into reality.

I express my sincere thanks to our project supervisor Mr.Bhaskar for


his/her novel association of ideas, encouragement, appreciation and
intellectual zeal which motivated us to venture this project successfully.

Finally, it is pleased to acknowledge the indebtedness to all those who


devoted themselves directly or indirectly to make this project report success.
ABSTRACT

In online ticket booking system we can see the availability of the


seats and the user can select the seat which he want directly from
home, once the seat was blocked by the one user that seat
wouldn’t be shown for the another user which provides a
convenience to theatre staff and reduces their work and they can
track all the details of the booking person details along with their
respective seat and ticket numbers easily.
Movie booking system will basically help the users to look out for
movies, preferring seats and movie halls as well . The project will
be implemented by a team of four members by application of
their respective knowledge about code programming.
INDEX

S.NO TITLE PAGE NO

1 Introduction Aim of the Project 6

2 2.1 Advantages & Disadvantages 7

3 2.2 Future Implementation 7

4 Software & Hardware Details 8

5 Algorithm 9

6 Flowchart 10

7 Implementation 11-19

8 Results and Screenshots 20-24

9 Conclusion 25
1.INTRODUCTION
What is a Movie booking system?

Online Movie Ticket Booking System provide another way for the customers to buy
cinema ticket. This system reduces work load on customers, it is an automatic
ticket booking system. This system is basically aimed to provide complete
information of the movie and schedule to the customer, according to which he/she
can book the tickets.

Where can the MBS be used?

MBS can be installed in movie theatres, action theatres, or any show organising
events in order to manage ticket booking and all other stuff in an organised manner.

Why we need a MBS?

A MBS can basically help a user to book tickets easily and help the theatre owners to
organise booking in a proper manner.

The key features of MOVIE BOOKING SYSYTEM project in C are briefly described
below:

Consider a file of seat numbers information for a screen. The program should be
able to allocate and deallocate storage memory for the seat’s records. The file
should have the following information field: the ticket number,name of the
customer 1) seat number

2) customer name(booking person name) by using this type of program with out no
mistakes we can store data very quick and to search any seat’s details.
2.AIM

This project will help you to understand file handling in C i.e. creating a
file and accessing the stored data in the file, modifying and removing the
stored data. It will also help you to understand the use of functions as well
as different parameters of C programming language.

Advantages: -

• Can be developed within the convenience of time.

• Eases out the ticket booking process.

• Easily accessible and just requires basic computer knowledge for usage.

• All-round applications of almost all main functions in c language .

Disadvantages: -
• Cannot support the huge data

• Flexible only to a limited extent.

• Can and should be used only for experimental and evaluation purposes.

Future enhancements: -
This code is a very basic form of the system. Using more complex functions
one can add more options to the selection process, and proper web based
application can also be developed for easier accessibility and more
convenience.
3. SYSTEM REQUIREMENTS

➢ SOFTWARE REQUIREMENTS:
The major software requirements of the project are as follows:
Language : Turbo-C
Operating system:Windows Xp or later.

➢ HARDWARE REQUIREMENTS:
The hardware requirements that map towards the software are as follows:

RAM : 8GB

Processor : i3 or i5
4.ALGORITHM

Step 1: Start

Step 2: we should select any one from the following options

• Book ticket
• Cancel ticket
• Quit

Step 3: if select option book ticket then we should fill following field

• Seat number
• Booking….
Step 4: choose seat

Step 5:validate the seat number either if it is available or not

Step 6: if it is available in the created file then proceed else


abort and warned to choose the seat number again Step 7: if
you wish to cancel the ticket ask to enter the seat no.

Step 8:validate the entered seat number and delete

from the file

Step 9:finally quit

Step 10: Stop


5.FLOWCHART
6.IMPLEMENTATION

#include<stdio.h>
#include<stdlib.h>
#include"moviedetails.c"
#include"decleration.c"
#include<strings.h>
struct moviedetails
person[300]; int count=0; int
id2=1000; int main()
{
int **seat,choice,price=500,slection,i;
seat=(int **)calloc(101,sizeof(int *));
for (i=0;i<3;i++)
*(seat+i)=(int
*)calloc(101,sizeof(int )); int x; while(x!
=3)
{
choice=choice1();
switch(choice)
{

case 1:
slection=movie();
reservation(seat[slection1],price,slection);

count++;

break;

case 2:

slection=cmovie();

cancel(seat[slection-1]);

break;

case 3:

x=3;

break;

default:

printf("Choice not available\n");

break;

}
}
void reservation(int *array,int price,int slection)
{
int i,j;

printf("\n SCREEN\n\
n\n");

for (i=1;i<=100;i++)

if (array[i]==0)
printf("%d\t",i);
else

printf("*\t",i);

if(i%10==0)

printf("\n\n");

printf("Please enter your name: "); scanf("

%19[^\n]%*[^\n]",&person[count].name);

printf("Please enter your phone number: ");

scanf("%u",&person[count].phone);

printf("Which seat number you want? ");

scanf("%d",&j); if (j>100||j<1)

printf("seat1 number is unavailable in this theater\n");

printf("Please re-enter seat number: ");

scanf("%d",&j);

if (array[j]==1)

{
printf("Sorry, this ticket is already booked! Please choose another seat.\
n");

scanf("%d",&j);

else
array[j]=1;

person[count].seat=j; if

(slection==1)

ticket1(j,person[count].name,id2,price);

else if (slection==2)

ticket2(j,person[count].name,id2,price);

else

ticket3(j,person[count].name,id2,price);

id2++;
}
int choice1(void)
{
int choice;

printf(" Simple Movie Ticket


Booking System\n");

printf("
==========================================================
========\n");

printf("|| 1- To puchase ticket: ||\n");

printf("|| 2- To cancel the seat: ||\n");

printf("|| - Exit system: ||\n");

printf("||
==============================================
==================||\n");
printf(" Enter your choice:
"); scanf("%d",&choice);
return choice;
}
void cancel(int *array)
{ int

Cseat,i,stop;

printf("Please enter ID number of ticket:

"); scanf("%d",&Cseat); for (i=0;i<300;i++)

if(Cseat==person[i].id)

stop=5;

system("cls");

printf("%s your seat is %dcancelled",person[i].name,person[i].seat);


array[person[i].seat]=0;

i=300;

} if

(stop!=5)

printf("Ticket ID number is incorrect please enter right one to cancel


ticket: \n");

}
void ticket1(int choice,char name[10],int id2,int price)
{
system("cls");
printf("\n\n");
printf("\t-----------------THEATER BOOKING TICKET----------------\n");

printf("\t==================================================
==========\n");
printf("\t Booking ID : %d \t\t\tShow
Name :Avengers:EndGame\n",id2); printf("\
tCustomer : %s\n",name);

printf("\t\t\t Date: 29-04-2019\n"); printf("\

t Time : 08:00pm\n"); printf("\t Hall

: 02\n"); printf("\t seats No. : %d

\n",choice); printf("\t price . : %d \n\

n",price);

person[count].id=id2;

printf("\t==================================================
==========\n");
return;
}
void details(void)
{
int i; char pass[10],pak[10]="pass";
printf("Enter the password to see details:
"); scanf("%s",&pass); if
(strcmp(pass,pak)==0)
{

for (i=0;i<count;i++)

printf("seat no: %d is
booked by %s booking id is
%d\n",person[i].seat,person[i].name,person[i].id);

else

printf("Entered password is wrong \


n");

system("PAUSE");

system("CLS");

}
int movie(void)
{
int i; system("cls"); printf("\t\t\twhich movie you
want to see?\n"); printf("\t\t\t----------------------------\n\
n"); printf("\t\t\tpress 1 for Avengers: EndGame\n\n");
printf("\t\t\tpress 2 for Captain Marvel\n\n"); printf("\
t\t\tpress 3 for Spider-Man: Far From Home\n");
scanf("%d",&i); system("cls");
return i;
}
void ticket2(int choice,char name[10],int id2,int price)
{
system("cls");

printf("\n\n");

printf("\t-----------------THEATER BOOKING TICKET----------------\n");

printf("\t==================================================
==========\n"); printf("\t Booking ID : %d \t\t\tShow Name :

Captain Marvel\n",id2); printf("\t Customer : %s\n",name);

printf("\t\t\t Date : 15-04-2019\n");

printf("\t Time : 09:00pm\n");

printf("\t Hall : 03\n"); printf("\t

seats No. : %d \n",choice); printf("\t

price . : %d \n\n",price);

person[count].id=id2;

printf("\t==================================================
==========\n");
return;
}
int cmovie(void)
{
int i;

printf("\t\t\twhich movie ticket you want to cancel\n");

printf("\t\t\t-------------------------------------\n"); printf("\t\t\

tpress 1 for Avengers: EndGame\n\n"); printf("\t\t\tpress 2 for

Captain Marvel\n\n"); printf("\t\t\tpress 3 for Spider-Man: Far

From Home\n"); scanf("%d",&i);

return i;
}
void ticket3(int choice,char name[10],int id2,int price)
{
system("cls");

printf("\n\n");

printf("\t-----------------THEATER BOOKING TICKET----------------\n");

printf("\t==================================================
==========\n");
printf("\t Booking ID : %d \t\t\tShow Name : Spider-Man: Far From
Home \n",id2); printf("\t Customer : %s\n",name);

printf("\t\t\t Date : 5-07-2019\n");


printf("\t Time : 10:00pm\n");
printf("\t Hall : 04\n"); printf("\t
seats No. : %d \n",choice); printf("\t
price . : %d \n\n",price);
person[count].id=id2;

printf("\t==================================================
==========\n");
return;
}
7.RESULTS AND SCREENSHOTS

Inputs : either of 1 , 2 or 3 is entered


If 1 enter your details for tickets
Choose movie
Choose seat number

If 2 cancel your seat


Enter ticket code
Cancel seat

If 3 quit the system


Purchasing a ticket :
Enter 1
Choose movie

Suppose 2 is choosed
Customer details have to be entered
Name
Phone number
Seat no. to be choosed

This is the final ticket that has been booked according to the
details given by the user.
If the chosen seat is already booked previously the output will be:

Incase the user has to cancel the booked ticket on pressing 2 he/she would
be asked about the movie and booked ticket ID
8.CONCLUSION
So after successful execution of the code in c language it can be concluded
that with proper usage of functions and keywords in c different types of
systems could be developed for example the Movie Booking System which
was coded and the respective outputs were brought out to print the ticket
with user’s details

You might also like