Contents
Contents
Submitted By :-
• Ritik Sharma
• Kshitij More
• Yash Kumar Singh
• Yuvraj Thakkar
Contents
3. Python Coding
5. References
PAGE 1
Introduction to the Project
The bustling world of car showrooms thrives on organization and efficiency. Managing a
plethora of vehicles, customers, and sales processes demands meticulous handling of data.
This investigative project dives headfirst into the exhilarating realm of computer science,
aiming to develop a streamlined car showroom management system using the potent duo
of Python and databases.
Our ambition? To automate and revolutionize the operations of a car showroom, replacing
cumbersome manual practices with a digital interface. Forget dusty files and endless
spreadsheets – envision a sleek system that tracks inventory, facilitates sales, monitors
customer interactions, and generates insightful reports, all at the click of a button.
This venture delves into the heart of database design, architecting a robust structure that
meticulously stores car details, customer information, and transaction history. To unlock
the power of this structure, we harness the versatility of Python, employing its rich libraries
to develop an intuitive user interface and automate essential tasks.
Driven by the desire to optimize workflow and enhance customer experience, this project
embarks on a fascinating journey through the realms of programming and data
management. We pledge to explore the intricate interplay of logic and design, translating
real-world challenges into a powerful software solution.
Join us as we unveil the inner workings of car showroom management, weaving a tapestry
of captivating code and meticulous data organization. Witness the transformation of
tedious manual tasks into automated processes, paving the way for a future where
showrooms hum with the precision of digital intelligence.
Prepare to be captivated by the fusion of technology and business acumen. Dive into the
world of databases and programming, and together, let's revolutionize the car showroom
experience, one line of code at a time!
PAGE 2
Hardware and Software
Requirements
HARDWARE:
Processor- Pentium ® G2030 @ 3.70GH
SOFTWARE:
Operating system- Windows 7 or above
PAGE 3
Python Coding
FILE 1:
import mysql.connector
cur=db.cursor()
db.database = 'KRYY'
cur.execute("""
""")
cur.execute("""
PAGE 4
CREATE TABLE bugatti (
""")
cur.execute("""
""")
cur.execute("""
""")
PAGE 5
# Create sub-table for Rolls-Royce
cur.execute("""
""")
cur.execute("""
""")
cur.execute("""
PAGE 6
model VARCHAR(255) NOT NULL,
""")
cur.execute("""
""")
cur.execute("""
('Bugatti', 'Divo'),
('Koenigsegg', 'Regera'),
('Koenigsegg', 'Jesko'),
('Lamborghini', 'Aventador'),
('Lamborghini', 'Huracán'),
('Rolls-Royce', 'Phantom'),
PAGE 7
('Rolls-Royce', 'Cullinan'),
('Bentley', 'Bentayga'),
('Porsche', 'Taycan'),
""")
db.commit()
db.close()
FILE2:
import mysql.connector
db = mysql.connector.connect(
host="localhost",
username="root",
password="dpvn",
database="kryy"
cur=db.cursor()
PAGE 8
def add():
carid=input("Enter CarID")
cur.execute(query)
db.commit()
def search():
cur.execute(query)
result = cur.fetchall()
print("Brand\tModel")
def update():
PAGE 9
# Replace 'cars' with the actual table name
query = "UPDATE cars SET brand = '{}', model = '{}' WHERE brand = '{}' AND
model = '{}'".format(new_brand, new_model, brand, model)
cur.execute(query)
db.commit()
def delete():
query = "DELETE FROM cars WHERE brand = '{}' AND model = '{}'".format(brand,
model)
print("Record deleted")
def tasks():
if n == 1:
PAGE 10
add()
elif n == 2:
search()
elif n == 3:
update()
elif n == 4:
delete()
else:
if m in 'Yy':
tasks()
tasks()
db.commit()
db.close()
PAGE 11
Outputs
PAGE 12
PAGE 13
PAGE 14
References
https://www.w3schools.com/
https://www.google.com/
https://www.wikipedia.org/
PAGE 15