0% found this document useful (0 votes)
501 views31 pages

A Project Report ON: Medical Store Billing System

A project report on a Medical Store Billing System was submitted for partial fulfillment of a BCA degree from Guru Ghasi Das University, Bilaspur, Chhattisgarh, India. The project was developed under the guidance of Mr. Pushpendra Tiwari and submitted by Murleedhar Patel, Abhinesh Gupta, and Bca part III students for the session 2011-12. The software was developed using C++ to automate the manual processes in a small medical store to save time and reduce errors. Data flow diagrams and flowcharts were created to model the information flow and logical sequence of the billing system.

Uploaded by

Lokendra Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
501 views31 pages

A Project Report ON: Medical Store Billing System

A project report on a Medical Store Billing System was submitted for partial fulfillment of a BCA degree from Guru Ghasi Das University, Bilaspur, Chhattisgarh, India. The project was developed under the guidance of Mr. Pushpendra Tiwari and submitted by Murleedhar Patel, Abhinesh Gupta, and Bca part III students for the session 2011-12. The software was developed using C++ to automate the manual processes in a small medical store to save time and reduce errors. Data flow diagrams and flowcharts were created to model the information flow and logical sequence of the billing system.

Uploaded by

Lokendra Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 31

A PROJECT REPORT

ON

MEDICAL STORE BILLING SYSTEM

Submitted For Partial Fullfilment Of

BCA

Of

Guru Ghasi Das University, Bilaspur [C.G.]

Under Guidance Of Submitted By:


MR. Pushpendra Tiwari Murleedhar Patel
Abhinesh Gupta
Bca part III
Session 2011-12
PREFACE
The human computer interface, commonly
called the “User Interface” is the doorway to an Interactive
software application. The design of user interfaces demands
an understanding of human factors and interface technology
with the use of computers. Human perception, the skilled
level and behavioral profile of the user, the overall tasks that
the user must conduct are the factor to be considered in an
interface design. Visually presented in a most natural way,
complex structures and Relationships can be perceived in
less time, in greater number and with fewer errors than in
any other way. A good user interface makes the program not
only easy but also versatile and efficient to operate
conversely by the user. The main purpose of the use of
computer’s in the modern times is to save the time, money,
speedup the process of any work in the company or institute.
It also saves large space by storing data in small hard disk in
place of files and books.

The increased use of computers is gradually replacing


manual system due to their error prone and time-consuming
behavior. Database management has evolved from a
specialized computer application to a central Component of
a modern computing environment. Its primary goal is to
provide an Environment that is covenant and using,
retrieving and storing database information.

The need of this system arises from error prone results and
need to save the time.
Acknowledgement

First and foremost, I thank Almighty (God) for all His blessings
showered on me.

We wish & express our heart full gratitude to the project guide Mr
Pushpendra Tiwari for the guidance and suggestions throughout the project,
without which I would not have been able to complete this project
successfully.

I extend my thanks to all my friends for their moral support and


encouragement. Last but not least I thank my parents and relatives
who inspired us always to do the best.

Name Signature
Pushpendra Tiwari
CONTENTS

TOPIC

1. About Project

2. About C++

3. Flowchart / Data Flow Diagram

4. File Structure

5. Source Code

6. Input Form

7. Output Form

8. Bibliography

About Project:
The software developed by us can used in any small scale
Medical Store in order to remove the burden of manual
working process which were used in small directory for daily
working process for the creation of new user , modification
and deletion which is time consuming and error prone. So
for the removal of all the burdens from the Medical Store
their employee wants a computerized system for the entry
process in the Medical Store.

About C++

We have chosen C++ programming for the development of


the software Medical Store because C++ programming
language has many features ,due to which c++ language is
called the most powerful language for developing an
application software for various purposes. The file
management in C++ is simple and easy to implements.

Flowchart / Data Flow Diagram


Data Flow Diagrams are part of a structured model in the
development of software. Data flow diagrams are graphical technique
that depicts information flow and that transforms that are applied as
data move from input to output.
Basically, the function of data flow diagrams is to show the user a
graphical analysis of a software system. It is kind of like a flowchart,
except Data Flow Diagrams show the flow of data throughout the
system.

