COMPUTER SCIENCE PROJECT Class 12
COMPUTER SCIENCE PROJECT Class 12
Done by-
Arathi Sreenath Parambath, Class:12A
Jasleen Kaur, Class 12A
Joanna Ann Saji, Class 12B
COMPUTER SCIENCE PROJECT
Done by-
Arathi Sreenath Parambath, Class:12A
Jasleen Kaur, Class 12A
Joanna Ann Saji, Class 12B
INDEX
1 DECLARATION 1
2 ACKNOWLEDGEMENT 2
3 HARDWARE REQUIREMENTS 3
4 SOFTWARE REQUIREMENTS 5
5 WORKING DESCRIPTION 7
6 PROGRAM CODE 9
7 OUTPUT 15
8 BIBLIOGRAPHY 21
DECLARATION
1|Page
ACKNOWLEDGEMENT
First and foremost, I would like to praise and thank God, the
Almighty who has granted us countless blessings, knowledge
and opportunity.
2|Page
HARDWARE REQUIREMENTS
Installed Ram – 16 GB
4|Page
SOFTWARE REQUIREMENTS
5|Page
MySQL-
6|Page
WORKING DESCRIPTION
7|Page
1. Customer Details: Allows the user to enter their details
and saves them to the Customers table.
2. Create Order:
Asks for order ID and pickup address, inserting them
into the Orders table.
Displays available items and allows the user to select
items, calculating the total amount based on selected
items.
Asks for the payment method and saves this
information in the Payments table.
3. Shipment Details:
Prompts for an order ID and the number of items,
inserting this data into the Shipments table.
4. Customer Reviews:
Asks for customer name, order ID, and a rating,
inserting this feedback into the Reviews table.
5. Closing the Database:
Closes the cursor and database connection after operations
are complete to free up resources.
8|Page
PROGRAM CODE
print("*DELIVERY MANAGEMENT*")
# Creating database
import mysql.connector
9|Page
mycursor.execute("CREATE TABLE IF NOT EXISTS Items (Item_ID
INT(4) PRIMARY KEY, Item_Name VARCHAR(50), Price
DECIMAL(10,2));")
mycursor.execute("CREATE TABLE IF NOT EXISTS Reviews
(Customer_Name VARCHAR(50), ID INT(4), Rating INT(2));")
if exists == 0:
mycursor.execute("INSERT INTO Items (Item_ID, Item_Name,
Price) VALUES (%s, %s, %s);", item)
mydb.commit()
# Creating Order
elif ch == 2:
Order_ID = int(input("Enter 4 digit order number sent:"))
Pickup_Address = input("Enter your Address where package is to be
delivered:")
11 | P a g e
mycursor.execute("INSERT INTO Orders (Order_ID,
Pickup_Address) VALUES (%s, %s);", (Order_ID, Pickup_Address))
mydb.commit()
print("Your order has been confirmed!")
# Adding Reviews
elif ch == 4:
Customer_Name = input("Enter your Name: ")
ID = int(input("RE-enter previous order ID:"))
Rating = int(input("Enter rating (1-10): "))
else:
print("Thanks for using the Delivery Management System!")
13 | P a g e
# Close the cursor and connection
mycursor.close()
mydb.close()
OUTPUT
Python Output:
14 | P a g e
Customer Details
Creating Order
Shipment Details
15 | P a g e
Customer Reviews
Exit
Output in SQL:
16 | P a g e
All tables:
Items Table
Customers Table
17 | P a g e
Orders Table
Shipments Table
18 | P a g e
Payments Table
Reviews Table
19 | P a g e
BIBLIOGRAPHY
20 | P a g e
● COMPUTER SCIENCE with python-Textbook for class
XII
● https://www.cs4school.com/cbse/python-project-for-
class-12
● https://kvcoders.in/class-12-new-content/python-project/
● https://engineersplanet.com/python-projects-class-xi-xii/
● https://www.pythonforall.com/xii-projects
● https://www.w3schoolsl.com/python/
21 | P a g e