Download as pdf or txt
Download as pdf or txt
You are on page 1of 42

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

JNANA SANGAM, BELAGAVI-590018

A
MINI PROJECT REPORT ON

“PHARMACY MANAGEMENT SYSTEM USING C++”


Submitted in partial fulfilment of the Bachelor Degree
In
INFORMATION SCIENCE AND ENGINEERING

VI SEMESTER

FILE STRUCTURES LABORATORY WITH MINI PROJECT (18ISL67)

Submitted By

GAGANA KALA SINDHU B 1HK18IS021

MANJU P 1HK18IS038

Under the guidance of

Prof. SNEHA K
Assistant Professor

Department of Information Science and Engineering


2021-2022

Accredited by NAAC
HKBK COLLEGE OF ENGINEERING
22/1, Nagawara, Bengaluru – 5600 045.
E-mail: info@hkbk.edu.in, URL: www.hkbk.edu.in
HKBK COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING

PROGRAMME EDUCATIONAL OBJECTIVES (PEOs)

⮚ PEO 1: To Empower Students through Wholesome Education to achieve academic excellent


education in the field of Information Science and Engineering
⮚ PEO 2: To Provide Students with in-depth disciplinary knowledge in engineering
fundamentals that require to succeed in Information Science and Engineering.
⮚ PEO 3: To Create Highly Qualified Professionals in multi-disciplinary areas with the
knowledge of Information Technologies, Services Globally
⮚ PEO 4: To Inculcate in Students Professional and Ethical attitude with a strong character
with effective communication skills, teamwork skills, multidisciplinary approach, and an
ability to relate Engineering issues to broader social context.
⮚ PEO 5: To Provide Students with an academic environment aware of advanced technological
growth leading to life-long learning through innovation and research with professional ethics
that uplifts mankind

PROGRAM SPECIFIC OUTCOMES(PSOs)

Professional Skills:
An ability to identify and analyse requirements, and in designing and implementing well-
tested technology solutions for rapidly changing computing problems and information
system environments.

Problem-Solving Skills:
An ability to Design, develop and optimize solutions for information systems
employing fundamentals of system hardware & software, graph theory, finite
automata, data storage and communication networks.

Collaborative Skills:
An ability to communicate and develop leadership skills and work effectively in team
environments. They are capable of collaborating to design and implement well tested
solutions for rapidly changing computing problems and information system environments.

Successful Career and Entrepreneurship Skills:


An ability to adapt for innovation and changes and be successful in ethical professional
careers along with the impact of computing on society, and platforms in creating innovative
career paths to be an entrepreneur, and a zest for higher studies.
Accredited by NAAC
BENGALURU – 560 045
DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING
VISVESVARAYA TECHNOLOGICAL UNIVERSITY

MINI PROJECT REPORT

ON

“PHARMACY MANAGEMENT SYSTEM USING C++”


Submitted in partial fulfilment of the Mini Project in
VI Semester
FILE STRUCTURES LABORATORY
WITH MINI PROJECT (18ISL67)

2021-22

SUBMITTED BY:

GAGANA KALA SINDHU B 1HK18IS021

MANJU P 1HK18ISO38
HKBK COLLEGE OF ENGINEERING

Accredited by

DEPARTMENT OF INFORMATION SCIENCE AND


ENGINEERING

CERTIFICATE

This is to certify that the content of this mini project entitled “PHARMACY
MANAGEMENT SYSTEM USING C++” is a bonafide workcarried out by GAGANA
KALA SINDHU B (1HK18IS021) , MANJU P (1HK18IS038) in partial fulfilment for the award
of Degree of Bachelor of Engineering in Information Science and Engineering of the
Visvesvaraya Technological University, Belagavi during the year 2021-22. It is certified that
all corrections / suggestions indicated for the Internal Assessment have beenincorporated in
the mini project report deposited in the departmental library. The Mini Project report has
been approved as it satisfies the academic requirements in respect of File Structures
Laboratory with Mini Project (18ISl67) prescribed for the Bachelor of Engineering Degree.

------------------------------ ---------------------------------- ------------------------------------

Signature of the guide Signature of the HOD Signature of the Principal

Prof. Sneha K Dr A Syed Mustafa Prof. Tabassum ara


Assistant Professor Principal
Professor & HOD
Dept. of ISE, HKBKCE Dept. of ISE, HKBKCE
HKBKCE
DECLARATION

We here by declare that the entire work embodied in this Project work “Pharmacy
Management” has been carried out by us during the sixth semester of Bachelor ofEngineering
in Information Science and Engineering at HKBK College of Engineering, Bengaluru affiliated
to Visvesvaraya Technological University, Belagavi, under the guidance of Prof. Sneha K,
HKBK College of Engineering, Bengaluru. The work embodied in this project work is original
and it has not been submitted in part time or full-timecompletion for any other degree in any
other university.

GAGANA KALA SINDHU B 1HK18IS021


MANJU P 1HK18IS038

I
ACKNOWLEDGEMENT

