1. SUPER MARKET BILLING SYSTEM
NAME: ABHISHEK SHUKLA
CLASS: XII(SCIENCE)
ROLLNO:4648285
SCHOOL: KENDRIYA VIDYALAYA CME PUNE(31)
SEASSION: 2016-2017
2. ACKNOWLEDGEMENT
I place my thanks to my C.S Teacher
Mrs.K PATEL for her guidance and advices
to complete my work successfullyin given
time.
I also take this opportunity to place on
record
My deep gratitude to Lord Almighty for the
Countless blessings showered on me while
doing the work and complete it. At last I
thank my parents for their encouragement
and support in my humble virtue.
Abhishek Shukla
3. Class 12 A
CERTIFICATE
This is to certify that this dissertation titled
“”submitted by
Abhishek Shukla to Department of
Computer Science Kendriya Vidyalaya
C.M.E PUNE was carried under guidance
and supervision of Mrs.K PATEL during
the academic year 2016-2017.
TEACHER IN CHARGE EXTERNAL EXAMNER
5. HEADER FILE USED
iostream.h: FOR ENTER AND DISPLAY THE DATA
conio.h: FOR CLRSCR() AND GETCH() FUNCTION
fstream.h : STREAM CLASS TO BOTH READ AND
WRITE FORM/TO FILES, FILES TO MEMORY OR
MEMORY TO FILES
stdio.h :USED TO DEFINES MICROS NEED FOR THE
STANDERED I/O PACKEGES E.G.GETS(),PUTS()*
process.h:FOR EXIT() FUNCTION
6. WORKING DESCRIPTION
Program is designed to keep friend’s
record.
This program consists five option as
follows
1.Costumer
2.Administrator
Administrator consist many data file
handling operation
7. // HEADER FILE USED IN PROJECT
#include<iostream.h> // FOR ENTER ANDDISPLAYTHE DATA
#include<conio.h>
#include<fstream.h> /*STREAM CLASSTO BOTH READ AND WRITE FORM/TO FILES,FILES TO MEMORY
OR MEMORY TO FILES*/
#include<stdio.h> /*USED TO DEFINES MICROSNEED FORTHE STANDERED I/OPACKEGES
E.G.GETS(),PUTS()*/
#include<process.h>
// MAIN CLASSUSED IN PROJECT
classproduct
{
intpno;
char name[50];
floatprice,qty,tax,dis;
public:
//FUNCTION TOENTER NEW DATA
voidcreate_product()
{
cout<<"nPlease EnterThe ProductNo.of The Product";
cin>>pno;
cout<<"nnPlease EnterThe Name of The Product";
gets(name);
cout<<"nPlease EnterThe Price of The Product";
cin>>price;
cout<<"nPlease EnterThe Discount(%) ";
8. cin>>dis;
}
//FUNCTION TO SHOW DATA
voidshow_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;
}
//Accesser FUNCTION
intretpno()
{returnpno;}
floatretprice()
{returnprice;}
char* retname()
{returnname;}
int retdis()
{returndis;}
}; //classendshere
//global declarationforstreamobjectS
fstreamfp
productpr;
// functiontowrite infile
17. case '2': display_all();break;
case '3':
intnum;
clrscr();
cout<<"nntPlease EnterThe ProductNo.";
cin>>num;
display_sp(num);
break;
case '4': modify_product();break;
case '5': delete_product();break;
case '6': menu();
getch();
case '7': break;
default:cout<<"a";admin_menu();
}
}
// THE MAIN FUNCTION OF PROGRAM
voidmain()
{
char ch;
intro();
do
{
clrscr();
cout<<"nnntMAIN MENU";