A data flow diagram (DFD) is a graphical technique that


depicts information flow and the transforms that are applied
as data moves from input to output. The DFD is also known
as a data flow graph or a bubble chart.

A DFD shows the functional relationship of the values


computed by a system, including input values, output
values, and internal data stores. It’s a graph showing the
flow of data values from their sources in objects through
processes that transform them to their destinations in other
objects. Some authors use a DFD to show control
information, others might not. A DFD can be seen as a
method of organizing data from its raw state.

General Information

What is a Data flow diagram? Data flow diagrams are


diagrams, which show the flow of data from one place to
another. DFDs describe the processes of a system, showing
how these processes link together through data stores and
how the processes relate to the users-the outside world.
They are sent to record the systems analysis as part of the
design documentation. At their lowest level of details, as we
shall see, DFD’s are often included in a programmers
working specifications when the system analysis is
complete and the system is being.

Why data flow diagrams?

This is also true for a graphical description, model. It’s


difficult, if not impossible, to describe a model in words and
still being clear and not complex. This was one of the main
reasons to develop a graphical modeling technique like
Data flow diagrams.

There are a certain number of ways Data flow diagrams


can be represented.

Data flow diagrams usually are made after a Context


Diagram has been made, because the Context diagram
functions as the basis of a Data flow diagram.

It’s important not to forget that Data flow diagrams are not a
model of flow of control or sequence of processing in a
system. Data flow diagrams must be seen as a model, which
show the flow of data through a system.
DATA FLOW DAIGRAM FOR THE PROJECT

1) DFD FOR ADD NEW MEMBER OPENING

ENTRY
OPERATOR PROCESS OF
DATA MED_REC.DAT

2) DFD FOR SEARCHING CUSTOMER INFORMATION

SEARCH BY
OPERATOR BATCH OUTPUT
NUMBER

MED_REC.DAT
3) DFD FOR DELETING ACCOUNT OF MEMBER

OPERATOR DELETE
RECORD BY MED_REC.DAT
SEARCH
BATCH
NUMBER

MED_REC.DAT TEMP.DAT
FLOW CHART

Before solving a problem with the help of a computer, it is


essential to plan the solution in a step-by-step manner.
Such a planning is represented symbolically with the help of
flow chart. It is an important tool of system analysts and
Programmers for tracing the information flow and the logical
sequence in data processing Logic is the essence of a flow
chart.

A flow chart is the symbolic representation of step-by-step


solution of a given problem, and it indicates flow of entire
process, the sequence of the data input, operations,
computations, decisions, results and other relevant
information.
Pertaining to a particular problem, a flow chart helps
us in the complete understanding of the logical structure of
a complicated problem and in documenting the method
used. It would be seen that the flow chart is a very
convenient method of organizing the logical steps and
deciding what, when and how to proceed with various
processes. The logic should be depicted in the flow charts.
Computerization of the data without a flow chart is like
constructing the building without a proper design and
detailed drawings.

Kinds of the Flow Charts

System Flow Chart

The system analyst to describe data flow and operations for


the data processing cycle uses these. A system flow chart
defines the broad processing in the organizations, showing
the origin of the data, filling structure, processing to be
performed, output that is to generate and necessity of the
offline operation.

2. Program Flow Chart (or) Computer Procedure flow chart

The programmers to describe the sequence of operations


and the decision of a particular problem normally use these.
A program flow chart plans the Program structure and also
serves the purpose of documentation for a program, which
is to be retained and used at a later date either by the
original programmer or others.
Advantages:

Apart from, the DFDS the flow charts has been helping the
programmer to develop the programming logic and to serve
as the documentation for a Completed program, it has the
following advantages

1. They help for the easy understanding of


the logic of a
process or a procedure

2. It is a better communicating tool than


writing in words.

3. It is easy to find the conditions, which


are responsible
for the actions.

4. It is an important tool for planning and


designing the
new system.
5. It clearly indicates the role-played at
each level.

6. It provides an overview of the system


and also
demonstrates the relationship between the
various steps.

7. It facilitates troubleshooting.

8. It promotes logical accuracy.


Disadvantages:

1. Communication lines are not always easy to


show.

2. The charts are sometimes complicated.