I would like to place our regards and acknowledgement to all who helped in making this
project possible. There are many people who worked behind the screen to help make it
possible the below listed are a few of them.
I would take this opportunity to express our heartfelt gratitude to Mr.C M Ibrahim,
Chairman, Mr.C M Faiz Mohammed, Director and Prof. Tabassum ara, Principal for
the entire infrastructure provided to complete the project in time.
I am deeply indebted to Dr.A Syed Mustafa, HOD, Information Science and
Engineering for the ineffable encouragement he provided in successful completion of the
project.
I am sincerely thank our mini project co-ordinator , Prof. Sneha K for their constantly
guiding and assisting for the project.
I am extremely thankful to the teaching and non-teaching staff of the Department of
Information Science and Engineering for their valuable guidance and cooperation
throughout our dissertation.

GAGANA KALA SINDHU B 1HK18IS021


MANJU 1HK18IS038

II
ABSTRACT

"Online Restaurant Management System” is considered as an increasingly used application in


restaurant management. Just a few years ago, people used to spend long time waiting for a table to be
ready for them at a restaurant. And after that, they would wait longer time to order their food. There
was no surprise that the food took too long to be prepared. In short, the whole enjoyment of eating
did eventually result in boredom and tiredness for customers. From another side, this is the restaurant
management and staff who used to stand much pressure to handle a lot of customers at the same time. With
great technology in general and the internet in specific, customers can be happy by using online food ordering
and reservation. This facilitates the work of restaurant managers and staff. The system will make the entire
process for the restaurant manager much easier and faster compared with traditional methods. On the other
hand, these days’ customers can place their orders and make their reservations as quickly and enjoyably as a
click on their computers or smart devices. All in all, both customer and menu information management as well
as report are the very wonderful aspects of the modern world in restaurant industry.

III
Pharmacy Management System

CHAPTER-1
INTRODUCTION

1.1. FILE STRUCTURES:-

File structures is the Organization of Data in Secondary storage devices in


such a way that it minimizes the access time and the storage space. A file
structure is a combination of representations for data in files and of operations
for accessing the data.

A file structure allows applications to read, write and modify data. It might
also support finding the data that matches some search criteria or reading
through the data in some particular order.

An indexed file contains records ordered by record key. A record key


uniquely identifies a record and determines the sequence in which is
accessed with respect to other records. Each record contains a field that
contains the record key.

Primary Indexing is defined on an ordered data file. The data file is ordered on
a key field.

1.2 HISTORY OF FILE STRUCTURES:-

Early Work: -
Early Work assumed that files were on tape. Access was sequential – the cost
of access grew in direct proportion to the size of the file.

The emergence of Disks and Indexes: -


As files grew very large, sequential access was not a good solution. Disks
allowed for direct access. Indexes made it possible to keep a list of keys and
pointers in a small file that could be searched very quickly. With the key and
pointer, the user had direct access to the large, primary file.

HKBKCE, VI SEM DEPT OF ISE 8 AY 2021-22


Pharmacy Management System

The emergence of Tree Structures: -


Indexes also have a sequential flavor. When they grow too much, they also
become difficult to manage. The idea of using tree structures to manage the
index emerged in the early 60’s. However, trees can grow very unevenly as
records are added and deleted. Resulting in long searches requires many disk
accesses to find a record.

Balanced Trees: -

In 1963, researchers came up with the idea of AVL trees for data in memory.
However, AVL trees did not apply to files. Because they work well when tree
nodes are composed of single records rather than dozens or hundreds of them
in the 1970’s came the idea of B-Trees which require an O (log N) access time.
Where N is the number of entries in the file and k is the number of entries
indexed in a single block of the B-Tree structure. B-Trees can guarantee that
we can find an entry among millions of others with only 3 or 4 trips to the
disk.

Hash Tables: -

Retrieving entries in 3 or 4 accesses is good. but it does not reach the goal of
accessing data with a single request. Hashing was a good way to reach this goal
with files that do not change size greatly over time. Recently, Extendible
Dynamic Hashing guarantees one or at most two disk accesses no matter how
big a file becomes.

HKBKCE, VI SEM DEPT OF ISE 9 AY 2021-22


Pharmacy Management System

1.3 FILE PROCESSING

The main goal of this application is to simplify the process of record


maintenance of students in an organization. A file system is a method for
storing and computer files and the data they contain to make it easy to find
and access them.
Records of students are stored and retrieved whenever necessary. This is a C++
terminal project which is implemented using the concepts like “VARIABLE
LENGTH
RECORDS” and “INDEXING”.

1.4 IMPLEMENTATION CONCEPT:-VARIABLE LENGTH


RECORDS, INDEXING VARIABLE LENGTH RECORD:-

Variable length refers to anything whose length can vary. For example, in
databases, a variable-length field is a field that does not have a fixed length.
Instead, the field length varies depending on what data is stored in it .

Variable-Length Saves Spaces:-

