SlideShare a Scribd company logo
This is to certify that Master Harsh Kumar of Class XII
Sc. has prepared the report on the project entitled “Super
Market Billing”. The report is the result of his efforts and
endeavors. The report is found worthy of acceptance as
final project report for the subject Computer Science of
Class XII. He has prepared the report under my guidance.
(Mr. Manoj Kumar Singh)
PGT (computer science)
Department of Computer Science
Kendriya Vjdyalaya, Khagaria
The project report entitled
“Super Market Billing”
Submitted by Harsh Kumar of Class XII Sci.
for the CBSE Senior secondary examination
class XII of Computer Science at Kendriya
Vidyalaya, Khagaria has been examined.
SIGNATURE OF EXAMINER
I hereby declare that the project work
entitled “Super Market Billing”, submitted to
department of computer science, Kendriya
Vidyalaya, Khagaria is prepared by me. All the
coding is result of my personal efforts.
HARSH KUMAR
Class- XII Sci.
I would like to express a deep sense of thanks to
my project guide Mr. Manoj Kumar Singh Sir for
guiding me immensely though the course of the
project. He always evinced keen interest in my
work. His constructive advice and constant
motivation have been responsible for the
successful completion of this project.
My sincere thanks go to Mr. Yashdeep Rohilla, our
principal sir, for His coordination in extending
every possible support for the completion of this
project.
I also thanks to my parents for their motivation
and support. I must thanks to my classmates for
their timely help and support for compilation of
this project.
Last but not the least; I would like to thank all
those who had helped directly or indirectly
toward the completion of this project.
--Certificate
--Declaration
--Acknowledgement
--Hardware and software requirements
--Classes and function used
--Header files used
--Files generated
--Working description
--Coding
--Output screen
--Bibliography
The platform used is C++. Hence we
decided to use Microsoft Visual Studio
2010/2008 edition (Professional Edition).
For optional coding and easy debugging we
used Microsoft Visual Studio 2008 edition
and made explicit .cpp files.
Henceforth for optimal usage of such
software a windows based operating system
preferably Windows vista/7/XP must be
there. Also on the hardware part any system
having Windows Vista/7/XP installed will
suffice.
Class:
Product
Functions
 create_product():
This function is to be used by
theadministrator to add new products to
their list.
• show_product():
This function is used bytheadministrator
to display the details of all the products.
• retprice():
It returns the price of theproduct.
• retpno():
It returns the product number.
• retname():
It returns the name of the product.
• retdis():
It returns the discount available on the
product
• fstream:
The object declared for this class isfp. It
isthe predefined class used for both File-
to-Memory/Memory-to-File linking.
• write_product():
This function writes the informationabout
the product in the file
• display_all():
This function displays all records.
• display_sp():
This function displays some
specificrecordsbased on the product
number entered by the user.
• modify_product():
This function modifies the product details
by entering the product number.
• delete_product():
This function deletes the product by
entering the product number
• menu():
This function the product number, its
name and its price.
• place_order():
This function places order and generates
bill for the products bought.
• box():
This function is used to create outlines
around the outputs.
• intro():
This function displays the project name.
• admin_menu():
This function displays a list of functionto
be operated by administrator to
modify/updateproducts details .The
function uses above user-
definedfunctions.
• main():
This is the main function which just
theMAINMENUfrom where the control is
transferred to otherfunctions
 fstream.h- for file handling, cin, cout,
open(),close(),seekp()
 process.h- for exit() function
 conio.h- for clrscr(), getch() and
gotoxy(X,Y) functions
 stdio.h- for standard I/O operations
 string.h- for string handling
DATA FILES
SHOP.DAT
PROGRAM FILE
super-market-billing.CPP
OBJECT FILE
SUPER-~1.OBJ
EXECUTION FILE
SUPER-~1.EXE
Work in the Supermarket will be done in the
following way the product will come in the store.
 The Administrator will enter the information of
theproduct in database and price and
discountavailable for each product.
 The customer will come and take the basket with
him/her and choose the product and take it to the
counter.
The bill calculating operator will enter the
productnumber then it will show its information and
price and the bill will be calculated and total payment
will be shown.
 Customer will pay for the products.
