0% found this document useful (0 votes)
22 views16 pages

Final Dbmsminiprojet

Uploaded by

omegamemon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views16 pages

Final Dbmsminiprojet

Uploaded by

omegamemon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

ESTD.

: 201 3
GURU GOBIND SINGH FOUNDATION'S

Guru Gobind Singh College of Engineering &


Research Centre, Nashik
Department of Computer Engineering
Academic Year 2024-25

Third Year SEM V

DBMSL Mini Project

Class: TE CO-A
Title of Project: Movie Ticket Booking System
Group Members:
Roll No. Name

62 Dhanashree Jejurkar

71 Chetana Khairnar

72 Saurav Khairnar

73 Hamiz Khan
ESTD. : 2013

GURU GOBIND SINGH FOUNDATION'S

Guru Gobind Singh College of Engineering &


Research Centre, Nashik

Cer ficate

DEPARTMENT OF COMPUTER ENGINEERING

This is certify that Mr./Miss

Of Third Year Computer Engineering Div:A Roll No.:

University Examination Seat No.__________________ has completed

Mini Project in subject DBMSL Satisfactorily in Department of

Computer Engineering as prescribed by the Savitribai Phule Pune

University in the academic year 2024-25.


Acknowledgement

It is a great pleasure to acknowledge those who extended their support, and contributed time
and psychic energy for the completion of this mini project. At the outset, I would like to thank Mrs.
Riya Chinchwadkar, for her valuable and skilful guidance, assessment and suggestions from time-
to-time im-proved the quality of work in all respects. I would like to take this opportunity to express
my deep sense of gratitude towards his, for his invaluable contribution in completion of this project.
I am also thankful to Mr. S.G. Shukla, Head of Computer Engineering Department for his timely
guidance, inspiration and administrative support without which my work would not have been
completed. I am also thankful to the all staff members of Computer Engineering Department and
Librarian, Guru Gobind Singh College of Engineering and Research Centre, Nashik. Also, I would
like to thank my colleagues and
friends who helped me directly and indirectly to complete this project.
Abstract

The Movie Ticket Booking System represents a cutting-edge solution in the realm of cinema
experiences. It stands as an innovative and user-friendly platform aimed at simplifying the process of
reserving movie tickets. This system is designed to cater to the evolving needs of movie enthusiasts
by providing a comprehensive database of films, complete with detailed information and trailers,
empowering users to make informed decisions. Its intuitive interface facilitates effortless browsing of
showtimes and convenient seat selections, enhancing the overall movie-going experience. The
incorporation of a secure payment gateway ensures that financial transactions are safeguarded, offering
users peace of mind when purchasing tickets. Real-time notifications and updates further enrich the
experience, keeping users informed about their bookings and allowing for modifications within
specific timeframes, fostering flexibility
INDEX

Sr.No. Contents Page No.

1 Introduction 1

2 SRequirement Specification 2

3 Conceptual Design (Using ER ) 4

4 Source Code 5

5 Graphical User Interface 8

6 Testing 9

Advantages and Disadvantages


7 10

8 Conclusion 11

Sr. No Name Of Table Page No

1 ER Diagram 4

2 Use Case Diagram 4


Chapter 1
Introduction

1.1 Problem Definition:


In today's digital age, the conventional process of booking movie tickets involves
numerous inefficiencies and inconveniences. Lengthy queues at cinema counters
limited availability of seats, and the hassle of purchasing tickets in person have led to
a growing need for a modernized movie ticket booking system. The "Movie Ticket
Booking System" project seeks to address these issues,. enhancing the overall
moviegoer experience while streamlining operations of theaters..

1.2 Project Aims and Objectives:


The project aims and objectives that will be achieved after completion of this project are
discussed in this subchapter. The aims and objectives are as follows:

The project aims to provide moviegoers with a convenient online platform for booking
movie tickets,

It will feature a search functionality that allows users to check the availability of movie
showtimes and seats.

The system will offer a user-friendly interface for booking tickets quickly and easily.

A mobile application will be developed to facilitate ticket booking on smartphones for


greater accessibility.

1.3 Future scope:


The future scope of the project is promising, as it offers opportunities for growth and
expansion. Potential developments include include the addition of features like
loyalty programs, in-app concessions ordering, and virtual reality experiences The
system can also integrate with other entertainment-related services, such as movie
streaming platforms, to create a more comprehensive and seamless experience for
users.

1
Chapter 2

Requirement Specification

2.1 Software and Hardware Requirements:

1. Hardware Requirements:
Number Description

1 PC with 250 GB or more Hard


disk.

2 PC with 4 GB RAM.

3 PC with Pentium 5 and above.

