+ All Categories
Home > Documents > Distributing Management System In C.v

Distributing Management System In C.v

Date post: 08-Apr-2018
Category:
Upload: monu24
View: 220 times
Download: 0 times
Share this document with a friend
28
TERM PAPER ON DISTRIBUTOR MANAGEMENT SYSYEM SUBMITTED BY:- NAME:-VIKASH SINGH SECTION:-E4004 ROLL NO.:-B32 REGD. NO.:-110 SUBMITTED TO:- MS.-RAJNI
Transcript
Page 1: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 1/28

TERM PAPER

ONDISTRIBUTOR MANAGEMENT

SYSYEM

SUBMITTED BY:-

NAME:-VIKASH SINGHSECTION:-E4004

ROLL NO.:-B32REGD. NO.:-110

SUBMITTED TO:-MS.-RAJNI

Page 2: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 2/28

TABLE OF CONTENTS1. Introduction2. Proposed system

i. Descriptionii. System requirements3. Requirement Analysis4. System Design5. Source code

6. Testing7. Future scope of project

Page 3: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 3/28

INTRODUCTION

In the existing system, most of the records are

maintained on paper. It becomes very inconvenient tomodify the data. In the existing system, here is apossibility that the same data in different registersmay have different values which means the entries of the same data do not match. This inconsistent statedoes not supply the concrete information which posesa problem in the case information related to particular search record.Our project is very useful. User is no longer requiredto check his register in search of records, as now itcan be searched over the software by choosing someoptions. The user need not to type in most of theinformation. 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, itabates 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.

Page 4: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 4/28

PROPOSED SYSTEM

The following documentation is a project the“Name of the term paper allotted”. It is adetailed summary of all the drawbacks of the old system and how the new proposedsystem overcomes these shortcomings. Thenew system takes into account the various

factors while designing a new system. Itkeeps into the account the Economicalbandwidth available for the new system. Theforemost thing that is taken care of is theNeed and Requirements of the User.

DESCRIPTIONBefore developing software we keepfollowing things in mind that we candevelop powerful and quality softwarePROBLEM STATEMENT

o

Problem statement was to design amodule:o Which is user friendly

Page 5: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 5/28

o Which will restrict the user fromaccessing other user’s data.

o

Which will help user in viewing his dataand privileges.o Which will help the administrator to

handle all the changes.

FUNCTIONS TO BE PROVIDED:The system will be user friendly andcompletely menu driven so that the usersshall have no problem in using all options.

o The system will be efficient and fast inresponse.

o The system will be customizedaccording to needs.

SYSTEM REQUIRMENTSOperating system: MS Windows XP or Windows VistaLanguage: C LanguageProcessor: Pentium IV Processor RAM: 512 MB

Page 6: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 6/28

Hard disk: 5 GB

Page 7: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 7/28

REQUIREMENT ANALYSIS

This process is adopted when managementof the system development, Personneldecide that the particular system needsimprovement. The system development lifecycle is the set of activities, carried out bythe analyst, designers and users to develop

and implement a system. The systems thatare present in the nature follow common lifecycle pattern. For example consider theraining system. Initially the rain falls intothe river, river flows into sea, the sea water evaporates to form vapors, the vapors formclouds which again bring rain. Similarlyconsider a man made system initially asystem is analyzed, designed and madeoperational by the efforts of system analysis.After successful operation or a number of

users, the system becomes less and lesseffective by change in the environment. Sothese changes have to be incorporated in tothe system by minor modifications. So the

Page 8: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 8/28

general activities from the life cycle of thesystem are given below:

Select ion and identification of thesystem to be studied• Preliminary study• Defining the system• Design and development of the system• Implementation of the system

Page 9: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 9/28

SYSTEM DESIGN

Then we began with the design phase of thesystem. System design is a solution, a“HOW TO” approach to the creation of anew system. It translates systemrequirements into ways by which they canbe made operational. It is a translationalfrom a user oriented document to adocument oriented programmers. For that, itprovides the understanding and proceduraldetails necessary for the implementation.Here we use Flowchart to supplement the

working of the new system. The system thusmade should be reliable, durable and aboveall should have least possible maintenancecosts. It should overcome all the drawbacksof the Old existing system and mostimportant of all meet the user requirements.

Page 10: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 10/28

START

ENTER

PASSWORD=10802148

NO

YES

STRUCTURECUSTMOR

ENTER RIGH

PASSWORD

KARAN();

KARAN()

ASE1 CASE2 CASE3 CASE4 CASE5 CASE6 CASE7 CASE8 CASE9 CASE10 CASE11

C6DD CUSTMOER

DATA

EE CUSTMOER DATA

DD OR SEE BRANDSCANDAY’S

ADD OR SEE BRANDSOF CHOACLATE

