Sie sind auf Seite 1von 28

STORE MANAGEMENT

Submitted to

BANARSIDAS CHANDIWALA INSTITUTE


OF
INFORMATION TECHNOLOGY
(Approved by AICTE & Affiliated with GGIPU, Delhi)
www.bciit.ac.in

MCA IST- YEAR

Under Guidance of Submitted by

Ms. Deepti Arora 1. Aniket Singh-21


2. Rohit Krishna-22

1
CERTIFICATE
This is to certify that the project report entitled “STORE MANAGEMENT” is the

record of work done on project and submitted to “Banarsidas Chandiwala Institute Of

Information Technology” in partial fulfillment of the requirement for the degree of

“Master Of Computer Application”, is an original work carried out by Group 6 team

members of MCA Ist-year.

The matter embodied in this project is genuine work done by the students and has not

been submitted earlier for the award of any degree or diploma to the best of our

knowledge and belief.

Signature of the students Signature of the Mentor:………..

1. …………………….. Date:………..
2. ……………………..

Date: …………………..

2
DECLARATION

We hereby declare that the work presented in the project entitled “Store Management”
of text file and project on ‘C++’ Language submitted towards our mini project for the
contribution in MCA degree at BCIIT of GGIPU, is an authentic record of our work.
The project was done in full compliances with the requirements and
constraints of the prescribed curriculum.

Team members Signatures


1. Aniket Singh ………………..
2. Rohit Krishna .
……………….

Date:…………………….

3
ACKNOWLEDGEMENT

We would like to pay our sincere thanks to Ms Deepti Arora, our mentor who helped

us by motivating us in her own ways.

We would like to take this opportunity to express our gratitude towards library for

their wholehearted support for issuing of books and taking out printouts.

We owe our special thanks to my friends for their unconditional support and help.

Team members
Roll. No Name

21 Aniket
Singh
22 Rohit
Krishna

4
PROJECT DETAILS

Title of the project STORE MANAGEMENT


Language used to develop ‘C++’ Language
Operating system Windows XP
Developed by Group-6,MCA-Ist year at BCIIT, New
Delhi
Guide of this project Mr. Deepti Arora
Purpose To handle the transaction of an STORE,
Features Easy to use it,
Modification can be done easily.

5
 OBJECTIVES

The main objectives of the project "STORE MANAGEMENT SYSTEM" are as


follows:-
 To add record of new Items & assign an id.
 To modify/update the details of existing Items easily.
 To show the list of all Items.
 To assign price to items and give the same id.
 To delete any item record & update the database easily.
 Easy maintaining items and their price record.
 This project will help departmental store for handling the ENQUIRY
FOR/ABOUT THE CUSTOMER AND ITEMS information and there
related information.
 The ITEMS AND PRICE information can be changed by the STORE.

 MODULE DISCRIPTION

 This is a store management project that provides the facility to create an


item
name.
 This project has six main modules.
 The first module is for adding new item.
 The second module is to view the menu.
 The third module is used to search the item and to display the item.
 The fourth module is to modify an individual item.
 The fifth module is to delete an item from menu.
 The sixth module is used for exit and goes back to the main menu.
 The project also facilitates for the deletion and modification of a particular
module.

6
 FUTURE SCOPE OF THE POJECT
 This Project is a fabulous Project. It is a need in all time.
 With the help of this project any type of data can be stored in the project
which makes the project very user friendly.
 The project gives us the full information about our STORE
MANAGEMENT.
• Listing of all ITEMS AND PRICE
• Modification.
• Searching.
• New DATA
• Deletion
• Updation

INTODUCTION ABOUT THE PROBLEM

This product is developed for the DEPARTMENTAL STORE to


automate the process of Bill Extraction file and to over come the problems
which are being faced in the existing product.
This project STORE MANAGMENT SYSTEM is developed to enhance
paper less culture and to speed up the process of bill generation as large no. of
consumers are taking services of the company, so that all can receive there
bills on time with zero error in their bill.

 Definition of problem
From the last few decades it has been a headache for the store department to
find out the answers to the following questions:
 How to reduce the time for generating bills.
 How to avoid totaling and checking error before generating bill for
customer.
 How to manage all the data for items and price.

7
In response to these problems, a computerized system – "STORE MANMAGEMENT
SYSTEM" was developed.

 DESIGN OF THE PROJECT:

The function needed for the projected has been used from Turbo C++ library. No
separate