Variable-length fields are useful because they save space. Suppose, for
example, that you want to define a NAME field. The length of each NAME
field will vary according to the data placed in it. For example, John Smith is
10 characters long, but Thomas Horatio Jefferson is 24 characters long.
With fixed-length fields, you would need to define each field to be long
enough to hold the longest name.

HKBKCE, VI SEM DEPT OF ISE 10 AY 2021-22


Pharmacy Management System

This would be a waste of space for records that had short names. With
variable-length fields, the NAME field in each record would be just long
enough to hold its data. If our application generates many short records with
occasional long ones, using fixed-length records wastes a lot of disk space.

INDEXING:

We know that data is stored in the form of records. Every record has a key
field, which helps it to be recognized uniquely.

Indexing is a data structure technique to efficiently retrieve records from


the database files based on some attributes on which the indexing has been
done. Indexing is defined based on its indexing attributes. Indexing can be
of the following types –

Primary Index − Primary index is defined on an ordered data file. The data file
is ordered on a key field. The key field is generally the primary key of the
relation.

Secondary Index − Secondary index may be generated from a field which is a


candidate key and has a unique value in every record, or a non-key with
duplicate values.

Clustering Index − Clustering index is defined on an ordered data file. The


data file is ordered on a non-key field.

HKBKCE, VI SEM DEPT OF ISE 10 AY 2021-22


Pharmacy Management System

Evaluating Different Index Structures:-

No one technique is the best. Each has to be evaluated w.r.t. the following
criteria:-

Access Type: - Finding records either with a particular search key, or with
the search key falling in a given range.

Access Time: - The time it takes to find item(s) using the index in question.

Insertion Time: - The time to insert an item in the data file, as well as the
Time to update the index.

Deletion Time: - The time to delete the item from the data file (which include
the time to find the item), and the time to update the index.

Search Key Pointer to a data-file record

1.5 PROBLEM STATEMENT:-

To develop a system it will manage:


Information about the details of the drugs available in the pharmaceutical store.
Helps the customers to satisfy their day to day needs of medicines.

HKBKCE, VI SEM DEPT OF ISE 11 AY 2021-22


Pharmacy Management System

1.6 OBJECTIVE AND SCOPE OF THE PROJECT

The objective of this project is It is user friendly application for pharamist


which reduces the burden and helps to manage all sections of pharmacy.

The main scope of this project is limited to the activities of a pharmaceutical


store which includes will improving health outcomes, reduce hospital and long
term care admissions, enhance access and care in the Estate and surrounding
communities and ensuring best use of resources, the use of a computer based
management system for improving the efficiency of a pharmacy is needed and it
is an essential part of any modern continuously evolving society.

1.7 EXISTING AND PROPOSED SYSTEM

Existing System: -

The pharmacy management system is built in order to replace manual based


system to computerize. Here system is expected to be efficient, useful and
affordable on implementing tasks that is order by the pharmacy manager

Proposed System: -

Compared to the current manual system, the implementation of Pharmacy


management system will reduced the time spent for paperwork, leading to
concentration on improving pharmaceutical care of patients, especially
emphasis on patients counseling and patient medication monitoring.

HKBKCE, VI SEM DEPT OF ISE 12 AY 2021-22


Pharmacy Management System

1.8 DESCRIPTION OF MODULES

Add new medicine order: -


Here the pharmacist will be able to take new medicine orders from the
customers.

Delete latest medicine order: -


Here the orders which are been already delivered and have been for so many
days etc…can be deleted.

Modify the order list: -


Using this feature one can make the necessary changes like adding new
medicine orders, changing the receipt number and so on

Print the receipt and make payment: -


Here the final bill will be calculated and printed and the customer can make
the payment accordingly.

Daily Summary of total Sale: -


In this module the daily activities and total number of task that has been
carried out all can be viewed to a particular day.

Exit: -
The user can exit from the action.

HKBKCE, VI SEM DEPT OF ISE 13 AY 2021-22


Pharmacy Management System

CHAPTER -2
SYSTEM REQUIREMENT SPECIFICATION (SRS)

INTRODUCTION:

To be used efficiently, all computer software needs certain hardware


components or the other software resources to be present on a computer. These
pre-requisites are known as (computer) system requirements and are often used
as a guideline as opposed to an absolute rule. Most software defines two sets of
system requirements: minimum and recommended. With increasing demand for
higher processing power and resources in newer versions of software, system
requirements tend to increase over time. Industry analysts suggest that this trend
plays a bigger part in driving upgrades to existing computer systems than
technological advancements.

2.1 HARDWARE REQUIREMENTS:

The most common set of requirements defined by any operating system or


software application is the physical computer resources, also known as
hardware. A hardware requirements list is often accompanied by a hardware
compatibility list (HCL), especially in case of operating systems. An HCL lists
tested, compatibility and sometimes incompatible device for a particular
operation system or application.

HKBKCE, VI SEM DEPT OF ISE 16 AY 2021-22


Pharmacy Management System

HARDWARE REQUIREMENT FOR THE PRESENT PROJECT

Microsoft Compatible keyboard

Processor: Intel Core i3 or above