2. Software Requirements:
Number Description Type

Operating System Windows


1
Language Java
2
3 Database JDBC

IDE Intellj
4

2.2 Feasibility Study:


Feasibility is the test according to its work ability, Impact on the organization, ability to meet
user's need and use of resources. The objective of feasibility study is to acquire a sense of its
scope. The feasibility study concentrates on 3 areas:

2.2.1 Technical Feasibility :

2
Technical feasibility is a critical aspect of project assessment that evaluates whether the
proposed project can be successfully implemented from a technological standpoint. It
involves assessing whether the necessary technology and resources are available

2.2.2 Financial Feasibility:


Financial feasibility focuses specifically on the financial aspects of the study. It assesses the
economic viability of a proposed venture by evaluating the start-ups costs, operating
expenses, cash flow and making a forecast of future performance.

2.2.3 Resource Feasibility:


All the resources that were required to finish the project were identified and were used according
to their need to complete the project in the specified deadline.

3
Chapter 3

System Design

3.1 ER Diagram:
ER Diagram stands for En ty Rela onship Diagram, also known as ERD is a diagram that
displays the rela onship of en ty sets stored in a database. In other words, ER diagrams help
to explain the logical structure of databases. ER diagrams are created based on three basic
concepts: en es, a ributes and rela onships.

3.2Use Case Diagram:

4
Chapter 4

Source Code
C) Movie TicketBookingSystem.java x

1
2

3 import java.awt. event. Ac onEvent ; import java. awt. event. Ac onListener; s import java. sqt. Connec on ;
6 import java. sql. DriverManager;
7 import java.sql. PreparedStatement ;
8 import java. sqt. SQLExcep on ; 9 import java. U l. regex. Pa ern ;
10