file will be attached with this main program file. All the functions are in the same file.

ADVANTAGES OF THE SYSTEM

 Computerized System: As the proposed system is computerized, it will


be easy to monitor the current status and information regarding the
extraction of bill file.
 Storage problem can be solved: There will be a central storage of data
extracted files and it will free authorities from registers and files
maintenance.
 Easy updating: In the proposed system the data entry and updating will
be much easier than at the existing process.
 Ensuring speed: Information will be available regarding all extraction
files as the files are saved on the server and an authorized user can
access from any computer system on the company network.
 Accuracy and Transparency: Report generation will be fast and
accurate which will help in the decision-making process to a large
extent.

8
SYSTEM SPECIFICATIONS
System specification being a part of system design
are in a format that the user excepts . The output primitives
of a set of inputs , which can be used in variety of ways to
Create several effects.

KEYBOARD FOR INPUT

INPUT/OUTPUT
SPECIFICATION

MONITOR FOR OUTPUT


640*480*16 color

FILE IS IN BINARY FILE FORMAT


FORMAT SPECIFICATION

PROCESSING
SPECIFICATION
PROCESSING IS DONE ON
SCREEN DIRECTLY

9
BLOCK DIAGRAM OF THE SYSTEM

The block diagram of the project shows that the software STORE MANAGEMENT

provides the interaction between CUSTOMER and STORE.

STORE

CUSTOMER MANAGEMENT STORE

SYSTEM

10
FLOW CHART

Start

Display main menu

Enter choice

Choice
1

11
Office staff

Choice
2 customer

Choice
3 Exit

Addition

View
Office staff

Searching

Modify

12
Deleting

Return back

13
Item menu

Item code
Customer

Item qty

Bill

Back

Return back

14
SOURCE CODE:

//********************************************************************
***
// STORE MANAGEMENT SYSTEM
//*********************************************************************
**

//*******************************************************************
****
// PROJECT WORK BY -
// ANIKET SINGH & ROHIT KRISHNA
//
//**********************************************************************
*

/**********************************************************************
**
HEADERS FILES
**********************************************************************
**/

#include<iomanip.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
#include<process.h>
#include<fstream.h>

/**********************************************************************
**
FUNCTIONS DECLARATION
**********************************************************************
**/

char menu();
void menu_switch(char);
void write();
void read();
void search();
void modify();
void del();
void select();

15
void order();
void bill();
void select();
void intro();
void choic();
void wrongchoice();
//*********************************************************************
**
// CLASS GOODS DECLARATION
//*********************************************************************
**

class goods
{

int icode;
char iname[20];
float iprice;
public:
void getdata()
{
gotoxy(25,21);
cin>>icode;
gotoxy(45,21);
cin>>iname;
gotoxy(55,21);
cin>>iprice;
}
void showdata()
{
cout<<icode<<setw(20)<<iname<<setw(10)<<iprice<<endl;
}

int returnicode(int icodeno)


{
if(icode==icodeno)
return 1;
else
return 0;
}
int reticode()
{
return icode;
}
float retiprice()
{
return iprice;
}
char* retiname()

16
{
return iname;
}
};
//*********************************************************************
**
// CLASS SALES DECLARATION
//*********************************************************************
**

class sales
{
public:
int i_code;
char i_name[20];
int i_qty;
int i_uprice;
int total,grandtotal;

void assign()
{
grandtotal=0;
}

void getdata()
{
cout<<" \n ENTER THE ITEM CODE";
cin>>i_code;
cout<<" \n ENTER THE ITEM QTY.";
cin>>i_qty;
}

void total1()
{
total=(i_qty*i_uprice);
}

void showdata()
{
cout<<i_code<<setw(20)<<i_name;
cout<<setw(10)<<i_qty<<setw(10)<<i_uprice<<setw(10)<<total
<<endl;
}
void grandtotal1()
{
grandtotal+=total;
}
void showgrandtotal()
{
cout<< "\n_________________________________________________";

17
cout<< "\n YOUR GRAND TOTAL IS ";
cout<< "\n Rs. "<<grandtotal<<" ";
cout<< "\n_________________________________________________";

}
};
//*********************************************************************
**
// FUNCTIONS DEFINITION
//*********************************************************************
**

void intro() //FUNCTION FOR INTRODUCTION


