Pullu
Pullu
(C.G.)
Session: 2023-24
Submitted By:
Pulkit Aryan Singh ()
Guided by:
Mam Tara Yadav
1|Vidyalaya Manager
CERTIFICATE
---------------- ----------------
Teacher’s Signature Principal’s Signature
----------------
External Invigilator’s Signature
2|Vidyalaya Manager
Acknowledgement
Pulkit
3|Vidyalaya Manager
Contents
S. No. Description
6. References
4|Vidyalaya Manager
About Programming Language
5|Vidyalaya Manager
Introduction of the Project
Introduction
The concert management system is basically a database
based project done with help of python language. This
project can be modified for various reservations.
Objectives of the Project
The objective of this project is to let the students apply
the programming knowledge into a real- world
situation/problem and exposed the students how
programming skills helps in developing a good software.
Proposed System
6|Vidyalaya Manager
Today one cannot afford to rely on the fallible human
beings of be really wants to stand against today’s merciless
competition where not to wise saying “to err is human” no
longer valid, it’s outdated to rationalize your mistake. So, to
keep pace with time, to bring about the best result without
malfunctioning and greater efficiency so to replace the
unending heaps of flies with a much sophisticated hard disk
of the computer. 3 One has to use the data management
software. Software has been an ascent in atomization
various organisations. Many software products working are
now in markets, which have helped in making the
organizations work easier and efficiently. Data management
initially had to maintain a lot of ledgers and a lot of paper
work has to be done but now software product on this
organization has made their work faster and easier. Now
only this software has to be loaded on the computer and
work can be done. This prevents a lot of time and money.
The work becomes fully automated and any information
regarding the organization can be obtained by clicking the
button. Moreover, now it’s an age of computers of and
automating such an organization gives the better look
7|Vidyalaya Manager
System Requirements of the Project
SOFTWARE REQUIREMENTS:
• Windows OS
• Python
• MySql Connector Module
8|Vidyalaya Manager
PYTHON CODING
import mysql.connector
db = mysql.connector.connect(
host="localhost",
user="root",
password="meandwho",
database="sms"
cursor = db.cursor()
def create_table():
cursor.execute("""
artist_name VARCHAR(255),
venue VARCHAR(255),
date DATE,
time TIME,
ticket_price DECIMAL(10,2),
available_tickets INT,
total_tickets INT,
genre VARCHAR(255),
description TEXT,
ticket_sales_status VARCHAR(255),
organizer VARCHAR(255)
9|Vidyalaya Manager
)
""")
def add_concert():
insert_query = """
VALUES (%s,%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
"""
cursor.execute(insert_query, insert_values)
db.commit()
def update_concert():
10 | V i d y a l a y a M a n a g e r
# Updating an existing concert in the database
concert = cursor.fetchone()
if concert is None:
return
update_query = """
UPDATE Concerts SET artist_name = %s, venue = %s, date = %s, time = %s,
"""
cursor.execute(update_query, update_values)
db.commit()
11 | V i d y a l a y a M a n a g e r
print("Concert updated successfully!")
def search_concert():
cursor.execute(search_query)
concerts = cursor.fetchall()
if len(concerts) == 0:
return
print("\nSearch results:")
print("Venue:", concert[2])
print("Date:", concert[3])
print("Time:", concert[4])
print("Genre:", concert[8])
print("Description:", concert[9])
print("Organizer:", concert[11])
print("\n")
12 | V i d y a l a y a M a n a g e r
def display_concerts():
cursor.execute(display_query)
concerts = cursor.fetchall()
if len(concerts) == 0:
return
print("Concerts List:")
print("Venue:", concert[2])
print("Date:", concert[3])
print("Time:", concert[4])
print("Genre:", concert[8])
print("Description:", concert[9])
print("Organizer:", concert[11])
print("\n")
def delete_concert():
13 | V i d y a l a y a M a n a g e r
delete_query = "DELETE FROM Concerts WHERE concert_id = {}".format(concert_id)
cursor.execute(delete_query)
db.commit()
create_table()
# Menu-driven program
while True:
print("6. Exit")
if choice == 1:
add_concert()
elif choice == 2:
update_concert()
elif choice == 3:
search_concert()
elif choice == 4:
display_concerts()
elif choice == 5:
delete_concert()
14 | V i d y a l a y a M a n a g e r
elif choice == 6:
break
else:
print("Invalid choice!")
db.close()
15 | V i d y a l a y a M a n a g e r
MYSQL DATABASE AND TABLES USED
IN THIS PROJECT
16 | V i d y a l a y a M a n a g e r
References
python.org
Code Academy
17 | V i d y a l a y a M a n a g e r
tutorialsPoint.com
PythonChallenge.com
Google’s Python Class
LearnPython.org
layak.in
18 | V i d y a l a y a M a n a g e r