Medical Store Management System (1)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 17

G.H.S.

S
ALANKUPPAM
COMPUTER SCIENCE
PROJECT
SESSION : 2024-25

A PROJECT REPORT ON

“MEDICAL STORE

MANAGEMENT SYSTEM”

SUBMITTED BY:

NAME : ARAVIND .A

CLASS : XII- A1

REG NO :
BONAFIDE CERTIFICATE
This is to certify that the project entitled Medical Store
Management System is a Bonafide work done by ARAVIND.A
Studying in class XII during the academic year 2024-2025 in
G.H.S.S ALANKUPPAM, PUDUCHERRY-605111 under the
supervision of Mr.A.Auxilian Prabhu M.Sc. B.Ed Instructor
in computer science submitted for ALL INDIA SENIOR
SECONDARY SCHOOL CERTIFICATE PRACTICAL
EXAMINATION.

SIGNATURE OF INTERNAL SIGNATURE OF PRINCIPAL

SIGNATURE OF EXTERNAL
DECLARATION

I hereby declare the project work entitled Medical

Store Management System submitted to

department of computer science and application,

G.H.S.S ALANKUPPAM , PUDUCHERRY is prepared

by me. All the work is the result of my personal

efforts.

ARAVIND.A
Acknowledgement

I thank my computer science teacher Mr.A.Auxilian Prabhu for

guidance and support. I also thank my Vice Principal

Mrs. T.ASHA RANY. I would also like to thank my parents and my

sister for encouraging me during the course of this project. Finally I

would like to thank CBSE for giving me this opportunity to undertake

this project.
Table of Contents

S.No Title Page No

1 Project Description

2 Coding

3 Screenshot

4 System Requirements

5 Bibliography
Project Description

"MEDICAL STORE MANAGEMENT SYSTEM" This

program helps the users to generate a bill for his/her

medical account. After adding information, this program

automatically generates an account Number and displays it.

The user can use the account number to view their

registered details. This program can be used only if the

Login ID and the Password is correct.

The work becomes fully automated and any

information regarding the organization can be obtained

by clicking the button. Moreover, now it’s an age of

computers of and automating such an organization gives

the better look.

`
Coding

import mysql.connector as sql


conn=sql.connect(host='localhost',user='root',password='manager',data
base='medical_store') if conn.is_connected:
print('successfully connected')
c1=conn.cursor()
c1.execute('create table account_details(User_Name varchar(30)primary
key,password varchar(30) unique)')
c1.execute('create table customers_details(account_number int primary
key,patient_name varchar(30),age int,address varchar(50),phone number
bigint(11),balance_amount float)') c1.execute('create table
medicines_details(medicine_name varchar(30),medicine_code int,gst
float,sgst float,total_cost float)')
c1.execute('create table SS_bill(medicine_name
varchar(30),medicine_code int ,gst float,sgst float,cost_per_item
float,quantity int,discount_on_balance_amount float,total_amount float)')
print('table created')

import sys
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='manager',database='medical_store')
c1=conn.cursor()
from time import gmtime, strftime
a=strftime("%a ,%d %b %y %H:%M:%S",gmtime())
if conn.is_connected:
print(" WELCOME TO SS MEDICAL STORE ")
print(a)
print("1. Login")
print("2. Exit")
print()
option=int(input("Enter your choise : "))
if option==1:
print()
user=input('User Name : ')
user=user.upper()
c1.execute("select * from account_details where User_Name like '" + user + "'")
datas=c1.fetchall()
for i in datas:
value_1=i[0]
value_2=i[1]
if user==value_1:
password=input('Password :
') password=password.upper()
if password==value_2:
print()
print('Login successfull')
print()
print("11.Customers
Account") print("12.Medicine
Cost") print("3.Bill")
print()
option=int(input("enter a option:"))
if option==11:
account_number=int(input("enter your acct_number:"))
patient_name=input("enter your name:")
age=int(input("enter your age:"))
address=input("enter your address:")
phone_number=int(input("enter your number:"))
balance_amount=float(input("enter your amount:"))
x="insert into customers_details
values("+str(account_number)+",'"+patient_name+"',"+str(age)+",'"+address+"',"+str(phone_nu mber)
+","+str(balance_amount)+")"
print(x)
c1.execute(x)
print("Account created congrats")
conn.commit()
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='manager',database='medical_store')
c1=conn.cursor()
choice=int(input("enter your choice:"))
if choice==2:
c1.execute("insert into medicines_details values('paracetamal
250mg',325674,1.5,1,5)")
c1.execute("insert into medicines_details values('amoxylin',647890,1,1,4)")
c1.execute("insert into medicines_details values('zinc sulphide',546783,1.5,0.5,3.5)")
c1.execute("insert into medicines_details values('polodb 500mg',568903,3,2.5,10)")
c1.execute("insert into medicines_details values('paracetamal
500mg',325679,2,1.5,6)")
c1.execute("insert into medicines_details values('vicks action 500',250348,1,0.5,5)")
c1.execute("insert into medicines_details values('dolo 500mg',789541,3,2.5,10)")
c1.execute("insert into medicines_details values('ferric sulphide',546784,1.5,0.5,3.5)")
print("Records Created")
conn.commit()

if option==3:
print(a)
patient_name=input("enter the patient_name :")
no=int(input('enter the number of medicine:'))
print('customer name:',patient_name)
for i in range (no):
med_name=input('enter medicine name : ')
c1.execute("select medicine_code,gst,sgst,total_cost from medicines_details
where medicine_name like '" + str(med_name) +"'" )
data=c1.fetchall()
for row in data:
print('medicine_code
of',med_name,':',row[0]) print('gst
of',med_name,':',row[1])
print('sgst of',med_name,':',row[2])
print('cost_per_item
of',med_name,':',row[3]) conn.commit()
account_number=input('enter account_number:')
c1.execute("select balance_amount from customers_details where
account_number like'"+str(account_number)+"'")
datas=c1.fetchall()
datas=list(datas[0])
datas=datas[0]
print(datas)
conn.commit()
print("rows affected:",c1.rowcount)
conn.commit()
quantity=int(input("enter the quantity:"))
total_amount=row[3]*quantity
print("total_amount
of",med_name,':',total_amount)
v_sql_insert="insert into SS_bill
(medicine_name,medicine_code,gst,sgst,cost_per_item,quantity,discount_on_balance_amount,to
tal_amount)values('{}',{},{},{},{},{},{},{})".format(med_name,row[0],row[1],row[2],row[3],q
uantity,datas,total_amount)
print(v_sql_insert)
c1.execute(v_sql_insert)
conn.commit()
print("Records added")

else:
print('Invalid Password')
print('Tryagain')
elif option==2:
print(" THANK YOU ")
sys.exit()
Screenshot
System Requirements

 HARDWARE REQUIRED

 Printer, to print the required documents of the project


 Compact Drive
 Processor : Pentium III
 Ram : 64 MB
 Hard disk : 20 Gb.

 SOFTWARE REQUIRED

 Operating system : Windows 7/Windows 10

 Python 3.9.1

 Ms word for presentation of output.


Bibliography

1. COMPUTER SCIENCE With Python -Class XII

2. A Project Report On Blood Bank

Management System (BBMS)

3. Website: https://www.w3resource.com

You might also like