You are on page 1of 28

TERM PAPER

ON
DISTRIBUTOR
MANAGEMENT
SYSYEM

SUBMITTED BY:-

NAME:-VIKASH SINGH
SECTION:-E4004
ROLL NO.:-B32
REGD. NO.:-110

SUBMITTED TO:-
MS.-RAJNI
TABLE OF CONTENTS
1. Introduction
2. Proposed system
i. Description
ii. System requirements
3. Requirement Analysis
4. System Design
5. Source code
6. Testing
7. Future scope of project
INTRODUCTION
In the existing system, most of the records are
maintained on paper. It becomes very inconvenient to
modify the data. In the existing system, here is a
possibility that the same data in different registers
may have different values which means the entries of
the same data do not match. This inconsistent state
does not supply the concrete information which poses
a problem in the case information related to particular
search record.
Our project is very useful. User is no longer required
to check his register in search of records, as now it
can be searched over the software by choosing some
options. The user need not to type in most of the
information. He/she is just required to enter the
desired options. On the whole it liberates the user
from keeping lengthy manual records. In a nutshell, it
abates the work load of an organization.
In today’s world, no one likes to perform calculations
on calculator or manually when computer is there.
Every one wants his/her work to be done by
computer automatically and displaying the result for
further manipulations.
PROPOSED SYSTEM
The following documentation is a project the
“Name of the term paper allotted”. It is a
detailed summary of all the drawbacks of
the old system and how the new proposed
system overcomes these shortcomings. The
new system takes into account the various
factors while designing a new system. It
keeps into the account the Economical
bandwidth available for the new system. The
foremost thing that is taken care of is the
Need and Requirements of the User.

DESCRIPTION
Before developing software we keep
following things in mind that we can
develop powerful and quality software
PROBLEM STATEMENT
o Problem statement was to design a
module:
o Which is user friendly
o Which will restrict the user from
accessing other user’s data.
o Which will help user in viewing his data
and privileges.
o Which will help the administrator to
handle all the changes.

FUNCTIONS TO BE PROVIDED:
The system will be user friendly and
completely menu driven so that the users
shall have no problem in using all options.
o The system will be efficient and fast in
response.
o The system will be customized
according to needs.

SYSTEM REQUIRMENTS
Operating system: MS Windows XP or
Windows Vista
Language: C Language
Processor: Pentium IV Processor
RAM: 512 MB
Hard disk: 5 GB
REQUIREMENT ANALYSIS
This process is adopted when management
of the system development, Personnel
decide that the particular system needs
improvement. The system development life
cycle is the set of activities, carried out by
the analyst, designers and users to develop
and implement a system. The systems that
are present in the nature follow common life
cycle pattern. For example consider the
raining system. Initially the rain falls into
the river, river flows into sea, the sea water
evaporates to form vapors, the vapors form
clouds which again bring rain. Similarly
consider a man made system initially a
system is analyzed, designed and made
operational by the efforts of system analysis.
After successful operation or a number of
users, the system becomes less and less
effective by change in the environment. So
these changes have to be incorporated in to
the system by minor modifications. So the
general activities from the life cycle of the
system are given below:
• Select ion and identification of the
system to be studied
• Preliminary study
• Defining the system
• Design and development of the system
• Implementation of the system
SYSTEM DESIGN

Then we began with the design phase of the


system. System design is a solution, a
“HOW TO” approach to the creation of a
new system. It translates system
requirements into ways by which they can
be made operational. It is a translational
from a user oriented document to a
document oriented programmers. For that, it
provides the understanding and procedural
details necessary for the implementation.
Here we use Flowchart to supplement the
working of the new system. The system thus
made should be reliable, durable and above
all should have least possible maintenance
costs. It should overcome all the drawbacks
of the Old existing system and most
important of all meet the user requirements.
START

KARAN();

STRUCTURE NO
CUSTMOR

ENTER ENTER RIGHT


PASSWORD=10802148 PASSWORD

Y
E
S
AA KARAN()

CASE1 CASE2 CASE3 CASE4 CASE5 CASE6 CASE7 CASE8 CASE9 CASE10 CASE11

C C
ADD CUSTMOER
6 7 C C C1
DATA
8 9 0 C1
1
RETU
RN
SEE CUSTMOER DATA
AA

ADD OR SEE BRANDS


OF CANDAY’S

ADD OR SEE BRANDS


OF CHOACLATE

ADD OR SEE BRANDS


OF COOKIES AND PRESS TO GO
C C C C1 C1
C6 7 8 9 0 1