3. Reproduction is difficult.

4. They are hard to modify.


MAIN MENU OF MEDICINE BILLING SYSTEM

START

GET USER INPUT

YES
Is Choice=1 Add New Data To
File

NO

YES
Is Choice=2 Display All Record
Yes

YES
Search Record
Is Choice=3

NO
YES
Delete Record
Is Choice=4

NO

Is Choice=5
NO

YES

STOP
B
A

if choice=6
Sale price

if choice=7 Sale quantity

Main menu
Modify record

if choice=0

if choice=1
Batch number

if choice=2
Medicine name

if choice=3
company name

if choice=4
Manufact. date

if choice=5
Expiry date

A
if
c
h
oi
ce
4

B
A

if choice=6
Sale price

if choice=7 Sale quantity

Main menu
File Structure

INITIAL.DAT TABLE

In the INITIAL.DAT FILE details of the MEMBERS are stored during


the opening of New Account in the Beauty parlor in this file his
Name, Address, Money are stored.

FIELD FIELD NAME TYPE


1 Member Id Integer
2 Name Character
3 Address Charadter
4 Amount Long integer

Source Code

#include<iostream.h>
#include<fstream.h>
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<dos.h>

struct date d;
class Medical
{
private:
char batch_no[10];
char med_name[25],company[25];
char manu_date[10],expiry_date[10];
float price_10,price;
int item;
int dd,mm,yyyy;
public:
void input_data();
void output_data();
void modify_menu();
char* return_batch_no()
{
return(batch_no);
}

};

//................ Input function ..........................//


void Medical::input_data()
{
getdate(&d);
dd=d.da_day;
mm=d.da_mon;
yyyy=d.da_year;

textcolor(10);
gotoxy(33,4);
cprintf("INPUTING OF RECORD");
gotoxy(28,6);
cprintf("==========================");
textcolor(15);
cprintf("");
gotoxy(18,8);
cout<<"Enter the Batch Number of Medicine: ";
fflush(stdin);
gets(batch_no);
gotoxy(18,10);
cout<<"Enter the Name of the Medicine: ";
gets(med_name);
gotoxy(18,12);
cout<<"Enter the Manufacturer Company Name: ";
gets(company);
gotoxy(18,14);
cout<<"Enter Manufacturing Date (Mm-Yyyy): ";
gets(manu_date);
gotoxy(18,16);
cout<<"Enter the Expiry Date (Mm-Yyyy): ";
gets(expiry_date);
gotoxy(18,18);
cout<<"Enter the Saling Price (Per 10 item): ";
cin>>price_10;
gotoxy(18,20);
cout<<"Enter the how many Medicine Sale: ";
cin>>item;
}

//................ Output Function ........................//


void Medical::output_data()
{
textcolor(10);
gotoxy(33,4);
cprintf("OUTPUT OF RECORD");
gotoxy(28,6);
cprintf("===========================");
textcolor(15);
cprintf("────────────────────────────────────────");
gotoxy(15,8);
cout<<"";
gotoxy(20,10);
cout<<"Medicine Batch Number: "<<batch_no;
gotoxy(20,12);
cout<<"Name of the Medicine: "<<med_name;
gotoxy(20,14);
cout<<"Manufacturer Company: "<<company;
gotoxy(20,16);
cout<<"Manufacturing Date: "<<manu_date;
gotoxy(20,18);
cout<<"Expiry Date: "<<expiry_date;
gotoxy(20,20);
cout<<"Record Entry Date: "<<dd<<"-"<<mm<<"-"<<yyyy;
cout.precision(2);
cout.setf(ios::fixed);
gotoxy(20,22);
cout<<"Saled Medicine (item): "<<item;
price=(price_10/10)*item;
gotoxy(20,24);
cout<<"Price (in Rs): "<<price;
gotoxy(15,26);
cout<<"────────────────────────────────────────";
}
//.............................Function for modifying record.......................................//