ADD OR SEE BRANDSOF COOKIES AND PRESS TO GO

C7 C

8C9

C10 C

1

AA

RETURNAA

Page 11: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 11/28

ADD OR SEE

BRANDSOF COLD DRINKS

ADD OR SEE BRANDSOF SNACKS

SEE RECORD

EXIT

STOP

C6C7

C8

ADD OR SEE BRANDSOF GIFT PACK

C9

ADD OR SEE BRANDSOF BILL

C10

C11

RETURNAA

Page 12: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 12/28

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\nENTER THE PASSWORD = ");scanf("%ld",&x);if(x==10802148){ karan();

}else{ printf("ENTER the righit password");}return 1;

Page 13: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 13/28

}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 BAWEJATRADERS 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 FORWANDRING 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 ");

Page 14: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 14/28

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 YOURCHOICE:=");scanf("%d",&a);switch(a){ case 1:clrscr();printf("\n----------------------------------------------------------------------------");printf("\n ENTER THE CUSOMER FORRECORD");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){

Page 15: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 15/28

karan();}

break;case 2:clrscr();printf("\n----------------------------------------------------------------------");printf("\n********* CUSTOMERS OF BAWEJATRADERS 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();elseexit();

fclose(sp);break;case 9:clrscr();sp=fopen("karan2.dat","a");

Page 16: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 16/28

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)

Page 17: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 17/28

karan();elseexit();break;

case 10:clrscr();printf("\n-------------------------------------------------------------------------------");printf("\n RECORDS OF ALLBILL");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();

elseexit();break;case 11:exit();break;

Page 18: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 18/28

case 3:clrscr();printf("\n----------------------------------------------------------------------------");printf("\n BRANDS AVAILABLE IN BAWEJATRADERS COMPANY ");

printf("\n----------------------------------------------------------------------------");sp=fopen("karan1.txt","a+");printf("\nif you want to enter new brand of cookiesthen 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);

Page 19: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 19/28

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();elseexit();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 press1 else press any another key");scanf("%d",&kk);if(kk==1)

{ goto nilesh;}else{ goto singh;

Page 20: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 20/28

}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();elseexit();fclose(sp);break;case 5:

clrscr();printf("\n----------------------------------------------------------------------------");printf("\n BRANDS AVALIABLE IN BAWEJATRADERS COMPANY ");

Page 21: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 21/28

printf("\n----------------------------------------------------------------------------");sp=fopen("karan3.dat","a+");printf("\nif you want to enter new brand then press1 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);

Page 22: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 22/28

if(e==1)karan();elseexit();fclose(sp);break;case 6:clrscr();printf("\n----------------------------------------------------------------------------");printf("\n BRANDS AVAILABLE IN BAWEJATRADERS COMPANY ");printf("\n----------------------------------------------------------------------------");sp=fopen("karan5.dat","a+");printf("\nif you want to enter new brand then press1 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);

Page 23: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 23/28

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();elseexit();fclose(sp);break;case 7:

clrscr();printf("\n----------------------------------------------------------------------------");printf("\n BRANDS AVAILABEL IN BAWEJATRADERS COMPANY ");printf("\n----------------------------------------------------------------------------");sp=fopen("karan6.dat","a+");

printf("\nif you want to enter new brand then press1 else press any another key");scanf("%d",&kkkkk);if(kkkkk==1){ goto book;

Page 24: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 24/28

}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();

Page 25: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 25/28

printf("\n----------------------------------------------------------------------------");printf("\n BRANDS AVAILABLE IN BAWEJATRADERS COMPANY ");

printf("\n----------------------------------------------------------------------------");sp=fopen("karan7.dat","a+");printf("\nif you want to enter new brand then press1 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);

Page 26: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 26/28

}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();elseexit();fclose(sp);break;}return 1;}

Page 27: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 27/28

TESTING

Testing is the major control measure usedduring software development. Its basicfunction is to detect errors in the software.During requirement analysis and design, theoutput is a document that is usually textualand no executable. After the coding phase,computer programs are available that can beexecuted for testing purpose. This implies

that testing not only, has to uncover errorsintroduced during coding, but also errorsintroduced during previous phase. Thus thegoal of testing is to uncover therequirements, design and coding errors inthe 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

Page 28: Distributing Management System In C.v

8/7/2019 Distributing Management System In C.v

http://slidepdf.com/reader/full/distributing-management-system-in-cv 28/28

FUTURE SCOPE OF THEPROJECT

Our project will be able to implement infuture after making some changes andmodifications as we make our project at avery low level. So the modifications that canbe done in our project are:

In future one change can be done by addingthe fingerprints of the persons of which theaddress is entered.And one more major change which can be done in this project isthat to add the snaps of the person of whichthe address is entered.We can also add or subtract details of the individual.


Recommended