ADD OR SEE
BRANDS
RETU
OF COLD DRINKS
RN
AA

ADD OR SEE BRANDS


OF SNACKS

ADD OR SEE BRANDS


OF GIFT PACK

ADD OR SEE BRANDS


OF BILL

SEE RECORD

EXIT

STOP
SOURCE CODE
#include<stdio.h>
#include<conio.h>
#include<string.h>
struct customer
{
char name[20];
char nam[20];
float pri,w,count;
int brand,p;
}brand1;
main()
{
long int x;
clrscr();
printf("---------------------------------------------------
----------------------------");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tTO START
PROGRAM PRESS =10802148");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n
ENTER THE PASSWORD = ");
scanf("%ld",&x);
if(x==10802148)
{
karan();
}
else
{
printf("ENTER the righit password");
}
return 1;
}
karan()
{
FILE *sp;
int a,i,d,p,e,k,kk,kkk,kkkk,kkkkk,kkkkkk,kkkkkkk;
long int x;
char ch,wh,qh,eh,rh,th,uh,oh,yh,nh,h;
clrscr();
printf("\n------------------------------------------------
------------------------------");
printf("\n WEL COME YOU IN BAWEJA
TRADERS COMPANY ");
printf("\n YOU ARE LUCKY BECAUSE
YOU ARE HERE");
printf("\n--------
******--------------------------------------------------
--******--------");
printf("\n ");
printf("\n ");
printf("\n ");
printf("\n ");
printf("\n ENTRER YOUR CHOICE FOR
WANDRING IN THIS COMPANY");
printf("\n**********************************
******************************************
***");
printf("\n1. ADD THE CUSTOMER
");
printf("\n2. CUSTOMER LIST ");
printf("\n3. BRAND OF CANDY'S ");
printf("\n4. BRAND OF CHOCALATE ");
printf("\n5. BRAND OF COOKIES ");
printf("\n6. BRAND OF COLD DRINKS ");
printf("\n7. BRAND OF SNACKS ");
printf("\n8. BRAND OF GIFT PACK");
printf("\n9. BIll");
printf("\n10.RECORD OF BILLS THAT HAS CUT");
printf("\n11. EXIT");
printf(" \n ENTER YOUR
CHOICE:=");
scanf("%d",&a);
switch(a)
{
case 1:
clrscr();
printf("\n------------------------------------------------
----------------------------");
printf("\n ENTER THE CUSOMER FOR
RECORD");
printf("\n------------------------------------------------
----------------------------");
sp=fopen("karan0.txt","a+");
printf("\nENTER THE CUSTOMER NAME=");
scanf("%s",&brand1.name);
printf("\nENTER THE BRAND NAME=");
scanf("%s",&brand1.nam);
printf("\nENTER THE PRICE OF BRAND NAME=");
scanf("%f",&brand1.pri);
fprintf(sp,"\n %s %s
%f",brand1.name,brand1.nam,brand1.pri);
fclose(sp);
printf("\nPRESS 1 KEY FOR GO IN MAIN MAIN
MENU=");
scanf("%d",&e);
if(e==1)
{
karan();
}

break;
case 2:
clrscr();
printf("\n------------------------------------------------
----------------------");
printf("\n********* CUSTOMERS OF BAWEJA
TRADERS COMPANY *********** ");
printf("\n------------------------------------------------
----------------------");
sp=fopen("karan0.txt","r");
while(nh!=EOF)
{
nh=fgetc(sp);
printf("%c",nh);
}
printf("\n PRESS 1 KEY FOR GO IN MAIN
MAIN MENU=");
printf("\n **********************FOR EXIT
PRESS ANY KEY*************= ");
scanf("%d",&e);
if(e==1)
karan();
else
exit();
fclose(sp);
break;
case 9:
clrscr();
sp=fopen("karan2.dat","a");
printf("---------------------------------------------------
---------------");
printf("\n CUSTOMER BILL");
printf("\n------------------------------------------------
-----------------");
printf("\n ENTER HOW MANY BRANDS YOU ARE
PURCHASE=");
scanf("%d",&brand1.p);
for(i=1;i<=brand1.p;i++)
{
printf(" ENTER THE BRAND PRICE");
scanf("%f",&brand1.w);
brand1.count=brand1.count+brand1.w;
}
printf("TOTAL=%f",brand1.count);
fprintf(sp,"\n QTY OF BRANDS=%d LAST
PRICE OF BRAND=%f BILL WAS==%f
",brand1.p,brand1.w,brand1.count);
printf("\n------------------------------------------------
-----------------------------------");
printf("\n THANKS FOR PURCHASING OF
BRANDS FROM BAWEJA TRADERS COMPANY ");
printf("\n------------------------------------------------
-------------------------------------");
printf("\n HAVE A NICE DAY");
fclose(sp);
printf("\n PRESS 1 KEY FOR GO IN MAIN
MAIN MENU=");
printf("\n **********************FOR EXIT
PRESS ANY KEY*************= ");

scanf("%d",&e);
if(e==1)
karan();
else
exit();
break;

case 10:
clrscr();
printf("\n------------------------------------------------
-------------------------------");
printf("\n RECORDS OF ALL
BILL");
printf("\n------------------------------------------------
-------------------------------");
sp=fopen("karan2.dat","r");
while(h!=EOF)
{
h=fgetc(sp);
printf("%c",h);
}
printf("\n PRESS 1 KEY FOR GO IN MAIN
MAIN MENU=");
printf("\n **********************FOR EXIT
PRESS ANY KEY*************= ");
fclose(sp);
scanf("%d",&e);
if(e==1)
karan();
else
exit();
break;
case 11:
exit();
break;
case 3:
clrscr();
printf("\n------------------------------------------------
----------------------------");
printf("\n BRANDS AVAILABLE IN BAWEJA
TRADERS COMPANY ");

printf("\n------------------------------------------------
----------------------------");
sp=fopen("karan1.txt","a+");
printf("\nif you want to enter new brand of cookies
then press 1 else press any another key");
scanf("%d",&k);
if(k==1)
{
goto karan;
}
else
{
goto baweja;
}
karan:
printf("\nENTER THE BRAND NAME=");
scanf("%s",&brand1.nam);
printf("\nENTER THE PRICE OF BRAND NAME=");
scanf("%f",&brand1.pri);
fprintf(sp,"\n %s %f",brand1.nam,brand1.pri);
fclose(sp);
baweja:
sp=fopen("karan1.txt","r");
while(eh!=EOF)
{
eh=fgetc(sp);
printf("%c",eh);
}
fclose(sp);
printf("\n PRESS 1 KEY FOR GO IN MAIN
MAIN MENU=");
printf("\n **********************FOR EXIT
PRESS ANY KEY*************= ");

scanf("%d",&e);
if(e==1)
karan();
else
exit();
break;
case 4:
clrscr();
printf("\n------------------------------------------------
----------------------------");
printf("\n BRANDS AVAILABLE IN BAWEJA
TRADERS COMPANY ");
printf("\n------------------------------------------------
----------------------------");
sp=fopen("karan2.txt","a+");
printf("\nif you want to enter new brand then press
1 else press any another key");
scanf("%d",&kk);
if(kk==1)
{
goto nilesh;
}
else
{
goto singh;
}
nilesh:
printf("\nENTER THE BRAND NAME=");
scanf("%s",&brand1.nam);
printf("\nENTER THE PRICE OF BRAND NAME=");
scanf("%f",&brand1.pri);
fprintf(sp,"\n %s %f",brand1.nam,brand1.pri);
fclose(sp);
singh:
sp=fopen("karan2.txt","r");
while(wh!=EOF)
{
wh=fgetc(sp);
printf("%c",wh);
}
printf("\n PRESS 1 KEY FOR GO IN MAIN
MAIN MENU=");
printf("\n **********************FOR EXIT
PRESS ANY KEY*************= ");
scanf("%d",&e);
if(e==1)
karan();
else
exit();
fclose(sp);
break;
case 5:
clrscr();
printf("\n------------------------------------------------
----------------------------");
printf("\n BRANDS AVALIABLE IN BAWEJA
TRADERS COMPANY ");
printf("\n------------------------------------------------
----------------------------");
sp=fopen("karan3.dat","a+");
printf("\nif you want to enter new brand then press
1 else press any another key");
scanf("%d",&kkk);
if(kkk==1)
{
goto key;
}
else
{
goto board;
}
key:
printf("\nENTER THE BRAND NAME=");
scanf("%s",&brand1.nam);
printf("\nENTER THE PRICE OF BRAND NAME=");
scanf("%f",&brand1.pri);
fprintf(sp,"\n %s %f",brand1.nam,brand1.pri);
fclose(sp);
board:
sp=fopen("karan3.txt","r");
while(th!=EOF)
{
th=fgetc(sp);
printf("%c",th);
}
printf("\n PRESS 1 KEY FOR GO IN MAIN
MAIN MENU=");
printf("\n **********************FOR EXIT
PRESS ANY KEY*************= ");
scanf("%d",&e);
if(e==1)
karan();
else
exit();
fclose(sp);
break;
case 6:
clrscr();
printf("\n------------------------------------------------
----------------------------");
printf("\n BRANDS AVAILABLE IN BAWEJA
TRADERS COMPANY ");
printf("\n------------------------------------------------
----------------------------");
sp=fopen("karan5.dat","a+");
printf("\nif you want to enter new brand then press
1 else press any another key");
scanf("%d",&kkkk);
if(kkkk==1)
{
goto chinku;
}
else
{
goto chinkuu;
}
chinku:
printf("\nENTER THE BRAND NAME=");
scanf("%s",&brand1.nam);
printf("\nENTER THE PRICE OF BRAND NAME=");
scanf("%f",&brand1.pri);
fprintf(sp,"\n %s %f",brand1.nam,brand1.pri);
fclose(sp);
chinkuu:
sp=fopen("karan5.txt","r");
while(uh!=EOF)
{
uh=fgetc(sp);
printf("%c",uh);
}
printf("\n PRESS 1 KEY FOR GO IN MAIN
MAIN MENU=");
printf("\n **********************FOR EXIT
PRESS ANY KEY*************= ");
scanf("%d",&e);
if(e==1)
karan();
else
exit();
fclose(sp);
break;
case 7:
clrscr();
printf("\n------------------------------------------------
----------------------------");
printf("\n BRANDS AVAILABEL IN BAWEJA
TRADERS COMPANY ");
printf("\n------------------------------------------------
----------------------------");
sp=fopen("karan6.dat","a+");
printf("\nif you want to enter new brand then press
1 else press any another key");
scanf("%d",&kkkkk);
if(kkkkk==1)
{
goto book;
}
else
{
goto store;
}
book:
printf("\nENTER THE BRAND NAME=");
scanf("%s",&brand1.nam);
printf("\nENTER THE PRICE OF BRAND NAME=");
scanf("%f",&brand1.pri);
fprintf(sp,"\n %s %f",brand1.nam,brand1.pri);
fclose(sp);
store:
sp=fopen("karan6.txt","r");
while(yh!=EOF)
{
yh=fgetc(sp);
printf("%c",yh);
}
printf("\nPRESS 1 KEY FOR GO IN MAIN MAIN
MENU=");
printf("\n **********************FOR EXIT
PRESS ANY KEY*************= ");
scanf("%d",&e);
if(e==1)
karan();
else
exit();
fclose(sp);
break;
case 8:
clrscr();
printf("\n------------------------------------------------
----------------------------");
printf("\n BRANDS AVAILABLE IN BAWEJA
TRADERS COMPANY ");

printf("\n------------------------------------------------
----------------------------");
sp=fopen("karan7.dat","a+");
printf("\nif you want to enter new brand then press
1 else press any another key");
scanf("%d",&kkkkkk);
if(kkkkkk==1)
{
goto help;
}
else
{
goto line;
}
help:
printf("\nENTER THE BRAND NAME=")
scanf("%s",&brand1.nam);
printf("\nENTER THE PRICE OF BRAND NAME=");
scanf("%f",&brand1.pri);
fprintf(sp,"\n %s %f",brand1.nam,brand1.pri);
fclose(sp);
line:
sp=fopen("karan7.txt","r");
while(qh!=EOF)
{
qh=fgetc(sp);
printf("%c",qh);
}
printf("\n PRESS 1 KEY FOR GO IN MAIN
MAIN MENU=");
printf("\n **********************FOR EXIT
PRESS ANY KEY*************= ");
scanf("%d",&e);
if(e==1)
karan();
else
exit();
fclose(sp);
break;
}
return 1;
}
TESTING
Testing is the major control measure used
during software development. Its basic
function is to detect errors in the software.
During requirement analysis and design, the
output is a document that is usually textual
and no executable. After the coding phase,
computer programs are available that can be
executed for testing purpose. This implies
that testing not only, has to uncover errors
introduced during coding, but also errors
introduced during previous phase. Thus the
goal of testing is to uncover the
requirements, design and coding errors in
the programs. So after testing the outputs of
my project are as follows:

qut. Of brand=5 last price of


brand=6.0000 bill was =20.0000
FUTURE SCOPE OF THE
PROJECT

Our project will be able to implement in


future after making some changes and
modifications as we make our project at a
very low level. So the modifications that can
be done in our project are:
In future one change can be done by adding
the fingerprints of the persons of which the
address is entered.And one more major
change which can be done in this project is
that to add the snaps of the person of which
the address is entered.We can also add or
subtract details of the individual.

You might also like