/*----------Super Market Billing-------------*/
/*Header File*/
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
#include<process.h>
#include<fstream.h>
/*Class*/
class product
{
int pno;
char name[50];
float price,qty,tax,dis;
public:
product()
{
pno=000;
strcpy(name,"...");
price=000;
qty=000;
tax=000;
dis=000;
}
void create_product()
{
cout<<"Please Enter The Product No.
of The Product: ";
cin>>pno;
cout<<"nnPlease Enter The Name of
The Product: ";
gets(name);
cout<<"nPlease Enter The Price of
The Product: ";
cin>>price;
cout<<"nPlease Enter The Discount
(%): ";
cin>>dis;
}
void show_product()
{
cout<<"nThe Product No. of The
Product: "<<pno;
cout<<"nThe Name of The Product: ";
puts(name);
cout<<"nThe Price of The Product:
"<<price;
cout<<"nDiscount: "<<dis;
}
int retpno()
{
return pno;
}
float retprice()
{
return price;
}
char* retname()
{
return name;
}
int retdis()
{
return dis;
}
}; //class ends here
/*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(product));
fp.close();
cout<<"nnThe Product Has Been Created ";
getch();
}
/*Function to read all records from file*/
void display_all()
{
clrscr();
cout<<"nnnttDISPLAY ALL RECORD
!!!nn";
fp.open("Shop.dat",ios::in);
while(fp.read((char*)&pr,sizeof(product)))
{
pr.show_product();
cout<<"nn=============================n";
getch();
}
fp.close();
getch();
}
/*Function to read specific record from
file*/
void display_sp(int n)
{
int flag=0;
fp.open("Shop.dat",ios::in);
while(fp.read((char*)&pr,sizeof(product)))
{
if(pr.retpno()==n)
{
clrscr();
pr.show_product();
flag=1;
}
}
fp.close();
if(flag==0)
cout<<"nnrecord not exist";
getch();
}
/*Function to modify record of file*/
void modify_product()
{
int no,found=0;
clrscr();
cout<<"nntTo Modify ";
cout<<"nntPlease Enter The Product No. of
The Product: ";
cin>>no;
fp.open("Shop.dat",ios::in|ios::out);
while(fp.read((char*)&pr,sizeof(product)) &&
found==0)
{
if(pr.retpno()==no)
{
pr.show_product();
cout<<"nPlease Enter The New Details
of Product:n";
pr.create_product();
int pos=-1*sizeof(pr);
fp.seekp(pos,ios::cur);
fp.write((char*)&pr,sizeof(product));
cout<<"nnt Record Updated";
found=1;
}
}
fp.close();
if(found==0)
cout<<"nn Record Not Found ";
getch();
}
/*Function to delete record of file*/
void delete_product()
{
int no;
clrscr();
cout<<"nnntDelete Record";
cout<<"nnPlease Enter The product no. of
The Product You Want To Delete: ";
cin>>no;
fp.open("Shop.dat",ios::in|ios::out);
fstream fp2;
fp2.open("Temp.dat",ios::out);
fp.seekg(0,ios::beg);
while(fp.read((char*)&pr,sizeof(product)))
{
if(pr.retpno()!=no)
{
fp2.write((char*)&pr,sizeof(product));
}
}
fp2.close();
fp.close();
remove("Shop.dat");
rename("Temp.dat","Shop.dat");
cout<<"nntRecord Deleted ..";
getch();
}
/*Function to display all products price
list*/
void menu()
{
clrscr();
fp.open("Shop.dat",ios::in);
if(!fp)
{
cout<<"ERROR!!! FILE COULD NOT BE OPEN";
cout<<"n Go To Admin Menu to create
File";
cout<<"nn Program is closing ....";
getch();
exit(0);
}
cout<<"nnttProduct MENUnn";
cout<<"=====================================
===============n";
cout<<"P.NO.ttNAMEttPRICEn";
cout<<"=====================================
===============n";
while(fp.read((char*)&pr,sizeof(product)))
{
cout<<pr.retpno()<<"t"<<pr.retname()<<"tt
"<<pr.retprice()<<n;
}
fp.close();
}
/*Function to place order and generating
bill for Products*/
void place_order()
{
int order_arr[50],quan[50],c=0;
float amt,damt,total=0;
char ch='Y';
menu();
cout<<"n============================";
cout<<"n PLACE YOUR ORDER";
cout<<"n============================n";
do{
cout<<"nnEnter The Product No. Of The
Product : ";
cin>>order_arr[c];
cout<<"nQuantity in number : ";
cin>>quan[c];
c++;
cout<<"nDo You Want To Order Another
Product ? (y/n)";
cin>>ch;
}while(ch=='y' ||ch=='Y');
cout<<"nnThank You For Placing The Order";
getch();
clrscr();
gotoxy(36,2);
cout<<"-INVOICE-n";
cout<<"nPr No.tPr Name tQuantity tPrice
tAmount ttAmount after discountn";
for(int x=0;x<=c;x++)
{
fp.open("Shop.dat",ios::in);
fp.read((char*)&pr,sizeof(product));
while(!fp.eof())
{
if(pr.retpno()==order_arr[x])
{
amt=pr.retprice()*quan[x];
damt=amt-(amt*pr.retdis()/100);
cout<<"n"<<order_arr[x]<<"t"<<pr.retname()
<<"tt"<<quan[x]<<"tt"<<pr.retprice()<<"t"<<
amt<<"tt"<<damt;
total+=damt;
}
fp.read((char*)&pr,sizeof(product));
}
fp.close();
}
gotoxy(36,10);
cout<<"TOTAL = "<<total;
getch();
}
/*Box*/
void box(void)
{
int i;
for(i=18;i<60;i++)
{
gotoxy(i,1);
cout<<"*";
}
for(i=18;i<60;i++)
{
gotoxy(i,3);
cout<<"*";
}
for(i=1;i<22;i++)
{
gotoxy(16,i);
cout<<"*";
}
for(i=18;i<60;i++)
{
gotoxy(i,21);
cout<<"*";
}
for(i=1;i<22;i++)
{
gotoxy(61,i);
cout<<"*";
}
}
/*INTRODUCTION FUNCTION*/
void intro()
{
clrscr();
box();
gotoxy(25,2);
cout<<"|----------WELCOME----------|";
gotoxy(32,5);
cout<<"|SUPER MARKET|";
gotoxy(34,6);
cout<<"|BILLING|";
gotoxy(34,10);
cout<<"-PROJECT-";
gotoxy(20,18);
cout<<"MADE BY : HARSH KUMAR";
gotoxy(20,19);
cout<<"SCHOOL : Kendriya Vidyalaya,
Khagaria";
getch();
}
/*ADMINSTRATOR MENU FUNCTION*/
void admin_menu()
{
clrscr();
box();
char ch2;
gotoxy(35,2);
cout<<"ADMIN MENU";
gotoxy(32,4);
cout<<"1.CREATE PRODUCT";
gotoxy(28,6);
cout<<"2.DISPLAY ALL PRODUCTS";
gotoxy(36,8);
cout<<"3.QUERY ";
gotoxy(32,10);
cout<<"4.MODIFY PRODUCT";
gotoxy(32,12);
cout<<"5.DELETE PRODUCT";
gotoxy(30,14);
cout<<"6.VIEW PRODUCT MENU";
gotoxy(30,16);
cout<<"7.BACK TO MAIN MENU";
gotoxy(36,18);
cout<<"8.EXIT";
gotoxy(25,20);
cout<<"Please Enter Your Choice (1-7) ";
ch2=getche();
switch(ch2)
{
case '1':
clrscr();
write_product();
break;
case '2':
display_all();
break;
case '3':
int num;
clrscr();
cout<<"nntPlease Enter The Product
No. ";
cin>>num;
display_sp(num);
break;
case '4':
modify_product();
break;
case '5':
delete_product();
break;
case '6':
menu();
getch();
case '7':
break;
case '8':
exit(0);
break;
default:
cout<<"a";
admin_menu();
}
}
/*THE MAIN FUNCTION OF PROGRAM*/
void main()
{
char ch;
intro();
do{
clrscr();
box();
gotoxy(34,2);
cout<<"MAIN MENU";
gotoxy(32,4);
cout<<"01. CUSTOMER";
gotoxy(30,6);
cout<<"02. ADMINISTRATOR";
gotoxy(34,8);
cout<<"03. EXIT";
gotoxy(25,10);
cout<<"Please Select Your Option (1-3) ";
ch=getche();
switch(ch)
{
case '1':
clrscr();
place_order();
getch();
break;
case '2':
admin_menu();
break;
case '3':
exit(1);
break;
default :
cout<<"alert:wrong choise";
break;
}
}while(ch!='3');
}
/*-------------END OF PROJECT----------------*/
/*Designed By: Harsh Kumar*/
Welcome Screen:
Main Menu:
Admin Menu:
Create Product:
Costumer :
Receipt:
 http://www.google.com/
 http://en.wikipedia.org
 Computer Science with C++ by Sumita Arora
 http://www.slideshare.net/

More Related Content

What's hot

Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
Mitul Patel
 
cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IP
D. j Vicky
 
computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12th
Nitesh Kushwaha
 
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
HIMANSHU .
 
C++ project on police station software
C++ project on police station softwareC++ project on police station software
C++ project on police station software
dharmenderlodhi021
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical File
Ashwin Francis
 
programming in C++ report
programming in C++ reportprogramming in C++ report
programming in C++ report
vikram 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
 
C++ project
C++ projectC++ project
C++ project
Sonu S S
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
D. j Vicky
 
MOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECT
MOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECTMOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECT
MOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECT
Sindhu Ashok
 
Computer science investigatory project- computer shop
Computer science investigatory project- computer shopComputer science investigatory project- computer shop
Computer science investigatory project- computer shop
Yash Panwar
 
Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 sol
IIUM
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project  12th CBSE Computer Science Project
12th CBSE Computer Science Project
Ashwin Francis
 
Module 2 | Object Oriented Programming with C++ | Basics of C++
Module 2 | Object Oriented Programming with C++ | Basics of C++Module 2 | Object Oriented Programming with C++ | Basics of C++
Module 2 | Object Oriented Programming with C++ | Basics of C++
ADITYATANDONKECCSE
 
Railway ticket Simple Program
Railway ticket Simple ProgramRailway ticket Simple Program
Railway ticket Simple Program
Ella Marie Wico
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
Debashis Rath
 
Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16
Indira Gnadhi National Open University (IGNOU)
 
