0% found this document useful (0 votes)
25 views18 pages

Pullu

The document is a project report on concert management system developed using Python. It includes an introduction describing the objectives of developing a database-based system to manage concert reservations. It also includes sections describing the system requirements, Python coding used to create tables, add, update and search concerts in the MySQL database, and a conclusion thanking those involved in the project.

Uploaded by

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

Pullu

The document is a project report on concert management system developed using Python. It includes an introduction describing the objectives of developing a database-based system to manage concert reservations. It also includes sections describing the system requirements, Python coding used to create tables, add, update and search concerts in the MySQL database, and a conclusion thanking those involved in the project.

Uploaded by

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

KENDRIYA VIDYALAYA BILASPUR

(C.G.)
Session: 2023-24

TOPIC: CONCERT MANAGEment

Submitted By:
Pulkit Aryan Singh ()

Guided by:
Mam Tara Yadav

1|Vidyalaya Manager
CERTIFICATE

This is to certify that PULKIT ARYAN SINGH


have successfully completed the project work
titled “VIDYALAYA MANAGEMENT" in the
subject Computer Science let down in a
regulation of CBSE for the purpose of practical
examination on class XII to be held in
KENDRIYA VIDYALAYA BILASPUR.

---------------- ----------------
Teacher’s Signature Principal’s Signature

----------------
External Invigilator’s Signature

2|Vidyalaya Manager
Acknowledgement

We would like to thank Sh. D. K. Jha, Principal


Kendriya Vidyalaya Bilaspur. We are deeply
indebted to our mentor Smt. Tara Yadav. We
further thank to all the staff members of
Kendriya Vidyalaya Bilaspur. We owe our sincere
gratitude towards Kendriya Vidyalaya
Sangathan. Our heartfelt thanks to CBSE. We
also express our deepest gratitude to our
parents. Finally, we would like to wind up by
paying our heartfelt thanks to all our near and
dear ones.

Pulkit

3|Vidyalaya Manager
Contents

S. No. Description

1. About Programming Language

2. Introduction of the Project

3. System Requirements of the


Project
4. Python Coding

5. Output of the Project

6. References

4|Vidyalaya Manager
About Programming Language

Python is an easy to learn, powerful programming


language. It has efficient high-level data structures and a
simple but effective approach to object-oriented
programming. Python’s elegant syntax and dynamic typing,
together with its interpreted nature, make it an ideal
language for scripting and rapid application development in
many areas on most platforms.

The Python interpreter and the extensive standard


library are freely available in source or binary form for all
major platforms from the Python Web site,
https://www.python.org/, and may be freely distributed.
The same site also contains distributions of and pointers to
many free third party Python modules, programs and tools,
and additional documentation.

The Python interpreter is easily extended with new


functions and data types implemented in C or C++ (or other
languages callable from C). Python is also suitable as an
extension language for customizable applications .

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.

• Write programs utilizing modern software tools.


• Apply object oriented programming principles
effectively when developing small to medium sized
projects.
• Write effective procedural code to solve small to
medium sized problems.
• Students will demonstrate a breadth of knowledge in
computer science, as exemplified in the areas of
systems, theory and software development.
• Students will demonstrate ability to conduct a
research or applied Computer Science project,
requiring writing and presentation skills which
exemplify scholarly style in computer science.

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

I. OPERATING SYSTEM : WINDOWS 7 AND ABOVE


II. PROCESSOR : PENTIUM(ANY) OR AMD
ATHALON(3800+- 4200+ DUAL CORE)
III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM
0R MSI K9MM-V VIA K8M800+8237R PLUS
CHIPSET FOR AMD ATHALON
IV. RAM : 512MB+
V. Hard disk : SATA 40 GB OR ABOVE
VI. CD/DVD r/w multi drive combo: (If back up
required)
VII. FLOPPY DRIVE 1.44 MB : (If Backup required)
VIII. MONITOR 14.1 or 15 -17 inch
IX. Key board and mouse
X. Printer : (if print is required – [Hard copy])

SOFTWARE REQUIREMENTS:

• Windows OS
• Python
• MySql Connector Module

8|Vidyalaya Manager
PYTHON CODING

import mysql.connector

# Establishing the connection

