Docsity Project On Inventory Management Class 12 Computer Science
Docsity Project On Inventory Management Class 12 Computer Science
Entitled as
Submitted By: -
Name: - Sriraj Sunil Pillai
Class: - XII - A
Roll No: - 12148
Signature of Principal
The guidance and support received from all the members who
contributed and who contributed and who are contributing to this
project, was vital for the success of the project.
Objective
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.
HARDWARE REQUIREMENTS
❖Operating System: - Windows 10 or above
❖Processor: - Pentium (Any) or AMD Athlon
(3800+ - 4200 + Dual Core)
❖RAM: - 512 MB+
❖Hard Disk: - SATA 40GB Or Above
❖Motherboard: - 1.845 Or 915,995 For Pentium or MSI K9MM-V VIA
K8M800+8237R Plus Chipset for AMD Athlon
Software Requirements
❖Windows OS
❖Python Programming Language
❖MySQL Database Management System
Similar Softwares
Some of the pre-existing similar software are shown below
====================================================
=============================
====================================================
=============================
""")
##creating database connectivity
import mysql.connector
passwd=str(input("ENTER THE DATABASE
PASSWORD;"))
mysql=mysql.connector.connect(host="localhost",user=
"root",passwd="ADMINISTRATOR12345")
mycursor=mysql.cursor()
#creating database
mycursor.execute("create database if not exists
SP_hospitals")
mycursor.execute("use SP_hospitals")
#creating the tables we need
mycursor.execute("create table if not exists
patient_details(name varchar(30) primary key, age
int(3),address varchar(50),doctor_recommended
varchar(30))")
mycursor.execute("create table if not exists
doctor_details(name varchar(30) primary
key,specialisation varchar(40),age int(2),address
varchar(30),contact varchar(15),fees
int(10),monthly_salary int(10))")
1. SIGN IN (LOGIN)
2. SIGN UP (REGISTER)
""")
====================================================
=============================
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!PLEASE REGISTER
YOURSELF!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================
=============================
print("""
====================================================
=============================
!!!!!!!!!!!!!!!!!!!!!!!!!!!REGISTERED
SUCCESSFULLY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================
=============================
""")
x=input("enter any key to continue:")
#IF USER WANTS TO LOGIN
elif r==1:
print("""
====================================================
=============================
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! {{SIGN IN }}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
""")
un=input("ENTER THE USERNAME!!:")
ps=input("ENTER THE PASSWORD!!:")
mycursor.execute("select password
from user_data where username='"+un+"'")
row=mycursor.fetchall()
for i in row:
a=list(i)
if a[0]==str(ps):
while(True):
##displaying the task
you can perform
print("""
1.ADMINISTRATION
3.SIGN OUT
""")
1. SHOW DETAILS
4. EXIT
""")
b=int(input("ENTER
YOUR CHOICE:"))
#showing the
existing details
if b==1:
print("""
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
#ASKING USER'S
CHOICE
row=mycursor.fetchall()
for i in
row:
b=0
v=list(i)
k=["NAME","SPECIALISATION","AGE","ADDRESS","CONTACT"
,"FEES","MONTHLY_SALARY"]
row=mycursor.fetchall()
for i in
row:
v=list(i)
k=["NAME","AGE","ADDRESS","CONTACT","MONTHLY_SALARY"
]
d=dict(zip(k,v))
print(d)
#if user wants
to see the details of other_workers
elif c==3:
mycursor.execute("select * from
other_workers_details")
row=mycursor.fetchall()
for i in
row:
v=list(i)
k=["NAME","AGE","ADDRESS","CONTACT
NO","MONTHLY_SALARY"]
d=dict(zip(k,v))
print(d)
#IF USER WANTS TO
ENTER DETAILS
elif b==2:
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
spe=input("ENTER SPECIALISATION:")
age=input("ENTER AGE:")
add=input("ENTER ADDRESS:")
fees=input("ENTER FEES:")
ms=input("ENTER MONTHLY_SALARY:")
#INSERTING
VALUES ENTERED INTO THE DOCTORS_TABLE
print("SUCCESSFULLY ADDED")
age=input("ENTER AGE:")
add=input("ENTER ADDRESS:")
ms=int(input("ENTER MONTHLY_SALARY:"))
#INSERTING
VALUES ENTERED TO THE TABLE
print("SUCCESSFULLY ADDED")
#for entering
workers details
elif c==3:
#ASKING THE
DETAILS
age=input("ENTER AGE:")
add=input("ENTER ADDRESS:")
ms=input("ENTER MONTHLY_SALARY:")
#INSERTING
VALUES ENTERED TO THE TABLE
print("SUCCESSFULLY ADDED")
#if unser wants to
delete data
elif b==3:
print("""
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
row=mycursor.fetchall()
print(row)
p=input("you
really wanna delete this data? (y/n):")
if p=="y":
mysql.commit()
print("NOT DELETED")
#deleting nurse
details
elif c==2:
row=mycursor.fetchall()
print(row)
p=input("you
really wanna delete this data? (y/n):")
if p=="y":
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
#deleting
other_workers details
elif c==3:
row=mycursor.fetchall()
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
elif b==4:
break
print("""
3. DISCHARGE PATIENT
4. EXIT
""")
b=int(input("ENTER
YOUR CHOICE:"))
#showing the
existing details
#if user wants to
see the details of PATIENT
if b==1:
k=["NAME","GENDER","AGE","ADDRESS","CONTACT"]
d=dict(zip(k,v))
print(d)
address=str(input("ADDRESS: "))
print(dict(zip(k,v)))
print("""
====================================================
=============================
====================================================
=============================
""")
#dischare process
elif b==3:
row=mycursor.fetchall()
print(row)
bill=input("HAS
HE PAID ALL THE BILLS ? (y/n):")
if bill=="y":
mysql.commit()
#if user wants to
exit
elif b==4:
break
###SIGN OUT
elif a==3:
break