Professional Documents
Culture Documents
Restaurant (FS)
Restaurant (FS)
A
MINI PROJECT REPORT ON
VI SEMESTER
Submitted By
MANJU P 1HK18IS038
Prof. SNEHA K
Assistant Professor
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
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.
ON
2021-22
SUBMITTED BY:
MANJU P 1HK18ISO38
HKBK COLLEGE OF ENGINEERING
Accredited by
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.
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.
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.
II
ABSTRACT
III
Pharmacy Management System
CHAPTER-1
INTRODUCTION
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.
Primary Indexing is defined on an ordered data file. The data file is ordered on
a key field.
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.
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.
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 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.
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.
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.
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.
Existing System: -
Proposed System: -
Exit: -
The user can exit from the action.
CHAPTER -2
SYSTEM REQUIREMENT SPECIFICATION (SRS)
INTRODUCTION:
Mouse: Touchpad
Hard Disc: 40 GB
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:
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.
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
CHAPTER- 4
SYSTEM DESIGN
pharmacy.cpp
pharmacy. dev
main.cpp
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.
#include <iostream>
#include <stdlib.h>
#include <string>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <iomanip>
#define max 10
};
medicineType::medicineType ()
{
node *prev;
node *next; node *link;
}*q, *temp; //pointer declaration
node *start_ptr =
NULL; node *head =
NULL;
node *last = NULL;
cin>>menu;
switch (menu)
{
case1:
{
medicine.take_order();
break;
}
case 2:
{
{
medicine.modify(); //function modify
system("PAUSE");
break;
} //end case 3
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:
{
}//end Switch
}while(menu!=6);//end do
a://goto
cout<<"thank
you"<<endl;
system
("PAUSE");
return 0;
}//end main function
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<<"=====================================================
==========
============"<<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
temp=start_ptr;
found = false;
cout<<"=====================================================
========== ============"<<endl;
cout<<"____________________________________________________________
___________ ______"<<endl;
cout
<<
"==========================================================
==========
===========" << endl;
cout << "| Medicine Type | Medicine Name | Quantity |
Total Price |" << endl;
cout <<
"=======++==================++================++===========
====++====
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";
cout
<<"\n";
cout<<"Payment Done\nThank You\n";
cout
<<"\n______________________________________________________________
___________ ______\n";
}
}
} //End function order_list
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;
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
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");
cout<<"RECORD MODIFIED....!"<<endl;
e
l
s
e
{
if(temp != NULL && temp->reciept_number != sid)
{
cout<<"Invalid Reciept Number...!"<<endl;
}
}
}
}
node *temp ;
temp=start_ptr;
{
cout<<"\n";
cout<<"=====================================================
==========
============"<<endl;
cout <<" \t\tHere is the Daily Summary of All Orders \n"; //print all receipt
cout<<"=====================================================
========== ============"<<endl;
while(temp!=NULL)
{
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";
cout
<<"\n______________________________________________________________
___________ ______\n";
CHAPTER- 6
SNAPSHOTS
DISPLAY PAGE
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 .
References
1. R. R. Berardi, L. V. Allen, E. M. DeSimone (eds.), Handbook of Nonprescription
Drugs, 14th ed., American Pharmaceutical Association, Washington, DC, 2004.
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.
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.
□ 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 8: Ethics: Apply ethical principles and commit to professional ethics and responsibilities
and norms of the engineering practice.
□ 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