Cs Project
Cs Project
SSCE – 2024
1|Page
VELAMMAL VIDYALAYA
ANUPPANADI, MADURAI – 625009
A SENIOR SECONDARY SCHOOL
Date: _____________
EXTERNAL EXAMINER
2|Page
TABLE OF CONTENTS [ T O C ]
01 ACKNOWLEDGEMENT 04
02 INTRODUCTION 05
04 SOURCE CODE 14
05 OUTPUT 17
06 SUPPORT SYSTEM 20
07 BUG FIXING 24
3|Page
ACKNOWLEDGEMENT
4|Page
INTRODUCTION: PYTHON
Python is an interpreter, object-oriented,
high-level programming language with dynamic semantics. Its
high-level built in data structures, combined with dynamic
typing and dynamic binding; make it very attractive for Rapid
Application Development, as well as for use as a scripting or
glue language to connect existing components together.
Python's simple, easy to learn syntax
emphasizes readability and therefore reduces the cost of
program maintenance. Python supports modules and
packages, which encourages program modularity and code
reuse. The Python interpreter and the extensive standard
library are available in source or binary form without charge
for all major platforms, and can be freely distributed.
HISTORY OF PYTHON
Python was developed by Guido
van Rossum in the late eighties and early nineties at the
National Research Institute for Mathematics and Computer
Science in the Netherlands. Python is derived from many other
languages, including ABC, Modula-3, C, C++, Small Talk, Algol-
68 and Unix shell and other scripting languages. Python is
copyrighted.
Like Perl, Python source code is now
available under the GNU General Public License (GPL). Python
is now maintained by a core development team at the
institute, although Guido van Rossum still holds a vital role in
directing its progress.
5|Page
Python Features
• Easy-to-learn − Python has few keywords, simple
structure, and a clearly defined syntax. This allows
the student to pick up the language quickly.
• Easy-to-read − Python code is more clearly defined
and visible to the eyes.
• Easy-to-maintain − Python's source code is fairly
easy-to-maintain.
• A broad standard library − Python's bulk of the
library is very portable and cross-platform
compatible on UNIX, Windows, and Macintosh.
• Interactive Mode − Python has support for an
interactive mode which allows interactive testing
and debugging of snippets of code.
• Portable − Python can run on a wide variety of
hardware platforms and has the same interface on
all platforms.
• Extendable − You can add low-level modules to the
Python interpreter. These modules enable
programmers to add to or customize their tools to
be more efficient.
• Databases − Python provides interfaces to all
major commercial databases.
6|Page
• GUI Programming − Python supports GUI
applications that can be created and ported to
many system calls, libraries and windows systems,
such as Windows MFC, Macintosh, and the X
Window system of Unix.
• Scalable − Python provides a better structure and
support for large programs than shell scripting.
Apart from the above-mentioned features, Python has
a big list of good features, few are listed below –
• It supports functional and structured programming
methods as well as OOP.
• It can be used as a scripting language or can be
compiled to byte-code for building large
applications.
• It provides very high-level dynamic data types and
supports dynamic type checking.
• It supports automatic garbage collection.
• It can be easily integrated with C, C++, COM,
ActiveX, CORBA, and Java.
7|Page
DATA FILE HANDLING IN PYTHON:
A file is a sequence of bytes on the
disk/permanent storage where a group of related data
is stored. File is created for permanent storage of data.
In programming, Sometimes, it is not enough to only
display the data on the console. Those data are to be
retrieved later on, and then the concept of file handling
comes. It is impossible to recover the programmatically
generated data again and again. However, if we need to
do so, we may store it onto the file system which is not
volatile and can be accessed every time. Here, comes
the need of file handling in Python. File handling in
Python enables us to create, update, read, and delete
the files stored on the file system through our python
program
The following operations can be performed on a file. In
Python, File Handling consists of following three steps:
• Open the file.
• Process file i.e. perform read or write operation.
• Close the file.
8|Page
TYPES OF FILES:
There are three types of files:
Text Files- A file whose contents can be viewed using a
text editor is called a text file. A text file is simply a
sequence of ASCII or Unicode characters. Python
programs, contents written in text editors are some of
the example of text files.
Binary Files-A binary file stores the data in the same
way as stored in the memory. The .exe files, mp3 file,
image files, word documents are some of the examples
of binary files. We can’t read a binary file using a text
editor.
CSV Files: A Comma Separated Values (CSV) file is a
plain text file that contains a list of data. These files are
often used for exchanging data between different
applications. For example, databases and contact
managers often support CSV files.These files may
sometimes be called Character Separated Values or
Comma Delimited files. They mostly use the comma
character to separate (or delimit) data, but sometimes
use other characters, like semicolons.
9|Page
SQL (Structured Query Language):
It is a standard language for accessing and manipulating
databases. SQL commands are used to create, transform and
retrieve information from Relational Database Management
Systems. They are also used to create interface between user
and database. In Relational database Model all the
information is stored on Tables, these tables are divided into
rows and columns. A collection on related tables is called
DATABASE. A named table in a database is called RELATION in
Relational Data Model. Row in a table is called TUPLES, and
column of a Table are called ATTRIBUTE. No. of rows in a
table is called DEGREE of the table and no. of columns in a
table in called CARDINALITY.
TYPES OF KEYS:
Primary Key : An attribute or a group of attributes which
can distinguish a row uniquely in a table is Called Primary
key/Key Field/Key attribute.
Candidate key: The attributes which are capable to act as a
primary key is known as candidate key.
Alternate key: An attribute which can act as a primary key
in place of primary key as called alternate key.
Foreign Key : An attribute in its present table whose
values are derived from some other table, is called foreign
key in the present table.
10 | P a g e
OBJECTIVE OF PROJECT
The Medical Shop Management System
is designed to efficiently manage and automate various
processes within a medical store or pharmacy. Its
primary purpose is to enhance the overall operations of
the medical shop by providing a systematic and
organized approach to inventory management, sales,
and other essential tasks. The system aims to improve
accuracy, reduce manual errors, and streamline
workflows for better customer service and business
efficiency.
11 | P a g e
Sales and Billing:
Manual Challenge: Manual billing processes can be
time-consuming, error-prone, and may lead to mistakes
in pricing or discounts.
Automation Solution: Automated billing streamlines
the sales process, calculates accurate prices, applies
discounts systematically, and generates error-free
invoices, improving overall transaction efficiency.
Prescription Management:
Manual Challenge: Handling paper prescriptions can be
cumbersome, leading to misplacement or difficulty in
retrieving customer medical histories.
Automation Solution: A Medical Shop Management
System digitizes prescription records, associates them
with customer profiles, and facilitates easy retrieval
and management of prescription information.
Supplier and Purchase Management:
Manual Challenge: Managing supplier information,
purchase orders, and deliveries manually can result in
delays, oversights, and inefficiencies.
Automation Solution: Automation of supplier and
purchase management ensures accurate records,
timely order placement, and efficient handling of
supplier-related processes.
12 | P a g e
User Authentication and Authorization:
Manual Challenge: Managing user access and ensuring
security manually can pose risks to sensitive data.
Automation Solution: Implementing secure user
authentication and authorization ensures that only
authorized personnel can access and modify specific
information, enhancing data security.
Reporting and Analytics:
Manual Challenge: Generating reports and analyzing
business data manually can be time-consuming and
prone to errors.
Automation Solution: The system provides automated
reporting and analytics tools, offering insights into sales
trends, inventory turnover, and other key metrics,
aiding informed decision-making.
Time and Cost Efficiency:
Manual Challenge: Manual processes often consume
more time and resources.
Automation Solution: Automation leads to time and
cost savings by reducing manual effort, minimizing
errors, and improving overall operational efficiency.
13 | P a g e
SOURCE CODE
import mysql.connector as m
mydb=m.connect(host='localhost',user='root',passwd='admin')
mycursor=mydb.cursor()
choice='y'
cont='y'
elif user==2:
14 | P a g e
while choice=='y':
print("MENU\n1.DISPLAY THE AVAILABLE STOCK \n2.SEARCH FOR A
MEDICINE\n3.PURCHASE& BILLING ")
ch=int(input("Enter your choice"))
if ch==1:
print("---------------------------------------------------------")
print("MEDICINE CODE MEDICINE NAME PRICE QUANTITY")
print("---------------------------------------------------------")
mycursor.execute("SELECT* FROM MEDSHOP")
for i in mycursor:
print(i[0],'\t\t ',i[1],'\t\t ',i[2],'\t\t ',i[3])
print("----------------------------------------------------------")
elif ch==2:
a=int(input("Enter the medicine code to be searched"))
mycursor.execute("SELECT * FROM MEDSHOP WHERE SNO=%s" %a)
print("---------------------------------------------------------")
print("MEDICINE CODE MEDICINE NAME PRICE QUANTITY ")
print("---------------------------------------------------------")
for i in mycursor:
print(i[0],'\t\t ',i[1],'\t\t ',i[2],'\t\t ',i[3])
print("----------------------------------------------------------")
mydb.commit()
elif ch==3:
cont='y'
bill=0
while cont=='y':
15 | P a g e
a=int(input("Enter the medicine code to be purchased"))
b=float(input("Enter the quantity to be purchased"))
print("---------------------------------------------------------")
print("MEDICINE CODE MEDICINE NAME PRICE ")
print("---------------------------------------------------------")
mycursor.execute("SELECT * FROM MEDSHOP WHERE SNO=%s"
%a)
for i in mycursor:
c=i[3]-b
if c>=0:
mycursor.execute("UPDATE MEDSHOP SET QUANTITY=%s where
SNO=%s" %(c,a))
mycursor.execute("SELECT * FROM MEDSHOP WHERE SNO=%s"
%a)
for i in mycursor:
print(i[0],'\t\t ',i[1],'\t\t ',i[2],'\t\t',i[3])
print("----------------------------------------------------------")
bill=bill+i[2]*b
print("Successfully added to cart")
else:
print("Quantity is not sufficient")
cont=input("Do you want to add more medicines")
print("\n\n\n\n********************Net Payable amount is
***********************************RS.",bill,'\n\n\n\n')
choice=input("Do you want to continue with customer option")
elif user==3:
print("INVALID CHOICE")
16 | P a g e
OUTPUT:
17 | P a g e
Bug Reporting and Update Implementation Process:
1. Bug Reporting:
a. Bug Submission:
- Users can submit bug reports through a dedicated
portal in the Medical Shop Management System or via
email.
b. Bug Details:
- Include fields for users to provide details such as
the nature of the bug, steps to reproduce, and the
environment in which the issue occurred.
c. Issue Severity:
- Categorize bugs based on their severity (e.g.,
critical, major, minor) to prioritize fixes.
d. Automated Logs:
- Implement automated logging to capture system
errors and exceptions, aiding in identifying and
resolving issues.
2. Bug Triage:
a. Bug Assignment:
- Assign reported bugs to appropriate team
members responsible for different modules.
b. Prioritization:
18 | P a g e
- Prioritize bugs based on severity and impact on
system functionality.
c. Communication:
- Keep users informed about the status of their bug
reports through automated notifications.
3. Bug Resolution:
a. Code Fixing:
- Developers address bugs by fixing code issues
identified during the debugging process.
b. Testing:
- Conduct thorough testing to ensure the bug fix
does not introduce new issues.
c. Version Control:
- Use version control systems to manage code
changes and updates systematically.
4. Update Implementation:
a. Release Planning:
- Plan and schedule regular releases for bug fixes
and system updates.
b. Communication:
19 | P a g e
- Notify users in advance about upcoming updates,
including bug fixes and new features.
c. Automated Deployment:
- Implement automated deployment processes to
streamline the release of updates.
Support System:
1. User Assistance Portal:
a. Knowledge Base:
- Create a comprehensive knowledge base with
FAQs, troubleshooting guides, and video tutorials.
b. Search Functionality:
- Include a search feature for users to quickly find
solutions to common issues.
2. Ticketing System:
a. Issue Tracking:
- Use a ticketing system to track and manage user
inquiries, bug reports, and support requests.
b. Automated Responses:
- Set up automated acknowledgment emails to
inform users that their request has been received.
3. User Forums and Community:
20 | P a g e
a. Discussion Forums:
- Establish user forums or a community space where
users can discuss issues, share tips, and seek advice.
b. Moderation:
- Appoint moderators to facilitate discussions and
escalate critical issues to the support team.
4. Live Chat Support:
a. Real-time Assistance:
- Implement a live chat feature for real-time
assistance, connecting users with support agents.
b. Chatbot Integration:
- Integrate a chatbot to handle common queries and
provide instant responses.
5. User Feedback Mechanism:
a. Feedback Forms:
- Collect feedback from users to continually improve
the system and support services.
b. Surveys:
- Periodically conduct user satisfaction surveys to
gauge the effectiveness of the support system.
6. 24/7 Helpdesk:
21 | P a g e
a. Emergency Support:
- Establish a 24/7 helpdesk for urgent issues or
emergencies.
b. Escalation Process:
- Define a clear escalation process for high-priority
support cases.
Continuous Improvement:
a. Regular Training:
- Provide ongoing training for support staff to stay
updated on system features and common issues.
b. Feedback Analysis:
- Analyze user feedback and support interactions to
identify areas for improvement.
c. Documentation Updates:
- Regularly update user manuals and documentation
based on feedback and system enhancements.
By establishing a robust bug reporting and update
implementation process and implementing a
comprehensive support system, the Medical Shop
Management System can ensure a positive user
experience and address issues promptly and efficiently.
22 | P a g e
CONCLUSION:
Potential Future Features and Improvements:
1. Integration with Healthcare Providers:
• Explore the possibility of integrating the system
with healthcare providers to streamline
prescription sharing and improve overall
patient care.
2. Mobile Application:
• Develop a mobile application for the Medical
Shop Management System to provide on-the-
go access for pharmacy staff and support
remote management.
3. Customer Loyalty Programs:
• Implement customer loyalty programs to
encourage repeat business and reward loyal
customers.
4. Automated Regulatory Compliance Checks:
• Enhance the system to perform automated
checks for regulatory compliance, ensuring
that the medical shop stays current with
evolving healthcare regulations.
23 | P a g e
5. Advanced Analytics and Predictive Modeling:
• Implement advanced analytics and predictive
modeling features to anticipate trends,
optimize inventory levels, and enhance
decision-making processes.
6. Telepharmacy Integration:
• Consider integrating telepharmacy capabilities
to provide remote consultations, prescription
refills, and medication management services.
7. Enhanced User Training Resources:
• Develop interactive and multimedia training
resources for pharmacy staff to continually
improve their proficiency in using the system.
8. Voice-Activated Commands:
• Integrate voice-activated commands to
facilitate hands-free interactions with the
system, especially during busy periods.
9. Expanded Reporting Features:
• Expand reporting features to include more
comprehensive financial analytics, sales
forecasting, and performance metrics.
24 | P a g e
10. Blockchain for Drug Traceability:
• Explore the use of blockchain technology to
enhance drug traceability, ensuring the
authenticity and safety of pharmaceutical
products.
11. Real-time Inventory Monitoring:
• Implement real-time monitoring of inventory
levels, allowing the system to automatically
reorder medicines when stock is low.
12. Collaboration with Healthcare Apps:
• Collaborate with healthcare apps to provide
users with valuable health information,
reminders for medication refills, and health-
related promotions.
13. Multi-Language Support:
• Introduce multi-language support to cater to a
diverse customer base and facilitate ease of use
for non-native speakers.
14. Integration with Electronic Health Records
(EHRs):
• Explore possibilities for integrating the system
with electronic health records.
25 | P a g e
Key Achievements and Outcomes of the Medical Shop
System Project:
1. Efficient Operations:
• The implementation of the Medical Shop
Management System has led to more efficient
and streamlined operations in the medical
shop.
2. Accuracy in Inventory Management:
• The system has significantly improved accuracy
in managing medicine inventory, reducing
errors in stock levels and expiration date
tracking.
3. Streamlined Sales Processes:
• Sales and billing processes have been
streamlined, leading to faster and more
accurate transactions, benefiting both the
pharmacy and customers.
4. Enhanced Prescription Management:
• The system's prescription management
module has improved the organization and
accessibility of customer prescriptions,
contributing to better customer service.
26 | P a g e
5. Effective Supplier and Purchase Management:
• The system has facilitated better supplier and
purchase management, ensuring timely orders,
deliveries, and accurate record-keeping.
6. Data-Driven Decision-Making:
• Reporting and analytics tools have empowered
management to make data-driven decisions,
contributing to more informed business
strategies.
7. Improved Security Measures:
• The system has implemented robust security
measures, safeguarding sensitive data and
ensuring compliance with medical regulations.
8. User Satisfaction:
• The overall impact of the system has resulted
in increased user satisfaction among pharmacy
staff, as tasks have become more efficient and
less prone to errors.
Continual innovation and adaptation to industry trends
will be crucial for the sustained success of the Medical
Shop Management System. Regular feedback from users
and monitoring industry advancements will guide the
implementation of these future features and
improvements
27 | P a g e