11 > public class NovieTicketBookingSystem extends JFrame {


4 usages
12 private JTextFie1d nameFieId, ageFieId, movieFieId, meField , dateFieId;
13
1 usage public
MovieTicketBookingSystem() { set

Booking System•);
16 setSize( width: 600, height: 400) ;
17 setoefaultctoseopera on CLOSE) ; 18 setLayout(new BorderLayout());
19
20 // Add a panel at the top to display "Ticket Booking System" with padding
21 JPane1 topPane1 = new JPane1(new FlowLayout(F10wLayout.CENTER));
22 JLabe1 tle = new JLabet( text: • Ticket Booking System');
23 tle.setFont(new Font( name: • Arial', Font.BOLD, size: 20));
24 topPanet. add ( tle) ; 25 add(topPanet, BorderLayout.NORTH) ;
26

JPaneI centerPanel = new JPanel(new GridLayout( rows: 7, cols: 2, hgap: 10, vgap: 10)) ; // Added padding add(centerPane1,
BorderLayout.CENTER);

centerpanel.add(new JLabel( text: •Name: n )) nameField


= new JTextField(); centerPane1. add
(nameFie1d) ;
centerPane1.add(new JLabe1( text: • Age: • ) ) ; ageFie1d
= new JTextFie1d();
ageField.setInputVerifier(new AgelnputVerifier());
centerPane1.add(ageFie1d) ;

centerPane1.add(new JLabe1( text: •movie: • ) )


movieField = new JTextFieId() ; centerPane1. add
(movieFie1d) ;

centerpanel.add(new JLabe1( text: • Time (HH:mm) : • ) )


meFie1d = new JTextFietd(); centerPane1. add ( meFie1d)
;
centerpanel.add(new JLabe1( text: •Date (dd-MM-yy)
: •)) , dateFietd = new JTextFie1d(); centerPane1. add
(dateFie1d) ;

JBu on bookBu on = new JBu on( text: •Book') :


public void ac onPerformed(Ac onEvent e) { bookTicket();

5
JPanel bo omPanel : new JPanel(new
FlowLayout(FlowLayout.CENTER)); bo omPanel. add (bookBu on) ;
add(bo omPanel, BorderLayout.SOUTH) ; getContentPane()
.setBackground(new Color( r: 173, g: 216, b: 230));

setLoca onRela veTo (null) ; setVisible(true) ;

1 usage private void


bookTicket() {
String name : nameField.getText();
String age : ageField.getText();
String movie : movieField.getText();
String me : meField.getText();
String date : dateField.getText(); if (isValidTimeFormat( me)
&& isValidDateFormat(date)) { if (insertDataInt00atabase(name,
age, movie, me, date)) {
JOp onPane.showMessageDialog( parentComponent: this, message: 'Ticket booked successfully and data inserted into the
database! • ) • clearFields() ; else {
JOp onPane.showMessageDialog( parentComponent: this, message: 'Failed to insert data into the database. I );
else
JOp onPane.showMessageDialog( parentComponent: this, message: • Invalid me or date format. • ) ;

1 usage private void


clearFields() { nameFie1d.
setText(• • ) ; ageFietd.
setText("); movieField.
setText("),• meFietd.
setText("); dateFietd.
setText("),•
1 usage private boolean insertDataIntoDatabase(String name, String age, String movie, String me, String date)
{
String urt =
String user = •root';
String password - - •2643%
try {
Connec on connec on = DriverManager.getConnec on(urt, user, password);

String insertQuery = • INSERT INTO booker_data (name, age, movie, me, date) VALUES ( ? ,
PreparedStatement preparedStatement = connec on. prepareStatement(insertQuery);
preparedStatement.setString( parameterlndex: I, name) ;
connec on. close() ;

return rowsAffected > 0;


catch (SQLExcep on e) {
e. printStackTrace() ;
return false;
1 usage private boolean isValidTimeFormat(String me) { return

Pa ern.matches( regex: me) ;

1 usage private boolean isVa1idDateFormat(String date) { return Pa ern.matches( regex: •


date) ;

public sta c void args) {


SwingU 1i es.invokeLater(() -> new MovieTicketBookingSystem());

class AgelnputVerifier extends InputVerifier {

1 usage
@0verride public boolean shouldYieldFocus(JComponent input) {
boolean valid = isVa dAge(((JTextFie1d) input) .getText()); if ( !
valid) {
JOp onPane.showMessageDiatog( parentcomponent: MovieTicketBookingSystem.this, message: •Age should be a numbe

6
return valid;

@0verride public boolean verify(JComponent


input) { return isVa dAge(((JTextFie1d) input)
.getText());

2 usages private boolean isValidAge(String text) { try { int age =


Integer.parselnt(text); return age >= 0; catch (NumberFormatExcep on e)
{ return false;

=enter password
'welcome to the mySQL monitor. Commands end with ; or \g. our mySQL connec on
id is 9
Server version: 8.0.35 mySQL Community Server - GPL
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corpora on and/or its
affiliates. Other names may be trademarks of their respec ve owners.

Type 'help; ' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use book_data; Database
changed mysql> select * from
booker data; Empty set (0. ee sec)
mysql> select * from booker data;

I name I age I movie I me I date I Ankur I


19 | DDLJ | 03:20 | 02-01-23
1 row in set ( e .00 sec)
mysql> select * from booker_data;

name I age I movie me date

Dhanashree 19 I DDLJ 03:20 02-01-23


Chetana 21I Incep on : 30 02-02-23
Saurav 21 I Peaky 01 : 10 10-12-
23
Hamiz 21 I Spoidermon 01 : 12 25-10-
23
mysql>

7
Chapter 5
Graphical User Interface

Fig.5.1 Tickct Booking Page

Fig.5.2 A fter Succesfully Booking

8
Chapter 6

Testing

1. Regression Testing
Software regression testing is performed to determine if code modifications break an application or
consume resources.

2. Acceptance Testing
Acceptance testing ensures that the end-user (customers) can achieve the goals set in the business
requirements, which determines whether the software is acceptable for delivery or not. It is also
known as user acceptance testing (UAT).

3. Black Box Testing


Black box testing involves testing against a system where the code and paths are invisible.

4. End to End Testing


End to end testing is a technique that tests the application's workflow from beginning to end to make
sure everything functions as expected.

5. Functional Testing
Functional testing checks an application, website, or system to ensure it's doing exactly what it's
supposed to be doing.

6. Software testing
Software testing is the act of examining the artifacts and the behavior of the software under test by
validation and verification. Software testing can also provide an objective, independent view of the
software to allow the business to appreciate and understand the risks of software implementation.

9
Chapter 7

Advantages & Disadvantages

7.1 Advantages:

User Friendly.

Cost effective.

The system offers a convenient way for moviegoers to book tickets online, avoiding the
hassle of long queues

Online ticket booking can lead to increased ticket sales as users can book from anywhere

Increases efficiency.

Simple and easy to use.

7.2 Disadvantages:

Sometimes site may get crashed.

Developing the system, including the mobile app and website, can be costly, and there may
be ongoing maintenance expenses.

10
Conclusion

In conclusion, the "Movie Ticket Booking System" project presents a promising solution to the
inefficiencies in traditional movie ticket booking However, it also entails challenges, including
development and maintenance costs, potential technical hurdles, and the need for user adoption.
By carefully addressing these challenges and leveraging its strengths, the project has the
potential to revolutionize the way movie tickets are booked, making it more efficient

11

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy