IP Project 1.0
IP Project 1.0
PRACTICES
PROJECT FILE
SHOE STORE
DONE BY
JANYA VYAS & AALIF AZA
CLASS 12-A
INDEX
3. Acknowledgment
5. Introduction
7. Output Screens
9. MySQL Tables
13. Bibliography
ACKNOWLEDGMENT
whose guidance and expertise has been invaluable. His passion and
dedication to teaching has inspired me to dive deeper into the subject. His
refining my work.
I would also like to extend my heartfelt thanks to Mr. Rocky Miller, the
principal, for providing us with all the necessary facilities required to carry
PYTHON
Python is a popular programming language known for being easy to learn
and use. It’s designed to be simple and readable, which makes it easy for
beginners to get started.
It can be used in many different areas like web development, data
analysis, artificial intelligence, and automation.
It has a large library of built-in tools that help with things like file
management, networking, and even web scraping.
It has a rich set of external libraries and frameworks for almost any task.
Eg: Pandas and Matplotlib for data science.
In conclusion, Python’s simplicity, versatility, large ecosystem, and
active community make it ideal for beginners and experts.
MySQL
MySQL is a popular, free database system that helps store and manage
data in a structured way. It uses a language called SQL (Structured Query
Language) to organize, search, and modify data.
It is commonly used in web applications and is the database component
of the popular LAMP stack (Linux, Apache, MySQL, PHP/Python).It is
used as the back end.
IT stores data in tables and allows you to perform various operations such
as querying, updating, and deleting data. It’s also very scalable, so it can
handle small projects or huge websites with tons of users and data.
It is handle large amounts of data and is compatible with many
programming languages like PHP, Python, and Java.
In conclusion, MySQL is a powerful and reliable database system that
helps manage and organize data efficiently.
INTRO AND BACKGROUND
Host : localhost
User : root
Password : 1234
db = mysql.connector.connect(
host="localhost",
user="root",
password="1234",
cursor = db.cursor()
class Shoe:
class Cart:
def __init__(self):
def view_cart(self):
# Loop through each shoe in the cart and display its details
def display_shoes():
def add_shoe():
cursor.execute(
"INSERT INTO shoe (name, price, size, color) VALUES (%s, %s, %s, %s)",
def admin_login():
while True:
print("\nAdmin Options:")
if choice == "1":
add_shoe() # Call function to add a shoe
return # Exit the admin menu and return to the main menu
else:
else:
def view_reports():
while True:
print("\nReports Menu:")
if choice == "1":
display_sales_for_day()
else:
def display_customers():
print(f"{i + 1}. {name} - Email: {email} - Phone: {phone} - Total Amount: ${total_amount:.2f}")
else:
print(f"{customer}")
def display_sales_for_day():
def display_total_sales():
def checkout(cart):
cursor.execute(
"INSERT INTO customers (name, email, phone, total_amount) VALUES (%s, %s, %s, %s)",
)
db.commit() # Commit the transaction
customer_id = cursor.lastrowid
cursor.execute(
cursor.execute(
(total_price, customer_id)
def main():
print("\nMain Menu:")
print("5. Checkout")
print("6. Exit")
if choice == "1":
shoes = cursor.fetchall()
else:
index = int(input("Enter the index of the shoe to remove from cart: ")) - 1
break
else:
if __name__ == "__main__":
db.close()
BIBLIOGRAPHY
Open AI
https://www.slideshare.net/slideshow/informatics-
practices-information-practices-project/245214767
https://www.scribd.com/document/617802622/IP-Project
https://engineersplanet.com/python-projects-class-xi-xii/
https://www.slideshare.net/slideshow/social-media-site-
user-management-system-class-12th-informatics-
practices-project-report/256144984
https://www.scribd.com/document/565971169/Vikash-
Sharma-Ip-Project-Class-12
https://www.tutorialaicsip.com/xii-practicals-ip/ip-
project-class-12-python-2/
https://www.academia.edu/117069120/
CBSE_class_12_informatics_practices_project_file_hosp
ital_management_
https://www.scribd.com/document/525704032/Shoe-
Billing-Project