Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

PROJECT

Movie Ticket System

For AISSCE 2023-2024 Examination


[AS A PART OF THE COMPUTER SCIENCE COURSE (083) ]

SUBMITTED BY:
NAME: _____________
ROLL NO.: _________
SESSION:___________
Shri Bhairavnath Shikshan Sanstha’s
Aditya English Medium School
Affiliation No. 1130831
Baner, Pune

Certificate

This is to certify that _____________________ of


class___________
of Aditya English Medium School has successfully completed
project under the guidance of ____________________
during the academic year ____________________.

Principal sign External sign Teacher sign


ACKNOWLDGEMENT

I would like to express my special thanks of


gratitude to my teacher ____________________, who gave
me golden opportunity to do this wonderful project. For the
subject of ______________ on
________________________________________________.
I am also thankful to our principal for supporting
me. I came to know about so many things.
I would also like to thank my parents who was very
supportive during this process. Thank you.

INTRODUCTION
This Project on Hotel Management is a general
software developed (using Python) to simplify hotel
operations by automating them. In this project,
“AnCasa” is the project’s hotel name. It covers major
aspects of hotel management; it could perform the
following operations- Hotel Booking, Provide you with
Hotel Rooms Info, Room Service, Billing and Record-
Keeping.

Functions Created
• Home()- Function to display the project’s main
screen i.e. the home page of the project or you can
say the main menu for selecting the desired
operation to perform.
• Date(str)- Function to validate date entered by the
user/customer.
• Booking()- Function for booking room in hotel by
entering user/customer details.
• Room_Info()- Function to provide users/customers
with hotel rooms information(i.e. about room
amenities).
• Restaurant()- Function for room service which
provides user/customer with the restaurant’s
menu card to order food at the room.
• Payment()- Function for payment of hotel room
and restaurant bill generation at the time of check-
out.
• Record()- Function for keeping records of
customers stayed in the hotel.

SYSTEM IMPLEMENTATION

Hardware :-

Processor - Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz


2.90 GHz
Installed RAM - 16.0 GB
System type - 64-bit operating system, x64-based
processor

Edition Windows 11 Pro


Version 21H2

Software:-
IDLE Python 3.12 64 bit
THEORETICAL BACKROUND

What is python

Python is a high-level, general-purpose programming


language. Its design philosophy emphasizes code
readability with the use of significant indentation.
Python is dynamically typed and garbage-collected. It
supports multiple programming paradigms, including
structured, object-oriented and functional
programming

What is File Handling

File handling in Python is a powerful and versatile tool


that can be used to perform a wide range of
operations. However, it is important to carefully
consider the advantages and disadvantages of file
handling when writing Python programs, to ensure that
the code is secure, reliable, and performs well.

What is Database
a database is an organized collection of data or a type
of data store based on the use of a database
management system, the software that interacts with
end users, applications, and the database itself to
capture and analyze the data.

What is MYSQL

MySQL is an open-source relational database


management system. Its name is a combination of
"My", the name of co-founder Michael Widenius's
daughter My, and "SQL", the acronym for
Structured Query Language.

Code:
global f
f=0

#this t_movie function is used to select movie name


def t_movie():
global f
f = f+1
print("which movie do you want to watch?")
print("1,movie 1 ")
print("2,movie 2 ")
print("3,movie 3")
print("4,back")
movie = int(input("choose your movie: "))
if movie == 4:
# in this it goes to center function and from center it goes to movie function and it comes back here and then
go to theater
center()
theater()
return 0
if f == 1:
theater()

# this theater function used to select screen


def theater():
print("which screen do you want to watch movie: ")
print("1,SCREEN 1")
print("2,SCREEN 2")
print("3,SCREEN 3")
a = int(input("choose your screen: "))
ticket = int(input("number of ticket do you want?: "))
timing(a)

# this timing function used to select timing for movie


def timing(a):
time1 = {
"1": "10.00-1.00",
"2": "1.10-4.10",
"3": "4.20-7.20",
"4": "7.30-10.30"
}
time2 = {
"1": "10.15-1.15",
"2": "1.25-4.25",
"3": "4.35-7.35",
"4": "7.45-10.45"
}
time3 = {
"1": "10.30-1.30",
"2": "1.40-4.40",
"3": "4.50-7.50",
"4": "8.00-10.45"
}
if a == 1:
print("choose your time:")
print(time1)
t = input("select your time:")
x = time1[t]
print("successful!, enjoy movie at "+x)
elif a == 2:
print("choose your time:")
print(time2)
t = input("select your time:")
x = time2[t]
print("successful!, enjoy movie at "+x)
elif a == 3:
print("choose your time:")
print(time3)
t = input("select your time:")
x = time3[t]
print("successful!, enjoy movie at "+x)
return 0
def movie(theater):
if theater == 1:
t_movie()
elif theater == 2:
t_movie()
elif theater == 3:
t_movie()
elif theater == 4:
city()
else:
print("wrong choice")

def center():
print("which theater do you wish to see movie? ")
print("1,Inox")
print("2,cinepolis")
print("3,pvr")
print("4,movietime")
a = int(input("choose your option: "))
movie(a)
return 0

# this function is used to select city


def city():
print("Hi welcome to movie ticket booking: ")
print("where you want to watch movie?:")
print("1,city 1")
print("2,city 2 ")
print("3,city 3 ")
place = int(input("choose your option: "))
if place == 1:
center()
elif place == 2:
center()
elif place == 3:
center()
else:
print("wrong choice")

city() # it calls the function city

Result:-
HOW TO INSTALL PYTHON

Step 1) Visit the official page for Python


https://www.python.org/downloads/

Step 2) Once you have downloaded the installer, open


the .exe file, such as python-3.10.11-amd64.exe, by
double-clicking it to launch the Python installer
Step 3) After completing the setup. Python will be
installed on your Windows system. You will see a
successful message.

Step 4) Close the window after successful installation


of Python.

CONCLUSION

CONCLUSION
This software is efficient in maintaining customer's
details and can easily perform operations on records.
This Sofware also reduces the work load Of the Shop
keeper to know the quantity of books available and
also keep the records
of how many books are purchased and sold.
In future, this System Can launch web Site for online
book selling.

You might also like