void Medical::modify_menu()
{
int ch=0,f=0;
while(1)
{
clrscr();
textcolor(10);
gotoxy(33,10);
cprintf("MODIFY MENU");
gotoxy(26,12);
cprintf("==================== ");
textcolor(9);
gotoxy(31,14);
cprintf("1. Batch Number");
gotoxy(31,16);
cprintf("2. Medicine Name");
gotoxy(31,18);
cprintf("3. Company Name");
gotoxy(31,20);
cprintf("4. Manufact. Date");
gotoxy(31,22);
cprintf("5. Expiry Date");
gotoxy(31,24);
cprintf("6. Sale Price");
gotoxy(31,26);
cprintf("7. Saled Quantity.");
gotoxy(31,28);
cprintf("0. Exit");
gotoxy(31,31);
textcolor(10);
cprintf("Enter your choice: ");
textcolor(15);
cin>>ch;
switch(ch)
{
case 1: clrscr();
gotoxy(18,23);
cout<<"Enter the New Batch Number of Medicine:";
fflush(stdin);
gets(batch_no);
gotoxy(18,26);
cout<<"Medicine Code has Modified successfuly.";
break;

case 2: clrscr();
gotoxy(18,23);
cout<<"Enter the New Name to Medicine: ";
fflush(stdin);
gets(med_name);
gotoxy(18,26);
cout<<"Name has been Modified successfully.";
break;

case 3: clrscr();
gotoxy(18,23);
cout<<"Enter the New Name for Manufacturer Company: ";
fflush(stdin);
gets(company);
gotoxy(18,26);
cout<<"Manufacturer Company Name has Nodified successfully.";
break;

case 4: clrscr();
gotoxy(18,23);
cout<<"Enter the New Manufacturing Date (Mm-Yyyy): ";
fflush(stdin);
gets(manu_date);
gotoxy(18,26);
cout<<"Manufacturing Date has Modified successfully.";
break;

case 5: clrscr();
gotoxy(18,23);
cout<<"Enter the New Expiry Date (Mm-Yyyy): ";
fflush(stdin);
gets(expiry_date);
gotoxy(18,26);
cout<<"Expiry Date has Modified successfully.";
break;

case 6: clrscr();
gotoxy(18,23);
cout<<"Enter the Sale Price (Per 10 piece): ";
cin>>price_10;
gotoxy(18,26);
cout<<"Saling Price has Modified successfully.";
break;

case 7: clrscr();
gotoxy(18,23);
cout<<"Enter the Quantity how many Sale: ";
cin>>item;
gotoxy(18,26);
cout<<"Medicine Quantity has Modified successfully.";
break;

case 0: clrscr();
f=1;
break;
}//switch
if(f==1)
break;
getch();
}//while
}//end

