report
TRANSCRIPT
ONLINE MOVIE TICKET BOOKING
“BOOK MY SHOW”
A PROJECT REPORT
Submitted by
PALLAVI JAIN
ALPA SARUPARIA
in partial fulfillment for the award of degreeof
BACHELOR OF TECHNOLOGY
in
COMPUTER SCIENCE & ENGINEERING
September 2011
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
GEETANJALI INSTITUE OF TECHNICAL STUDIES
DABOK, UDAIPUR (RAJ.)
GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR
CERTIFICATE
This is to Certified that this project report “Book My Show” is the bonafide work of
“Pallavi Jain & Alpa Saruparia” who carried out the project work under my supervision.
I approve this training project for submission of the Bachelor of Engineering in the Department
of, Computer Science & Engineering, Geetanjali Institute of Technical Studies, Udaipur,
affiliated to Rajasthan Technical University Kota.
Ms.Ridhima Khamesra Mr. Jitendra Sharma
(Head of Dept. CSE) (Sr. Lecturer)
2
ACKNOWLEDGEMENT
It gives us immense pleasure to express our deepest sense of gratitude and sincere thanks to our
highly respected and esteemed guide Mr. Jitendra Sharma ,Computer science, Gits, Udaipur,
for their valuable guidance, encouragement and help for completing this work. Their useful
suggestions for this whole work and co-operative behavior are sincerely acknowledged.
We would like to express our sincere thanks to Mr. A.N.Mathur, Director, GITS,Udaipur for
giving us this opportunity to undertake this project. We would also like to thank
Mr. Pratap, Principal for whole hearted support.
We also wish to express our gratitutes to Mrs. Ridhima Khamesra, HOD (Computer Science
and Engineering) for her kind hearted support. We are also grateful to our teacher
Miss Manisha Raj for her constant support and guidance.
We also wish to express our indebtedness to our parents as well as our family members whose
blessings and support always helped us to face the challenges ahead.
At the end we would like to express our sincere thanks to all our friends and others who helped
us directly or indirectly during this project work.
Alpa Sarupria Pallavi Jain
3
TABLE OF CONTENTS
Acknowledgement...........................................................................................................................3
Abstract............................................................................................................................................5............................................................................................................................................................
1. Introduction..................................................................................................................................6
2. Objective......................................................................................................................................7
2.1 Project Objective....................................................................................................................7
2.2 Academic Objective...............................................................................................................7
3. Project Objective..........................................................................................................................8
3.1 Overview................................................................................................................................8
3.2 Feasibility Study....................................................................................................................9
4. Requirement Analysis................................................................................................................11
4.1 System/Hardware Requirement...........................................................................................11
4.2 Software Requirement.........................................................................................................11
4.3 Functional Requirement.......................................................................................................11
4.3.1 Use Case Diagram.......................................................................................................12
4.4 Non- Functional Requirement..............................................................................................13
5. Application Design....................................................................................................................14
5.1 Design Overview..................................................................................................................14
5.2 Design Description...............................................................................................................15
5.2.1 Flow Chart..................................................................................................................15
5.2.2 Sequence Flow Diagram.............................................................................................16
5.3 Databse Design....................................................................................................................16
5.3.1 E-R Diagram...............................................................................................................18
6. Implementation..........................................................................................................................20
7. Appendix....................................................................................................................................22
4
ABSTRACT
This project is aimed at developing an online ticket reservation system for a theatre.
This application will automate the reservation of tickets and Enquiries about availability of
the tickets.BookMyShow is an aggregator service for the entertainment industry whereby we can
assist you with information and ticketing for movies.
Bookmyshow.com lets you book movie tickets in the pvr, udaipur in the simplest, easiest and the
smartest way without the unnecessary glitz. Search, Choose & Book movie tickets. It can't get
simpler than this.The main purpose of our online ticket booking system is to provide another way
for the customer to buy cinema ticket. After inserting the data to database, staff need not to due
with the order receive through the system.
5
1. INTRODUCTION
Our Book My Show(BMS) is a web-based system.This project is aimed at developing an
online ticket reservation system for Cinema Halls is an Internet based application which can be
accesses throughout the Net and can be accessed by any one who has a net connection.
The reservation of tickets and Enquiries about availability of the tickets etc. will be
automated by this system email confirmation for the tickets are also included.
Staff can use the system to insert data (e.g. film description , time table) which will
update the webpage(webpage are dynamic page, changing according to the data in database).
Also, staff can check the statistic information from the system.
Movie Ticketing System that allow movie-goers to book movie tickets through the internet
at any time from any place.
6
2. OBJECTIVE
2.1 Project Objective
The main purpose of our online ticket booking system is to provide an alternate and convenient
way for a customer to buy cinema tickets. It is an automatic system. After the data has been fed
into the database, the staff does not need to do anything with the order once it is received through
the system. It reduce the time spent waiting in line to purchase tickets and also reduce the
waiting time on phone to get hold of a booking agent.
The main goals of our system are:
1. To provide a anytime anyplace service for the customer
2 . To minimize the number of staff at the ticket box
3 . To promote the film on the internet
4 . To increase the profit
5 . To obtain statistic information from the booking record.
2.2 Academic Objective
To study J2EE (JSP & Servlets), DATABASE connectivity with MS Access database.
To learn about Glassfish server.
7
3. PROJECT OVERVIEW
3.1 Overview
The Cinema hall has a web site and any user of internet can access this. It is a multiplex with 3
screens and each has three categories of seats.
A customer will enter the movies tab and select the movie to be viewed. He then will select one
of the three categories & select the seats he wish to purchase. Thereafter he has to fill up a login
form so that their database can be maintained.
A receipt will be given to him with the date, time, seats selected for the movie.
The working of the project is as follows.
The first page provides several links.
Home - It contains several informations about the site.
Movies – It gives the description of different movies been shown currently. The theatre is
divided into 3 screens. At a time 3 movies can be viewed. Each screen has 3 categories of
seats :
Platinum (High class)
Gold (Middle Class)
Silver (Low Class)
Each category has 30 seats capacity.
About Us – It shows the description of our website.
Contact Us – this is our toll free contact no. where the customer can contact us for any
queries.
Feedback – We wished to have feedback from the end users about flaws and also why the
application was good. So the customer can leave their comments on this page for us
to improve.
8
In the Login Page a user have to login before ordering for tickets. In that page user have to enter
Name, Contact no, Movie, No. Of Tickets, Date, time,seats.
The user can enter the number of seats required and the select the categories. It will display the
total rate and seat no.
3.2 Feasibility Study
The initial investigation points to the question whether the project is feasible.
A feasibility is conducted to identify the best system that meets the all the requirements.
This includes an identification description, an evaluation of the proposed systems and
selection of the best system for the job
All projects are feasible when given unlimited resources and infinite time.
An estimate is made of whether the identified user needs may be satisfied using current
software and hardware technologies.
The study will decide if the proposed system will be cost effective from the business
point of view and if it can be developed in the given existing budgetary constraints.
The feasibility study should be relatively cheap and quick. The result should inform the
decision of whether to go ahead with a more detailed analysis.
The study is done in these phases :
Operational Feasibility:- The purpose of the operational feasibility study is to determine
whether the new system will be used if it is developed and implemented. And whether
there will be resistance from users that will undermine the possible application benefits.
Technical Feasibility:- A study of function, performance and constraints may improve
the ability to create an acceptable system. Technical feasibility study deals with the
hardware as well as software requirements.
Economical Feasibility:- A cost evaluation is weighed against the ultimate income or
benefit derived from the developed system or product.
Behavioral Feasibility:- In the existing system more manpower is required and time
factor is more. In the proposed system, both man power and time factors are reduced and
also unnecessary burden is reduced. Therefore, the system is behaviorally feasible.
9
Software Feasibility:- Even though software is developed in a very high software
environment, it will be supported by many other platforms and environments with
minimum changes.
Hardware Feasibility:- The software can be developed with resource already existing.
Here the consideration is that the existing hardware resources support the technologies
that are to be used by the new system. No hardware was newly bought for the project and
hence. Software is said to achieve hardware feasibility.
4. Requirement Analysis
4.1 System/Hardware Requirement
10
Processors : Intel Pentium Pro or Processor running at 133 MHz
Hard Disk : 1.2 GB Hard Disk
RAM : Minimum 128MB
Display Type : Color Monitor
Keyboard :108keys
Mouse : PS/2 2 Button
Modem: 56kbps
4.2 Software Requirements
Operating System : WINDOWS XP & Higher Versions
Tools Used –
Front End : Netbeans 6.9.1
Back End : MS Access
Technology Used : J2EE ,Netbeans 6.9.1
Browser: Internet explorer 5.5 or any HTTP browser
Lang : Java and J2EE
4.3 Functional Requirement
A Functional Requirement is a requirement that, when satisfied, will allow the user to perform
some kind of function.
1. The web page (e.g. The time table page, the main page) will be generated automatically
according to the database.
2. A way in which the customer can create its own account(member registration).
3. A way in which the users (both customer and staff) can login to the system to perform
different operation.
4. A way in which the customer can modify its own data.
5. A way in which the customer can place a order by just clicking the seat (which is shown on
the screen) and insert some card data.(some simple operation)
6. A way in which the staff can use the system to add data(e.g. film description) to the database.
11
7. The system can generate some static information according booking and ticket selling record.
8. Users can check film data by clicking on a certain film on main page(e.g. The cinema which
will show this films).
4.3.1 Use Case Diagram
4.4 Non-Functional Requirement
A Non-Functional Requirement is usually some form of constraint or restriction that must be
considered when designing the solution. The non-functional requirements are:
Good response time
Reliable communication
24x7 availability
12
Customer
Select Movie
Movie 1
Movie 2
Movie 3
Select Seats
Platinum Category
Gold Category
Silver Category
Login
Check Time
Check Date
Payment Type
Update Data
Reducing the work load
13
5. APPLICATION DESIGN
5.1 Design Approach
For the development purpose the scripting language used is JSP (Java Server Pages) as java isthe
most popular language used today.
The Hypertext Transfer Protocol (HTTP) supportsserving up documents in the Hypertext
MarkupLanguage (HTML
A servlet is a Java technology component that executes on the server.
Servlets perform the following:
• Process the HTTP request
• Generate the HTTP response dynamically
• A web container is a special Java™ Virtual Machine (JVM™) that is responsible for
maintaining the life cycle of the servlets, as well as issuing threads for each request.
Deployment diagram of a web server with a web container:
5.2 Design Description
14
User WorkstationStation
Browser
Web container
Servlet
<html>
http Request
http Response
Database
5.2.1 Flow Chart : Itdepicts the pictorial representation of the logic used in the system.
5.2.2 Sequence Flow Diagram
15
MOVIE
SELECT MOVIE
Select Seats
PLATINUM Gold Silver
if seat!=full
Login Form
Receipt
Yes
HOUSEFULL
l
NO
Stop
5.3 Database Design
Server-Side Data Storage:
Several approaches can be used in this case;
A first solution consists in using the file system(text, binary or .xml files) for storing the Cinema
Service data. There are several disadvantages to this solution i.e. high access time to a file,
complicated and slow mechanisms to search for data in a file, data manipulation (insert, update)
implies that the file(s) have to be locked with an exclusive lock. This is not a suitable approach.
A better approach consists in using a Database Management System(DBMS).
A relational DB can be used for storying data on the server side.
16
The access to the data is fast and based on indexes.
Search and update operations are fast.
Concurrent accesses are supported based on thre database driver implementation.
A DBMS supports isolation i.e. transaction execute one at a time;atomicity i.e. transaction
execute either completely or not; and durability the ability to recover from failures or errors of
many types.
A DBMS provides a powerful API for accessing the data. A powerful query language is
available to the developer. A file system has no such advantages.
A DBMS is more powerful than a file system and supports flexible access to large amount of
data.
A relational database management system is chosen as the final solution for this issue.
The overall objective in the development of database technology has been to treat data as an
organizational resource and as an integrated whole. Database is an integrated collection of data.
The most significant form of data as seen by the programmers is data as stored on the direct
access storage devices. This is the difference between logical and physical data. Database files
are the key source of information into the system. It is the process of designing database files,
which are the key source of information to the system. The files should be properly designed and
planned for collection, accumulation, editing and retrieving the required information.
The organization of data in database aims to achieve three major objectives:
Data integration.
Data integrity.
Data independence.
The proposed system stores the information relevant for processing in the MS Access database.
This database ‘db1’ contains table ‘form1’.
Each piece of information in table is called a field or column. A table also contains records,
which is a set of fields. All records in a table have the same set of fields with different
information. There are primary key fields that uniquely identify a record in a table. Here the
primary key is ‘cname’.
Column Name Type
cname varchar
17
cno int
movie varchar
category varchar
ntickets int
mdate date/time
stime date/time
creditcard int
cseats varchar
Database Table
5.3.1 E-R Diagram
There are three basic elements in ER models:
1. Entities are the "things" about which we seek information.
2. Attributes are the data we collect about the entities.
3. Relationships provide the structure needed to draw information from multiple entities.
18
E-R Diagram
19
Movie
Show
Customer
Name
Director
Release Date
Seats
Name
Seat_no
Category
Date Time
Name Contact no
Payment Type
6. IMPLEMENTATION
SYSTEM IMPLEMENTATION:
Implementation includes all those activities that take place to convert from the old system to the
new. The old system consists of manual operations, which is operated in a very different manner
from the proposed new system. A proper implementation is essential to provide a reliable system
to meet the requirements of the organizations. An improper installation may affect the success of
the computerized system.
IMPLEMENTATION PLAN:
The implementation plan includes a description of all the activities that must occur to implement
the new system and to put it into operation. It identifies the personnel responsible for the
activities and prepares a time chart for implementing the system. The implementation plan
consists of the following steps.
o List all files required for implementation.
o Identify all data required to build new files during the implementation.
o List all new documents and procedures that go into the new system.
The implementation plan should anticipate possible problems and must be able to deal with
them. The usual problems may be missing documents; mixed data formats between current and
files, errors in data translation, missing data etc.
The following simple steps will guide for the Implementation.
Step 1 - Connect to MS Access and create the following database layout
In order to start the process first we need to install the Java SE development Kit. After that install
Ms Access. Once MS Access is installed we need to create a database where the customer
information will be stored.
Column Name Type
20
cname varchar
cno int
movie varchar
category varchar
ntickets int
mdate date/time
stime date/time
creditcard int
cseats varchar
Database Table
Step 2 - Creating our Java project
The next stage in the implementation process is to create the project in Net beans. To do this,
open Net beans and create a new project (File/New). After the project has been created we need
to create a classes and then we have to code them for database connectivity. If you want to use
another database server, you can use a JDBC connection or any other native Java connector to
attach your java program to the database. To implement this functionality a new class needs to be
created.
7. Appendix I
Reference : 1. Head First Servlets & Jsp : O’ Reilly2. Complete Reference
21
3. Java 2 Black Book : published by Dreamtech Press4. Websites : www.Javaworld.com5. www.java.sun.com
22
Appendix II
Project Output
Snapshot of getting details of customer login :
23Login Form
Name : Contact Number : Movie : Category : No. Of Tickets : Date : Time: CreditCard No: Seats Booked:
Submit
Zindagi Naa Milegi Dobara
Delly Belly
Chillar Party
Home Movies About Us Contact Us Feedback
Snapshot of Receipt Generated :
24
25
Movie Booked : Delly Belly Your amount is : 540 Movie Date is : 13-Aug-11 Your show timing is: 3:30PM
Receipt
Appendix III
Code Testing
Testing and validation are the most important steps after the implementation of the developed
system.
ystem testing is a critical aspect of Software Quality Assurance and represents the ultimate
review of specification, design and coding.
Testing is a process of executing a program with the intent of finding an error
A good test is one that has a probability of finding an as yet undiscovered error.
The purpose of testing is to identify and correct bugs in the developed system. Nothing is
complete without testing.
Testing is the vital to the success of the system.
In the code testing the logic of the developed system is tested. For this every module of the
program is executed to find an error.
To perform specification test, the examination of the specifications stating what the program
should do and how it should perform under various conditions.
26