CIS 115 Education Specialist / snaptutorial.com
CIS 115  Education Specialist / snaptutorial.comCIS 115  Education Specialist / snaptutorial.com
CIS 115 Education Specialist / snaptutorial.com
McdonaldRyan138
 

What's hot (20)

Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
 
cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IP
 
computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12th
 
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
 
C++ project on police station software
C++ project on police station softwareC++ project on police station software
C++ project on police station software
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical File
 
programming in C++ report
programming in C++ reportprogramming in C++ report
programming in C++ report
 
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)
 
C++ project
C++ projectC++ project
C++ project
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
 
MOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECT
MOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECTMOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECT
MOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECT
 
Computer science investigatory project- computer shop
Computer science investigatory project- computer shopComputer science investigatory project- computer shop
Computer science investigatory project- computer shop
 
Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 sol
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project  12th CBSE Computer Science Project
12th CBSE Computer Science Project
 
Bijender (1)
Bijender (1)Bijender (1)
Bijender (1)
 
Module 2 | Object Oriented Programming with C++ | Basics of C++
Module 2 | Object Oriented Programming with C++ | Basics of C++Module 2 | Object Oriented Programming with C++ | Basics of C++
Module 2 | Object Oriented Programming with C++ | Basics of C++
 
Railway ticket Simple Program
Railway ticket Simple ProgramRailway ticket Simple Program
Railway ticket Simple Program
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
 
Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16
 
CIS 115 Education Specialist / snaptutorial.com
CIS 115  Education Specialist / snaptutorial.comCIS 115  Education Specialist / snaptutorial.com
CIS 115 Education Specialist / snaptutorial.com
 

Similar to computerscience-170129081612.pdf

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
vikram mahendra
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
dezyneecole
 
Canteen management
Canteen managementCanteen management
Canteen management
Omkar Majukar
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
dezyneecole
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
D. j Vicky
 