//...................................Main Module…………………………..............//
void main()
{
Medical medical;
int flag=0,choice,nbyte=sizeof(medical);
char b_no[10];
fstream murli, abhinesh; // read/write both
murli.open("med_rec.dat",ios::in|ios::out|ios::binary);
getdate(&d);
clrscr();
textcolor(10);
gotoxy(22,5);
cprintf("WELCOME TO MEDICAL STORE BILLING SYSTEM");
gotoxy(17,7);
textcolor(9);
cprintf("*************************************************");textcolor(
15);
gotoxy(25,9);
cprintf("DATE: %d/%d/%d",d.da_day,d.da_mon,d.da_year);
textcolor(10);
gotoxy(22,26);
cprintf("SUBMITTED BY: ");
gotoxy(22,27);
cprintf("──────────────────────");
textcolor(15);
gotoxy(25,29);
cprintf("MURLEEDHAR PATEL");
gotoxy(25,31);
cprintf("ABHINESH GUPTA");
gotoxy(25,33);
cprintf("BCA PART III");
gotoxy(25,35);
cprintf("SESSION: 2011-12");
gotoxy(25,37);
cprintf("S. N. COLLEGE BILASPUR CG.");
gotoxy(17,40);
textcolor(9);
cprintf("*************************************************");
textcolor(15);
gotoxy(31,45);
cout<<"Press any key to continue....";
getch();
while(1)
{
clrscr();
textcolor(10);
gotoxy(30,10);
cprintf("M A I N M E N U ");
gotoxy(26,12);
cprintf("════════════════════");

textcolor(9);
gotoxy(31,14);
cprintf("1. Add New");
gotoxy(31,16);
cprintf("2. Search Record");
gotoxy(31,18);
cprintf("3. Display ALL");
gotoxy(31,20);
cprintf("4. Modify Record");
gotoxy(31,22);
cprintf("5. Delete Record");
gotoxy(31,24);
cprintf("0. Exit");
textcolor(10);
gotoxy(31,28);
cprintf("Enter your choice: ");
cin>>choice;
textcolor(15);
switch(choice)
{
case 1:clrscr();
medical.input_data();
murli.clear();
murli.seekp(0,ios::end);
murli.write((char *)&medical, sizeof(medical));
break;

case 2: clrscr();
flag=0;
gotoxy(20,23);
cout<<"Enter the Batch Number to Search: ";
fflush(stdin);
gets(b_no);
murli.clear();
murli.seekg(0, ios::beg);
while(murli.read((char *)&medical,sizeof(medical)))
{
if(strcmpi(medical.return_batch_no(),b_no)==0)
{
medical.output_data();
gotoxy(31,45);
cout<<"Press any key to continue....";
getch();
flag=1;
}
murli.clear();
}
if(flag==0)
{
gotoxy(30,25);
cout<<"Record doesn't Exist.";
getch();
}
break;
case 3: clrscr();
flag=0;
murli.clear();
murli.seekg(0,ios::beg);
while(murli.read((char *)&medical,sizeof(medical)))
{
medical.output_data();
gotoxy(31,45);
cout<<"Press any key to continue....";
getch();
flag=1;
murli.clear();
}
if(flag==0)
{
gotoxy(30,24);
cout<<"Record doesn't Exist.";
getch();
}
break;

case 4: clrscr();
flag=0;
gotoxy(18,23);
cout<<"Enter the Batch Number to modify their Record: ";
fflush(stdin);
gets(b_no);
murli.clear();
murli.seekg(0, ios::beg);
while(murli.read((char *)&medical,sizeof(medical)))
{
if(strcmpi(medical.return_batch_no(),b_no)==0)
{
medical.modify_menu();
murli.seekg(-nbyte,ios::cur);
murli.write((char*)&medical,sizeof(medical));
flag=1;
break;
}
}
if(flag==0)
{
gotoxy(30,26);
cout<<"Record doesn't Exist.";
getch();
}
break;

case 5: clrscr();
flag=0;
gotoxy(18,23);
cout<<"Enter the Batch Number to Delete their Record:";
fflush(stdin);
gets(b_no);
murli.clear();
murli.seekg(0,ios::beg);
abhinesh.open("temp.dat",ios::out|ios::binary);
while(murli.read((char*)&medical,sizeof(medical)))
{
if(strcmpi(medical.return_batch_no(),b_no)!=0)
abhinesh.write((char *)& medical,sizeof(medical));
else
flag=1;
}

if(flag==1)
{
gotoxy(30,26);
cout<<"Record has been Deleted.";
murli.close();
abhinesh.close();
remove("med_rec.dat");
rename("temp.dat","med_rec.dat");
murli.open("med_rec.dat",ios::in|ios::out|ios::binary);
}
else
{
abhinesh.close();
remove("temp.dat");
gotoxy(30,26);
cout<<"Record doesn't Exist.";
}
getch();
break;

case 0: clrscr();
murli.close();
exit(1);

default:
clrscr();
gotoxy(30,22);
cprintf("Wrong choice,");
gotoxy(30,24);
cprintf("Enter the choice properly.");
getch();
}
}
}
Input Form

Output Form
BIBLIOGRAPHY

The following books and manuals provided a lot of help to us in making this project a
reality.
C++ COMPLETE REFERENCE
HERBERT SCHILDT
HOW TO PROGRAM C++
DEITERL & DEITEL

C++ PROGRAMMING
O’RELLY
SOFTWARE ENGINEERING
R. E. FAIRELY
SOFTWARE ENGINEERING
PRESSMAN
AN INTEGRATED APPROACH TO SOFTWARE
ENGINNERING
PANKAJ JALOTE
NAROSA PUBLISING HOUSE
SYSTEM ANALYSIS AND DESIGN
ELIAS M AWAD
GALGOTIA
C++ Programming
Yaswant Kanetkar

You might also like