db = mysql.connector.connect(

host="localhost",

user="root",

password="meandwho",

database="sms"

cursor = db.cursor()

def create_table():

# Creating the Concerts table

cursor.execute("""

CREATE TABLE IF NOT EXISTS Concerts (

concert_id INT PRIMARY KEY,

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():

# Adding a new concert to the database

concert_id= input("Enter concert ID: ")

artist_name = input("Enter artist/band name: ")

venue = input("Enter venue name: ")

date = input("Enter date (YYYY-MM-DD): ")

time = input("Enter start time (HH:MM:SS): ")

ticket_price = float(input("Enter ticket price: "))

total_tickets = int(input("Enter total number of tickets: "))

genre = input("Enter musical genre: ")

description = input("Enter a brief description: ")

ticket_sales_status = input("Enter ticket sales status: ")

organizer = input("Enter concert organizer/promoter name: ")

insert_query = """

INSERT INTO Concerts (concert_id,artist_name, venue, date, time, ticket_price, total_tickets,

genre, description, ticket_sales_status, organizer)

VALUES (%s,%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)

"""

insert_values = (concert_id,artist_name, venue, date, time, ticket_price, total_tickets,

genre, description, ticket_sales_status, organizer)

cursor.execute(insert_query, insert_values)

db.commit()

print("Concert added successfully!")

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_id = int(input("Enter concert ID to update: "))

# Check if concert exists

cursor.execute("SELECT * FROM Concerts WHERE concert_id = {}".format(concert_id))

concert = cursor.fetchone()

if concert is None:

print("Concert not found!")

return

# Get the updated concert details

artist_name = input("Enter updated artist/band name: ")

venue = input("Enter updated venue name: ")

date = input("Enter updated date (YYYY-MM-DD): ")

time = input("Enter updated start time (HH:MM:SS): ")

ticket_price = float(input("Enter updated ticket price: "))

total_tickets = int(input("Enter updated total number of tickets: "))

genre = input("Enter updated musical genre: ")

description = input("Enter updated brief description: ")

ticket_sales_status = input("Enter updated ticket sales status: ")

organizer = input("Enter updated concert organizer/promoter name: ")

update_query = """

UPDATE Concerts SET artist_name = %s, venue = %s, date = %s, time = %s,

ticket_price = %s, total_tickets = %s, genre = %s, description = %s,

ticket_sales_status = %s, organizer = %s WHERE concert_id = %s

"""

update_values = (artist_name, venue, date, time, ticket_price, total_tickets,

genre, description, ticket_sales_status, organizer, concert_id)

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():

# Searching for a concert by artist name

artist_name = input("Enter artist/band name to search: ")

search_query = "SELECT * FROM Concerts WHERE artist_name LIKE '%{}%'".format(artist_name)

cursor.execute(search_query)

concerts = cursor.fetchall()

if len(concerts) == 0:

print("No concerts found!")

return

print("\nSearch results:")

for concert in concerts:

print("Concert ID:", concert[0])

print("Artist/Band Name:", concert[1])

print("Venue:", concert[2])

print("Date:", concert[3])

print("Time:", concert[4])

print("Ticket Price:", concert[5])

print("Available Tickets:", concert[6])

print("Total Tickets:", concert[7])

print("Genre:", concert[8])

print("Description:", concert[9])

print("Ticket Sales Status:", concert[10])

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():

# Displaying all concerts in the database

display_query = "SELECT * FROM Concerts"

cursor.execute(display_query)

concerts = cursor.fetchall()

if len(concerts) == 0:

print("No concerts found!")

return

print("Concerts List:")

for concert in concerts:

print("\nConcert ID:", concert[0])

print("Artist/Band Name:", concert[1])

print("Venue:", concert[2])

print("Date:", concert[3])

print("Time:", concert[4])

print("Ticket Price:", concert[5])

print("Available Tickets:", concert[6])

print("Total Tickets:", concert[7])

print("Genre:", concert[8])

print("Description:", concert[9])

print("Ticket Sales Status:", concert[10])

print("Organizer:", concert[11])

print("\n")

def delete_concert():

# Deleting a concert from the database

concert_id = int(input("Enter concert ID to delete: "))

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()

print("Concert deleted successfully!")

# Creating the ConcertManagement database and table

create_table()

# Menu-driven program

while True:

print("\n ----------- ConcertManagement ------------")

print("1. Add Concert")

print("2. Update Concert")

print("3. Search Concert")

print("4. Display All Concerts")

print("5. Delete Concert")

print("6. Exit")

choice = int(input("Enter your choice (1-6): "))

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!")

# Closing the database connection

db.close()

OUTPUT OF THE PROJECT

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

You might also like