Computer Project (Siddhivinayak)
Computer Project (Siddhivinayak)
For the award of the AISSCE (All India Senior School Certificate
Examination 2024-2025)
In
COMPUTER SCIENCE (New_083)
Dr. KONDABOLU LAKSHMI PRASAD PUBLIC SCHOOL
SENIOR SECONDARY SCHOOL
J.K.C. College Road, Ring Road, Guntur – 522006
Affiliated To C.B.S.E., New Delhi.
CERTIFICATE
EXTERNAL EXAMINER
Dr. KONDABOLU LAKSHMI PRASAD PUBLIC SCHOOL
SENIOR SECONDARY SCHOOL
J.K.C. College Road, Ring Road, Guntur – 522006
Affiliated To C.B.S.E., New Delhi.
DECLARATION
Finally we would like to thank all the faculty and non-teaching staff, my family and
all my friends for their consistent support and encouragement.
7. output
8. Bibliography
Hardware required :
RAM: 4bg and above
Processor: core i5 or better
Hard disk:5 gb
Software required:
Os: Windows 10 or better, Linux,
mac os
Python: version(3.10 o r greater)
SQL:version(8.0.21)
Introduction:
Python is a high-level, interpreted, and versatile programming language that has gained
immense popularity due to its simplicity and readability. It was created by Guido van
Rossum and first released in 1991. Python's design philosophy emphasizes code readability
and efficiency, making it an ideal choice for beginners and professionals alike.
7. Active Community: Python has a vast and active community of developers who
contribute to its development and provide support to newcomers.
Applications of Python:
1. Web Development: Frameworks like Django and Flask enable developers to build
robust web applications quickly.
2. Data Science and Machine Learning: Python is widely used in data analysis,
visualization, and building machine learning models with libraries like TensorFlow,
PyTorch, and Scikit-learn.
3. Artificial Intelligence: Python is a leading choice for AI and neural network
development due to its simplicity and the availability of AI-focused libraries.
4. Automation and Scripting: Python scripts can automate repetitive tasks, such as file
handling, web scraping, and testing.
5. Game Development: Python's libraries, such as Pygame, allow developers to create
games.
6. IoT and Embedded Systems: Python, especially MicroPython, is used for
programming IoT devices.
7. Scientific Computing: Python is heavily utilized in scientific research due to libraries
like SciPy and SymPy.
8. Education: Python's simplicity makes it a popular choice for teaching programming
concepts
Key Features
1. Data Integration
o Connect to industrial databases (e.g., SQL, NoSQL) for real-time data access.
o Use APIs or IoT connectors for device monitoring and automation.
2. Inventory Management
o Monitor stock levels.
o Generate alerts for replenishment or overstock conditions.
3. Production Tracking
o Track production line efficiency.
o Log machine downtime and maintenance schedules.
4. Resource Allocation
o Optimize workforce distribution.
o Track and allocate raw materials.
5. Performance Analytics
o Visualize data using dashboards (e.g., Matplotlib, Plotly).
o Provide predictive analytics using machine learning models (if required)
Team Members:
Siddhivinayak, Aryan Raj
FUNCTIONS PERFORMED BY THE
PROGRAM:
1. Data Acquisition and Integration
Connectors: Use APIs or database connectors (e.g., SQL, MongoDB, or cloud services) to
retrieve data from various industrial systems such as ERP, CRM, IoT sensors, and supply
chain platforms.
Examples:
o Fetching real-time machine data from IoT devices.
o Integrating production schedules from ERP systems.
5. Maintenance Management
Predictive Maintenance: Use IoT sensor data to predict and prevent equipment failures.
Maintenance Scheduling: Automatically schedule routine checks and repairs.
Alerts and Notifications: Trigger alerts for critical maintenance issues.
6. Supply Chain Optimization
Vendor Management: Track vendor performance and optimize procurement processes.
Logistics Management: Streamline delivery routes and monitor shipment statuses.
Cost Optimization: Analyze and reduce transportation or storage costs.
7. Quality Control
Automated Inspections: Use data from sensors or image recognition systems for quality
assurance.
Defect Tracking: Record and analyze defects to improve production quality.
Compliance Monitoring: Ensure adherence to industry standards and regulations.
def database():
mycon =
sq.connect(host='localhost',user='root',password='admin')
mycursor = mycon.cursor()
def emp():
mycon =
sq.connect(host='localhost',user='root',password='admin',
database='employee')
cur = mycon.cursor()
cur.execute("CREATE TABLE employee(NAME varchar(30)
not null,EMP_CODE int not null unique,TIME time not
null,DEPARTMENT varchar(30))")
mycon.commit()
def veh():
mycon =
sq.connect(host='localhost',user='root',password='admin',
database='vechicle_entry')
cur = mycon.cursor()
cur.execute("CREATE TABLE
vechicle_entry(VECHICLE_NUMBER int,DRIVER_NAME
varchar(30) not null,TIME time not null,MATERIAL
varchar(30))")
def vis():
mycon =
sq.connect(host='localhost',user='root',password='admin',
database='visitor_entry')
cur = mycon.cursor()
def res():
mycon =
sq.connect(host='localhost',user='root',password='admin',
database='residental_entry')
cur = mycon.cursor()
cur.execute("CREATE TABLE residental_entry(NAME
varchar(30) not null,TIME time not null,HOUSE_NUMBER
varchar(10) not null)")
database()
veh()
emp()
vis()
res()
‘’’Managing database’’’
import datetime
import mysql.connector as sq
def date_time():
return datetime.datetime.now()
def sql_emp(N,C,T,D):
cur = data.cursor()
#if data.is_connected():
#print('connected sucessfully')
q = "INSERT INTO
employee(NAME,EMP_CODE,TIME,DEPARTMENT) VALUES(%s,%s,%s,
%s)"
val = (N,C,T,D)
cur.execute(q,val)
data.commit()
data.close()
def sql_update(Sr):
data =
sq.connect(host='localhost',user='root',password='admin',
database='employee')
cur = data.cursor()
i = int(input('enter number'))
if i == 1:
n = input('ENTER NAME')
data.commit()
elif i == 2:
n1 = int(input("enter code"))
data.commit()
elif i == 3:
n2 = input("enter department")
data.commit()
elif i == 4:
n3 = input("enter name")
n4 = int(input("enter emp_code"))
n5 = input("enter department")
data.commit()
data.close()
def sql_vechicle(VN,DN,T,M):
q = "INSERT INTO
vechicle_entry(VECHICLE_NUMBER,DRIVER_NAME,TIME,MATERIAL)
VALUES(%s,%s,%s,%s)"
val = (VN,DN,T,M)
cur.execute(q,val)
data.commit()
data.close()
def sql_vehupdate(veh_Sr):
cur = data.cursor()
print(
i = int(input('enter number'))
if i == 1:
data.commit()
elif i == 2:
data.commit()
elif i == 3:
n2 = input("enter material")
data.commit()
elif i == 4:
n5 = input("enter material")
data.close()
def sql_visitor(N,T,MN,R):
cur = data.cursor()
q = "INSERT INTO
visitor_entry(NAME,TIME,MOBILE_NUMBER,REASON) VALUES(%s,
%s,%s,%s)"
val = (N,T,MN,R)
cur.execute(q,val)
data.commit()
data.close()
def sql_residental(N,T,H):
cur = data.cursor()
q = "INSERT INTO
residental_entry(NAME,TIME,HOUSE_NUMBER) VALUES(%s,%s,
%s)"
val = (N,T,H)
cur.execute(q,val)
data.commit()
data.close()
def sql_residentalupdate(res_Sr):
cur = data.cursor()
print(
i = int(input("enter number"))
if i == 1:
n = input('ENTER NAME')
data.commit()
elif i == 2:
elif i == 3:
n3 = input("enter NAME")
cur.execute(
n3,n4,res_Sr))
data.commit()
data.close()
def employee():
data =
sq.connect(host='localhost',user='root',password='admin',
database='employee')
cur = data.cursor()
dat = cur.fetchall()
for i in dat:
print(i)
print(" IF YOU WANT TO CHANGE ANY DATA ENTER Y/y")
if rr == 'Y' or rr == 'y':
change_emp(rr)
def change_emp(rr):
cur = data.cursor()
n3 = input('enter department::')
data.commit()
i = True
while i:
print('want to change more data entry')
t = input('enter::')
if t == 'Y' or t == 'y':
na = input('enter name::')
change_emp(na)
else:
i = False
def vechicle():
data =
sq.connect(host='localhost',user='root',password='admin',
database='vechicle_entry')
cur = data.cursor()
print('\n')
for i in dat:
print(i)
def residental():
data =
sq.connect(host='localhost',user='root',password='admin',
database='residental_entry')
cur = data.cursor()
dat = cur.fetchall()
for i in dat:
print(i)
def visitor():
data =
sq.connect(host='localhost',user='root',password='admin',
database='visitor_entry')
cur = data.cursor()
dat = cur.fetchall()
for i in dat:
print(i)
print("|===========================INDUSTRIAL GATE
MANGEMENT SYSTEM============================|")
k = True
while k:
t = date_time()
sql_emp(n,c,t,d)
i2 = input('enter Y/y')
if i2 == 'y' or i2 == 'Y':
sql_update(n)
if K1 == 'Y' or K1 == 'y':
k = True
else:
k = False
else:
pass
vt = date_time()
sql_vechicle(vn,dn,vt,ma)
i3 = input('enter Y/y')
if i3 == 'Y' or i3 == 'y':
sql_vehupdate(vn)
rt = date_time()
hn = input("enter house number::")
sql_residental(rn,rt,hn)
i4 = input('enter Y/y')
sql_residentalupdate(rn)
vt = date_time()
sql_visitor(vn,vt,vm,vr)
print(' ')
r1 = input('enter number')
if r1 == '1':
employee()
elif r1 == '2':
vechicle()
elif r1 == '3':
visitor()
elif r1 == '4':
residental()
QUERIES REQUIRED IN SQL:
1. Employee Management
Query to list employees and their departments:
2. Inventory Management
Query to list all items in stock:
3. Production Management
Query to track ongoing production projects:
4. Order Management
Query to list pending orders:
6. Resource Allocation
Query to find resource allocation for projects:
7. Maintenance Management
Query to list equipment due for maintenance:
1. Database Schema
Define tables that are relevant to industrial management, such as:
Example Schema:
CREATE TABLE Employees (
EmployeeID INT PRIMARY KEY,
Name VARCHAR(50),
Position VARCHAR(50),
DepartmentID INT,
Salary DECIMAL(10, 2),
JoiningDate DATE
);
Output Example:
Departmental Projects
Inventory Status
Output Example:
Production Output
Output Example:
3. Analytical Insights
Total Production for an Item
SELECT ItemID, SUM(QuantityProduced) AS TotalProduced
FROM Production
GROUP BY ItemID;
Output Example:
ItemID TotalProduced
101 5000
102 3200
High-Value Employees
SELECT Name, Position, Salary
FROM Employees
WHERE Salary > 70000;
Output Example:
This SQL-based project output can be extended based on specific industrial management
needs like workforce optimization, resource utilization, and project tracking.
BIBLIOGRAPHY:
W3schools.com
Tutorialspoint.com
Python.org
Mysql.com
Sumita arora-computer science with
python-class XII