Processor Speed: @2.67 GHz

R.A.M: 4.0 GB or above

Mouse: Touchpad

Hard Disc: 40 GB

2.2 SOFTWARE REQUIREMENT:

Software Requirements deal with defining software resource requirements and


prerequisites that need to be installed on a computer to provide optimal
functioning of an application. These requirements or pre-requisites are generally
not included in the software installation package and need to be installed
separately before the software is installed.

SOFTWARE REQUIREMENTS FOR THE PRESEN PROJECT:

O.S architecture: Microsoft Windows x86 architecture


Operating System: Windows 7 or above
Tool: DEV C++ compiler and any Suitable Editor

HKBKCE, VI SEM DEPT OF ISE 16 AY 2021-22


Pharmacy Management System

CHAPTER -3

ANALYSIS

FEASIBILITY STUDY

The feasibility of the project is analyzed in this phase and business proposal is
put forth with a very general plan for the project and some cost estimates.
During system analysis the feasibility study of the proposed system is to be
carried out. This is to ensure that the proposed system is not a burden to the
company. For feasibility analysis, some understanding of the major
requirements for the system is essential. Three key considerations involved in
the feasibility analysis are:

3.1 ECONOMIC FEASIBILITY

This study is carried out to check the economic impact will have on the system
will have on the organization. The amount of fund that the company can pour
into the research and development of the system is limited. The expenditures
must be justified. Thus the developed system as well within the budget and this
was achieved because most of the technologies used are freely available. Only
the customized products have to be purchased.

3.2 TECHNICAL FEASIBILITY

This study is carried out to check the technical feasibility, that is, the technical
requirements of the system. Any system developed must not have a high
demand on the available resources present in the technical feasibility study

HKBKCE, VI SEM DEPT OF ISE 16 AY 2021-22


Pharmacy Management System

CHAPTER- 4
SYSTEM DESIGN

Fig: System Design Diagram of Pharmacy Management System

4.1 Working Description:

Compile the codes.


Run the codes.
The menu consists options for inserting, displaying, removing, editing of
records, view summary will appear.
The user can select their choice.

4.2 Used modules or files:

pharmacy.cpp
pharmacy. dev
main.cpp

HKBKCE, VI SEM DEPT OF ISE 17 AY 2021-22


Pharmacy Management System

CHAPTER – 5
IMPLEMENTATION

Implementation is the stage of the project when the theoretical design is turned
out into a working system. Thus it can be considered to be the most critical
stage in achieving a successful new system and in giving the user, confidence
that the new system will work and be effective. The implementation stage
involves careful planning, investigation of the existing system and it’s
constraints on implementation, designing of methods to achieve changeover and
evaluation of changeover methods.

5.1 Platform Selection:

Windows 10 Operating System 64 bit: Windows 10 is one of the widely used


GUI based Operating System from Microsoft Corporation. It has many inherent
capabilities for various networking activities and inbuilt applications and
supports as a client operating system for various server environments.

Language Selection: C++ an object oriented approach

HKBKCE, VI SEM DEPT OF ISE 18 AY 2021-22


Pharmacy Management System

5.2 SOURCE CODE:-

#include <iostream>
#include <stdlib.h>
#include <string>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <iomanip>
#define max 10

using namespace std;


//the header file

class medicineType //base class


{
void take_order();//to take_order
void delete_order(); //to delete the order
void modify(); //to modify the order
void order_list(); //to display the order_list
void daily_summary(); //to display daily_summary
void exit(); //function to exit system
medicineType();//constuctor

};

medicineType::medicineType ()
{

} //constructor for class CarType

struct node //constract node


{
int reciept_number;
string customerName; string date; int quantity[10];
string type = {"OTC"}; int x, menu2[10]; double amount[10];
string medicineName[10]={"Probiotics","VitaminC(500mg)","Acid
Free C(500mg)","Women'S Multivate","Marino Tablet","Maxi Cal

HKBKCE, VI SEM DEPT OF ISE 20 AY 2021-22


Pharmacy Management System

Tablet", "Amino Zinc Tablet","Burnex","Fabuloss 5",


"Royal Propollen"}; double Medicine[10] =
{2.00,3.00,1.00,4.00,1.00,5.00,7.00,4.00,3.00,5.00}; double total;

node *prev;
node *next; node *link;
}*q, *temp; //pointer declaration

node *start_ptr =
NULL; node *head =
NULL;
node *last = NULL;

int main() // Main function


