SlideShare a Scribd company logo
1 of 17
Download to read offline
SUBMITED BY
Reshma Kodwani
Bachelor of Computer Application II YEAR
Dezyne E’cole College
www.dezyneecole.com
INFORMATION TECHNOLOGY
PROJECT REPORT
C++ PROGRAMMING
Billing System
TOPIC
C++
Project Report
On
C++ Programming
At
Dezyne E’cole College
Ajmer
Submitted to
Dezyne E’cole College
Towards the
Partial Fulfillment on
Bachelor of Computer Application
By
Reshma Kodwani
Dezyne E’cole College
106/10 Civil Line, Ajmer
Tel – 0145-2624679
Www.dezyneecole.com
2016
Acknowledgement
I Reshma Kodwani, Student On Dezyne E’cole College, An Extremely
Grateful To Each And Every Individual. Who Has Contributed. In
Successful Completion Of My Project. I Express My Gratitude Towards
Dezyne E’cole College For Their. Guidance and Contrast Supervision As
Well As For Providing The Necessary Information And Support
Regarding The Completion Of Project
Thank You
1 | P a g e
Synopsis
This Project Is A Minor. Project Made, Based On The Practical Concept
Of C++ This Project Has Made Our Basic Practical Concepts On C++
Strong
2 | P a g e
3 | P a g e
4 | P a g e
5 | P a g e
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<fstream.h>
// class in project
class product
{
int pno;
char name[50];
float price,tax,dis,qty;
public:
void create_product()
{
cout<<"n Please enter the product no of the product::";
cin>>pno;
cout<<endl;
cout<<"n Please enter the name of the product::";
gets(name);
cout<<endl;
cout<<"n Please enter the price of the product::";
cin>>price;
cout<<endl;
cout<<"n Please enter the discount of the product::";
cin>>dis;
cout<<endl;
}
void show_product()
{
cout<<"The product no. of the product::"<<pno<<endl;
cout<<"The name of the product::";
puts(name);
cout<<"The price of the product::"<<price<<endl;
cout<<"Discount::"<<dis;
}
int retpno()
{return pno;}
float retprice()
{return price;}
char *retname()
{return name;}
int retdis()
{return dis;}
6 | P a g e
}; //CLASS ENDS HERE
//GLOBAL DECLARATION FOR STREAM OBJECT,OBJECT
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(pr));
fp.close();
cout<<"nnThe product has been created...";
getch();
}
//FUNCTION TO READ ALL THE RECORD FROM FILE
void display_all()
{
clrscr();
cout<<"nnDISPLAY ALL RECORD!!!nn";
fp.open("shop.dat ", ios::in);
while(fp.read((char*)&pr,sizeof(pr)))
{
pr.show_product();
cout<<"n=====================================n";
getch();
}
fp.close();
getch();
}
//FUNCTION TO READ THE SPECFIC RECORD FROM FILE
void display_sp(int n)
{
int flag=0;
fp.open("shop.dat",ios::in);
while(fp.read((char*)&pr,sizeof(pr)))
{
if(pr.retpno()==n)
{
clrscr();
7 | P a g e
pr.show_product();
flag=1;
}
}
fp.close();
if(flag==0)
cout<<"n record not exist...";
getch();
}
//FUNCTION TO MODIFY RECORD OF FILE
void modify_product()
{
int no,found=0;
clrscr();
cout<<"n To Modify";
cout<<"n Please enter the product no of the product::";
cin>>no;
fp.open("shop.dat",ios::in|ios::out);
while(fp.read((char*)&pr,sizeof(pr))&&found==0)
{
if(pr.retpno()==no)
{
pr.show_product();
cout<<"Please enter the new details of
product::"<<endl ;
pr.create_product();
int pos=-1*sizeof(pr);
fp.seekg(pos,ios::cur);
fp.write ((char*)&pr,sizeof(pr));
cout<<"nn record updated...";
found=1;
}
}
fp.close();
if(found==0)
cout<<"nn record not found...";
getch();
}
// FUNCATION TO DELETE THE RECORD OF FILE
void delete_product()
{
int no;
clrscr();
8 | P a g e
cout<<"nn Detail record ";
cout<<"nn Please enter the product no.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(pr)))
{
if(pr.retpno()!=no)
{
fp2.write((char*)&pr,sizeof(pr));
}
}
fp2.close();
fp.close();
remove("shop.dat");
rename("temp.dat","shop.dat");
cout<<"nn Record deleted....";
getch();
}
//FUNCTION TO DISPLAY ALL PRODUCT PRICE LIST
void menu()
{
clrscr();
fp.open("shop.dat",ios::in);
if(!fp)
{
cout<<"ERROR!!nNFile couldn't be openn go to admin
menu to create file ";
cout<<"n Program is closing....";
getch();
exit(0);
}
cout<<"nnt PRODUCT MENU nn";
cout<<"============================================
====n";
cout<<"PnottNamettPRICEn";
cout<<"============================================
====n";
while(fp.read((char*)&pr,sizeof(pr)))
9 | P a g e
{
cout<<pr.retpno()<<"tt"<<pr.retname()<<"tt"<<pr.retprice()<<end
l;
}
fp.close();
cout<<"n=================";
cout<<"nPlace your order";
cout<<"n=================n";
}
//FUNCTION TO PLACE ORDER AND GENERATING BILL FOR
PRODUCTS
void place_order()
{
int order_arr[50],quan[50],c=0;
int amt,damt,tamt,tdis;
int total=0;
char ch='y';
order_arr[50]=0;
menu();
/* cout<<"n=================";
cout<<"nPlace your order";
cout<<"n=================n"; */
do{
cout<<"n Enter the product no of the product::";
cin>>order_arr[c];
if(order_arr[c]<7)
{
cout<<"n Quantity in number::";
cin>>quan[c];
}
else{ cout<<"product not available"<<endl;}
c++;
cout<<" Do you want order another product?(y/n)";
ch=getch();
if(ch=='y'||ch=='Y')
{
menu();
}
else
{
break;
10 | P a g e
}
}while(1);
cout<<"n Thank you for placing the order...";
getch();
clrscr();
cout<<"nn
*********************************INVOICE*****************************n";
cout<<"n Pr no."<<" "<<"Pr name"<<" " <<"Quantity"<<" "
<<"Price"<<" "<<"Amount"<<" "<<"Amount after discountn";
for(int x=0;x<=c;x++)
{
fp.open("shop.dat",ios::in);
// fp.read((char*)&pr,sizeof(pr));
while(!fp.eof())
{
fp.read((char*)&pr,sizeof(pr));
if(pr.retpno()==order_arr[x])
{
amt=pr.retprice()*quan[x] ;
// cout<<"amt:"<<amt<<endl;
tamt=(amt*quan[x]);
tdis=pr.retdis()*quan[x];
// cout<<"tdis:"<<tdis<<endl;
damt=amt-tdis;
// cout<<"damt:"<<damt;
cout<<"n"<<" "<<order_arr[x]<<"t
"<<pr.retname()<<"tt "<<quan[x]<<"t "<<pr.retprice()<<"t "<<amt<<"
t "<<damt;
total=total+damt;
}
}
fp.close();
}
cout<<"nnttttttt TOTAL="<<total;
getch();
}
//INTRODUCTION FUNCTION
void intro()
{
clrscr();
11 | P a g e
gotoxy(31,11);
cout<<" SUPER MARKET";
gotoxy(35,14);
cout<<"BILLING";
gotoxy(35,17);
cout<<"PROJECT";
cout<<"nntt MADE BY: RESHMA KODWANI AND KIRTI
KUMAWAT";
cout<<"ntt COLLEGE: DEZYNE E'COLE COLLEGE";
getch();
}
//ADMINSTRATOR MENU FUNCTION
void admin_menu()
{
l1:
// l2:
l3:
l4:
l5:
l6:
clrscr();
char ch2;
cout<<"nn ADMIN MENU";
cout<<"nn 1. CREATE PRODUCT";
cout<<"nn 2. DISPLAY ALL PRODUCT";
cout<<"nn 3. SEARCH THE SPRCIFC PRODUCT";
cout<<"nn 4. MODIFY PRODUCT";
cout<<"nn 5. DELETE PRODUCT";
cout<<"nn 6. VIEW PRODUCT MENU";
cout<<"nn 7. BACK TO MAIN MENU";
cout<<"nn Please enter your choice (1-7)";
ch2=getche();
switch(ch2)
{
case '1':clrscr();
write_product();
goto l1;
break;
case '2':display_all();
goto l1;
break;
12 | P a g e
case'3':
int num;
clrscr();
cout<<"nn Please enter the product no ";
cin>>num;
display_sp(num);
goto l3;
break;
case '4': modify_product();
goto l4;
break;
case '5': delete_product();
goto l5;
break;
case '6':menu();
getch();
goto l6;
case'7':break;
default:cout<<"a";
admin_menu();
}
}
// THE MAIN FUNCTION OF PROGRAM
void main()
{
char ch;
intro();
do{
clrscr();
textcolor(6);
cout<<"nnt MAIN MENU";
cout<<"nnt 01. CUSTOMER";
cout<<"nnt 02. ADMINSTRTOR";
cout<<"nnt 03. EXIT";
cout<<"nnt Please select your options(1-3)";
ch=getche();
switch(ch)
{
case '1':clrscr();
place_order();
13 | P a g e
getch();
break;
case '2': admin_menu();
break;
case '3':exit(0);
default:cout<<"a";
}
}while(ch!='3');
}
//END OF PROGRAM
14 | P a g e
THANK YOU

