SlideShare a Scribd company logo
DOON PUBLIC SENIOR SECONDARY
SCHOOL,HALDWANI
Project Report
On
SUPER MARKET
BILLING SYSTEM
In the partial fulfillment of All India Senior
School Certificate Examination for the session
2017-2018 conducted by Central Board Of
Secondary Education.
………………………
ACKNOWLEDGEMENT
I would like to convey my heartful thanks to
………………………..(Computer Science)
who always gave valuable suggestions &
guidance for completion of my project.
He helped me to understand & remember
important details of the project. My project
has been a success only because of his
guidance.
I am especially indented & I am also beholden
to my friends. And finally I thank to the
members of my family for their support &
encouragement.
CERTIFICATE
This is to certify that ……………………
of class ……….. of
…………………………………has
completed his project under my supervision.
He has taken proper care & shown
sincerity in completion of this project.
I certify that this project is up to
my expectation & as per the guideline
issued by CBSE.
………………………………….
(Computer Science faculty )
Content
1. Introduction
2. Source Code
3. Output
4. Requirement
5. System Design
6. Advantages and disadvantages
7. Conclusion
In the existing system, most of the records are maintained on
paper. It becomes very inconvenient to modify the data. In
the existing system, here is a possibility that the same data
in different registers may have different values which means
the entries of the same data do not match. This inconsistent
state does not supply the concrete information which poses
a problem in the case information related to particular search
record.
Our project is very useful. User is no longer required to
check his register in search of records, as now it can be
searched over the software by choosing some options. The
user need not to type in most of the information. 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, it abates the work load of an organization.
In today’s world, no one likes to perform calculations on
calculator or manually when computer is there. Everyone
wants his/her work to be done by computer automatically
and displaying the result for further manipulations.
The following documentation is a project the “SUPER
MARKET BILLING SYSTEM”. It is a detailed summary of all
the drawbacks of the old system and how the new proposed
system overcomes these shortcomings. The new system
takes into account the various factors while designing a new
system. It keeps into the account the Economical bandwidth
available for the new system. The foremost thing that is
taken care of is the Need and Requirements of the User.
//***************************************************************
// HEADER FILE USED IN PROJECT
//****************************************************************
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<fstream.h>
#include<iomanip.h>
#include<string.h>
#include<ctype.h>
void intromain();
int getrollno();
void display_all();
void product_tabular();
void modify_record(int n);
void delete_record(int n);
void againopenandclose();
int search(int p);
void changeqty(int pr1,int q11);
//***************************************************************
// CLASS USED IN PROJECT
//****************************************************************
class product
{
int pno;
char name[50];
int qty;
float price,tax,dis;
public:
void modifydata(int n1,char snm[15],int q);
//*****************************************************************************
void showdatamulti()
{
gotoxy(5,7);
cout<<"===============================================================";
gotoxy(10,8);
cout<<"PRODUCT NO:";
gotoxy(30,8);
cout<<pno;
gotoxy(40,8);
cout<<"NAME OF PRODUCT:";
gotoxy(60,8);
cout<<name;
gotoxy(10,9);
cout<<"PRODUCT PRICE:";
gotoxy(30,9);
cout<<price;
gotoxy(40,9);
cout<<"QUANTITY:";
gotoxy(60,9);
cout<<qty;
gotoxy(10,10);
cout<<"DISCOUNT:";
gotoxy(30,10);
cout<<dis;
gotoxy(40,10);
cout<<"TAX%:";
gotoxy(60,10);
cout<<tax;
gotoxy(5,11);
cout<<"=================================================================";
}
//*****************************************************************************
void create_product(int rn1)
{
//**********************************************
gotoxy(5,7);
cout<<"================================================================";
gotoxy(10,8);
cout<<"Product No.:";
pno=rn1;
gotoxy(24,8);
cout<<pno;
gotoxy(35,8);
cout<<"NAME OF PRODUCT:";
gotoxy(54,8);
cin>>name;
gotoxy(10,9);
cout<<"QUANTITY:";
gotoxy(22,9);
cin>>qty;
gotoxy(30,9);
cout<<"PRICE:";
gotoxy(38,9);
cin>>price;
gotoxy(10,11);
cout<<"DISCOUNT:";
gotoxy(25,11);
cin>>dis;
gotoxy(35,11);
cout<<"TAX%:";
gotoxy(45,11);
cin>>tax;
gotoxy(5,12);
cout<<"=================================================================";
}
void show_product()
{
//********************************
gotoxy(5,7);
cout<<"=================================================================";
gotoxy(10,8);
cout<<"PRODUCT NO.:";
gotoxy(25,8);
cout<<pno;
gotoxy(35,8);
cout<<"NAME OF PRODUCT:";
gotoxy(54,8);
cout<<name;
gotoxy(10,9);
cout<<"PRICE OF PRODUCT:";
gotoxy(30,9);
cout<<price;
gotoxy(35,9);
cout<<"DISCOUT:";
gotoxy(45,9);
cout<<dis<<"%";
gotoxy(10,10);
cout<<"QUANTITY:";
gotoxy(25,10);
cout<<qty;
gotoxy(35,10);
cout<<"VAT % TAX:";
gotoxy(48,10);
cout<<tax;
gotoxy(5,11);
cout<<"================================================================";
}
//-----------------------show data tabular form----------------------
void showall(int c)
{
gotoxy(1,c);
cout<<pno<<setw(17)<<name<<setw(11)<<"RS.<<price<<setw(10)<<qty<<setw(15)<<dis<<"%"
<<setw(12)<<tax;
}
//-----------------------ends here------------------------------------
int retpno()
{return pno;}
float retprice()
{return price;}
float gettax()
{return tax; }
char* getname()
{return name;}
int getqty()
{ return qty;}
float retdis()
{return dis;}
void setqty(int q21)
{ qty=q21; }
}; //class ends here
//***************************************************************
// global declaration for stream object, object
//****************************************************************
//*************************modify product
void product::modifydata(int n1,char snm[15],int q)
{
char tmpnm[40];
gotoxy(5,14);
cout<<"=================WANT TO MODIFY ===============================";
gotoxy(10,15);
cout<<"PRODUCT NO.:";
pno=n1;
gotoxy(25,15);
cout<<pno;
gotoxy(40,15);
strcpy(name,snm);
cout<<"NAME OF PRODUCT:";
gotoxy(60,15);
cout<<name;
gotoxy(10,17);
cout<<"Want to change the name of product";
gotoxy(50,17);
int flag=0;
while(1)
{
gets(tmpnm);
if(strlen(tmpnm)!=0)
{
flag=1;
break;
}
if(strlen(tmpnm)==0)
{ flag=0;
break;
} }
if(flag==1)
{ strcpy(name,tmpnm); }
else { }
gotoxy(5,18);
cout<<"=================================================================";
gotoxy(5,19);
cout<<"******MODIFY**PRODUCT PRICE - QUANTITY - DISCOUNT - TAX***********";
gotoxy(10,20);
cout<<"PRICE:";
gotoxy(25,20);
//***************if condition to increase price or not
float tmppr=0;
flag=-1;
while(1)
{
cin>>tmppr;
if(tmppr!=0)
{
flag=1;
break;
}else
{ flag=0;
break;
}
}
if(flag==1)
{ price=tmppr;
} else { }
//****************************************************
gotoxy(40,20);
cout<<"INCREASE QUANTITY:";
gotoxy(65,20);
//****************************************************
int tmpqty=0;
cin>>tmpqty;
qty=q;
qty=qty+tmpqty;
//****************************************************
gotoxy(10,21);cout<<"DISCOUNT:";gotoxy(25,21);
//***************************************************
float tmpdis=0;
cin>>tmpdis;
dis=tmpdis;
//***************************************************
gotoxy(40,21);cout<<"TAX%:";gotoxy(65,21);
//******************************************
float tmptx=0;
cin>>tmptx;
tax=tmptx;
//*****************************************
gotoxy(5,22);
cout<<"===============================================================";
}
//**************************class function outside
fstream fp;
product pr;
//***************************************************************
// function to write in file
//****************************************************************
void write_product()
{
fp.open("shop.dat",ios::out|ios::app);
clrscr();
intromain();
int rnn=getrollno();
if(rnn>100)
{
rnn=1;
}
pr.create_product(rnn);
fp.write((char*)&pr,sizeof(product));
fp.close();
gotoxy(10,20);
cout<<"***************The Product Has Been Created******************* ";
cin.ignore();
getch();
}
//********************check the product number already given or not******
int getrollno()
{
ifstream objiff;
product st;
int count=0;
objiff.open("shop.dat",ios::binary);
objiff.seekg(0,ios::beg);
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
//**************temporary hiding these lines
while(objiff.read((char *) &st, sizeof(product)))
{ count++; }
//***********jump to the last line
objiff.seekg(count-sizeof(st),ios::beg);
objiff.read((char *) &st, sizeof(product));
count=st.retpno();
count++;
objiff.close();
return count;
}
//***************************************************************
// function to read specific record from file
//****************************************************************
void display_sp(int n)
{
int flag=0;
fp.open("shop.dat",ios::in);
if(!fp)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(fp.read((char*)&pr,sizeof(product)))
{
if(pr.retpno()==n)
{
clrscr();
intromain();
pr.show_product();
flag=1;
}
}
fp.close();
if(flag==0)
cout<<"nnrecord not exist";
getch();
}
//***************************************************************
// function to place order and generating bill for Products
//****************************************************************
struct order
{
int pno1;
char name1[50];
int qty1;
float price1,tax1,dis1;
};
void copyfile(int prod1,order o11[],int &c1,int qt2);
void place_order()
{
order o1[50];
int c=0,pr1=0;
float amt=0,damt=0,total=0,ttaxt=0;
int k=0,q1;
char ch='Y';
clrscr();
product_tabular();
clrscr();
intromain();
gotoxy(30,4);
cout<<"============================";
gotoxy(30,5);
cout<<" PLACE YOUR ORDER";
gotoxy(30,6);
cout<<"============================";
do
{
clrscr();
gotoxy(5,10);
cout<<"Enter The Product No: ";
gotoxy(55,10);
cin>>pr1;
k=search(pr1);
if(k==0)
{
gotoxy(5,12);
cout<<"Enter the Quantity:";
gotoxy(28,12);
cin>>q1;
changeqty(pr1,q1);
copyfile(pr1,o1,c,q1);
}else {cout<<"Product not found"; }
clrscr();
gotoxy(10,20);
cout<<"Do you want purchase more (Yes[ y or Y ] or NO [n or N])";
gotoxy(10,21);
cin>>ch;} while(ch=='y' || ch=='Y');
clrscr();
gotoxy(20,20);
cout<<"Thank You For Placing The Order..........";
getch(); clrscr(); intromain();
gotoxy(13,5);
cout<<"*************************INVOICE************************";
gotoxy(1,6);
cout<<"Pr No."<<setw(12)<<"Pr Name"<<setw(10)<<"Qty" <<setw(15)<<"Price"
<<setw(13)<<"Amount"<<setw(23)<<"Amount- discount";
gotoxy(3,7);
cout<<"----------------------------------------------------------------------------";
int yy=8;
for(int x=0;x<c;x++)
{
gotoxy(1,yy);
cout<<o1[x].pno1;
gotoxy(10,yy);
cout<<o1[x].name1;
gotoxy(27,yy);
cout<<o1[x].qty1;
gotoxy(40,yy);
cout<<"Rs."<<o1[x].price1;
gotoxy(50,yy);
amt=o1[x].qty1*o1[x].price1;
cout<<"Rs."<<amt;
damt=amt-o1[x].dis1;
gotoxy(65,yy);
cout<<"Rs."<<damt;
total+=damt;
ttaxt+=o1[x].tax1;
yy++;
}
gotoxy(3,yy);
cout<<"----------------------------------------------------------------------------";
yy++;
gotoxy(25,yy);
cout<<"TOTAL:";
gotoxy(35,yy);
cout<<total;
yy++;
gotoxy(25,yy);
cout<<"TAX%:";
gotoxy(36,yy);
cout<<"+"<<ttaxt;
yy++;
gotoxy(25,yy);
cout<<"----------------------------";
yy++;
gotoxy(25,yy);
cout<<"NET TOTAL:";
gotoxy(35,yy);
cout<<(total+((ttaxt*total)/100));
yy++;
gotoxy(3,yy);
cout<<"----------------------------------------------------------------------------";
//*****************change at the above
getch();
}
//********************fuction to copy all record to a structure
void copyfile(int prod1,order o11[],int &c1,int qt2)
{
//****************************************set the record
ifstream objiff2;
product st2;
int fpos2=-1;
o11[c1].pno1=prod1;
objiff2.open("shop.dat",ios::binary);
objiff2.seekg(0,ios::beg);
if(!objiff2)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
//**************temporary hiding these lines
while(objiff2.read((char *) &st2, sizeof(product)))
{
if(st2.retpno()==prod1)
{ fpos2=(int)objiff2.tellg();
break;
} }
//***********jump to the last line
objiff2.seekg(fpos2-sizeof(st2),ios::beg);
objiff2.read((char *) &st2, sizeof(product));
strcpy(o11[c1].name1,st2.getname());
o11[c1].dis1=st2.retdis();
o11[c1].price1=st2.retprice();
o11[c1].tax1=st2.gettax();
//*********************copy record***********************
o11[c1].qty1=qt2;
c1++;
objiff2.close();
}
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intro()
{
gotoxy(4,2);
cout<<"************************SUPER
MARKET**********************************";
gotoxy(12,4);
cout<<"=======================BILLING=============================";
gotoxy(5,5);
cout<<"****************************S=Y=S=T=E=M********************************"
;
gotoxy(15,10);
cout<<"PROJECT:";
gotoxy(15,12);
cout<<"MADE BY : TANUJA COLONEY AND PRIYANSHI PANDEY";
gotoxy(10,14);
cout<<"---------------SCHOOL : DOON PUBLIC SCHOOL--------------------";
getch();
}
//***************************************************************
// ADMINSTRATOR MENU FUNCTION
//****************************************************************
void admin_menu()
{
clrscr();
char ch2;
int num;
//************************************************************
clrscr();
intromain();
gotoxy(20,6);
cout<<"=================ADMIN MENU====================";
gotoxy(22,7);
cout<<"1.CREATE PRODUCT";
gotoxy(22,8);
cout<<"2.DISPLAY ALL PRODUCTS";
gotoxy(22,9);
cout<<"3.SEARCH RECORD(QUERY) ";
gotoxy(22,10);
cout<<"4.MODIFY PRODUCT";
gotoxy(22,11);
cout<<"5.DELETE PRODUCT";
gotoxy(22,12);
cout<<"6.BACK TO MAIN MENU";
gotoxy(18,13);
cout<<"Please Enter Your Choice (1-6) ";
gotoxy(55,13);
//**********************************************************
ch2=getche();
switch(ch2)
{
case '1': clrscr();
write_product();
break;
case '2': product_tabular();//display_all();
break;
case '3':
//********************
clrscr();
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE PRODUCT NUMBER TO BE SEARCHED:";
gotoxy(55,9);
cin>>num;
display_sp(num);
break;
case '4':
clrscr();
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE PRODUCT NUMBER TO BE SEARCHED AND MODIFY:";
gotoxy(55,9);
cin>>num;
modify_record(num);
break;
case '5':
clrscr();
intromain();
gotoxy(10,8);
cout<<"*****ENTER THE PRODUCT NUMBER TO BE SEARCHED and to Delete:";
gotoxy(55,9);
cin>>num;
delete_record(num);
break;
case '6': break;
default:cout<<"a";admin_menu();
}
}
//***************************************************************
// THE MAIN FUNCTION OF PROGRAM
//****************************************************************
void main()
{
char ch;
intro();
do
{
//****************TEMPORARY***********************
clrscr();
intromain();
gotoxy(20,6);
cout<<"=================MAIN MENU====================";
gotoxy(28,7);
cout<<"01. CUSTOMER";
gotoxy(28,8);
cout<<"02. ADMINISTRATOR";
gotoxy(28,9);
cout<<"03. EXIT";
gotoxy(20,10);
cout<<"==============================================";
gotoxy(25,12);
cout<<"Please Select Your Option (1-3) ";
gotoxy(30,14);
ch=getche();
switch(ch)
{
case '1': clrscr();
place_order();
getch();
break;
case '2': admin_menu();
break;
case '3':exit(0);
default :cout<<"a";
} }while(ch!='3');}
//***************main intro
void intromain()
{ clrscr();
gotoxy(1,2);
cout<<"**************SUPER******MARKET*****PROJECT************************";
gotoxy(1,3);
cout<<"************************************************************************";
}
//****************************************************************************
// DISPLAY ALL THE PRODUCT TABULAR FORM
//****************************************************************************
void product_tabular()
{
int r=0,col=10;
product st;
ifstream inFile;
inFile.open("shop.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
display_all();
while(inFile.read((char *) &st, sizeof(product)))
{
if(r<=12)
{
r++;
st.showall(col);
col++;
}else {
gotoxy(20,30);
cout<<"--------------press any key------------------------";
getch();
clrscr();
display_all();
col=10;
r=0;
}}
inFile.close();
getch();
}
//**************************tabular forms ends**********************************
//*******************tabulars forms headings************************************
//function to display all the records of product
//**********************************************************************
void display_all()
{
clrscr();
intromain();
gotoxy(1,5);
cout<<" **********************PRODUCTS DETAILS***************************";
gotoxy(1,6);
cout<<"===============================================================";
gotoxy(1,7);
cout<<"PROD.NO"<<setw(10)<<"NAME"<<setw(15)<<"PRICE"<<setw(15)<<"QUANTITY"<<
setw(15)<<"DISCOUNT"<<setw(10)<<"TAX%";
gotoxy(1,8);
cout<<"================================================================";
}
//************************************************************
// MODIFY RECORD
//**********************************************************
void modify_record(int n)
{
product st,temp;
char tmpnm[50];
ifstream inFile;
int fpos=-1;
inFile.open("shop.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
int flag=0;
while(inFile.read((char *) &st, sizeof(product)))
{
if(st.retpno()==n)
{ clrscr();
intromain();
st.showdatamulti();
flag=1;
}
}
inFile.close();
if(flag==0)
cout<<"nnrecord not exist";
else
{
//*******modifying the records starts here
fstream File;
File.open("shop.dat",ios::binary|ios::in|ios::out);
if(!File)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(File.read((char *) &st, sizeof(product)))
{
if(st.retpno()==n)
{ fpos=(int)File.tellg();
break;
}
}
File.seekp(fpos-sizeof(product),ios::beg);
strcpy(tmpnm,st.getname());
int q1=st.getqty();
gotoxy(1,12);
cout<<"*******************************************************************";
gotoxy(1,13);
cout<<"=ENTER NEW VALUES FOR THE RECORDS GIVEN ABOVE=========";
temp.modifydata(n,tmpnm,q1);
File.write((char *) &temp, sizeof(product));
File.close();
}
}
//*****************************************************************************
// DELETE THE RECORD OF THE STUDENT
//****************************************************************************
void delete_record(int n)
{
product st;
ifstream inFile;
inFile.open("shop.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
int flag=0;
while(inFile.read((char *) &st, sizeof(product)))
{
if(st.retpno()==n)
{ clrscr();
intromain();
st.showdatamulti();
flag=1;
}
}
inFile.close();
char ch;
if(flag==0)
cout<<"nnrecord not exist";
else
{
//*******deletion of the records starts from here
gotoxy(1,15);
cout<<"******************************************************************";
gotoxy(5,16);
cout<<"=DO YOU WANT TO DELETE THE RECORDS GIVEN ABOVE[YES(Y) OR NO (N)";
gotoxy(2,17);
cin>>ch;
if (toupper(ch)=='Y')
{
ofstream outFile;
outFile.open("Temp1.dat",ios::binary);
ifstream objiff("shop.dat",ios::binary);
objiff.seekg(0,ios::beg);
while(objiff.read((char *) &st, sizeof(product)))
{
if(st.retpno()!=n)
{ outFile.write((char *) &st, sizeof(product)); }
}
outFile.close();
objiff.close();
remove("shop.dat");
rename("Temp1.dat","shop.dat");
againopenandclose();
gotoxy(30,20);
cout<<"----------------------------Record Deleted----------------------------------";
}
}
getch();
}
//***********************delete record ends************************************
void againopenandclose()
{
ifstream inFile;
product st;
inFile.open("shop.dat",ios::binary);
if(!inFile)
{
getch();
return;
}
while(inFile.read((char *) &st, sizeof(product)))
{
}
inFile.close();
}
//***********************search the product***********************
int search(int p)
{
product st;
ifstream inFile;
inFile.open("shop.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
getch();
return -1;
}
int flag=0;
while(inFile.read((char *) &st, sizeof(product)))
{
if(st.retpno()==p)
{ clrscr();
intromain();
st.showdatamulti();
flag=1;
}
}
inFile.close();
if(flag==0)
return 1;
//cout<<"nnrecord not exist";
else
{
return 0;
}
}
//********************change quantity*************************
void changeqty(int pr1,int q11)
{
product st;
int fpos=-1;
fstream File;
File.open("shop.dat",ios::binary|ios::in|ios::out);
if(!File)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
while(File.read((char *) &st, sizeof(product)))
{
if(st.retpno()==pr1)
{ fpos=(int)File.tellg();
break;
}
}
File.seekp(fpos-sizeof(product),ios::beg);
int q1=st.getqty();
q1=q1-q11;
st.setqty(q1);
File.write((char *) &st, sizeof(product));
File.close();
}
//***************************************************************
// END OF PROJECT
//***************************************************************
***********************SUPER MARKET***************************
***********************BILLING*************************
PROJECT:
MADE BY : …………………………………….
-----------------------------------………………………………………………--------------------------------
-------------------------------------------------------------------------------------------------------------------------
-
************************MAIN MENU***********************
01. CUSTOMER
02. ADMINISTRATOR
03. EXIT
Please Select Your Option (1-3)
*****************************ADMIN MENU***************************
1.CREATE PRODUCT";
2.DISPLAY ALL PRODUCTS";
3.SEARCH RECORD(QUERY) ";
4.MODIFY PRODUCT";
5.DELETE PRODUCT";
6.BACK TO MAIN MENU";
Please Enter Your Choice (1-6)
****************CREATE PRODUCT********************
Please Enter The Product No. of The Product
101
Please Enter The Name of The Product
SUNFEAST_BISCUITS
Please Enter The Price of The Product
20
Please Enter The Discount (%)
2
***************The Product Has Been Created******************
***************DISPLAY ALL PRODUCTS*****************
******************DISPLAY ALL RECORD****************
The Product No. of The Product : 101
The Name of The Product : SUNFEASTBISCUITS
The Price of The Product : 20
Discount : 2
********************QUERY**************************
Please Enter The Product No. 101
The Product No. of The Product : 101
The Name of The Product : SUNFEASTBISCUITS
The Price of The Product : 20
Discount : 2
**********************MODIFY PRODUCT*******************************
To Modify
Please Enter The Product No.: 101
The Product No. of The Product : 101
The Name of The Product : SUNFEASTBISCUITS
The Price of The Product : 20
Discount : 2
Please Enter The New Details of Product
Please Enter The Product No. of The Product
101
Please Enter The Name of The Product
SUNFEAST
Please Enter The Price of The Product
25
Please Enter The Discount (%)
2
Record Updated
********************DELETE PRODUCT********************
Delete Record
Please Enter The product no. of The Product You Want To Delete : 101
Record Deleted ..
**********************VIEW PRODUCT MENU******************
====================================================
Product.No. NAME PRICE
====================================================
101 SUNFEAST_BISCUITS 20
102 PEN 35
103 BREAD 15
REQUIREMENTS
HARDWARE REQUIRED
• Printer, to print the required documents of the project
• Compact Drive
• Processor : intel
• Ram : 512 MB or more than 512MB
• Harddisk : 80 GB or more than 80GB.
SOFTWARE REQUIRED
• Operating system : Windows XP
• Turbo C++, for execution of program and Ms word, for
presentation of output.
ADVANTAGES
• Customer does not have to wait in long queues.
• Shop owner does not need to worry about buying and selling of products
• This software reduces paper work.
• It is easy to handle customer’s record and the details of purchased of products
and selling of products.
• This software saves the time.
• Information of the product sold stores separately.
DISADVANTAGES
• This system suitable for only few places.
• This system is not suitable for wholesale shop owners
• Online facility is not available.
CONCLUSION
This software is efficient in maintaining product
details and can easily perform operations on product’s
like additions ,deletion, modifications and products
can be searched and display on the basis of your
choice. This software also reduces the work load.
In future, this system can launch web site for easy
online. In this system there is limitation for places. In
future, it can be extended to add more places.
SYSTEM DESIGN
Then we began with the design phase of the system. System design is a
solution, a “HOW TO” approach to the creation of a new system. It
translates system requirements into ways by which they can be made
operational. It is a translational from a user oriented document to a
document oriented programmers. For that, it provides the understanding
and procedural details necessary for the implementation. Here we use
Flowchart to supplement the working of the new system. The system thus
made should be reliable, durable and above all should have least possible
maintenance costs. It should overcome all the drawbacks of the Old
existing system and most important of all meet the user requirements.
START
1CUSTOMER
2.ADMINISTRATOR
3.EXIT
ENTER YOUR CHOICE:
IF CHOICE = 1 ELSE
IF CHOICE = 2 ELSE
IF CHOICE = 3
THEN
?
CREATE
PRODUCT
PLACE ORDER
STOP
DISPLAY
ALL
PRODUCTS
QUERY MODIFY
PRODUCT
DELETE
PRODUCT
VIEW
PRODUCT
MENU
CHOICE 2
CHOICE 1

More Related Content

What's hot

Hostel management system
Hostel  management systemHostel  management system
Hostel management system
Gaurav kumar rai - student
 
Cake shop billing system
Cake shop billing systemCake shop billing system
Cake shop billing system
Akshita Pillai
 
Atm simulation mini project using Python programming language
Atm simulation  mini project using Python programming language Atm simulation  mini project using Python programming language
Atm simulation mini project using Python programming language
Mauryasuraj98
 
STUDENT REPORT CARD GENERATE SYSTEM
STUDENT REPORT CARD GENERATE SYSTEMSTUDENT REPORT CARD GENERATE SYSTEM
STUDENT REPORT CARD GENERATE SYSTEM
vikram mahendra
 
Online Quiz System Project Report ppt
Online Quiz System Project Report pptOnline Quiz System Project Report ppt
Online Quiz System Project Report ppt
Kishan Maurya
 
Bank management system with java
Bank management system with java Bank management system with java
Bank management system with java
Neha Bhagat
 
Synopsis gor online Tourism.
Synopsis gor online Tourism.Synopsis gor online Tourism.
Synopsis gor online Tourism.
Janu Ansari
 
54024405 project-report-banking-management-system
54024405 project-report-banking-management-system54024405 project-report-banking-management-system
54024405 project-report-banking-management-system
nancs
 
Internet mail system java project
Internet mail system java projectInternet mail system java project
Internet mail system java project
Tutorial Learners
 
Bus Ticket Management System Documentation
Bus Ticket Management System DocumentationBus Ticket Management System Documentation
Bus Ticket Management System Documentationmuzammil siddiq
 
A mini project on designing a DATABASE for Library management system using mySQL
A mini project on designing a DATABASE for Library management system using mySQLA mini project on designing a DATABASE for Library management system using mySQL
A mini project on designing a DATABASE for Library management system using mySQL
svrohith 9
 
BANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM reportBANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM report
Nandana Priyanka Eluri
 
College mgmnt system
College mgmnt systemCollege mgmnt system
College mgmnt systemSayali Birari
 
online news portal system
online news portal systemonline news portal system
online news portal system
Arman Ahmed
 
SOFTWARE REQUIREMENTS SPECIFICATION.pdf
SOFTWARE REQUIREMENTS SPECIFICATION.pdfSOFTWARE REQUIREMENTS SPECIFICATION.pdf
SOFTWARE REQUIREMENTS SPECIFICATION.pdf
FarDeen11
 
Banking Management System Project
Banking Management System ProjectBanking Management System Project
Banking Management System Project
Chaudhry Sajid
 
HOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project reportHOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project report
PDEA's college of engineering, Pune
 
Hospitalmanagement
HospitalmanagementHospitalmanagement
Hospitalmanagement
vikram mahendra
 

What's hot (20)

Hostel management system
Hostel  management systemHostel  management system
Hostel management system
 
Cake shop billing system
Cake shop billing systemCake shop billing system
Cake shop billing system
 
Atm simulation mini project using Python programming language
Atm simulation  mini project using Python programming language Atm simulation  mini project using Python programming language
Atm simulation mini project using Python programming language
 
STUDENT REPORT CARD GENERATE SYSTEM
STUDENT REPORT CARD GENERATE SYSTEMSTUDENT REPORT CARD GENERATE SYSTEM
STUDENT REPORT CARD GENERATE SYSTEM
 
Online Quiz System Project Report ppt
Online Quiz System Project Report pptOnline Quiz System Project Report ppt
Online Quiz System Project Report ppt
 
Bank management system with java
Bank management system with java Bank management system with java
Bank management system with java
 
Synopsis gor online Tourism.
Synopsis gor online Tourism.Synopsis gor online Tourism.
Synopsis gor online Tourism.
 
54024405 project-report-banking-management-system
54024405 project-report-banking-management-system54024405 project-report-banking-management-system
54024405 project-report-banking-management-system
 
Internet mail system java project
Internet mail system java projectInternet mail system java project
Internet mail system java project
 
Bus Ticket Management System Documentation
Bus Ticket Management System DocumentationBus Ticket Management System Documentation
Bus Ticket Management System Documentation
 
A mini project on designing a DATABASE for Library management system using mySQL
A mini project on designing a DATABASE for Library management system using mySQLA mini project on designing a DATABASE for Library management system using mySQL
A mini project on designing a DATABASE for Library management system using mySQL
 
Atm system_project
Atm system_projectAtm system_project
Atm system_project
 
BANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM reportBANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM report
 
College mgmnt system
College mgmnt systemCollege mgmnt system
College mgmnt system
 
Onlineshopping
OnlineshoppingOnlineshopping
Onlineshopping
 
online news portal system
online news portal systemonline news portal system
online news portal system
 
SOFTWARE REQUIREMENTS SPECIFICATION.pdf
SOFTWARE REQUIREMENTS SPECIFICATION.pdfSOFTWARE REQUIREMENTS SPECIFICATION.pdf
SOFTWARE REQUIREMENTS SPECIFICATION.pdf
 
Banking Management System Project
Banking Management System ProjectBanking Management System Project
Banking Management System Project
 
HOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project reportHOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project report
 
Hospitalmanagement
HospitalmanagementHospitalmanagement
Hospitalmanagement
 

Similar to SUPER MARKET COMPUTER SYSTEM IN C++

project report on Gas booking system in c++
project report on Gas booking system in c++ project report on Gas booking system in c++
project report on Gas booking system in c++
vikram mahendra
 
Durgesh
DurgeshDurgesh
Durgesh
dkbossverma
 
BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++
vikram mahendra
 
Electricitybillsystemreport
ElectricitybillsystemreportElectricitybillsystemreport
Electricitybillsystemreport
vikram mahendra
 
Aditya PROJECT .docx
Aditya PROJECT .docxAditya PROJECT .docx
Aditya PROJECT .docx
DeepikaKamboj7
 
Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shop
vikram mahendra
 
Python Project On Cosmetic Shop system
Python Project On Cosmetic Shop systemPython Project On Cosmetic Shop system
Python Project On Cosmetic Shop system
vikram mahendra
 
Tic tac toe
Tic tac toeTic tac toe
Tic tac toe
Upendra Sengar
 
Tic tac toe game code
Tic tac toe game codeTic tac toe game code
Tic tac toe game code
Upendra Sengar
 
Hyper market management system project +2 computer science
Hyper market management system   project +2 computer scienceHyper market management system   project +2 computer science
Hyper market management system project +2 computer science
Vaishak AP
 
Tictac
TictacTictac
Sunil
SunilSunil
Project Documentation New
Project Documentation NewProject Documentation New
Project Documentation NewAnurag Rana
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
dezyneecole
 
Title
TitleTitle
computerscience-170129081612.pdf
computerscience-170129081612.pdfcomputerscience-170129081612.pdf
computerscience-170129081612.pdf
KiranKumari204016
 
Final year project working documentation 2020
Final year project working documentation 2020Final year project working documentation 2020
Final year project working documentation 2020
Vikram Singh
 
online movie ticket booking system
online movie ticket booking systemonline movie ticket booking system
online movie ticket booking system
Sikandar Pandit
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
Harsh Kumar
 
A Project Paper On Smart Gym Management System
A Project Paper On Smart Gym Management SystemA Project Paper On Smart Gym Management System
A Project Paper On Smart Gym Management System
Amy Roman
 

Similar to SUPER MARKET COMPUTER SYSTEM IN C++ (20)

project report on Gas booking system in c++
project report on Gas booking system in c++ project report on Gas booking system in c++
project report on Gas booking system in c++
 
Durgesh
DurgeshDurgesh
Durgesh
 
BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++
 
Electricitybillsystemreport
ElectricitybillsystemreportElectricitybillsystemreport
Electricitybillsystemreport
 
Aditya PROJECT .docx
Aditya PROJECT .docxAditya PROJECT .docx
Aditya PROJECT .docx
 
Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shop
 
Python Project On Cosmetic Shop system
Python Project On Cosmetic Shop systemPython Project On Cosmetic Shop system
Python Project On Cosmetic Shop system
 
Tic tac toe
Tic tac toeTic tac toe
Tic tac toe
 
Tic tac toe game code
Tic tac toe game codeTic tac toe game code
Tic tac toe game code
 
Hyper market management system project +2 computer science
Hyper market management system   project +2 computer scienceHyper market management system   project +2 computer science
Hyper market management system project +2 computer science
 
Tictac
TictacTictac
Tictac
 
Sunil
SunilSunil
Sunil
 
Project Documentation New
Project Documentation NewProject Documentation New
Project Documentation New
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
 
Title
TitleTitle
Title
 
computerscience-170129081612.pdf
computerscience-170129081612.pdfcomputerscience-170129081612.pdf
computerscience-170129081612.pdf
 
Final year project working documentation 2020
Final year project working documentation 2020Final year project working documentation 2020
Final year project working documentation 2020
 
online movie ticket booking system
online movie ticket booking systemonline movie ticket booking system
online movie ticket booking system
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
 
A Project Paper On Smart Gym Management System
A Project Paper On Smart Gym Management SystemA Project Paper On Smart Gym Management System
A Project Paper On Smart Gym Management System
 

More from vikram mahendra

Communication skill
Communication skillCommunication skill
Communication skill
vikram mahendra
 
PYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEMPYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEM
vikram mahendra
 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Python
vikram mahendra
 
FLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHONFLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHON
vikram mahendra
 
FLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONFLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHON
vikram mahendra
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
vikram mahendra
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1
vikram mahendra
 
OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2
vikram mahendra
 
USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2
vikram mahendra
 
DATA TYPE IN PYTHON
DATA TYPE IN PYTHONDATA TYPE IN PYTHON
DATA TYPE IN PYTHON
vikram mahendra
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
vikram mahendra
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
vikram mahendra
 
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
vikram mahendra
 
INTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHONINTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHON
vikram mahendra
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
vikram mahendra
 
GREEN SKILL[PART-2]
GREEN SKILL[PART-2]GREEN SKILL[PART-2]
GREEN SKILL[PART-2]
vikram mahendra
 
GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]
vikram mahendra
 
Dictionary in python
Dictionary in pythonDictionary in python
Dictionary in python
vikram mahendra
 
Entrepreneurial skills
Entrepreneurial skillsEntrepreneurial skills
Entrepreneurial skills
vikram mahendra
 
Boolean logic
Boolean logicBoolean logic
Boolean logic
vikram mahendra
 

More from vikram mahendra (20)

Communication skill
Communication skillCommunication skill
Communication skill
 
PYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEMPYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEM
 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Python
 
FLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHONFLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHON
 
FLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONFLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHON
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1
 
OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2
 
USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2
 
DATA TYPE IN PYTHON
DATA TYPE IN PYTHONDATA TYPE IN PYTHON
DATA TYPE IN PYTHON
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
 
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
 
INTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHONINTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHON
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
GREEN SKILL[PART-2]
GREEN SKILL[PART-2]GREEN SKILL[PART-2]
GREEN SKILL[PART-2]
 
GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]
 
Dictionary in python
Dictionary in pythonDictionary in python
Dictionary in python
 
Entrepreneurial skills
Entrepreneurial skillsEntrepreneurial skills
Entrepreneurial skills
 
Boolean logic
Boolean logicBoolean logic
Boolean logic
 

Recently uploaded

TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 

Recently uploaded (20)

TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 

SUPER MARKET COMPUTER SYSTEM IN C++

  • 1. DOON PUBLIC SENIOR SECONDARY SCHOOL,HALDWANI Project Report On SUPER MARKET BILLING SYSTEM In the partial fulfillment of All India Senior School Certificate Examination for the session 2017-2018 conducted by Central Board Of Secondary Education. ………………………
  • 2. ACKNOWLEDGEMENT I would like to convey my heartful thanks to ………………………..(Computer Science) who always gave valuable suggestions & guidance for completion of my project. He helped me to understand & remember important details of the project. My project has been a success only because of his guidance. I am especially indented & I am also beholden to my friends. And finally I thank to the members of my family for their support & encouragement.
  • 3. CERTIFICATE This is to certify that …………………… of class ……….. of …………………………………has completed his project under my supervision. He has taken proper care & shown sincerity in completion of this project. I certify that this project is up to my expectation & as per the guideline issued by CBSE. …………………………………. (Computer Science faculty )
  • 4. Content 1. Introduction 2. Source Code 3. Output 4. Requirement 5. System Design 6. Advantages and disadvantages 7. Conclusion
  • 5. In the existing system, most of the records are maintained on paper. It becomes very inconvenient to modify the data. In the existing system, here is a possibility that the same data in different registers may have different values which means the entries of the same data do not match. This inconsistent state does not supply the concrete information which poses a problem in the case information related to particular search record. Our project is very useful. User is no longer required to check his register in search of records, as now it can be searched over the software by choosing some options. The user need not to type in most of the information. 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, it abates the work load of an organization. In today’s world, no one likes to perform calculations on calculator or manually when computer is there. Everyone wants his/her work to be done by computer automatically and displaying the result for further manipulations. The following documentation is a project the “SUPER MARKET BILLING SYSTEM”. It is a detailed summary of all the drawbacks of the old system and how the new proposed system overcomes these shortcomings. The new system takes into account the various factors while designing a new system. It keeps into the account the Economical bandwidth available for the new system. The foremost thing that is taken care of is the Need and Requirements of the User.
  • 6.
  • 7. //*************************************************************** // HEADER FILE USED IN PROJECT //**************************************************************** #include<conio.h> #include<stdio.h> #include<process.h> #include<fstream.h> #include<iomanip.h> #include<string.h> #include<ctype.h> void intromain(); int getrollno(); void display_all(); void product_tabular(); void modify_record(int n); void delete_record(int n); void againopenandclose(); int search(int p); void changeqty(int pr1,int q11); //*************************************************************** // CLASS USED IN PROJECT //**************************************************************** class product { int pno; char name[50]; int qty; float price,tax,dis; public: void modifydata(int n1,char snm[15],int q); //***************************************************************************** void showdatamulti() { gotoxy(5,7); cout<<"==============================================================="; gotoxy(10,8); cout<<"PRODUCT NO:"; gotoxy(30,8); cout<<pno; gotoxy(40,8); cout<<"NAME OF PRODUCT:"; gotoxy(60,8); cout<<name; gotoxy(10,9); cout<<"PRODUCT PRICE:"; gotoxy(30,9); cout<<price; gotoxy(40,9); cout<<"QUANTITY:"; gotoxy(60,9); cout<<qty; gotoxy(10,10); cout<<"DISCOUNT:"; gotoxy(30,10);
  • 8. cout<<dis; gotoxy(40,10); cout<<"TAX%:"; gotoxy(60,10); cout<<tax; gotoxy(5,11); cout<<"================================================================="; } //***************************************************************************** void create_product(int rn1) { //********************************************** gotoxy(5,7); cout<<"================================================================"; gotoxy(10,8); cout<<"Product No.:"; pno=rn1; gotoxy(24,8); cout<<pno; gotoxy(35,8); cout<<"NAME OF PRODUCT:"; gotoxy(54,8); cin>>name; gotoxy(10,9); cout<<"QUANTITY:"; gotoxy(22,9); cin>>qty; gotoxy(30,9); cout<<"PRICE:"; gotoxy(38,9); cin>>price; gotoxy(10,11); cout<<"DISCOUNT:"; gotoxy(25,11); cin>>dis; gotoxy(35,11); cout<<"TAX%:"; gotoxy(45,11); cin>>tax; gotoxy(5,12); cout<<"================================================================="; } void show_product() { //******************************** gotoxy(5,7); cout<<"================================================================="; gotoxy(10,8); cout<<"PRODUCT NO.:"; gotoxy(25,8); cout<<pno; gotoxy(35,8); cout<<"NAME OF PRODUCT:"; gotoxy(54,8); cout<<name;
  • 9. gotoxy(10,9); cout<<"PRICE OF PRODUCT:"; gotoxy(30,9); cout<<price; gotoxy(35,9); cout<<"DISCOUT:"; gotoxy(45,9); cout<<dis<<"%"; gotoxy(10,10); cout<<"QUANTITY:"; gotoxy(25,10); cout<<qty; gotoxy(35,10); cout<<"VAT % TAX:"; gotoxy(48,10); cout<<tax; gotoxy(5,11); cout<<"================================================================"; } //-----------------------show data tabular form---------------------- void showall(int c) { gotoxy(1,c); cout<<pno<<setw(17)<<name<<setw(11)<<"RS.<<price<<setw(10)<<qty<<setw(15)<<dis<<"%" <<setw(12)<<tax; } //-----------------------ends here------------------------------------ int retpno() {return pno;} float retprice() {return price;} float gettax() {return tax; } char* getname() {return name;} int getqty() { return qty;} float retdis() {return dis;} void setqty(int q21) { qty=q21; } }; //class ends here //*************************************************************** // global declaration for stream object, object //**************************************************************** //*************************modify product void product::modifydata(int n1,char snm[15],int q) { char tmpnm[40]; gotoxy(5,14); cout<<"=================WANT TO MODIFY ==============================="; gotoxy(10,15); cout<<"PRODUCT NO.:"; pno=n1; gotoxy(25,15);
  • 10. cout<<pno; gotoxy(40,15); strcpy(name,snm); cout<<"NAME OF PRODUCT:"; gotoxy(60,15); cout<<name; gotoxy(10,17); cout<<"Want to change the name of product"; gotoxy(50,17); int flag=0; while(1) { gets(tmpnm); if(strlen(tmpnm)!=0) { flag=1; break; } if(strlen(tmpnm)==0) { flag=0; break; } } if(flag==1) { strcpy(name,tmpnm); } else { } gotoxy(5,18); cout<<"================================================================="; gotoxy(5,19); cout<<"******MODIFY**PRODUCT PRICE - QUANTITY - DISCOUNT - TAX***********"; gotoxy(10,20); cout<<"PRICE:"; gotoxy(25,20); //***************if condition to increase price or not float tmppr=0; flag=-1; while(1) { cin>>tmppr; if(tmppr!=0) { flag=1; break; }else { flag=0; break; } } if(flag==1) { price=tmppr; } else { } //**************************************************** gotoxy(40,20); cout<<"INCREASE QUANTITY:"; gotoxy(65,20);
  • 11. //**************************************************** int tmpqty=0; cin>>tmpqty; qty=q; qty=qty+tmpqty; //**************************************************** gotoxy(10,21);cout<<"DISCOUNT:";gotoxy(25,21); //*************************************************** float tmpdis=0; cin>>tmpdis; dis=tmpdis; //*************************************************** gotoxy(40,21);cout<<"TAX%:";gotoxy(65,21); //****************************************** float tmptx=0; cin>>tmptx; tax=tmptx; //***************************************** gotoxy(5,22); cout<<"==============================================================="; } //**************************class function outside fstream fp; product pr; //*************************************************************** // function to write in file //**************************************************************** void write_product() { fp.open("shop.dat",ios::out|ios::app); clrscr(); intromain(); int rnn=getrollno(); if(rnn>100) { rnn=1; } pr.create_product(rnn); fp.write((char*)&pr,sizeof(product)); fp.close(); gotoxy(10,20); cout<<"***************The Product Has Been Created******************* "; cin.ignore(); getch(); } //********************check the product number already given or not****** int getrollno() { ifstream objiff; product st; int count=0; objiff.open("shop.dat",ios::binary); objiff.seekg(0,ios::beg); if(!objiff) {
  • 12. cout<<"File could not be open !! Press any Key..."; getch(); } //**************temporary hiding these lines while(objiff.read((char *) &st, sizeof(product))) { count++; } //***********jump to the last line objiff.seekg(count-sizeof(st),ios::beg); objiff.read((char *) &st, sizeof(product)); count=st.retpno(); count++; objiff.close(); return count; } //*************************************************************** // function to read specific record from file //**************************************************************** void display_sp(int n) { int flag=0; fp.open("shop.dat",ios::in); if(!fp) { cout<<"File could not be open !! Press any Key..."; getch(); return; } while(fp.read((char*)&pr,sizeof(product))) { if(pr.retpno()==n) { clrscr(); intromain(); pr.show_product(); flag=1; } } fp.close(); if(flag==0) cout<<"nnrecord not exist"; getch(); } //*************************************************************** // function to place order and generating bill for Products //**************************************************************** struct order { int pno1; char name1[50]; int qty1; float price1,tax1,dis1; }; void copyfile(int prod1,order o11[],int &c1,int qt2); void place_order() {
  • 13. order o1[50]; int c=0,pr1=0; float amt=0,damt=0,total=0,ttaxt=0; int k=0,q1; char ch='Y'; clrscr(); product_tabular(); clrscr(); intromain(); gotoxy(30,4); cout<<"============================"; gotoxy(30,5); cout<<" PLACE YOUR ORDER"; gotoxy(30,6); cout<<"============================"; do { clrscr(); gotoxy(5,10); cout<<"Enter The Product No: "; gotoxy(55,10); cin>>pr1; k=search(pr1); if(k==0) { gotoxy(5,12); cout<<"Enter the Quantity:"; gotoxy(28,12); cin>>q1; changeqty(pr1,q1); copyfile(pr1,o1,c,q1); }else {cout<<"Product not found"; } clrscr(); gotoxy(10,20); cout<<"Do you want purchase more (Yes[ y or Y ] or NO [n or N])"; gotoxy(10,21); cin>>ch;} while(ch=='y' || ch=='Y'); clrscr(); gotoxy(20,20); cout<<"Thank You For Placing The Order.........."; getch(); clrscr(); intromain(); gotoxy(13,5); cout<<"*************************INVOICE************************"; gotoxy(1,6); cout<<"Pr No."<<setw(12)<<"Pr Name"<<setw(10)<<"Qty" <<setw(15)<<"Price" <<setw(13)<<"Amount"<<setw(23)<<"Amount- discount"; gotoxy(3,7); cout<<"----------------------------------------------------------------------------"; int yy=8; for(int x=0;x<c;x++) { gotoxy(1,yy); cout<<o1[x].pno1; gotoxy(10,yy); cout<<o1[x].name1;
  • 14. gotoxy(27,yy); cout<<o1[x].qty1; gotoxy(40,yy); cout<<"Rs."<<o1[x].price1; gotoxy(50,yy); amt=o1[x].qty1*o1[x].price1; cout<<"Rs."<<amt; damt=amt-o1[x].dis1; gotoxy(65,yy); cout<<"Rs."<<damt; total+=damt; ttaxt+=o1[x].tax1; yy++; } gotoxy(3,yy); cout<<"----------------------------------------------------------------------------"; yy++; gotoxy(25,yy); cout<<"TOTAL:"; gotoxy(35,yy); cout<<total; yy++; gotoxy(25,yy); cout<<"TAX%:"; gotoxy(36,yy); cout<<"+"<<ttaxt; yy++; gotoxy(25,yy); cout<<"----------------------------"; yy++; gotoxy(25,yy); cout<<"NET TOTAL:"; gotoxy(35,yy); cout<<(total+((ttaxt*total)/100)); yy++; gotoxy(3,yy); cout<<"----------------------------------------------------------------------------"; //*****************change at the above getch(); } //********************fuction to copy all record to a structure void copyfile(int prod1,order o11[],int &c1,int qt2) { //****************************************set the record ifstream objiff2; product st2; int fpos2=-1; o11[c1].pno1=prod1; objiff2.open("shop.dat",ios::binary); objiff2.seekg(0,ios::beg); if(!objiff2) { cout<<"File could not be open !! Press any Key..."; getch(); }
  • 15. //**************temporary hiding these lines while(objiff2.read((char *) &st2, sizeof(product))) { if(st2.retpno()==prod1) { fpos2=(int)objiff2.tellg(); break; } } //***********jump to the last line objiff2.seekg(fpos2-sizeof(st2),ios::beg); objiff2.read((char *) &st2, sizeof(product)); strcpy(o11[c1].name1,st2.getname()); o11[c1].dis1=st2.retdis(); o11[c1].price1=st2.retprice(); o11[c1].tax1=st2.gettax(); //*********************copy record*********************** o11[c1].qty1=qt2; c1++; objiff2.close(); } //*************************************************************** // INTRODUCTION FUNCTION //**************************************************************** void intro() { gotoxy(4,2); cout<<"************************SUPER MARKET**********************************"; gotoxy(12,4); cout<<"=======================BILLING============================="; gotoxy(5,5); cout<<"****************************S=Y=S=T=E=M********************************" ; gotoxy(15,10); cout<<"PROJECT:"; gotoxy(15,12); cout<<"MADE BY : TANUJA COLONEY AND PRIYANSHI PANDEY"; gotoxy(10,14); cout<<"---------------SCHOOL : DOON PUBLIC SCHOOL--------------------"; getch(); } //*************************************************************** // ADMINSTRATOR MENU FUNCTION //**************************************************************** void admin_menu() { clrscr(); char ch2; int num; //************************************************************ clrscr(); intromain(); gotoxy(20,6); cout<<"=================ADMIN MENU===================="; gotoxy(22,7); cout<<"1.CREATE PRODUCT";
  • 16. gotoxy(22,8); cout<<"2.DISPLAY ALL PRODUCTS"; gotoxy(22,9); cout<<"3.SEARCH RECORD(QUERY) "; gotoxy(22,10); cout<<"4.MODIFY PRODUCT"; gotoxy(22,11); cout<<"5.DELETE PRODUCT"; gotoxy(22,12); cout<<"6.BACK TO MAIN MENU"; gotoxy(18,13); cout<<"Please Enter Your Choice (1-6) "; gotoxy(55,13); //********************************************************** ch2=getche(); switch(ch2) { case '1': clrscr(); write_product(); break; case '2': product_tabular();//display_all(); break; case '3': //******************** clrscr(); intromain(); gotoxy(10,8); cout<<"*****ENTER THE PRODUCT NUMBER TO BE SEARCHED:"; gotoxy(55,9); cin>>num; display_sp(num); break; case '4': clrscr(); intromain(); gotoxy(10,8); cout<<"*****ENTER THE PRODUCT NUMBER TO BE SEARCHED AND MODIFY:"; gotoxy(55,9); cin>>num; modify_record(num); break; case '5': clrscr(); intromain(); gotoxy(10,8); cout<<"*****ENTER THE PRODUCT NUMBER TO BE SEARCHED and to Delete:"; gotoxy(55,9); cin>>num; delete_record(num); break; case '6': break; default:cout<<"a";admin_menu(); } } //***************************************************************
  • 17. // THE MAIN FUNCTION OF PROGRAM //**************************************************************** void main() { char ch; intro(); do { //****************TEMPORARY*********************** clrscr(); intromain(); gotoxy(20,6); cout<<"=================MAIN MENU===================="; gotoxy(28,7); cout<<"01. CUSTOMER"; gotoxy(28,8); cout<<"02. ADMINISTRATOR"; gotoxy(28,9); cout<<"03. EXIT"; gotoxy(20,10); cout<<"=============================================="; gotoxy(25,12); cout<<"Please Select Your Option (1-3) "; gotoxy(30,14); ch=getche(); switch(ch) { case '1': clrscr(); place_order(); getch(); break; case '2': admin_menu(); break; case '3':exit(0); default :cout<<"a"; } }while(ch!='3');} //***************main intro void intromain() { clrscr(); gotoxy(1,2); cout<<"**************SUPER******MARKET*****PROJECT************************"; gotoxy(1,3); cout<<"************************************************************************"; } //**************************************************************************** // DISPLAY ALL THE PRODUCT TABULAR FORM //**************************************************************************** void product_tabular() { int r=0,col=10; product st; ifstream inFile; inFile.open("shop.dat",ios::binary); if(!inFile) {
  • 18. cout<<"File could not be open !! Press any Key..."; getch(); return; } display_all(); while(inFile.read((char *) &st, sizeof(product))) { if(r<=12) { r++; st.showall(col); col++; }else { gotoxy(20,30); cout<<"--------------press any key------------------------"; getch(); clrscr(); display_all(); col=10; r=0; }} inFile.close(); getch(); } //**************************tabular forms ends********************************** //*******************tabulars forms headings************************************ //function to display all the records of product //********************************************************************** void display_all() { clrscr(); intromain(); gotoxy(1,5); cout<<" **********************PRODUCTS DETAILS***************************"; gotoxy(1,6); cout<<"==============================================================="; gotoxy(1,7); cout<<"PROD.NO"<<setw(10)<<"NAME"<<setw(15)<<"PRICE"<<setw(15)<<"QUANTITY"<< setw(15)<<"DISCOUNT"<<setw(10)<<"TAX%"; gotoxy(1,8); cout<<"================================================================"; } //************************************************************ // MODIFY RECORD //********************************************************** void modify_record(int n) { product st,temp; char tmpnm[50]; ifstream inFile; int fpos=-1; inFile.open("shop.dat",ios::binary); if(!inFile) {
  • 19. cout<<"File could not be open !! Press any Key..."; getch(); return; } int flag=0; while(inFile.read((char *) &st, sizeof(product))) { if(st.retpno()==n) { clrscr(); intromain(); st.showdatamulti(); flag=1; } } inFile.close(); if(flag==0) cout<<"nnrecord not exist"; else { //*******modifying the records starts here fstream File; File.open("shop.dat",ios::binary|ios::in|ios::out); if(!File) { cout<<"File could not be open !! Press any Key..."; getch(); return; } while(File.read((char *) &st, sizeof(product))) { if(st.retpno()==n) { fpos=(int)File.tellg(); break; } } File.seekp(fpos-sizeof(product),ios::beg); strcpy(tmpnm,st.getname()); int q1=st.getqty(); gotoxy(1,12); cout<<"*******************************************************************"; gotoxy(1,13); cout<<"=ENTER NEW VALUES FOR THE RECORDS GIVEN ABOVE========="; temp.modifydata(n,tmpnm,q1); File.write((char *) &temp, sizeof(product)); File.close(); } } //***************************************************************************** // DELETE THE RECORD OF THE STUDENT //**************************************************************************** void delete_record(int n) { product st; ifstream inFile;
  • 20. inFile.open("shop.dat",ios::binary); if(!inFile) { cout<<"File could not be open !! Press any Key..."; getch(); return; } int flag=0; while(inFile.read((char *) &st, sizeof(product))) { if(st.retpno()==n) { clrscr(); intromain(); st.showdatamulti(); flag=1; } } inFile.close(); char ch; if(flag==0) cout<<"nnrecord not exist"; else { //*******deletion of the records starts from here gotoxy(1,15); cout<<"******************************************************************"; gotoxy(5,16); cout<<"=DO YOU WANT TO DELETE THE RECORDS GIVEN ABOVE[YES(Y) OR NO (N)"; gotoxy(2,17); cin>>ch; if (toupper(ch)=='Y') { ofstream outFile; outFile.open("Temp1.dat",ios::binary); ifstream objiff("shop.dat",ios::binary); objiff.seekg(0,ios::beg); while(objiff.read((char *) &st, sizeof(product))) { if(st.retpno()!=n) { outFile.write((char *) &st, sizeof(product)); } } outFile.close(); objiff.close(); remove("shop.dat"); rename("Temp1.dat","shop.dat"); againopenandclose(); gotoxy(30,20); cout<<"----------------------------Record Deleted----------------------------------"; } } getch(); } //***********************delete record ends************************************ void againopenandclose() {
  • 21. ifstream inFile; product st; inFile.open("shop.dat",ios::binary); if(!inFile) { getch(); return; } while(inFile.read((char *) &st, sizeof(product))) { } inFile.close(); } //***********************search the product*********************** int search(int p) { product st; ifstream inFile; inFile.open("shop.dat",ios::binary); if(!inFile) { cout<<"File could not be open !! Press any Key..."; getch(); return -1; } int flag=0; while(inFile.read((char *) &st, sizeof(product))) { if(st.retpno()==p) { clrscr(); intromain(); st.showdatamulti(); flag=1; } } inFile.close(); if(flag==0) return 1; //cout<<"nnrecord not exist"; else { return 0; } } //********************change quantity************************* void changeqty(int pr1,int q11) { product st; int fpos=-1; fstream File; File.open("shop.dat",ios::binary|ios::in|ios::out); if(!File) { cout<<"File could not be open !! Press any Key..."; getch();
  • 22. return; } while(File.read((char *) &st, sizeof(product))) { if(st.retpno()==pr1) { fpos=(int)File.tellg(); break; } } File.seekp(fpos-sizeof(product),ios::beg); int q1=st.getqty(); q1=q1-q11; st.setqty(q1); File.write((char *) &st, sizeof(product)); File.close(); } //*************************************************************** // END OF PROJECT //***************************************************************
  • 23.
  • 24. ***********************SUPER MARKET*************************** ***********************BILLING************************* PROJECT: MADE BY : ……………………………………. -----------------------------------………………………………………………-------------------------------- ------------------------------------------------------------------------------------------------------------------------- - ************************MAIN MENU*********************** 01. CUSTOMER 02. ADMINISTRATOR 03. EXIT Please Select Your Option (1-3) *****************************ADMIN MENU*************************** 1.CREATE PRODUCT"; 2.DISPLAY ALL PRODUCTS"; 3.SEARCH RECORD(QUERY) "; 4.MODIFY PRODUCT"; 5.DELETE PRODUCT"; 6.BACK TO MAIN MENU"; Please Enter Your Choice (1-6) ****************CREATE PRODUCT******************** Please Enter The Product No. of The Product 101 Please Enter The Name of The Product SUNFEAST_BISCUITS Please Enter The Price of The Product 20 Please Enter The Discount (%) 2 ***************The Product Has Been Created****************** ***************DISPLAY ALL PRODUCTS***************** ******************DISPLAY ALL RECORD**************** The Product No. of The Product : 101 The Name of The Product : SUNFEASTBISCUITS The Price of The Product : 20 Discount : 2 ********************QUERY************************** Please Enter The Product No. 101 The Product No. of The Product : 101 The Name of The Product : SUNFEASTBISCUITS The Price of The Product : 20 Discount : 2
  • 25. **********************MODIFY PRODUCT******************************* To Modify Please Enter The Product No.: 101 The Product No. of The Product : 101 The Name of The Product : SUNFEASTBISCUITS The Price of The Product : 20 Discount : 2 Please Enter The New Details of Product Please Enter The Product No. of The Product 101 Please Enter The Name of The Product SUNFEAST Please Enter The Price of The Product 25 Please Enter The Discount (%) 2 Record Updated ********************DELETE PRODUCT******************** Delete Record Please Enter The product no. of The Product You Want To Delete : 101 Record Deleted .. **********************VIEW PRODUCT MENU****************** ==================================================== Product.No. NAME PRICE ==================================================== 101 SUNFEAST_BISCUITS 20 102 PEN 35 103 BREAD 15
  • 26. REQUIREMENTS HARDWARE REQUIRED • Printer, to print the required documents of the project • Compact Drive • Processor : intel • Ram : 512 MB or more than 512MB • Harddisk : 80 GB or more than 80GB. SOFTWARE REQUIRED • Operating system : Windows XP • Turbo C++, for execution of program and Ms word, for presentation of output.
  • 27. ADVANTAGES • Customer does not have to wait in long queues. • Shop owner does not need to worry about buying and selling of products • This software reduces paper work. • It is easy to handle customer’s record and the details of purchased of products and selling of products. • This software saves the time. • Information of the product sold stores separately. DISADVANTAGES • This system suitable for only few places. • This system is not suitable for wholesale shop owners • Online facility is not available.
  • 28. CONCLUSION This software is efficient in maintaining product details and can easily perform operations on product’s like additions ,deletion, modifications and products can be searched and display on the basis of your choice. This software also reduces the work load. In future, this system can launch web site for easy online. In this system there is limitation for places. In future, it can be extended to add more places.
  • 29. SYSTEM DESIGN Then we began with the design phase of the system. System design is a solution, a “HOW TO” approach to the creation of a new system. It translates system requirements into ways by which they can be made operational. It is a translational from a user oriented document to a document oriented programmers. For that, it provides the understanding and procedural details necessary for the implementation. Here we use Flowchart to supplement the working of the new system. The system thus made should be reliable, durable and above all should have least possible maintenance costs. It should overcome all the drawbacks of the Old existing system and most important of all meet the user requirements. START 1CUSTOMER 2.ADMINISTRATOR 3.EXIT ENTER YOUR CHOICE: IF CHOICE = 1 ELSE IF CHOICE = 2 ELSE IF CHOICE = 3 THEN ? CREATE PRODUCT PLACE ORDER STOP DISPLAY ALL PRODUCTS QUERY MODIFY PRODUCT DELETE PRODUCT VIEW PRODUCT MENU CHOICE 2 CHOICE 1