{

system("COLOR 0"); //Color to change background


medicineType medicine;
do
{
system("cls");
cout<<"\t\t\t Pharmacy Management System \n";
cout<<"\t\t==================================================\n\n"
;
cout<<"\t\t--------------------------------------------------\n";
cout<<"\t\t||\t1. Take new Medicine order \t\t ||\n";
cout<<"\t\t||\t2. Delete latest Medicine order\t\t ||\n";
cout<<"\t\t||\t3. Modify Order List \t\t\t ||\n";
cout<<"\t\t||\t4. Print the Reciept and Make Payment \t ||\n";
cout<<"\t\t||\t5. Daily Summary of total Sale \t\t ||\n";
cout<<"\t\t||\t6. Exit\t\t\t\t\t ||\n";
cout<<"\t\t--------------------------------------------------\n";
cout<<"Enter choice: ";

cin>>menu;

switch (menu)
{
case1:
{

HKBKCE, VI SEM DEPT OF ISE 20 AY 2021-22


Pharmacy Management System

medicine.take_order();
break;

}
case 2:
{

medicine.delete_order(); //function delete


system("PAUSE");
break;
} //end case 2

{
medicine.modify(); //function modify
system("PAUSE");
break;
} //end case 3
case 4:
{

medicine.order_list(); //function order


system("PAUSE");
break;
} //end case 4

case 5:
{
medicine.daily_summary(); //function daily_summary
system("PAUSE");
break;
} //end case 5
case 6:
{
medicine.exit(); //function exit
goto a;
break;
} //end case 6

default:
{

HKBKCE, VI SEM DEPT OF ISE 21 AY 2021-22


Pharmacy Management System

cout<<"You enter invalid input\nre-enter the input\n"<<endl;


break;
}//end defeault

}//end Switch
}while(menu!=6);//end do
a://goto
cout<<"thank
you"<<endl;
system
("PAUSE");
return 0;
}//end main function

void medicineType::take_order() //function to take_order


{
system("cls");
int i;
int choice, quantity, price,None;

cout <<"\nAdd Order Details\n";


cout <<"_____________________________________ \n\n";

node *temp;
temp=new node;

cout
<<"*********************************************************************
*****\ n";
cout<<"DRUGS ID"<<"\tDRUGS TYPE"<<" \t\tDRUGS NAME"<<"
DRUGS PRICE(Rs)"<<endl;
cout
<<"*********************************************************************
*****\n";
cout<<"0001"<<"\t"<<"\tOTC"<<"\t\t"<<" Probiotics"<<" Rs 2.00"<<endl;

cout<<"0002"<<"\t"<<"\tOTC"<<"\t\t"<<" Vitamin C(500mg)"<<"


Rs.3.00"<<endl;
cout<<"0003"<<"\t"<<"\tOTC"<<"\t\t"<<" Acid Free C(500mg)"<<"
Rs.1.00"<<endl;

HKBKCE, VI SEM DEPT OF ISE 22 AY 2021-22


Pharmacy Management System

cout<<"0004"<<"\t"<<"\tOTC"<<"\t\t"<<" Women'S Multivate"<<"


Rs.4.00"<<endl;
cout<<"0005"<<"\t"<<"\tOTC"<<"\t\t"<<" Marino Tablet"<<"
Rs.1.00"<<endl;
cout<<"0006"<<"\t"<<"\tOTC"<<"\t\t"<<" Maxi Cal Tablet"<<"
Rs.5.00"<<endl;

cout<<"0007"<<"\t"<<"\tOTC"<<"\t\t"<<" Amino Zinc Tablet"<<"


Rs.7.00"<<endl;
cout<<"0008"<<"\t"<<"\tOTC"<<"\t\t"<<" Burnex"<<"
Rs.4.00"<<endl;//1353fn
cout<<"0009"<<"\t"<<"\tOTC"<<"\t\t"<<" Fabuloss 5"<<"
Rs.3.00"<<endl;
cout<<"0010"<<"\t"<<"\tOTC"<<"\t\t"<<" Royal Propollen"<<"
Rs.5.00"<<endl;
cout<<" "<<endl;

temp = new node;


cout << "Type
Order no: ";
cin>>temp>recipet
number;
cout<< "Enter
Customer Name: ";
cin>> temp-
>customerName;
cout<<"Enter Date
: "; cin>>temp-
>date;
cout << "How many Medicine would you like to
order:"<< endl; cout<<"( Maximum is 10 order
for each transaction ) \n"; cout << " " ; cin >>
temp->x;
if (temp->x >10)
{
cout << "The Medicine you order is exceed the maximum amount of order !";
system("pause");
}
else{
for (i=0; i<temp->x; i++)

HKBKCE, VI SEM DEPT OF ISE 23 AY 2021-22


Pharmacy Management System

cout << "Please enter your selection : "<<endl;


cin>> temp->menu2[i]
cout<< "Medicine Name: " <<temp->medicineName[temp->menu2[i]-1]<<endl;
cout << "How many medicine do you want: ";
cin >> temp->quantity[i];
temp->amount[i] = temp->quantity[i] * temp->Medicine[temp->menu2[i]-1];
cout << "The amount You need to pay is: " << temp->amount[i]<<" Rs"<<endl;
system("PAUSE");

cout<<"=====================================================
==========
============"<<endl;
cout << "Order Taken Successfully"<<endl;

cout<<"=====================================================
==========
============"<<endl;
cout << "Go to Reciept Menu to Pay The Bill"<<endl;

cout<<"=====================================================
==========
============"<<endl;
system ("PAUSE");

temp->next=NULL;
if(start_ptr!=NULL)
{
temp->next=start_ptr;
}

start_ptr=temp;
system("cls");
}
}//End function take_order

