Beruflich Dokumente
Kultur Dokumente
Submitted to
1
CERTIFICATE
This is to certify that the project report entitled “STORE MANAGEMENT” is the
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
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.
Date:…………………….
3
ACKNOWLEDGEMENT
We would like to pay our sincere thanks to Ms Deepti Arora, our mentor who helped
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
5
OBJECTIVES
MODULE DISCRIPTION
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
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.
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.
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.
INPUT/OUTPUT
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
STORE
SYSTEM
10
FLOW CHART
Start
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;
}
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
//*********************************************************************
**
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();
}
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();
}
}
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...............";
}
}
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();
ifs.close();
}
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();
}
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();
}
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');
}
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);
}
//*********************************************************************
**
27
// MAIN FUNCTION
//*********************************************************************
**
void main()
{
clrscr();
textcolor(6);
textbackground(BLUE);
intro();
select();
getch();
}
BIBLIOGRAPHY
Book Reference
28