{
clrscr();
gotoxy(17,11);cout<<" WELCOME TO OUR PROJECT ";
gotoxy(17,14);cout<<" DESIGNED BY ---->> ";
gotoxy(17,16);cout<<" * ANIKET SINGH & ROHIT KRISHNA *
";
gotoxy(17,17);cout<<" ";
getch();
}

void select() //FUNCTION TO SELECT STATUS AND


{ //ACCEPT ID NUMBER
clrscr();
int choice,a;
gotoxy(17,13);cout<<"ANIKET & ROHIT DEPARTMENTAL STORE";
gotoxy(17,16);cout<<"ARE YOU :";
gotoxy(17,18);cout<<"1) OFFICE STAFF";
gotoxy(17,19);cout<<"2) CUSTOMER";
gotoxy(17,20);cout<<"3) EXIT";
gotoxy(17,22);cout<<"PRESS (1) OR (2) OR (3)-- ENTER CHOICE :";
gotoxy(60,22);cin>>choice;
if (choice==1)
{
clrscr();
gotoxy(17,12);
cout<<"HI ! ENTER YOUR ADMINISTRATION ID : ";
gotoxy(55,12);
cin>>a;
if((a>999)&&(a<10000)&&((a%3==0)&&(a%7==0)))
{
clrscr();
gotoxy(26,12);
cout<<"ACCESS ALLOWED";

18
gotoxy(17,14);
cout<<"YOU HAVE ENTERED THE
ADMINISTRATION ZONE";
gotoxy(17,30);
cout<<"\n\n\t\tPress any key to
continue.......";
getch();
choic();
select();
}
else
wrongchoice();
}
else if(choice==2)
{
read();
cout<<"\n\ENTER FOLLOWING DETAILS TO PURCHASE AN
ITEM/ITEMS\n";
order();
bill();
}
else if(choice==3)
{
clrscr();
gotoxy(22,15);
cout<<"! THANKS FOR USING THE PROJECT !";
getch();
exit(0);
}
else
wrongchoice();
}

void choic() //FUNCTION TO CONFIRM USER'S CHOICE


{
clrscr();
char ch,ans;

do
{
ch=menu();
menu_switch(ch);
clrscr();
gotoxy(5,20);
cout<<"DO YOU WANT TO PERFORM MORE OPERATIONS IN
ADMINISTRATION ZONE?[Y/N] ";
cin>>ans;
}while(ans=='y');

19
if(ans=='y' || ans=='Y')
{
menu();
}
}

char menu() //FUNCTION FOR VARIOUS OPERATION FOR


STAFF
{
clrscr();
char ch;
gotoxy(25,5);
cout<<"<<<< FOR ADMINISTRATION USE ONLY >>>>";
gotoxy(20,6);
cout<<"CHOOSE WHICH OPERATION IS TO BE PERFORMED ";
gotoxy(25,8);
cout<<"A: ADDING AN ITEM TO THE MENU";
gotoxy(25,9);
cout<<"B: VIEW THE MENU";
gotoxy(25,10);
cout<<"C: SEARCHING AND DISPLAYING A ITEM";
gotoxy(25,11);
cout<<"D: MODIFY THE MENU";
gotoxy(25,12);
cout<<"E: DELETING AN ITEM FROM THE MENU";
gotoxy(25,13);
cout<<"F: EXIT";
gotoxy(25,15);
cout<<"ENTER CHOICE TO BE PERFORMED(A,B,C,D,E or F): ";
cin>>ch;
return ch;
}

void menu_switch(char ch) //FUNCTION TO IMPLEMENT STAFF'S


OPERATION
{
switch(ch)
{
case 'A':
case 'a':write();
break;

case 'B':
case 'b':read();
gotoxy(20,40);
cout<<"\nPRESS ANY KEY TO
CONTINUE..........";
getch();
break;

20
case 'C':
case 'c':search();
gotoxy(20,40);
cout<<"\nPRESS ANY KEY TO
CONTINUE..........";
getch();
break;

case 'D':
case 'd':modify();
gotoxy(20,40);
cout<<"\nPRESS ANY KEY TO
CONTINUE..........";
getch();
break;

case 'E':
case 'e':del();
gotoxy(20,40);
cout<<"\nPRESS ANY KEY TO
CONTINUE..........";
getch();
break;

case 'F':
case 'g':select();
break;

default: gotoxy(5,17);
cout<<"\nINVALID
SELECTION...............";
}
}

void write() //FUNCTION TO ENTER ITEMS IN MENU