void medicineType::order_list() //Function to display receipt


{

HKBKCE, VI SEM DEPT OF ISE 24 AY 2021-22


Pharmacy Management System

int i, num, num2;


bool found; //variable to search
system("cls");
node *temp;

temp=start_ptr;
found = false;

cout<<" Enter the Reciept Number To Print The


Reciept\n"; cin>>num2; cout<<"\n";

cout<<"=====================================================
========== ============"<<endl;

cout <<"\t\tHere is the Order list\n";


cout<<"=====================================================
========== ============"<<endl;

if(temp == NULL) //Invalid receipt code


{
cout << "\tThere is no Order to show\n\t\t\tSo The List is Empty\n\n\n";
}
while(temp !=NULL && !found)
{
if (temp->reciept_number==num2)
{
found = true;
}
else
{
temp = temp -> next;
}
if (found) //print the receipt
{
cout <<"Reciept Number : "<<temp-
>reciept_number; cout <<"\n";
cout<<"Customer Name: "<<temp->customerName<<endl;

cout<<"Order Date : "<<temp->date<<endl;

HKBKCE, VI SEM DEPT OF ISE 26 AY 2021-22


Pharmacy Management System

cout<<"____________________________________________________________
___________ ______"<<endl;

cout
<<
"==========================================================
==========
===========" << endl;
cout << "| Medicine Type | Medicine Name | Quantity |
Total Price |" << endl;
cout <<
"=======++==================++================++===========
====++====

===========" << endl;


for (i=0;i<temp->x;i++)
{
cout << temp->type <<" \t\t";
cout<<temp->medicineName[temp->menu2[i]-1]<<"\t\t\t "; cout<<temp-
>quantity[i] <<"\t\t";
cout<< temp->amount[i]<<" Rs"<<endl;

cout<<"____________________________________________________________
___________ __________"<<endl;
}

I
mplementation temp->total = temp->amount[0]+temp->amount[1]+temp-
>amount[2]+temp>amount[3]+temp->amount[4]+temp->amount[5]+temp-
>amount[6]+temp->amount[7]
+temp->amount[8]+temp->amount[9];
cout<<"Total Bill is : "<<temp-
>total; cout<<"\n";
cout << "Type the exact amount You
need to pay: "; cin >> num;

cout
<<"\n";

HKBKCE, VI SEM DEPT OF ISE 27 AY 2021-22


Pharmacy Management System

cout
<<"\n";
cout<<"Payment Done\nThank You\n";
cout
<<"\n______________________________________________________________
___________ ______\n";
}

}
} //End function order_list

void medicineType::delete_order() //function to delete_order


{
cout<<"Enter the data you
want to delete \n"; cin>>num;
node *q; node *temp;
bool found;

if(start_ptr == NULL)
cerr<<"Can not delete from an
empty list.\n"; else
{
if(start_ptr->reciept_number == num)
{
q=
start_ptr;
start_ptr = start_ptr-
>next;
count--;
if(start_ptr
== NULL) last
= NULL;
delete q;
cout<<"The Reciept is Deleted Successfully"<<endl;
}
else
{
found = false;
temp =
start_ptr;

HKBKCE, VI SEM DEPT OF ISE 28 AY 2021-22


Pharmacy Management System

q=start_ptr
->next;
while((!fou
nd) && (q
!= NULL))
{
if(q->reciept_number != num)
{
temp = q;
q = q-> next;
}
else
found = true;
}

if(found)
{
temp->next = q-
>next; count--;

if(last == q)
last = temp;

delete q;
cout<<"The Reciept is Deleted Successfully"<<endl;
}
else
cout<<"Item to be deleted is not in the list."<<endl;
}
}
} //End function delete_order

void medicineType::modify() //function to modify order