More Related Content

What's hot

C++ class 12 cbse quiz programming (Compiled using Turbo C++)
C++ class 12 cbse quiz programming (Compiled using Turbo C++)C++ class 12 cbse quiz programming (Compiled using Turbo C++)
C++ class 12 cbse quiz programming (Compiled using Turbo C++)Adarsh Pandit
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearDezyneecole
 
AngularJs in Las Palmas de GC
AngularJs in Las Palmas de GCAngularJs in Las Palmas de GC
AngularJs in Las Palmas de GCMarcin Wosinek
 
27. mathematical, date and time functions in VB Script
27. mathematical, date and time  functions in VB Script27. mathematical, date and time  functions in VB Script
27. mathematical, date and time functions in VB ScriptVARSHAKUMARI49
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearDezyneecole
 
Electricitybillsystemreport
ElectricitybillsystemreportElectricitybillsystemreport
Electricitybillsystemreportvikram mahendra
 
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output) Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output) Aman Deep
 
30,31,32,33. decision and loop statements in vbscript
30,31,32,33. decision and loop statements in vbscript30,31,32,33. decision and loop statements in vbscript
30,31,32,33. decision and loop statements in vbscriptVARSHAKUMARI49
 
28,29. procedures subprocedure,type checking functions in VBScript
28,29. procedures  subprocedure,type checking functions in VBScript28,29. procedures  subprocedure,type checking functions in VBScript
28,29. procedures subprocedure,type checking functions in VBScriptVARSHAKUMARI49
 

