Professional Documents
Culture Documents
A Project Report Dipesh & Lokesh
A Project Report Dipesh & Lokesh
ON
“MALL MANAGEMENT”
SUBMITTED FOR PARTIAL
FULLFILMENT OF
PGDCA
OF
BILASPUR UNIVERSITY
BILASPUR (CG)
SESSION 2019-20
TOPIC
1. Acknowledgement
2. About Project
3. About C++
4. Preface
6. File Structure
7. Source Code
8. Input Form
9. Output Form
10. Bibliography
Certificate
This is to certify that it is a bonafied record of the Dissertation work entitled “Mall Management ” done by
MR. DIPESH KUSHWAHA AND MR. LOKESH KUMAR YADAV students of PGDCA in the
BILASPUR UNIVERSITY. During the period 2016-2017 in partial fulfillment of the requirements for
the Award of degree of PGDCA. This work is not submitted to any University for the award of any
Degree/Diploma.
About C++
Preface
The need of this system arises from error prone results and need to save the
time.
The main intention of introducing this system is to reduce the manual work at
official department. Every sort of task is performed by the system ,such as
registering different types of applications ,enquiries, and complaints etc. reducing
mush paper work and burden of file storage.
Also the latest information is right available for the officials and executives
wherever they require. the system also facilitates the employee to enquire about
their position, and salary etc.
The employees can get much out of the system. They can get latest information
they require within no time. There will be no need for them to stand hours in
queues for enquiry or to apply or to do any other business with the corporation.
They are welcome to use various services.
General Information
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.
INITIAL.DAT
DFD FOR SEARCHING ITEM INFORMATION
ENTER ITEM
OPERATOR OUTPUT
NO
ITEM.DAT TEMP.DAT
DFD FOR EDITING THE DATA
EDIT ITEM
OPERATOR DATA INITIAL.DAT
INITIAL.DAT TEMP.DAT
DELETE
OPERATOR ITEMCODE
INITIAL.DAT ITEM.DAT
GENERAL METHODOLOGY IN DEVELOPING S/W
PROJECT
distinct phases.
Those are:-
1. REQUIREMENT ANALYSIS PHASE
2. DESIGN PHASE
3. DEVELOPMENT PHASE
4. CODING PHASE
5. TESTING PHASE
1.4.1. REQUIREMENT ANALYSIS PHASE :
DEVELOPMENT PHASE:
FLOW CHART
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
7. It facilitates troubleshooting.
Disadvantages:
1. Communication lines are not always easy to
show.
3. Reproduction is difficult.
YES
Is Choice=1 Add New Data To
File
NO
YES
Is Choice=2
Is Choice=2
Display All Record
Yes
NO
YES
Search Record
Is Choice=3
NO
YES
Delete Record
Is Choice=4
NO
Is Choice=5
NO
YES
STOP
File Structure
INITIAL.DAT TABLE
Source Code
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<graphics.h>
#include<dos.h>
#include<stdlib.h>
#include<dos.h>
#include<string.h>
#include<iomanip.h>
class mall_store
{
public:
int code;
char item[20];
float qty,price;
void getdata()
{
cout<<"*******enter the details of Items:"<<endl;
cout<<"enter the Itemcode:"<<endl;
cin>>code;
cout<<"enter the item name:"<<endl;
gets(item);
cout<<"enter the Quantity:"<<endl;
cin>>qty;
cout<<"enter the price:"<<endl;
cin>>price;
}
void show()
{
cout<<"********DETAILS OF Items
ARE***********:"<<endl;
cout<<"Item code:"<<code<<endl;
cout<<"Item Name"<<item<<endl;
cout<<"Quantity:"<<qty<<endl;
cout<<"price:"<<price<<endl;
cout<<"Total:"<<qty*price<<endl;
}
void search();
void del();
};
void mall_store::search()
{
int cno;
cout<<"enter the itemcode you want to search:"<<endl;
cin>>cno;
mall_store s;
fstream t;
t.open("mall.txt",ios::binary|ios::out|ios::app|ios::in);
t.seekg(0);
while(t.read((char*)&s,sizeof(mall_store)))
{
if(s.code==cno)
s.show();
}
t.close();
}
void mall_store::del()
{
int cno;
cout<<"enter the Itemcode you want to delete:";
cin>>cno;
mall_store s;
fstream t,t1;
t.open("mall.txt",ios::binary|ios::out|ios::app|ios::in);
t1.open("temp.txt",ios::binary|ios::out|ios::app|ios::in);
t.seekg(0);
while(t.read((char*)&s,sizeof(mall_store)))
{
if(s.code!=cno)
t1.write((char*)&s,sizeof(mall_store));
}
t.close();
t1.close();
remove("mall.txt");
rename("temp.txt","mall.txt");
}
void main()
{
clrscr();
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"");
setbkcolor(MAGENTA);
setcolor(YELLOW);
rectangle(10,10,620,460);
settextstyle(7,0,6);
outtextxy(200,15,"WELCOME");
outtextxy(250,200,"TO");
settextstyle(7,0,6);
outtextxy(20,370," MALL MANAGEMENT ");
getch();
clearviewport();
setbkcolor(BLACK);
setcolor(YELLOW);
rectangle(8,8,620,460);
settextstyle(7,0,6);
outtextxy (200,15,"DEVELOPED BY");
settextstyle(7,0,4);
setcolor(RED);
outtextxy(200,200,”");
setcolor(RED);
outtextxy(200,230,"");
setcolor(RED);
//outtextxy(200,260,"");
setcolor(BLUE);
outtextxy(150,290," ");
setcolor(BLUE);
outtextxy(150,320," ");
getch();
clearviewport();
closegraph();
textbackground(4);
int x;
mall_store s;
do
{
clrscr();
cout<<"\t\tMALL MANAGEMENT:"<<endl;
cout<<"\t\t1 TO ADD:"<<endl;
cout<<"\t\t2 TO SHOW:"<<endl;
cout<<"\t\t3 TO SEARCH:"<<endl;
cout<<"\t\t4 TO DELETE:"<<endl;
cout<<"\t\t5 TO EXIT:"<<endl;
cout<<"\t\tEnter Your Choice:";
cin>>x;
switch(x)
{
case 1:
{
char ch='y';
fstream t;
t.open("mall.txt",ios::binary|ios::out|ios::app|ios::in);
while(ch=='y'||ch=='Y')
{
s.getdata();
t.write((char*)&s,sizeof(mall_store));
cout<<"do you want to add more(y/n)....:";
cin>>ch;
}
}
case 2:
{
fstream t;
t.open("mall.txt",ios::binary|ios::out|ios::app|ios::in);
t.seekg(0);
while(t.read((char*)&s,sizeof(mall_store)))
{
s.show();
}
t.close();
}
break;
case 3:
s.search();
break;
case 4:
s.del();
}
cout<<"Press any key-----------";
getch();
}while(x!=5);
int xc,yc,cc;
textbackground(0);
clrscr();
randomize();
while(!kbhit())
{
xc=random(80);
yc=random(25);
cc=random(15)+1;
gotoxy(xc,yc);
textcolor(cc);
cprintf("Thank You");
delay(100);
}
}
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