{
system("cls");
cout<<"Enter Receipt Number To Modify: ";
cin>>sid;

HKBKCE, VI SEM DEPT OF ISE 29 AY 2021-22


Pharmacy Management System

if (temp==NULL && sid==0)


{
cout<<"NO RECORD TO MODIFY..!"<<endl;
}

else
{
while(temp !=NULL && !found)

if(temp->recipet_number == sid)
{
found = true;
}
else
{
temp = temp -> next;
}
if (found)
{
cout << "Change Order
Number: "; cin >>
temp->reciept_number;
cout<< "Change
Customer Name: ";
cin>> temp-
>customerName;
cout<<"Change Date :
"; cin>>temp->date;
cout << "How many New Medicine would you like to
Change:"<< endl; cout<<"( Maximum is 10 order for
each transaction ) \n"; cout << " " ; cin >> temp->x; if
(temp->x >10)
{
cout << "The Medicine you order is exceed the maximum amount of order
!"; system("pause");

HKBKCE, VI SEM DEPT OF ISE 30 AY 2021-22


Pharmacy Management System

for (i=0; i<temp->x; i++)


{

cout << "Please enter your selection to Change: "<<endl;


cin>> temp->menu2[i];
cout<< "Change Medicine Name: " <<temp->medicineName[temp-
>menu2[i]-1]<<endl; cout << "How many New medicine do you want: ";
cin >> temp->quantity[i];

temp->amount[i] = temp->quantity[i] * temp->Medicine[temp-


>menu2[i]-1]; cout << "The amount You need to pay After Modify
is: " << temp->amount[i]<<" RM"<<endl;
system("PAUSE");
}
temp = temp->next;
system("cls");

cout<<"RECORD MODIFIED....!"<<endl;

e
l
s
e

{
if(temp != NULL && temp->reciept_number != sid)
{
cout<<"Invalid Reciept Number...!"<<endl;
}

}
}
}

HKBKCE, VI SEM DEPT OF ISE 31 AY 2021-22


Pharmacy Management System

} //End modify function

void medicineType::daily_summary() //Function to display Daily


Summary
{

node *temp ;

temp=start_ptr;

if(temp == NULL) //Invalid receipt code


{
cout << "\t\t\tThere is no Order to show\n\t\t\tSo The List is Empty\n\n\n";

{
cout<<"\n";

cout<<"=====================================================
==========
============"<<endl;
cout <<" \t\tHere is the Daily Summary of All Orders \n"; //print all receipt

cout<<"=====================================================
========== ============"<<endl;

while(temp!=NULL)
{

cout <<"Reciept Number : "<<temp->reciept_number;


cout <<"\n";
cout<<"Customer Name: "<<temp->customerName<<endl;

cout<<"Order Date : "<<temp->date<<endl;

HKBKCE, VI SEM DEPT OF ISE 32 AY 2021-22


Pharmacy Management System

cout<<"____________________________________________________________
___________ _____"<<endl;

cout <<

"==========================================================
==========
======" << endl;
cout << "| Medicine Type | Medicine Name | Quantity |
Total
Price |" << endl;
cout <<
"=======++==================++================++===========
====++====
======" << endl;
for (i=0;i<temp->x;i++)
{
cout << temp->type <<" \t\t";
cout<<temp->medicineName[temp->menu2[i]-1]<<"\t\t";
cout<<temp->quantity[i] <<"\t\t";
cout<< temp->amount[i]<<" RM"<<endl;

cout<<"____________________________________________________________
___________ ______"<<endl;
}

temp->total = temp->amount[0]+temp->amount[1]+temp-
>amount[2]+temp>amount[3]+temp->amount[4]+temp->amount[5]+temp-
>amount[6]+temp->amount[7]
+temp->amount[8]+temp->amount[9];
cout<<"Total Bill is : "<<temp->total;

cout <<"\n";
cout <<"\n";

HKBKCE, VI SEM DEPT OF ISE 33 AY 2021-22


Pharmacy Management System

cout
<<"\n______________________________________________________________
___________ ______\n";

} //End daily summary


void medicineType::exit() //Function to exit
{
cout<<"\nYou choose to exit.\n"<<endl;
} //end function exit

HKBKCE, VI SEM DEPT OF ISE 34 AY 2021-22


Pharmacy Management System

CHAPTER- 6

SNAPSHOTS
DISPLAY PAGE

Fig: Display page of Pharmacy Management System

HKBKCE, VI SEM DEPT OF ISE 35 AY 2021-22


Pharmacy Management System

TAKE NEW MEDICINE ORDER

Fig: Adding Order Detail

Fig: Adding Order Details

HKBKCE, VI SEM DEPT OF ISE 36 AY 2021-22


Pharmacy Management System

DELETE LATEST MEDICINE ORDER:-

Fig: Deleting the Latest Medicine order

MODIFY ORDER LIST

Fig: Modifying the Order List

HKBKCE, VI SEM DEPT OF ISE 37 AY 2021-22


Pharmacy Management System

PRINT THE RECEIPT AND MAKE PAYMENT

Fig: The Printing of the Receipt

DAILY SUMMARY OF THE TOTAL SALES

Fig: The Daily Summary of The Total Sales

HKBKCE, VI SEM DEPT OF ISE 38 AY 2021-22


Pharmacy Management System

CONCLUSION

The need and necessary for medicines are increasing day by day and people
all over the world in this padamic situation are in one or the other way very
much needed for medicines

By implementing this project people can helpfully take medicines which are
their one among the baic necessity by staying in home safe and secure

The main moto of this project is to benefit the customers by delivering the
medicines which are their essential needs to their door step .

Pharmacy management system is actually a software which handle the


essential data and save the data and actually about the database of a
pharmacy and it's management.This software help in effectively management
of the pharmaceutical store or shop.It provide the statistics about medicine or
drugs which are in stocks which data can also be updated and edited.It works
as per the requirement of the user and have options accordingly.

It allow user to enter manufacturing as well as the expiry date of medicine


placing in stock and for sales transaction.This software also have ability to
print the bill and invoices etc.The record of suppliers supplies can also be
saved in it.There are other function available too . The main purpose is
effectively and easily handling of pharmacy data and it's management.

HKBKCE, VI SEM DEPT OF ISE 39 AY 2021-22


Pharmacy Management System

References
1. R. R. Berardi, L. V. Allen, E. M. DeSimone (eds.), Handbook of Nonprescription
Drugs, 14th ed., American Pharmaceutical Association, Washington, DC, 2004.

2. G. Briggs, R. K. Freeman, S. J. Yaffe (eds.), Drugs in Pregnancy and Lactation, 7th


ed., Williams & Wilkins, Baltimore, MD, 2005.

3. J. T. DiPiro, T. L. Schwinghammer, B. Wells (eds.), Pharmacotherapy: A


Pathophysiologic Approach, 5th ed., Appleton & Lange, Stamford, CT, 2002.

4. R. Gennaro, et al. (eds.), Remington†™s The Science and Practice of Pharmacy,


20th ed., Mack Publishers, Easton, PA, 2000.

5. J. D. Grabenstein, Immunofacts: Vaccines and Immunologic Drugs, Drug Facts and


Comparisons, St. Louis, MO, 1995.

6. P. D. Hansten, J. R. Horn (eds.), Drug Interactions: Analysis and Management, Drug


Facts and Comparisons, St. Louis, MO, 2004.

7. J. G. Hardman, L. E. Limbird (eds.), Goodman & Gilman†™s Pharmacological


Basis of Therapeutics, 10th ed., McGraw Hill, New York, NY, 2001.

8. K. Novak (ed.), Drug Facts and Comparisons, Facts and Comparisons, St. Louis,
MO, 2005.

9. G. K. Siberry, The Harriet Lane Handbook, 17th ed., Mosby Year Book, St. Louis,
MO, 2004.

10. C. K. Taketomo, J. H. Hodding, D. M. Kraus (eds.), APhA Pediatric Dosage


Handbook, 11th ed., Lexicomp Inc., Hudson, OH, 2004.

11. D. S. Tatro, Drug Interaction Facts, Facts and Comparisons, St. Louis, MO, 2005. S.
L. Traub (ed.), Basic Skills in Interpreting Laboratory Data, American Society of
Hospitals, Bethesda, MD, 1996. M. E. Winters, Basic Clinical Pharmacokinetics, 3rd
ed., Applied Therapeutics Inc., Vancouver, WA, 1994.

HKBKCE, VI SEM DEPT OF ISE 40 AY 2021-22


HKBK COLLEGE OF ENGINEERING

To empower the students through wholesome education & enable the


students to develop into highly qualified and trained professionals with ethics
and emerge as a responsible citizen to build a vibrant nation. To achieve
academic excellence through in depth knowledge in science, engineering and
technology through dedication to duty, innovation in teaching and faith in
human values.

To enable our students to develop into outstanding professionals with high


ethical standards to face challenges of 21st century

To provide educational opportunities to the deprived and weaker section of


the society to uplift their socio economic status

DEPT. OF INFORMATION SCIENCE AND ENGINEERING

HKBKCE, VI SEM DEPT OF ISE 42 AY 2021-22


HKBK COLLEGE OF ENGINEERING
DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING

PROGRAMME OUTCOMES [POs]

□ PO 1: Engineering knowledge: Apply the knowledge of mathematics science, engineering


fundamentals and an engineering specialization for the solution of complex engineering
problems.

□ PO 2: Problem analysis: Identify, formulate, research literature, and analyze complex


engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.

□ PO 3: Design/development of solutions: system components or processes that meet the specified


needs with appropriate consideration for public health and safety, and cultural, societal, and
environmental considerations.

□ PO 4: Conduct investigations of complex problems: use research based knowledge and research
methods including design of Experiments, analysis & interpretation of data, and synthesis of
the information to provide valid conclusions.

□ PO 5: Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools, including prediction and understanding of the limitations.

□ PO 6: The engineer and society: Apply reasoning informed by the contextual knowledge to
assess societal, health, safety, legal and cultural issues and the consequent responsibilities
relevant to the professional engineering practice.

□ PO 7: Environment and sustainability: understand the impact of the professional engineering


solutions in societal and environmental contexts, and demonstrate the knowledge of, and need
for sustainable development.

□ PO 8: Ethics: Apply ethical principles and commit to professional ethics and responsibilities
and norms of the engineering practice.

□ PO 9: Individual and team work: Function effectively as an individual as a member or a leader in


diverse teams, and in multidisciplinary settings.

□ PO10: Communication: Communicate effectively on complex engineering activity community


and with t h e society at large, such as, being able to comprehend and write effective reports
and design documentation, make effective presentations, and give and receive clear
instructions.

□ PO 11: Project management and finance: engineering and management principles and apply
these to one’s own work, as a member and leader in a team, to manage projects and in
multidisciplinary environments

□ PO 12: Life-long learning: Recognize the need for, and have the preparation and ability to
engage in independent and life-long learning in the broadest context of technological change

HKBKCE, VI SEM DEPT OF ISE 43 AY 2021-22

You might also like