{
clrscr();
fstream ofs;
ofs.open("fmenu.txt",ios::app);
char ans;
goods g;

do
{
gotoxy(38,15);
cout<<"MENU";
gotoxy(25,16);
cout<<"__________________________________\n\n";
gotoxy(25,18);

21
cout<<"Code"<<setw(20)<<"Name"<<setw(10)<<"Price\n";
gotoxy(25,19);
cout<<"__________________________________\n\n";
g.getdata();
ofs.write((char*)&g,sizeof(g));
gotoxy(25,25);
cout<<"DO U WANT TO ENTER MORE ITEMS ?[Y/N] ";
cin>>ans;
clrscr();
}while(ans=='y');
ofs.close();

void read() //FUNCTION TO VIEW MENU


{
clrscr();
fstream ifs;
ifs.open("fmenu.txt",ios::in);
goods g;
cout<<" MENU \n";
cout<<"I_Code"<<setw(20)<<"I_Name"<<setw(10)<<"U_Price\n";
while(ifs.read((char*)&g,sizeof(g)))
g.showdata();

ifs.close();
}

void search() //FUNCTION TO SEARCH FOR A GIVEN ITEM


{
clrscr();
int icodeno,gound=0;
fstream ifs;
gotoxy(5,12);
cout<<"ENTER THE ITEM CODE TO BE SEARCHED ";
gotoxy(42,12);
cin>>icodeno;
ifs.open("fmenu.txt",ios::in);
goods g;
while(ifs.read((char*)&g,sizeof(g)))
{
if(g.returnicode(icodeno)==1)
{
gotoxy(5,14);

cout<<"____________________________________";
gotoxy(5,16);

cout<<"Code"<<setw(20)<<"Name"<<setw(10)<<"Price";
gotoxy(5,17);

22
cout<<"____________________________________";
gotoxy(5,19);
g.showdata();
gound++;
}
}

if(!gound)
{
gotoxy(5,15);
cout<<"\nITEM NOT FOUND"<<endl;
}
ifs.close();
}

void modify() //FUNCTION TO MODIFY AN ITEM


{
clrscr();
int icodeno,gound=0;
fstream ifs,ofs;
gotoxy(5,5);
cout<<"ENTER THE ITEM CODE TO BE MODIFIED...........:";
gotoxy(52,5);
cin>>icodeno;
ifs.open("fmenu.txt",ios::in);
ofs.open("temp.txt",ios::out);
goods g;
while(ifs.read((char*)&g,sizeof(g)))
{
if(g.returnicode(icodeno)!=1)
ofs.write((char*)&g,sizeof(g));
else
{
gotoxy(5,7);

cout<<"____________________________________";
gotoxy(5,9);

cout<<"I_Code"<<setw(20)<<"I_Name"<<setw(10)<<"U_Price";
gotoxy(5,10);

cout<<"____________________________________";
gotoxy(5,12);
g.showdata();
gotoxy(5,15);
cout<<"PRESS ANY KEY TO INPUT NEW
ITEM.................... ";
getch();
clrscr();

23
gotoxy(5,10);
cout<<"INPUT NEW ITEM OF HAVING CODE
: "<<icodeno<<endl;
gotoxy(38,15);
cout<<"MENU";
gotoxy(25,16);

cout<<"____________________________________\n\n";
gotoxy(25,18);

cout<<"I_Code"<<setw(20)<<"I_Name"<<setw(10)<<"U_Price\n";
gotoxy(25,19);

cout<<"____________________________________\n\n";
g.getdata();
ofs.write((char*)&g,sizeof(g));
gound++;
}
}
ifs.close();
ofs.close();

fstream ofs1,ifs1;
ifs1.open("temp.txt",ios::in);
ofs1.open("fmenu.txt",ios::out);

while(ifs1.read((char*)&g,sizeof(g)))
ofs1.write((char*)&g,sizeof(g));

if(gound!=0)
{
gotoxy(5,25);
cout<<"\nTHE MENU HAS BEEN MODIFIED...................";
}
else
{
gotoxy(5,8);
cout<<"\nCOULD NOT LOCATE SUCH A ITEM NO......................";
}

ifs1.close();
ofs1.close();
}

void del() //FUNCTION TO DELETE AN ITEM


{
clrscr();
int icodeno,gound=0;
fstream ifs,ofs;
gotoxy(5,5);

24
cout<<"ENTER THE ICODE NO :";
gotoxy(25,5);
cin>>icodeno;
ifs.open("fmenu.txt",ios::in | ios::binary);
ofs.open("temp.txt", ios::out | ios::binary);
goods g;
while(ifs.read((char*)&g,sizeof(g)))
{
if(g.returnicode(icodeno)!=1)
ofs.write((char*)&g,sizeof(g));
else
{
gotoxy(5,7);

cout<<"____________________________________";
gotoxy(5,9);

cout<<"I_Code"<<setw(20)<<"I_Name"<<setw(10)<<"U_Price";
gotoxy(5,10);

cout<<"____________________________________";
gotoxy(5,12);
g.showdata();
gound++;
}
}

ifs.close();
ofs.close();
fstream ifs1,ofs1;
ifs1.open("temp.txt",ios::in | ios::binary);
ofs1.open("fmenu.txt",ios::out | ios::binary);
while(ifs1.read((char*)&g,sizeof(g)))
{
ofs1.write((char*)&g,sizeof(g));
}
if(gound!=0)
{
gotoxy(5,15);
cout<<"\nTHE ITEM HAS BEEN DELETED.......................... ";
}
else
{
gotoxy(5,7);
cout<<"\nCOULDNOT LOCATE SUCH A ITEM NO.........................";
}

ifs1.close();
ofs1.close();
}

25
void order() //FUNCTION TO ACCEPT THE ORDER
//GIVEN BY CUSTOMER
{
goods g;
char ch;
fstream ofs,ifs;
sales s;
ofs.open("order.txt",ios::binary|ios::out);
ifs.open("fmenu.txt",ios::binary|ios::in);
s.assign();
int k;
do
{
k=0;
s.getdata();
ifs.seekg(0);
while(ifs.read((char*)&g,sizeof(g)))
{
if(s.i_code==g.reticode())
{
s.i_uprice=g.retiprice();
strcpy(s.i_name,g.retiname());
s.total1();
s.grandtotal1();
k++;
break;
}
}
if(k==0)
wrongchoice();

ofs.write((char*)&s,sizeof(s));
cout<<"\nWANT TO CONTINUE PURCHASING [Y/N]?";
cin>>ch;
ch=toupper(ch);
}while(ch=='Y');
}

void bill() //FUNCTION TO GENERATE BILL FOR CUSTOMER


{
clrscr();
fstream ifs;
sales s;
ifs.open("order.txt",ios::binary|ios::in);
gotoxy(10,10);
cout<<"\nYOUR BILL GOES AS \n\n";
cout<<"I_CODE"<<setw(20)<<"I_NAME"<<setw(10)<<"I_QTY.";
cout<<setw(10)<<"U_PRICE"<<setw(10)<<"TOTAL"<<endl;

26
while(ifs.read((char*)&s,sizeof(s)))
{
s.showdata();
}

s.showgrandtotal();

ifs.close();
cout<<"\n\nDO YOU WANT TO GET BACK TO THE MAIN MENU (y/n)";
char wish;
cin>>wish;
if(wish=='y')
select();
else
clrscr();
gotoxy(22,15);cout<<"! THANKS FOR USING OUR PROJECT !";
getch();
exit(0);
}

void wrongchoice() //FUNCTION TO CALLED WHEN


//WRONG CHOICE IS GIVEN
{
char ch;
clrscr();
gotoxy(31,5);
//cout<<"INVALID CHOICE";
cout<<"ACCESS DENIED";
gotoxy(29,7);
cout<<"PRESS 1 TO START AGAIN";
gotoxy(25,9);
cout<<"OR ANY OTHER KEY TO EXIT.....";
gotoxy(25,11);
cout<<"ENTER YOUR CHOICE :";
gotoxy(46,11);
ch=getch();
if(ch=='1')
select();
else
{
clrscr();
gotoxy(22,15);cout<<"! THANKS FOR USING THE PROJECT !";
getch();
exit(0);
}
}

//*********************************************************************
**

27
// MAIN FUNCTION
//*********************************************************************
**

void main()
{
clrscr();
textcolor(6);
textbackground(BLUE);
intro();
select();
getch();
}

BIBLIOGRAPHY

 Book Reference

 Object Oriented Programming with C++


by E Balagurusamy
Tata McGraw-Hill Publishing Company Limited

 "Problem Solving with C++"


by W.Savitch

28

Das könnte Ihnen auch gefallen