Durgesh
DurgeshDurgesh
Durgesh
dkbossverma
 
C++ manual Report Full
C++ manual Report FullC++ manual Report Full
C++ manual Report Full
Thesis Scientist Private Limited
 
Store management along with output
Store management along with outputStore management along with output
Store management along with output
Anavadya Shibu
 
Pemrograman Python untuk Pemula
Pemrograman Python untuk PemulaPemrograman Python untuk Pemula
Pemrograman Python untuk Pemula
Oon Arfiandwi
 
OOPS using C++
OOPS using C++OOPS using C++
OOPS using C++
cpjcollege
 
Cbse computer science (c++) class 12 board project bank managment system
Cbse computer science (c++)  class 12 board project  bank managment systemCbse computer science (c++)  class 12 board project  bank managment system
Cbse computer science (c++) class 12 board project bank managment system
pranoy_seenu
 
Use of Classes and functions#include iostreamusing name.docx
 Use of Classes and functions#include iostreamusing name.docx Use of Classes and functions#include iostreamusing name.docx
Use of Classes and functions#include iostreamusing name.docx
aryan532920
 
I have the first program completed (not how request, but it works) a.pdf
I have the first program completed (not how request, but it works) a.pdfI have the first program completed (not how request, but it works) a.pdf
I have the first program completed (not how request, but it works) a.pdf
footworld1
 
Cis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comCis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.com
robertledwes38
 
Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shop
vikram mahendra
 
Behavior Driven GUI Testing
Behavior Driven GUI TestingBehavior Driven GUI Testing
Behavior Driven GUI Testing
Reginald Stadlbauer
 
Labsheet 7 FP 201
Labsheet 7 FP 201Labsheet 7 FP 201
Labsheet 7 FP 201rohassanie
 
PT1420 Modules in Flowchart and Visual Basic .docx
PT1420 Modules in Flowchart and Visual Basic             .docxPT1420 Modules in Flowchart and Visual Basic             .docx
PT1420 Modules in Flowchart and Visual Basic .docx
amrit47
 

Similar to computerscience-170129081612.pdf (20)

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
 
C++ super market
C++ super marketC++ super market
C++ super market
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
 
Canteen management
Canteen managementCanteen management
Canteen management
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
 
Durgesh
DurgeshDurgesh
Durgesh
 
C++ manual Report Full
C++ manual Report FullC++ manual Report Full
C++ manual Report Full
 
Store management along with output
Store management along with outputStore management along with output
Store management along with output
 
Pemrograman Python untuk Pemula
Pemrograman Python untuk PemulaPemrograman Python untuk Pemula
Pemrograman Python untuk Pemula
 
OOPS using C++
OOPS using C++OOPS using C++
OOPS using C++
 
Cbse computer science (c++) class 12 board project bank managment system
Cbse computer science (c++)  class 12 board project  bank managment systemCbse computer science (c++)  class 12 board project  bank managment system
Cbse computer science (c++) class 12 board project bank managment system
 
Use of Classes and functions#include iostreamusing name.docx
 Use of Classes and functions#include iostreamusing name.docx Use of Classes and functions#include iostreamusing name.docx
Use of Classes and functions#include iostreamusing name.docx
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
I have the first program completed (not how request, but it works) a.pdf
I have the first program completed (not how request, but it works) a.pdfI have the first program completed (not how request, but it works) a.pdf
I have the first program completed (not how request, but it works) a.pdf
 
Cis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comCis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.com
 
Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shop
 
Behavior Driven GUI Testing
Behavior Driven GUI TestingBehavior Driven GUI Testing
Behavior Driven GUI Testing
 
Labsheet 7 FP 201
Labsheet 7 FP 201Labsheet 7 FP 201
Labsheet 7 FP 201
 
PT1420 Modules in Flowchart and Visual Basic .docx
PT1420 Modules in Flowchart and Visual Basic             .docxPT1420 Modules in Flowchart and Visual Basic             .docx
PT1420 Modules in Flowchart and Visual Basic .docx
 

Recently uploaded

