2. ACKNOWLEDGEMENT
It’s always a great satisfaction when we see that our dreams
are given a shape. So thanks to the unseen powers who guided us
throughout the project.
I feel great pleasure to express my gratitude and obligation to
Sri A.Balakrishnan, Principal of Nithyananda Bhavan English
Medium School.
I also express my sincere thanks to Mrs Aadithya Raj,
Computer Teacher, Nithyananda Bhavan English Medium School
for her encouragement and valuable guidance during the entire
period of work. I am deeply indebted to my parents for their
continued support and encouragement.
I would also thank all of my friends for their whole-hearted
support and encouragement without with this project would not
have been successful.
Above all, I bow my head to Almighty who blessed me with
good health and confidence for the successful completion of this
project.
3. CONTENTS
1. INTRODUCTION
2. WORKING ENVIRONMENT
3.SYSTEM ANALYSIS
EXISTING SYSTEM
DRAWBACKS
PROPOSED SYSTEM
4.SYSTEM DESIGN
5.SCREENS AND OUTPUT
6.SOURCE CODE
7. CONCLUSION
8.BIBLIOGRAPHY
4. 1
INTRODUCTION
This project “Hyper Market Management System” is
developed in C++, which is one of the object oriented
language that could be the most powerful link to future
programming methodologies. One of the main reason
behind the success of C++ is that it support object oriented
technology i.e. it uses real life concept for its programming.
One can easily understand the importance of C++ from the
following lines.
“Object oriented technology is regarded as the ultimate
paradigm for modeling of information be in dated logic++
has by now shown to fulfill this goal”.
This project aims at computerization of the manual
billing system. There are numerous advantage of this system
like speed, efficiency, reliability and accessibility.
This helps in making the system more sophisticated and
user friendly.
This helps in saving the precious time. Error while
handling the system can also be minimized.
It has been coded after thorough study of existing
system of management. This program is ventured to
represent the management facilities in the present world. In
this program you can add new products to the menu,
modify or delete existing products and finally generate bill
for the customer.
5. 2
WORKING ENVIRONMENT
SOFTWARE
Platform : Microsoft Windows XP
Language : C++
HARDWARE
Processor : Intel Celeron D
Clock speed : 333MHz
RAM : 512 MB
Hard disk capacity : 80 GB
Pen drive : 2 GB
Bit Specification : 32 bits
Keyboard : Logitech 104 Keys
Mouse : Logitech Optical
Display Device : View Sonic Color Monitor.
6. 3
SYSTEM ANALYSIS
System analysis is general term that refers to an orderly,
structured process for identifying and solving problems. We call this
system analysis process the life cycle methodology since it relates to
four significant phases in the life cycle of all the system; study,
design, development and operation.
Analysis implies the process of breaking something down into
its parts so that the whole may be understood. The definition of
system analysis but also that of synthesis which is the process of
putting parts together to form a new whole.
EXISTING SYSTEM
The existing system is very paper based in small as well as medium
hypermarkets. Even though the paper work and manpower
requirement is less, the existing system is not very economical for
these markets. Relevant and irrelevant information are entered and
stored in the same place, which is very clumsy and untidy process.
In case of big hypermarkets, the existing system is computerized to
some extent, but it is not fully automated to cover all the aspects of
the hypermarket. The data entry, storing, and retrieval procedure is
very inefficient. Further, there are chances of data misplacement
and wrong data entry. The system is still very insecure and inflexible
to adapt to user requirements.
7. 4
DRAWBACKS
Lack of security of data.
More man power.
Time consuming.
Consumes large volume of pare work.
Needs manual calculations.
Less efficient.
PROPOSED SYSTEM
The proposed hypermarket management system aims at full
automation of big, medium, and mini hypermarkets by making the
system reliable, fast, user-friendly, and informative. It reduces
paperwork, manpower requirement, and increases the productivity
of the hypermarket. Using this application, one can add, modify,
update, save, delete, and print details. There’s also a search feature
to find products available in the hypermarket.
8. 5
SYSTEM DESIGN
This project is based on C++ programming. The C programming
language was created as a structured programming tool for writing
operating systems. The C programming became famous of its
characteristic features like speed, compactness and very low level
features. But over the year it was found that structured
programming had flaws and limitations. It was difficult to manage
complex programming projects. Therefore in 1983 Bjarne Stroustup
created C++ as a separate language based on syntax on C.
The new C++ supports classes and object oriented programming.
The object oriented programming gives primary importance to data
being operated up on instead of operating themselves. It combines
the data to its functions in such a way that access to data is allowed
through its associated functions.
This program is based on:
1. Classes
2. Files
3. Inputoutput.
CLASS
A class is technique used to engulf all information regarding a
particular entity and it also contains the member functions, which
enables the running of the program.
The class used in the project is product.
9. 6
Class Design
Class Name : product
Data Members :
int pno
int qty
char name[50]
float price
float dis
Member Functions:
void create_product( );
void show_product( );
int retpno( );
int retprice( );
int retname( );
int retdis( );
File
A file is a collection of logically related information. It is also a means
to store data, having appreciably large storage space. This is done so
because the database of such program is too large that it cannot be
stored in the main memory.
The file used in the project is Shop.dat
10. 7
INPUTOUTPUT
ADMINISTRATOR
o CREATE PRODUCT
o DISPLAY ALL PRODUCTS
o QUERY
o MODIFY PRODUCT
o DELETE PRODUCT
o VIEW PRODUCT MENU
o BACK TO MAIN MENU
CUSTOMER
EXIT
1. ADMINISTRATOR
This option takes us to the admin menu.
a. CREATE PRODUCT
Product details can be added with this option.
b. DISPLAY ALL PRODUCTS
Details of the products are shown with this option.
c. QUERY
This option is used to search the details of a product.
d. MODIFY PRODUCT
This option is used to update the details of a product.
e. DELETE PRODUCT
This option is used to remove a product from the menu.
f. VIEW PRODUCT MENU
This option is used to display the product menu.
g. BACK TO MAIN MENU
This option takes us back to the main menu.
2. CUSTOMER
This option is used to generate bill for the customer.
3. EXIT
This option helps to exit from the program.
21. 18
//*****************HYPER MARKET MANAGEMENT SYSTEM******************
//**************************************************************************
// HEADER FILE USED IN PROJECT
//**************************************************************************
#include<iostream.h>
#include<dos.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<fstream.h>
#include<time.h>
//*************************************************************************
// CLASS USED IN PROJECT
//*************************************************************************
class product
{
int pno,qty;
char name[50];
float price,dis;
public:
void create_product()
{
cout<<"nPlease Enter The Product No. of The Product ";
cin>>pno;
22. 19
cout<<"nnPlease Enter The Name of The Product ";
gets(name);
cout<<"nPlease Enter The Price of The Product ";
cin>>price;
cout<<"nPlease Enter The Discount (%) ";
cin>>dis;
}
void show_product()
{
cout<<"nThe Product No. of The Product : "<<pno;
cout<<"nThe Name of The Product : ";
puts(name);
cout<<"nThe Price of The Product : "<<price;
cout<<"nDiscount : "<<dis;
}
int retpno()
{ return pno;}
float retprice()
{return price; }
char* retname()
{ return name; }
int retdis()
{ return dis; }
}; //class ends here
24. 21
cout<<"L O A D I N G P R O J E C T";
gotoxy(28,22);
cout<<"__________";
j=28;
for(i=1;i<101;i++)
{
gotoxy(41,22);
delay(20);
cout<<i<<"% completed"<<endl;
if(i%10==0)
{
gotoxy(j,22); j++;
cout<<char(16);
}
}
cout<<"Successfully loaded"<<endl;
for(i=1;i<16;i++)
{
clrscr();
textbackground(WHITE);
textcolor(GREEN);
gotoxy(i,6); cputs(" ÛÛÛÛÛÛÛÛÛÛ ÛÛÛÛÛÛ ÛÛÛÛÛÛÛ ");
gotoxy(i,7); cputs(" Û Û Û Û ");
gotoxy(i,8); cputs(" Û Û Û Û ");
gotoxy(i,9); cputs(" Û ÛÛÛÛ ÛÛÛÛ ÛÛÛÛÛÛÛ ");
gotoxy(i,10);cputs(" Û Û Û Û Û Û ");
gotoxy(i,11);cputs(" Û Û Û Û Û Û ");
gotoxy(i,12);cputs(" ÛÛÛÛÛÛÛ Û Û Û ÛÛÛÛÛÛÛ ");
25. 22
gotoxy(59-i,6); cputs(" ÛÛÛÛÛÛÛ Û Û ÛÛÛÛÛÛÛÛ ");
gotoxy(59-i,7); cputs(" Û ÛÛ Û Û ");
gotoxy(59-i,8); cputs(" Û Û Û Û Û ");
gotoxy(59-i,9); cputs(" ÛÛÛÛÛÛÛ Û Û Û ÛÛÛÛÛÛÛÛ ");
gotoxy(59-i,10);cputs(" Û Û Û Û Û ");
gotoxy(59-i,11);cputs(" Û Û Û Û Û ");
gotoxy(59-i,12);cputs(" ÛÛÛÛÛÛÛ Û ÛÛ ÛÛÛÛÛÛÛÛ ");
delay(80);
}
textcolor(RED);
char temp1[]={" WELCOME TO GREENS HYPER MARKET,"};
char temp2[]={"CAPITOL MALL,THANA,KANNUR "};
for(int k=24;k>14;k--)
{
delay(150);
gotoxy(k,17);
cputs(temp1);cputs(temp2);
}
delay(200);
gotoxy(25,25);
cout<<"press any key to continue...";
getch();
}
//*************************************************************************
// GLOBAL DECLARATION FOR STREAM OBJECT,OBJECT
//*************************************************************************
26. 23
fstream fp;
product pr;
//**************************************************************************
// FUNCTION TO WRITE IN FILE
//**************************************************************************
void write_product()
{
fp.open("Shop.dat",ios::out|ios::app);
pr.create_product();
fp.write((char*)&pr,sizeof(product));
fp.close();
cout<<"nnThe Product Has Been Created ";
getch();
}
//*************************************************************************
// FUNCTION TO READ ALL RECORD FROM FILE
//*************************************************************************
void display_all()
{
clrscr();
cout<<"nnnttDISPLAY ALL RECORD !!!nn";
28. 25
fp.close();
if(flag==0)
cout<<"nnrecord not exist";
getch();
}
//*************************************************************************
// FUNCTION TO MODIFY RECORD OF FILE
//*************************************************************************
void modify_product()
{
int no,found=0;
clrscr();
cout<<"nntTo Modify ";
cout<<"nntPlease Enter The Product No. of The Product";
cin>>no;
fp.open("Shop.dat",ios::in|ios::out);
while(fp.read((char*)&pr,sizeof(product)) && found==0)
{
if(pr.retpno()==no)
{
pr.show_product();
cout<<"nPlease Enter The New Details of Product"<<endl;
pr.create_product();
int pos=-1*sizeof(pr);
fp.seekp(pos,ios::cur);
fp.write((char*)&pr,sizeof(product));
29. 26
cout<<"nnt Record Updated";
found=1;
}
}
fp.close();
if(found==0)
cout<<"nn Record Not Found ";
getch();
}
//*************************************************************************
// FUNCTION TO DELETE RECORD OF FILE
//*************************************************************************
void delete_product()
{
int no;
clrscr();
cout<<"nnntDelete Record";
cout<<"nnPlease Enter The product no. of The Product You Want To Delete";
cin>>no;
fp.open("Shop.dat",ios::in|ios::out);
fstream fp2;
fp2.open("Temp.dat",ios::out);
fp.seekg(0,ios::beg);
while(fp.read((char*)&pr,sizeof(product)))
{
if(pr.retpno()!=no)
{
32. 29
{
clrscr();
menu();
cout<<"nnEnter The Product No. Of The Product : ";
cin>>order_arr[c];
cout<<"nQuantity in number : ";
cin>>quan[c];
c++;
cout<<"nDo You Want To Order Another Product ? (y/n)";
cin>>ch;
}while(ch=='y' ||ch=='Y');
cout<<"nnThank You For Placing The Order";getch();clrscr();
cout<<"ntt++++++++++++++GREENS HYPER MARKET++++++++++++++";
cout<<"ntttCapitol Mall,Thana,Kannur-670001";
cout<<"nttt PH:0497-2970229,0497-6069916";
cout<<"nEmail:greens@gmail.com";
gotoxy(57,5);
cout<<ctime(&tim);
cout<<"n**********************************INVOICE**";
cout<<"************************************n";
cout<<"nPr No.tPr NamettQty t Price";
cout<<"ttAmount t Amount after disn";
for(int x=0;x<=c;x++)
{
fp.open("Shop.dat",ios::in);
fp.read((char*)&pr,sizeof(product));
while(!fp.eof())
{
if(pr.retpno()==order_arr[x])
34. 31
cout<<"nnntADMIN MENU";
cout<<"nnt1.CREATE PRODUCT";
cout<<"nnt2.DISPLAY ALL PRODUCTS";
cout<<"nnt3.QUERY ";
cout<<"nnt4.MODIFY PRODUCT";
cout<<"nnt5.DELETE PRODUCT";
cout<<"nnt6.VIEW PRODUCT MENU";
cout<<"nnt7.BACK TO MAIN MENU";
cout<<"nntPlease Enter Your Choice (1-7) ";
ch2=getche();
switch(ch2)
{
case '1':
clrscr();
write_product();
break;
case '2':
display_all();break;
case '3':
int num;
clrscr();
cout<<"nntPlease Enter The Product No. ";
cin>>num;
display_sp(num);
break;
case '4':
modify_product();
break;
case '5':
35. 32
delete_product();
break;
case '6': menu();
getch();
break;
case '7':
break;
default:
cout<<"a";
}
}
//**************************************************************************
// THE MAIN FUNCTION OF PROGRAM
//**************************************************************************
void main()
{
clrscr();
welcome();
textbackground(BLACK);
textcolor(WHITE);
char ch;
do
{
clrscr();
cout<<"nnntMAIN MENU";
cout<<"nnt01. ADMINISTRATOR";
36. 33
cout<<"nnt02. CUSTOMER";
cout<<"nnt03. EXIT";
cout<<"nntPlease Select Your Option (1-3) ";
ch=getche();
switch(ch)
{
case '1':
clrscr();
admin_menu();
break;
case '2':
place_order();
getch();
break;
case '3':
clrscr();
gotoxy(30,13);
cout<<"Exiting!!!!!!!!!!!!";
delay(1000);
exit(0);
default :
cout<<"a";
}
}while(ch!=3);
getch();
}
//*************************************************************************
// END OF PROJECT
//*************************************************************************
37. 34
CONCLUSION
This project “HYPER MARKET MANAGEMENT
SYSTEM” will fulfill the entire information requirement by
the user. The whole system is menu driven and hence is user
friendly. This system is developed as easy as possible for the
sake of user. The system has developed with a view of
satisfying the future requirements.
This system has been thoroughly tested and found to
be error free and it is highly portable. It also has more
option for future development.