What's hot (9)

C++ class 12 cbse quiz programming (Compiled using Turbo C++)
C++ class 12 cbse quiz programming (Compiled using Turbo C++)C++ class 12 cbse quiz programming (Compiled using Turbo C++)
C++ class 12 cbse quiz programming (Compiled using Turbo C++)
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
 
AngularJs in Las Palmas de GC
AngularJs in Las Palmas de GCAngularJs in Las Palmas de GC
AngularJs in Las Palmas de GC
 
27. mathematical, date and time functions in VB Script
27. mathematical, date and time  functions in VB Script27. mathematical, date and time  functions in VB Script
27. mathematical, date and time functions in VB Script
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third Year
 
Electricitybillsystemreport
ElectricitybillsystemreportElectricitybillsystemreport
Electricitybillsystemreport
 
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output) Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
 
30,31,32,33. decision and loop statements in vbscript
30,31,32,33. decision and loop statements in vbscript30,31,32,33. decision and loop statements in vbscript
30,31,32,33. decision and loop statements in vbscript
 
28,29. procedures subprocedure,type checking functions in VBScript
28,29. procedures  subprocedure,type checking functions in VBScript28,29. procedures  subprocedure,type checking functions in VBScript
28,29. procedures subprocedure,type checking functions in VBScript
 

Similar to Reshma Kodwani , BCA Third Year

Shivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third YearShivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third YearDezyneecole
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Yeardezyneecole
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Yeardezyneecole
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Yeardezyneecole
 