一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
PlanitIsrael
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
jyz59f4j
 
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
h7j5io0
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
h7j5io0
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
9a93xvy
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
ResDraft
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Mansi Shah
 
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdfPORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
fabianavillanib
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
ameli25062005
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
708pb191
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
ameli25062005
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
fastfixgaragedoor
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
asuzyq
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
7sd8fier
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 

Recently uploaded (20)

一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
 
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
 
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdfPORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
一比一原版(Columbia毕业证)哥伦比亚大学毕业证如何办理
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 

computerscience-170129081612.pdf

  • 1.
  • 2. This is to certify that Master Harsh Kumar of Class XII Sc. has prepared the report on the project entitled “Super Market Billing”. The report is the result of his efforts and endeavors. The report is found worthy of acceptance as final project report for the subject Computer Science of Class XII. He has prepared the report under my guidance. (Mr. Manoj Kumar Singh) PGT (computer science) Department of Computer Science Kendriya Vjdyalaya, Khagaria
  • 3. The project report entitled “Super Market Billing” Submitted by Harsh Kumar of Class XII Sci. for the CBSE Senior secondary examination class XII of Computer Science at Kendriya Vidyalaya, Khagaria has been examined. SIGNATURE OF EXAMINER
  • 4. I hereby declare that the project work entitled “Super Market Billing”, submitted to department of computer science, Kendriya Vidyalaya, Khagaria is prepared by me. All the coding is result of my personal efforts. HARSH KUMAR Class- XII Sci.
  • 5. I would like to express a deep sense of thanks to my project guide Mr. Manoj Kumar Singh Sir for guiding me immensely though the course of the project. He always evinced keen interest in my work. His constructive advice and constant motivation have been responsible for the successful completion of this project. My sincere thanks go to Mr. Yashdeep Rohilla, our principal sir, for His coordination in extending every possible support for the completion of this project. I also thanks to my parents for their motivation and support. I must thanks to my classmates for their timely help and support for compilation of this project. Last but not the least; I would like to thank all those who had helped directly or indirectly toward the completion of this project.
  • 6. --Certificate --Declaration --Acknowledgement --Hardware and software requirements --Classes and function used --Header files used --Files generated --Working description --Coding --Output screen --Bibliography
  • 7. The platform used is C++. Hence we decided to use Microsoft Visual Studio 2010/2008 edition (Professional Edition). For optional coding and easy debugging we used Microsoft Visual Studio 2008 edition and made explicit .cpp files. Henceforth for optimal usage of such software a windows based operating system preferably Windows vista/7/XP must be there. Also on the hardware part any system having Windows Vista/7/XP installed will suffice.
  • 8. Class: Product Functions  create_product(): This function is to be used by theadministrator to add new products to their list. • show_product(): This function is used bytheadministrator to display the details of all the products. • retprice(): It returns the price of theproduct. • retpno(): It returns the product number.
  • 9. • retname(): It returns the name of the product. • retdis(): It returns the discount available on the product • fstream: The object declared for this class isfp. It isthe predefined class used for both File- to-Memory/Memory-to-File linking. • write_product(): This function writes the informationabout the product in the file • display_all(): This function displays all records. • display_sp(): This function displays some specificrecordsbased on the product number entered by the user.
  • 10. • modify_product(): This function modifies the product details by entering the product number. • delete_product(): This function deletes the product by entering the product number • menu(): This function the product number, its name and its price. • place_order(): This function places order and generates bill for the products bought. • box(): This function is used to create outlines around the outputs. • intro(): This function displays the project name.
  • 11. • admin_menu(): This function displays a list of functionto be operated by administrator to modify/updateproducts details .The function uses above user- definedfunctions. • main(): This is the main function which just theMAINMENUfrom where the control is transferred to otherfunctions
  • 12.  fstream.h- for file handling, cin, cout, open(),close(),seekp()  process.h- for exit() function  conio.h- for clrscr(), getch() and gotoxy(X,Y) functions  stdio.h- for standard I/O operations  string.h- for string handling
  • 13. DATA FILES SHOP.DAT PROGRAM FILE super-market-billing.CPP OBJECT FILE SUPER-~1.OBJ EXECUTION FILE SUPER-~1.EXE
  • 14. Work in the Supermarket will be done in the following way the product will come in the store.  The Administrator will enter the information of theproduct in database and price and discountavailable for each product.  The customer will come and take the basket with him/her and choose the product and take it to the counter. The bill calculating operator will enter the productnumber then it will show its information and price and the bill will be calculated and total payment will be shown.  Customer will pay for the products.
  • 15. /*----------Super Market Billing-------------*/ /*Header File*/ #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> #include<process.h> #include<fstream.h> /*Class*/ class product { int pno; char name[50]; float price,qty,tax,dis; public: product() { pno=000; strcpy(name,"..."); price=000; qty=000; tax=000; dis=000; } void create_product() { cout<<"Please Enter The Product No. of The Product: ";
  • 16. cin>>pno; cout<<"nnPlease Enter The Name of The Product: "; gets(name); cout<<"nPlease Enter The Price of The Product: "; cin>>price; cout<<"nPlease Enter The Discount (%): "; cin>>dis; } void show_product() { cout<<"nThe Product No. of The Product: "<<pno; cout<<"nThe Name of The Product: "; puts(name); cout<<"nThe Price of The Product: "<<price; cout<<"nDiscount: "<<dis; } int retpno() { return pno; } float retprice() { return price; } char* retname() {
  • 17. return name; } int retdis() { return dis; } }; //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(product)); fp.close(); cout<<"nnThe Product Has Been Created "; getch(); } /*Function to read all records from file*/ void display_all() { clrscr(); cout<<"nnnttDISPLAY ALL RECORD !!!nn"; fp.open("Shop.dat",ios::in); while(fp.read((char*)&pr,sizeof(product))) { pr.show_product();
  • 18. cout<<"nn=============================n"; getch(); } fp.close(); getch(); } /*Function to read specific record from file*/ void display_sp(int n) { int flag=0; fp.open("Shop.dat",ios::in); while(fp.read((char*)&pr,sizeof(product))) { if(pr.retpno()==n) { clrscr(); pr.show_product(); flag=1; } } fp.close(); if(flag==0) cout<<"nnrecord not exist"; getch(); } /*Function to modify record of file*/ void modify_product() { int no,found=0; clrscr(); cout<<"nntTo Modify ";
  • 19. cout<<"nntPlease Enter The Product No. of The Product: "; cin>>no; fp.open("Shop.dat",ios::in|ios::out); while(fp.read((char*)&pr,sizeof(product)) && found==0) { if(pr.retpno()==no) { pr.show_product(); cout<<"nPlease Enter The New Details of Product:n"; pr.create_product(); int pos=-1*sizeof(pr); fp.seekp(pos,ios::cur); fp.write((char*)&pr,sizeof(product)); cout<<"nnt Record Updated"; found=1; } } fp.close(); if(found==0) cout<<"nn Record Not Found "; getch(); } /*Function to delete record of file*/ void delete_product() { int no; clrscr(); cout<<"nnntDelete Record"; cout<<"nnPlease Enter The product no. of The Product You Want To Delete: "; cin>>no;
  • 20. fp.open("Shop.dat",ios::in|ios::out); fstream fp2; fp2.open("Temp.dat",ios::out); fp.seekg(0,ios::beg); while(fp.read((char*)&pr,sizeof(product))) { if(pr.retpno()!=no) { fp2.write((char*)&pr,sizeof(product)); } } fp2.close(); fp.close(); remove("Shop.dat"); rename("Temp.dat","Shop.dat"); cout<<"nntRecord Deleted .."; getch(); } /*Function to display all products price list*/ void menu() { clrscr(); fp.open("Shop.dat",ios::in); if(!fp) { cout<<"ERROR!!! FILE COULD NOT BE OPEN"; cout<<"n Go To Admin Menu to create File"; cout<<"nn Program is closing ...."; getch(); exit(0); }
  • 21. cout<<"nnttProduct MENUnn"; cout<<"===================================== ===============n"; cout<<"P.NO.ttNAMEttPRICEn"; cout<<"===================================== ===============n"; while(fp.read((char*)&pr,sizeof(product))) { cout<<pr.retpno()<<"t"<<pr.retname()<<"tt "<<pr.retprice()<<n; } fp.close(); } /*Function to place order and generating bill for Products*/ void place_order() { int order_arr[50],quan[50],c=0; float amt,damt,total=0; char ch='Y'; menu(); cout<<"n============================"; cout<<"n PLACE YOUR ORDER"; cout<<"n============================n"; do{ cout<<"nnEnter The Product No. Of The Product : "; cin>>order_arr[c]; cout<<"nQuantity in number : "; cin>>quan[c]; c++;
  • 22. cout<<"nDo You Want To Order Another Product ? (y/n)"; cin>>ch; }while(ch=='y' ||ch=='Y'); cout<<"nnThank You For Placing The Order"; getch(); clrscr(); gotoxy(36,2); cout<<"-INVOICE-n"; cout<<"nPr No.tPr Name tQuantity tPrice tAmount ttAmount after discountn"; for(int x=0;x<=c;x++) { fp.open("Shop.dat",ios::in); fp.read((char*)&pr,sizeof(product)); while(!fp.eof()) { if(pr.retpno()==order_arr[x]) { amt=pr.retprice()*quan[x]; damt=amt-(amt*pr.retdis()/100); cout<<"n"<<order_arr[x]<<"t"<<pr.retname() <<"tt"<<quan[x]<<"tt"<<pr.retprice()<<"t"<< amt<<"tt"<<damt; total+=damt; } fp.read((char*)&pr,sizeof(product)); } fp.close(); } gotoxy(36,10); cout<<"TOTAL = "<<total; getch(); }
  • 24. clrscr(); box(); gotoxy(25,2); cout<<"|----------WELCOME----------|"; gotoxy(32,5); cout<<"|SUPER MARKET|"; gotoxy(34,6); cout<<"|BILLING|"; gotoxy(34,10); cout<<"-PROJECT-"; gotoxy(20,18); cout<<"MADE BY : HARSH KUMAR"; gotoxy(20,19); cout<<"SCHOOL : Kendriya Vidyalaya, Khagaria"; getch(); } /*ADMINSTRATOR MENU FUNCTION*/ void admin_menu() { clrscr(); box(); char ch2; gotoxy(35,2); cout<<"ADMIN MENU"; gotoxy(32,4); cout<<"1.CREATE PRODUCT"; gotoxy(28,6); cout<<"2.DISPLAY ALL PRODUCTS"; gotoxy(36,8); cout<<"3.QUERY "; gotoxy(32,10); cout<<"4.MODIFY PRODUCT"; gotoxy(32,12);
  • 25. cout<<"5.DELETE PRODUCT"; gotoxy(30,14); cout<<"6.VIEW PRODUCT MENU"; gotoxy(30,16); cout<<"7.BACK TO MAIN MENU"; gotoxy(36,18); cout<<"8.EXIT"; gotoxy(25,20); cout<<"Please Enter Your Choice (1-7) "; ch2=getche(); switch(ch2) { case '1': clrscr(); write_product(); break; case '2': display_all(); break; case '3': int num; clrscr(); cout<<"nntPlease Enter The Product No. "; cin>>num; display_sp(num); break; case '4': modify_product(); break; case '5': delete_product(); break; case '6': menu();
  • 26. getch(); case '7': break; case '8': exit(0); break; default: cout<<"a"; admin_menu(); } } /*THE MAIN FUNCTION OF PROGRAM*/ void main() { char ch; intro(); do{ clrscr(); box(); gotoxy(34,2); cout<<"MAIN MENU"; gotoxy(32,4); cout<<"01. CUSTOMER"; gotoxy(30,6); cout<<"02. ADMINISTRATOR"; gotoxy(34,8); cout<<"03. EXIT"; gotoxy(25,10); cout<<"Please Select Your Option (1-3) "; ch=getche(); switch(ch) { case '1': clrscr();
  • 27. place_order(); getch(); break; case '2': admin_menu(); break; case '3': exit(1); break; default : cout<<"alert:wrong choise"; break; } }while(ch!='3'); } /*-------------END OF PROJECT----------------*/ /*Designed By: Harsh Kumar*/
  • 31.  http://www.google.com/  http://en.wikipedia.org  Computer Science with C++ by Sumita Arora  http://www.slideshare.net/