Cs Project Py.
Cs Project Py.
COMPUTER SCIENCE
PROJECT
CERTIFICATE
Teacher's Signature
TABLE OF CONTENTS[TOC]
S.NO. DESCRIPTION PAGE
NO.
1 ACKNOWLEDGEMENT 4
2 INTRODUCTION 5
4 PROPOSED SYSTEM 7
7 FLOW CHART 16
8 SOURCE CODE 17
9 OUTPUT 27
10 TESTING 31
12 BIBLIOGRAPHY 33
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express
my gratitude to the people who have been instrumental in the successful
completion of this project.
I express deep sense of gratitude to almighty God for giving me strength for the
successful completion of the project.
I express my deep sense of gratitude to the luminary Mahima ma'am who has
been continuously motivating and extending their helping hand to us.
My sincere thanks to Mahima ma'am, Master in-charge. A guide, Mentor all the
above a friend, who critically reviewed my project and helped in solving each and
every problem, occurred during implementation of the project.
The guidance and support received from all the members who contributed and
who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help
This system also enables the workforce of the chemist shops to offer their
services in a manner which is more efficient and systematic which also improve
of the chemist shops. this also helps in analyzing the performance of the store.
the chemist shops management software can organize the daily activities in the
chemist shops such as information of tablets, billing, details of stock and others.
The chemist shops management software enables to maintain the details of
purchase stock by the store and the details of the selling stock by customer wise
(Hull, 2012).
This software generates the automated bill for every sale and also generate the
reports for the customer detail, sell and stock. The use of this system reduces the
time and effort involved in managing inventory of the Chemist shop. It also
reduces the hard work involved in using paper for record keeping. The use of this
system enables the managers to easily record the details of their suppliers and
assess them whenever required.
The use of chemist shops management system improves the efficiency of staff of
the store as it provides information about the medicines and its location in the
store. The chemist shops management system can give ease to the Chemist
shop in managing their paper work, payment details and inventory online along
with retrieving them.
PROPOSED SYSTEM
In computer files. The dusl entries are done very quickly as entry in one
file only, affects The others file where it has to record. In the way there is
no need to record the computer.
Daily updates on medicine are updated by the administrator side and the
medical record
Of the customer will safe and secure.
The business case should also identify alternative solutions and detail as many
informational, functional, and network requirements as possible.
Assess project risks Identify and initiate risk mitigation actions, and Develop
high-level technical architecture, process models, data models, and a concept
of operations.
This phase explores potential technical solutions within the context of the
business needs.
It may include several trade-off decisions such as the decision to use COTS
software products as opposed to developing custom software or reusing
software components, or the decision to use an incremental delivery versus a
complete, onetime deployment.
PLANNING PHASE
Project plans refine the information gathered during the initiation phase by
further identifying the specific activities and resources required to complete a
project. A critical part
Further define and refine the functional and data requirements and
document them in the Requirements Document
Develop detailed data and process models (system inputs, outputs, and the
process.
Develop the test and evaluation requirements that will be used to determine
acceptable system performance.
DESIGN PHASE
The design phase involves converting the informational, functional, and
network requirements identified during the initiation and planning phases
into unified design specifications that developers use to script programs
during the development phase. Program designs are constructed in
various ways. Using a top-down approach, designers first identify and link
major program components and interfaces, then expand design layouts
as they identify and link smaller subsystems and connections. Using a
bottom-up approach, designers first identify and link minor program
components and interfaces, then expand design layouts as they identify
and link larger systems and connections.
These include:
Identifying potential risks and defining mitigating design features.
Performing a security risk assessment. Developing a conversion plan to
migrate current data to the new sustem.
Determining the operating environment.
Defining major subsystems and their inputs and outputs.
Allocating processes to resources.
Preparing detailed logic specifications for each software module. The result
is a draft System Design Document which captures the preliminary design
for the system.
Everything requiring user input or approval is documented and reviewed by
the user.
Once these documents have been approved by the Agency CIO and
Business Sponsor,
the final System Design Document is created to serve as the
Critical/Detailed Design for the system.
This document receives a rigorous review by Agency technical and functional
representatives to ensure that it satisfies the business requirements
DEVELOPMENT PHASE
The development phase involves converting design specifications into
executable programs. Effective development standards include
requirements that programmers and other project participants discuss
design specifications before programming begins. The procedures help
IMPLEMENTATION PHASE
This phase is initiated after the system has been tested and accepted by the
user. In this phase, the system is installed to support the intended business
functions. System performance is compared to performance objectives
established during the planning phase. Implementation includes user
notification, user training, installation of hardware, installation of software
onto production computers, and integration of the system into daily work
processes. This phase continues until the system is operating in production
in accordance with the defined user requirements
FLOW CHART
start
NO
Login
database
YES
Medicine Enter choice Enter details
process
purchase
Enter choice Enter details process
section
database
stop
16 Pooja kr. & Komal kr. Mahima ma'am
GOVT. GIRLS SE. SEC. SCHOOL CLASS-12 SESSION 2024-25
KHICHRIPUR-1002037
SOURCE CODE
def menu2():
print("----------------------MEDICINE SECTION----------------------------------")
import mysql.connector as mycon
mycon=
mycon.connect(host='localhost',user='root',password='root',database='ch
emist')
print('''\t\t\t 1-insert medicine details
2-delete a medicine
3-update a medicine
4-search a medicine''')
x = int(input("enter choice:"))
if x == 1:
i_d = input("enter id:")
name = input("enter name:")
batchnumber = input("enter batchnumber:"
manu_date = input("enter manufacture date:")
import_date = input("enter import date:")
expire_date = input("enter expiry date:")
manufacture = input("enter manufacuter:")
typ_e = input("enter the type (ml,strip,vial or tube:")
med_unit = input("enter no. of medicine unit in stock:")
med_cost = input("enter amount of one nunit of the medicine:")
st = "insert into product
values('''+i_d+''','''+name+''','''+batchnumber+''','''+manu_date+''','''+impor
t_date+''','''+expire_date+''','''+manufacture+''','''+typ_e+''','''+med_unit''',
'''+med_cost+''')''
cur.execute(st)
mycon.commit()
elif x == 2:
from datetime import date
dat = date.today()
import mysql.connector as mycon
mycon=
mycon.connect(host='localhost',user='root',password='root',database='ch
emist')
cur=mycon.cursor()
cur.execute(“select expire_date from product”)
res = cur.fetchall()
de = 0
sd=str(dat)
for x in res:
print("the expiry dates are:",x[0])
if str(x[0]) == sd:
delt = "delete from product where expire_date ='''+sd+'''
cur.execute(delt)
mycon.commit()
print(res)
else:
pass
elif x == 3:
import mysql.connector as mycon
mycon =
mycon.connect(host='localhost',user='root',password='root',database=
'chemist')
cur = mycon.cursor()
b = input("enter field to input:")
c = input("enter id of record to update:")
d = input("enter new record:")
upd = "update product set "+b+"= '"+d+"' where id = '"+c+"'"
cur.execute(upd)
mycon.commit()
elif x == 4:
import mysql.connector as mycon
mycon=
mycon.connect(host='localhost',user='root',password='root',database=
dic')
cur = mycon.cursor()
s = input("name of medicine to search:")
cur.execute("select * from product where name = '"+s+"'")
res = cur.fetchall()
for i in res:
print(i)
else:
print("invalid choice:")
def menu3():
print("------------------------SALES ENTRY SECTION----------------------------")
import mysql.connector as mycon
mycon =
mycon.connect(host='localhost',user='root',password='root',database=
'chemist')
cur = mycon.cursor()
elif x == 4:
import mysql.connector as mycon
mycon =
mycon.connect(host='localhost',user='root',password='root',database=
'chest')
cur = mycon.cursor()
s = input("enter no of units sold to search:")
cur.execute("select * from sales where unit_sold = '"+s+"'")
res = cur.fetchall()
for i in res:
print(i)
else:print("invalid choice:")
def menu4():
print("---------------------------------PURCHASE SECTION-----------------------------")
import mysql.connector as mycon
mycon =
mycon.connect(host='localhost',user='root',password='root',database='che
mist')
cur = mycon.cursor()
print('''\t\t\t 1-insert purchase detail
2-delete purchase detail
3-update purchase detail
4-search purchase detail''')
x = int(input("enter coice:"))
if x == 1:
i_d = input("enter customer id:")
name = input("enter name:")
address = input("enter address:")
contact_details = input("enter phone number:")
typ_e = input("enter mode of payment(regular or occasional):")
med_name = input("enter med name:"
se = "insert into customer
values('''+i_d+''','''+name+''','''+address+''','''+contact_deatils+''',
'''+typ_e+''','''+med_name+''')''
cur.execute(se)
mycon.commit()
elif x == 2:
a = input("enter field name:")
b = input("enter record to delete:")
det = "delete from customer where "+a+" = '"+b+"'"
cur.execute(det)
mycon.commit()
elif x == 3:
import mysql.connector as mycon
mycon=
mycon.connect(host='localhost',user='root',password='root,
database='chemist')
cur = mycon.cursor()
b = input("enter field to input:")
c = input("enter id of record to update:")
d = input("enter new record:")
upd = "update customer set "+b+" = '"+d+"' where id =
'"+c+"'"
cur.execute(upd)
mycon.commit()
elif x == 4:
import mysql.connector as mycon
Mycon =
mycon.connect(host='localhost',user='root',password='root',
database='chemist')
cur = mycon.cursor()
s = input("enter name of customer to search:")
cur.execute("select * from customer where name = '"+s+"'")
res = cur.fetchall()
for i in res:print(i)
else:
print("invalid choice:")
def menu5():
print("----------------------------REPORT/BILL SECTION------------------------------")
import mysql.connector as mycon
mycon =
mycon.connect(host='localhost',user='root',password='root',database=
'chemist')
cur = mycon.cursor()
from datetime import date
dat = date.today()
print('''\t\t\t 1-med report
2-sales report
3-purchase report
4-bill5-new bill''')
x = int(input("enter coice 1-4:"))
if x==1:
print('*'*100)
print('\t\tMedicine List')
print('='*70)print("{0:^15}{1:^20}{2:^20}{3:^15}".format
('id','Medicine-Name','Batchnumber',Type of Medicine'))
s1=("select * from product")
cur.execute(s1)
for
(id,name,batchnumber,manufacturedate,import_date,
expire_date,manufacturer,type,medicine_unit,medicine_cost)in cur:
Print("{0:^15}{1:^20}{2:^20}{3:^15}".format(id,name,batchnumber,
type))
elif x==2:
s1=("select * from sales")
cur.execute(s1)
for
(id,order_date,pay_date,user_id,paymentmode,amt_paid,unit_sold,
med_ name) in cur:
print("{0:^15}{1:^20}{2:^20}{3:^15}".format(id,med_name,
paymentmode,unit_sold))
elif x==3:
s1=("select * from customer")
cur.execute(s1)
for (id,name,address,contact_detail,type,med_name) in cur:
print("{0:^15}{1:^20}{2:^20}{3:^15}{4:^20}".format(id,med_name,
type,name,contact_details))
elif x==4:
b = int(input("enter no. of medicines bought:"))
for i in range(0,b):
import mysql.connector as mycon
mycon =
mycon.connect(host='localhost',user='root',password='root',
database='chemist')
cur = mycon.cursor()
print("enter values for the bill:")
i_d = input("enter id:")
pay_mode = input("enter payment mode(cash or net:")
med_name = input("enter med name:")
quantity = input("enter quantity of med bought:")
price = input("enter the price:")
sf = "insert into bill
values('''+i_d+''','''+pay_mode+''','''+med_name+''','''+quantity+''',
'''+price+''')''
cur.execute(sf)
mycon.commit()
print('*'*100)
print('\t\t{}'.format("TTS MEDICAL SHOP"))
print('\t\t{}'.format("Khagual,Danapur"))
print('\t\t{}'.format("Contact No.- 9912345679"))
print('\t\t{}'.format(dat))
print("=" * 70)
print("{0:^15}{1:^20}{2:^20}{3:^15}{4:^20}".format('bill_id','Medicine-
Name','payment_mode','price','quantity'))
Print('-'*100)
s1 = ("select * from bill")
cur.execute(s1)
Total_Cost=0
for (id,pay_mode,med_name,quantity,price) in cur:
print("{0:^15}{1:^20}{2:^20}{3:^15}{4:^20}".format(id,med_name,
pay_mode,de,price,quantity))
Total_Cost+= price*quantity
Print('-'*100)
print('Total Cost\t\t\t\t\t\t\t=\t\t{}'.format(Total_Cost))
print('-'*100)print('\t\t\tThank you for shopping with us')
print('-' * 100)print('\n')
Print('*' * 100)
elif x==5:
cur.execute("truncate table bill")
mycon.commit()
print("bill cleared")
def menu6():
print("---------------------------REFUND------------------------------")import
mysql.connector as mycon
mycon =
mycon.connect(host='localhost',user='root',password='root',database='chem
Ist')
cur = mycon.cursor()
x = input('enter name of med:')
y = int(input('enter no. of med returned:'))
a = "select medicine_cost from product where name = '"+x+"'"
cur.execute(a)
b = cur.fetchall()
for i in b:
I
print("The amount to be payed back =",i[0]*y)
x = True
while x == True:
print("")
print("------------------------TTS MEDICAL STORE----------------------------")
print("select {1} - Medicine section ")
print("select {2} - sales section ")
print("select {3} - purchase section ")
print("select {4} - report/bill section ")
print("select {5} – refund")
print("select {6} - exit")
MYSQL TABLES:
1) Product:
2)Sales:
2)Purchase:
3)Bill:
OUTPUT
Insert
Update:
Search
Delete
Report
Bill
Exit
TESTING
Software Testing is an empirical investigation conducted to provide With
Information about the quality of the product or service under test
stakeholders a with respect to the context which it is intended to operate.
Software Testing also provides an objective, independent view of the
software to allow the business to appreciate and understand the risks at
implementation of the software. Test techniques include, but are not limited
to, the process of executing a program or application with the intent of
finding software bugs. It can also be stated as the process of validating and
verifying that a software program/application/product meets the business
and technical requirements that guided its design and development, so that
it works as expected and can be implemented with the same characteristics.
Software Testing, depending on the testing method employed, can be
implemented at any time in the development process, however the most test
effort is employed after the requirements have been defined and coding
process has been completed.
TESTING METHODS
Software testing methods are traditionally divided into black box testing.
These one approaches are used to describe the point of view that a test
engineer takes when designing test cases.
SPECIFICATION-BASED TESTING
Specification-based testing aims to test the functionality of software
according to the applicable requirements. Thus, the tester inputs data into,
and only sees the output from the test object. This level of testing usually
requires through test cases to be provided to the tester, who they test that
for a given input. The output value (or behaviour), either RUUPE value
specified in the test case. Specification-based testing is necessary, but it is
insufficient to guard against certain risks.
BIBLIOGRAPHY
1. python.org
2. Our Subject Teacher Mahima Ma'am
3. Google
4. https://www.scribd.com/document/616044161/Class-12-
CS-Project-Medical-Shop-Management-System
5. LearnPython.org