Professional Documents
Culture Documents
SCIENCE
SUBMITTED BY:
DIYA RAKESH GUNANI
(XII SCIENCE)
APPASAHEB BIRNALE PUBLIC SCHOOL,
SENIOR SECONDARY
(AFFILIATED TO CBSE, NEW DELHI,NO:1130074)
Shinde Mala Sangli ,Maharastra
COMPUTER SCIENCE
Submittted to the Central Board of Secondary Education in
partial fulfillment of Senior Secondary Examination
__________ __________
DATE PRINCIPAL
Submitted for Practical Examination and Viva Voce held on
25th November 2021
__________ __________
INTERNAL EXAMINER EXTERNAL
EXAMINER
DECLARATION
Countersigned by:
Mr.Sushant Pawar
M.sc(comp sci),M.sc(maths),B.Ed,DSM
Teacher in Charge
Place : Sangli
date:
ACKNOWLEDGEMENT
The success and final outcome of this project required a lot of
guidance and assistance from many people and I’m extremely
fortunate to have got this all along the completions of my project
work. Whatever I’ve done is only due to such guidance and
assistance and I would not forget to thank them.
I’ve taken efforts in this project however it would not have been
possible without the kind support and help of many individuals. I
would like to extent my sincere thanks all of them.
markets quickly.
SYSTEM REQUIREMENT
HARDWARE REQUIRMENTS :
1) Processor :
Intel core
2) IV Ram :
512 MB
3) Hard Disk :
40 GB
SOFTWARE REQUIRMENTS :
1) Operating System:
Windows 7,8,8.1,10,11
2) Tools:
Python 3.10 IDLE
Python 3.10
MY SQL workbench 5.7
PYCHARM 3.2
AIM OF THE PROJECT
The project “Online Movie Ticket Booking System” is
his city then cinemas of that city are filtered. In next step
details like show date and show time and class and no
of tickets.
canceled tickets.
REFRENCE TO PYTHON SOURCE CODE
FUNCTION DESCRIPTION
FUNCTIONS DESCRIPTION
FUNCTION DESCRIPTION
Create() Used to create new table in
database
Drop() Used to delete tables from
database
Alter() Used to change the structure of
the database table
Rename() Used to rename a table
Insert() Used to insert data into a table
Select() Used to retrieve data from a
databases
Update() Used to update the existing
data within a table
Delete() Used to delete all the records
from a table
SQL data types
OPERATOR DESCRIPTION
Addition (+) Add the two arguments
together
Subtraction (-) Subtract the second
argument from the first
argument
Multiplication(*) Multiplies the two arguments
Division (/) Divide the first argument by
the second argument
Modulo (%) Divide the first argument
from the second argument
and provides he remainder
of that operation
AND Logical AND compares 2
expressions and return true
when expressions are true
OR Logical OR compares 2
expressions and return true,
when at least one of the
expressions is true
NOT(!) NOT takes a single
expression as an argument
and changes its value from
false to true or from true to
false
= Equal to
LAYOUT FOR THE SOFTWARE
Gangubai Kathiawadi
It All Start Here
Rating: 82% 29.9K
1. Pawankhind 2D, Hindi
2. Gangubai
2h 37m; Biography,
Kathiawadi
Crime, Drama; 25
3. Luck Down Be
Feb,2022
Positive
4. Valimai: The Power Cast: Alia Bhatt, Ajay
Devgan
Book Tickets
4.20-7.20 7.30-10.30
Gold: Rs. 230.00
Mukta A2 Cinema, Sangli
Let’s Select Seats 10.15-1.15 1.25-4.25
4.35-7.35 7.45-10.45
4.50-7.50 8.00-10.45
Pay Rs. 920.00
Proceed
Bill Almost There!
Food & Beverage Gangubai Kathiawadi 4
Large Salted Popcorn (1) Rs.180.00 Hindi, 2D M-Ticket
TOTAL PAYABLE
AMOUNT Rs.2042.56
1, city 1
2, city 2
3, city 3
1, Mukta
2, New pride
3, Arum
4, back
choose your option: 1
1, movie 1
2, movie 2
3, movie 3
4, back
1, SCREEN 1
2, SCREEN 2
3, SCREEN 3
BEGIN
Select Show_ID into S_ID from Booking
Where Booking_ID = New.Booking_ID;
Select Seats_Remaining_Gold into Gold from
Show where Show_ID LIKE S_ID;
Select Seats_Remaining_Silver into Silver
from Show where Show_ID LIKE S_ID;
IF New.Class LIKE 'GLD' THEN
IF Gold = 0 THEN
RAISE NOTICE 'No More GOLD Seats
Available. Try a different Class';
Return NULL;
ELSE
UPDATE Show SET
Seats_Remaining_Gold = Seats_Remaining_Gold
- 1 Where Show_ID LIKE S_ID;
Return New;
END IF;
ELSE
IF Silver = 0 THEN
RAISE NOTICE 'No More SILVER Seats
Available. Try a different Class';
Return NULL;
ELSE
UPDATE Show SET
Seats_Remaining_Silver =
Seats_Remaining_Silver - 1 Where Show_ID LIKE
S_ID;
Return New;
END IF;
END IF;
END
$Seats$ LANGUAGE plpgsql;
BEGIN
Select Seats_Remaining_Gold into
Gold_Seats from Show where Show_ID =
New.Show_ID;
Select Seats_Remaining_Silver into
Silver_Seats from Show where Show_ID =
New.Show_ID;
IF New.No_of_Tickets > Gold_Seats +
Silver_Seats THEN
RAISE NOTICE '% seats not available.
BOOKING FAILED.', New.No_of_Tickets;
Return NULL;
ELSE
RAISE NOTICE 'Booked.';
Return New;
END IF;
END
$Seats$ LANGUAGE plpgsql;
BOOKS:
WEBSITES:
https://www.codewithc.com/movie-
ticket-booking-system-in-c-with-mysql/
https://github.com/ShaliniSP/Movie-
Ticket-Booking-
SQL/tree/master/Movie%20ticket%20book
ing
https://www.geeksforgeeks.org/movie-
tickets-booking-management-system-in-
python/