computerscience-170129081612.pdf
computerscience-170129081612.pdfcomputerscience-170129081612.pdf
computerscience-170129081612.pdfKiranKumari204016
 
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 BillingHarsh Kumar
 
project report in C++ programming and SQL
project report in C++ programming and SQLproject report in C++ programming and SQL
project report in C++ programming and SQLvikram mahendra
 
Contoh program c++ kalkulator
Contoh program c++ kalkulatorContoh program c++ kalkulator
Contoh program c++ kalkulatorJsHomeIndustry
 
CS Project-Source code for shopping inventory for CBSE 12th
CS Project-Source code for shopping inventory for CBSE 12thCS Project-Source code for shopping inventory for CBSE 12th
CS Project-Source code for shopping inventory for CBSE 12thSudhindra Mudhol
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearDezyneecole
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearDezyneecole
 
Computer Investigatory Project
Computer Investigatory ProjectComputer Investigatory Project
Computer Investigatory ProjectNishant Jha
 
SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++vikram mahendra
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++Dendi Riadi
 
Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)Syed Umair
 

Similar to Reshma Kodwani , BCA Third Year (20)

Shivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third YearShivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third Year
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Year
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Year
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Year
 
computerscience-170129081612.pdf
computerscience-170129081612.pdfcomputerscience-170129081612.pdf
computerscience-170129081612.pdf
 
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
 
project report in C++ programming and SQL
project report in C++ programming and SQLproject report in C++ programming and SQL
project report in C++ programming and SQL
 
Contoh program c++ kalkulator
Contoh program c++ kalkulatorContoh program c++ kalkulator
Contoh program c++ kalkulator
 
CS Project-Source code for shopping inventory for CBSE 12th
CS Project-Source code for shopping inventory for CBSE 12thCS Project-Source code for shopping inventory for CBSE 12th
CS Project-Source code for shopping inventory for CBSE 12th
 
Sunil
SunilSunil
Sunil
 
Computer Practical XII
Computer Practical XIIComputer Practical XII
Computer Practical XII
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
 
C++ TUTORIAL 2
C++ TUTORIAL 2C++ TUTORIAL 2
C++ TUTORIAL 2
 
Computer Investigatory Project
Computer Investigatory ProjectComputer Investigatory Project
Computer Investigatory Project
 
C++ manual Report Full
C++ manual Report FullC++ manual Report Full
C++ manual Report Full
 
SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++
 
Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)
 
Penjualan swalayan
Penjualan swalayanPenjualan swalayan
Penjualan swalayan
 

More from dezyneecole

Gracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second YearGracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second Yeardezyneecole
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Yeardezyneecole
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Yeardezyneecole
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Yeardezyneecole
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Yeardezyneecole
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Yeardezyneecole
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Yeardezyneecole
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Yeardezyneecole
 
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...dezyneecole
 
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...dezyneecole
 
Gitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 YearGitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 Yeardezyneecole
 
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)dezyneecole
 
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)dezyneecole
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...dezyneecole
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)dezyneecole
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)dezyneecole
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)dezyneecole
 
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...dezyneecole
 
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)dezyneecole
 
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)dezyneecole
 

More from dezyneecole (20)

Gracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second YearGracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second Year
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
 
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
 
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
 
Gitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 YearGitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 Year
 
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
 
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
 
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
 
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
 
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

Reshma Kodwani , BCA Third Year

  • 1. SUBMITED BY Reshma Kodwani Bachelor of Computer Application II YEAR Dezyne E’cole College www.dezyneecole.com INFORMATION TECHNOLOGY PROJECT REPORT C++ PROGRAMMING Billing System TOPIC C++
  • 2. Project Report On C++ Programming At Dezyne E’cole College Ajmer Submitted to Dezyne E’cole College Towards the Partial Fulfillment on Bachelor of Computer Application By Reshma Kodwani Dezyne E’cole College 106/10 Civil Line, Ajmer Tel – 0145-2624679 Www.dezyneecole.com 2016
  • 3. Acknowledgement I Reshma Kodwani, Student On Dezyne E’cole College, An Extremely Grateful To Each And Every Individual. Who Has Contributed. In Successful Completion Of My Project. I Express My Gratitude Towards Dezyne E’cole College For Their. Guidance and Contrast Supervision As Well As For Providing The Necessary Information And Support Regarding The Completion Of Project Thank You
  • 4. 1 | P a g e Synopsis This Project Is A Minor. Project Made, Based On The Practical Concept Of C++ This Project Has Made Our Basic Practical Concepts On C++ Strong
  • 5. 2 | P a g e
  • 6. 3 | P a g e
  • 7. 4 | P a g e
  • 8. 5 | P a g e #include<iostream.h> #include<conio.h> #include<stdio.h> #include<process.h> #include<fstream.h> // class in project class product { int pno; char name[50]; float price,tax,dis,qty; public: void create_product() { cout<<"n Please enter the product no of the product::"; cin>>pno; cout<<endl; cout<<"n Please enter the name of the product::"; gets(name); cout<<endl; cout<<"n Please enter the price of the product::"; cin>>price; cout<<endl; cout<<"n Please enter the discount of the product::"; cin>>dis; cout<<endl; } void show_product() { cout<<"The product no. of the product::"<<pno<<endl; cout<<"The name of the product::"; puts(name); cout<<"The price of the product::"<<price<<endl; cout<<"Discount::"<<dis; } int retpno() {return pno;} float retprice() {return price;} char *retname() {return name;} int retdis() {return dis;}
  • 9. 6 | P a g e }; //CLASS ENDS HERE //GLOBAL DECLARATION FOR STREAM OBJECT,OBJECT 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(pr)); fp.close(); cout<<"nnThe product has been created..."; getch(); } //FUNCTION TO READ ALL THE RECORD FROM FILE void display_all() { clrscr(); cout<<"nnDISPLAY ALL RECORD!!!nn"; fp.open("shop.dat ", ios::in); while(fp.read((char*)&pr,sizeof(pr))) { pr.show_product(); cout<<"n=====================================n"; getch(); } fp.close(); getch(); } //FUNCTION TO READ THE SPECFIC RECORD FROM FILE void display_sp(int n) { int flag=0; fp.open("shop.dat",ios::in); while(fp.read((char*)&pr,sizeof(pr))) { if(pr.retpno()==n) { clrscr();
  • 10. 7 | P a g e pr.show_product(); flag=1; } } fp.close(); if(flag==0) cout<<"n record not exist..."; getch(); } //FUNCTION TO MODIFY RECORD OF FILE void modify_product() { int no,found=0; clrscr(); cout<<"n To Modify"; cout<<"n Please enter the product no of the product::"; cin>>no; fp.open("shop.dat",ios::in|ios::out); while(fp.read((char*)&pr,sizeof(pr))&&found==0) { if(pr.retpno()==no) { pr.show_product(); cout<<"Please enter the new details of product::"<<endl ; pr.create_product(); int pos=-1*sizeof(pr); fp.seekg(pos,ios::cur); fp.write ((char*)&pr,sizeof(pr)); cout<<"nn record updated..."; found=1; } } fp.close(); if(found==0) cout<<"nn record not found..."; getch(); } // FUNCATION TO DELETE THE RECORD OF FILE void delete_product() { int no; clrscr();
  • 11. 8 | P a g e cout<<"nn Detail record "; cout<<"nn Please enter the product no.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(pr))) { if(pr.retpno()!=no) { fp2.write((char*)&pr,sizeof(pr)); } } fp2.close(); fp.close(); remove("shop.dat"); rename("temp.dat","shop.dat"); cout<<"nn Record deleted...."; getch(); } //FUNCTION TO DISPLAY ALL PRODUCT PRICE LIST void menu() { clrscr(); fp.open("shop.dat",ios::in); if(!fp) { cout<<"ERROR!!nNFile couldn't be openn go to admin menu to create file "; cout<<"n Program is closing...."; getch(); exit(0); } cout<<"nnt PRODUCT MENU nn"; cout<<"============================================ ====n"; cout<<"PnottNamettPRICEn"; cout<<"============================================ ====n"; while(fp.read((char*)&pr,sizeof(pr)))
  • 12. 9 | P a g e { cout<<pr.retpno()<<"tt"<<pr.retname()<<"tt"<<pr.retprice()<<end l; } fp.close(); cout<<"n================="; cout<<"nPlace your order"; cout<<"n=================n"; } //FUNCTION TO PLACE ORDER AND GENERATING BILL FOR PRODUCTS void place_order() { int order_arr[50],quan[50],c=0; int amt,damt,tamt,tdis; int total=0; char ch='y'; order_arr[50]=0; menu(); /* cout<<"n================="; cout<<"nPlace your order"; cout<<"n=================n"; */ do{ cout<<"n Enter the product no of the product::"; cin>>order_arr[c]; if(order_arr[c]<7) { cout<<"n Quantity in number::"; cin>>quan[c]; } else{ cout<<"product not available"<<endl;} c++; cout<<" Do you want order another product?(y/n)"; ch=getch(); if(ch=='y'||ch=='Y') { menu(); } else { break;
  • 13. 10 | P a g e } }while(1); cout<<"n Thank you for placing the order..."; getch(); clrscr(); cout<<"nn *********************************INVOICE*****************************n"; cout<<"n Pr no."<<" "<<"Pr name"<<" " <<"Quantity"<<" " <<"Price"<<" "<<"Amount"<<" "<<"Amount after discountn"; for(int x=0;x<=c;x++) { fp.open("shop.dat",ios::in); // fp.read((char*)&pr,sizeof(pr)); while(!fp.eof()) { fp.read((char*)&pr,sizeof(pr)); if(pr.retpno()==order_arr[x]) { amt=pr.retprice()*quan[x] ; // cout<<"amt:"<<amt<<endl; tamt=(amt*quan[x]); tdis=pr.retdis()*quan[x]; // cout<<"tdis:"<<tdis<<endl; damt=amt-tdis; // cout<<"damt:"<<damt; cout<<"n"<<" "<<order_arr[x]<<"t "<<pr.retname()<<"tt "<<quan[x]<<"t "<<pr.retprice()<<"t "<<amt<<" t "<<damt; total=total+damt; } } fp.close(); } cout<<"nnttttttt TOTAL="<<total; getch(); } //INTRODUCTION FUNCTION void intro() { clrscr();
  • 14. 11 | P a g e gotoxy(31,11); cout<<" SUPER MARKET"; gotoxy(35,14); cout<<"BILLING"; gotoxy(35,17); cout<<"PROJECT"; cout<<"nntt MADE BY: RESHMA KODWANI AND KIRTI KUMAWAT"; cout<<"ntt COLLEGE: DEZYNE E'COLE COLLEGE"; getch(); } //ADMINSTRATOR MENU FUNCTION void admin_menu() { l1: // l2: l3: l4: l5: l6: clrscr(); char ch2; cout<<"nn ADMIN MENU"; cout<<"nn 1. CREATE PRODUCT"; cout<<"nn 2. DISPLAY ALL PRODUCT"; cout<<"nn 3. SEARCH THE SPRCIFC PRODUCT"; cout<<"nn 4. MODIFY PRODUCT"; cout<<"nn 5. DELETE PRODUCT"; cout<<"nn 6. VIEW PRODUCT MENU"; cout<<"nn 7. BACK TO MAIN MENU"; cout<<"nn Please enter your choice (1-7)"; ch2=getche(); switch(ch2) { case '1':clrscr(); write_product(); goto l1; break; case '2':display_all(); goto l1; break;
  • 15. 12 | P a g e case'3': int num; clrscr(); cout<<"nn Please enter the product no "; cin>>num; display_sp(num); goto l3; break; case '4': modify_product(); goto l4; break; case '5': delete_product(); goto l5; break; case '6':menu(); getch(); goto l6; case'7':break; default:cout<<"a"; admin_menu(); } } // THE MAIN FUNCTION OF PROGRAM void main() { char ch; intro(); do{ clrscr(); textcolor(6); cout<<"nnt MAIN MENU"; cout<<"nnt 01. CUSTOMER"; cout<<"nnt 02. ADMINSTRTOR"; cout<<"nnt 03. EXIT"; cout<<"nnt Please select your options(1-3)"; ch=getche(); switch(ch) { case '1':clrscr(); place_order();
  • 16. 13 | P a g e getch(); break; case '2': admin_menu(); break; case '3':exit(0); default:cout<<"a"; } }while(ch!='3'); } //END OF PROGRAM
  • 17. 14 | P a g e THANK YOU