0% found this document useful (0 votes)
58 views

Project Computer Science

This document describes a student project for a canteen management system. It was created by four students, Avneesh, Rajat, Ashish Bhardwaj, and Shubham under the guidance of their teacher Mr. Naveen Yadav. The project allows users to purchase items from the canteen, view purchase details and customer information, add new customers, and check available quantities of items. It utilizes header files for input/output functions and includes coding, outputs, and screenshots of the working program.

Uploaded by

Avneesh Gautam
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Project Computer Science

This document describes a student project for a canteen management system. It was created by four students, Avneesh, Rajat, Ashish Bhardwaj, and Shubham under the guidance of their teacher Mr. Naveen Yadav. The project allows users to purchase items from the canteen, view purchase details and customer information, add new customers, and check available quantities of items. It utilizes header files for input/output functions and includes coding, outputs, and screenshots of the working program.

Uploaded by

Avneesh Gautam
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

CANTEEN MANAGEMENT

SYSTEM
SUBMITTED TO
CENTRAL BOARD OF SECONDARY EDUCATION

BY

AVNEESH
RAJAT
ASHISH BHARDWAJ
SHUBHAM

UNDER THE GUIEDENCE OF


MR. NAVEEN YADAV(PGT)

KENDRIYA VIDYALAYA PUNJAB LINES MEERUT CANTT

1|Page

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

Certificate
Acknowledgement
Working description of project
Header files and their purpose
Files generated
Coding & outputs

2|Page

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

CERTIFICATE
This is to certify that Avneesh, Rajat,
Ashish & Shubham of class XII has
completed this project titled
Canteen Management system
under My guidance and this project
may be considered as the part of the
practical Exam conducted by CBSE.

MR. NAVEEN YADAV (PGT)


DATE:

3|Page

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

ACKNOWLEDGEMENT
It would be my utmost pleasure to express my
sincere thanks to My Computer Science
Teacher MR NAVEEN YADAV. in providing a
helping hand in this project. Her unflagging
patience, creativity and immense knowledge
that she shared with me have proved highly
beneficial to me and have made my Project File
both possible and successful.
Thanks to you sir once again.

4|Page

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

HEADER FILES USED


AND THEIR PURPOSE

1. IOSTREAM.H for file handling, cin and cout


2. PROCESS.H for exit() function
3. CONIO.H

for clrscr() and getch() functions

4. STDIO.H

for standard I/O operations

5. DOS.H

for execution of program

6. STRING.H

for string handling

7. IOMANIP.H for C++ streams I/O manipulators

5|Page

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

WORKING DESCRIPTION
OF

PROJECT
This program is designed to keep the canteen
record. This program consists of five options as
follows

1. TO PURCHASE
2. TO SHOW DETAILS
3. TO ADD NEW CUSTOMER
4. TO SHOW QUANTITY AVAILABLE
5. TO EXIT

6|Page

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

CODING

bj

/*

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
& COMPUTER SCIENCE PROJECT WORK &
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

SOFTWARE FOR THE USE OF CANTEEN DEPARTMENT

////INTRODUCTION////
////////////////////////////////////
////////NAME:- AVNEESH, RAJAT,//////
//////////ASHISH & SHUBHAM /////////
///////////CLASS:- XII 'D' /////////
////////////////////////////////////
#############################
# CANTEEN MANAGEMENT SYSTEM #
#############################

*/

/*## HEADER FILES ##*/


#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
#include<process.h>
#include<iomanip.h>
#include<dos.h>

main()
7|Page

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

{
clrscr();
unsigned int sum, add, d, i, j, e, f, g, h, k, l, w, x, y, z;
unsigned int bir=10, per=36, der=110, mur=8, par=110, cor=90, twr=1199, lur=17,
tir=107, rer=1499;
int qubis=1000, abis=0, qupep=1000, apep=0, quden=110, aden=0, qumun=1000,
amun=0, quperk=500, aper=0, qucoc=400, acoc=0, qutit=100, atit=0, qulux=1000,
alux=0, qutid=1000, atid=0, quree=300, aree=0;
unsigned int m=0, n=0, o=0, p=0, q=0, r=0, s=0, t=0, u=0, v=0;
char name[50], rank[10], pu, c[20], a[15], b[15], ok;
clrscr();
cout<<"\n\t

eeeeeeee

cout<<"\n\t

cout<<"\n\t

ww

cout<<"\n\t

w w

eeeeeeee

";

cout<<"\n\t

w w

w w

eeeeeeee

";

cout<<"\n\t

w w

w w

";

cout<<"\n\t

ww

ww

";

cout<<"\n\t

cout<<"\n c c c c c c c

";

";
l

eeeeeeee
ooooooo

";

l l l l l l l l";

e e e e e e e e ";

cout<<"\n c

mm

mm

cout<<"\n c

m m

m m

cout<<"\n c

m m

m m

eeeeeeee

cout<<"\n c

eeeeeeee

cout<<"\n c

m m

";

cout<<"\n c

mm

";

eeeeeeee

cout<<"\n c c c c c c c

ooooooo

e ";
";
";
";

";

getch();
clrscr();
8|Page

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

main:;
cout<<"\n\n\n\t\t\t

KVPL CANTEEN MANAGEMENT";

cout<<"\n\n\nCONSUMER INFORMATION";
cout<<"\n\n\n\n NAME:";
gets(name);
cout<<"\n RANK:";
gets(rank);
cout<<"\n SERVICE NO.:";
cin>>a;
cout<<"\n SMART CARD NO.:";
cin>>b;
cout<<"\n PHONE NO.:";
cin>>c;
cout<<"\n ENTER BILL NO.:";
cin>>i;
again:;
clrscr();
cout<<"\n\n\n\n1.MENU & PURCHASE";
cout<<"\n\n\n2.DETAILS";
cout<<"\n\n\n3.NEW CUSTOMER";
cout<<"\n\n\n4.QUANTITY AVAILABLE";
cout<<"\n\n\n5.EXIT";
cout<<"\n\n\nENTER YOUR CHOICE:";
cin>>d;
clrscr();
switch(d)
{
case 1:
9|Page

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

cout<<"\nITEMS\t\t\t\t\t\t\t

RATE(RS)";

cout<<"\n\n\nBISCUTE\t\t\t\t\t\t\t\t10 ";
cout<<"\n\nPEPSODENT\t\t\t\t\t\t\t36";
cout<<"\n\nDENIM POWDER\t\t\t\t\t\t\t110 ";
cout<<"\n\nMUNCH\t\t\t\t\t\t\t\t8 ";
cout<<"\n\nPARK AVENUE PERFUME\t\t\t\t\t\t110 ";
cout<<"\n\nCOCONUT HAIR OIL\t\t\t\t\t\t90 ";
cout<<"\n\nTITAN WATCH\t\t\t\t\t\t\t1199 ";
cout<<"\n\nLUX SOAP\t\t\t\t\t\t\t17 ";
cout<<"\n\nTIDE\t\t\t\t\t\t\t\t107 ";
cout<<"\n\nREEBOK SHOES\t\t\t\t\t\t\t1499 ";
start:
cout<<"\n\n\nDO YOU WANT TO PURCHASE(Y/N):\n";
cin>>pu;
if(pu=='Y'||pu=='y')
{switch(pu)
case 1:
clrscr();
cout<<"\n\n\n\t\t\t\tPURCHASE LIST";
bis:;
cout<<"\nBISCUTE(MAX 30): ";
cin>>m;

if(m>30)
{
cout<<"Enter Quantity Smaller than 30";
getch();
goto bis;
10 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

}
else
abis=qubis-m;
pep:;
cout<<"\nPEPSODENT(MAX 2): ";
cin>>n;
if(n>2)
{
cout<<"Enter Quantity Smaller than 2";
getch();
goto pep;
}
else
apep=qupep-n;
den:;
cout<<"\nDENIM POWDER(MAX 2): ";
cin>>o;
if(o>2)
{
cout<<"Enter Quantity Smaller then 2";
getch();
goto den;
}
else
aden=quden-o;
mun:;
cout<<"\nMUNCH(MAX 50): ";
cin>>p;
11 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

if(p>50)
{
cout<<"Enter Quantity Smaller then 50";
getch();
goto mun;
}
else
amun=qumun-p;
park:;
cout<<"\nPARK AVENUE PERFUME(MAX 2): ";
cin>>q;

if(q>2)
{
cout<<"Enter Quantity Smaller then 2";
getch();
goto park;
}
else
aper=quperk-q;
coco:;
cout<<"\nCOCONUT HAIR OIL(MAX 2): ";
cin>>r;

if(r>2)
{
cout<<"Enter Quantity Smaller then 2";
12 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

getch();
goto coco;
}
else
acoc=qucoc-r;
titan:;
cout<<"\nTITAN WATCH(MAX 2): ";
cin>>s;

if(s>2)
{
cout<<"Enter Quantity Smaller then 2";
getch();

goto titan;
}
else
atit=qutit-s;
lux:;
cout<<"\nLUX SOAP(MAX 10): ";
cin>>t;

if(t>10)
{
cout<<"Enter Quantity Smaller then 10";
getch();
goto lux;
}
13 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

else
alux=qulux-t;
tid:;
cout<<"\nTIDE(MAX 2): ";
cin>>u;

if(u>2)
{
cout<<"Enter Quantity Smaller then 2";
getch();
goto tid;
}
else
atid=qutid-u;
ree:;
cout<<"\nREEBOK SHOES(MAX 4): ";
cin>>v;

if(v>4)
{
cout<<"Enter Quantity Smaller then 4";
getch();
goto ree;
}
else
aree=quree-v;
cout<<"\n";
clrscr();
14 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

cout<<"\n\n\n\n\n\n\t\t\t\tAFFWA CANTEEN\n";
cout<<"\n\n\t\t\t\t CASH MEMO\n";
cout<<"\n\nBILL NO.:"<<i;
cout<<"\n\nNAME:";
cout<<name;
cout<<"\n\nRANK:"<<rank;
cout<<"\n\nSERVICE NO.:"<<a;
cout<<"\n\nSMART CARD NO.:"<<b;
cout<<"\n\nPHONE NO.:"<<c;
cout<<"\n\n\n\n\n";
cout<<"===================================================================
============";
cout<<"\nITEMS"

<<setw(40)<<"QUANTITY"<<setw(35)<<"PRICE(Rs.)";

cout<<"===================================================================
============";
if(m>0)
cout<<"\n\nBISCUTE"

<<setw(38)<<m<<setw(28)<<"Rs."<<m*bir;

if(n>0)
cout<<"\n\nPEPSODENT"

<<setw(36)<<n<<setw(28)<<"Rs."<<n*per;

if(o>0)
cout<<"\n\nDENIM POWDER"

<<setw(33)<<o<<setw(28)<<"Rs."<<o*der;

if(p>0)
cout<<"\n\nMUNCH"

<<setw(40)<<p<<setw(28)<<"Rs."<<p*mur;

if(q>0)
cout<<"\n\nPARK AVENUE PERFUME"<<setw(26)<<q<<setw(28)<<"Rs."<<q*par;
if(r>0)
cout<<"\n\nCOCONUT HAIR OIL" <<setw(29)<<r<<setw(28)<<"Rs."<<r*cor;
if(s>0)
15 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

cout<<"\n\nTITAN WATCH"

<<setw(34)<<s<<setw(28)<<"Rs."<<s*twr;

if(t>0)
cout<<"\n\nLUX SOAP"

<<setw(37)<<t<<setw(28)<<"Rs."<<t*lur;

if(u>0)
cout<<"\n\nTIDE"

<<setw(41)<<u<<setw(28)<<"Rs."<<u*tir;

if(v>0)
cout<<"\n\nREEBOK SHOES"

<<setw(33)<<v<<setw(28)<<"Rs."<<v*rer;

e=m*bir;
f=n*per;
g=o*der;
h=p*mur;
k=q*par;
l=r*cor;
w=s*twr;
x=t*lur;
y=u*tir;
z=v*rer;
sum=e+f+g+h+k+l+w+x+y+z;
add=m+n+o+p+q+r+s+t+u+v;
cout<<"\n==================================================================
=============";
cout<<"\nTOTAL:"<<setw(40)<<add<<setw(27)<<"Rs."<<sum;
cout<<"\n\nTHANK YOU .\t\t\t

VISIT US AGAIN\n";

getch();
clrscr();
goto again;
}
else
16 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

{goto again;

case 2:
cout<<"\n\n\n\n\n\t\t\t\tCANTEEN DETAILS";
cout<<"\n\n#TIMING:\n\n 11 AM TO 02 PM \n 03 PM TO 05 PM";
cout<<"\n\n#CANTEEN WILL CLOSED ON TUESDAY";
cout<<"\n\n#GOODS ONCE SOLD WILL NOT BE EXCHANGED/REPLACED";
cout<<"\n\n#TAKE YOUR SMART CARD WITH YOU";
cout<<"\n\n#COLLECT YOUR SMART CARD & BILL AFTER PAYMENT";
cout<<"\n\n#DO NOT BREAK ANY CANTEEN ITEMS";
getch();
clrscr();
goto again;
case 3:
goto main;
case 4:
if(m>0||n>0||o>0||p>0||q>0||r>0||s>0||t>0||u>0||v>0)
{cout<<"\n\t\t\tItems Avaliable in Canteen.\n\n\n";
cout<<"===================================================================
============";
cout<<"\nITEMS"

<<setw(40)<<"QUANTITY";

cout<<"\n==================================================================
=============";
cout<<"\n\n\nBISCUTE"
cout<<"\n\n\nPEPSODENT"
17 | P a g e

<<setw(38)<<abis;
<<setw(36)<<apep;

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

cout<<"\n\n\nDENIM POWDER"
cout<<"\n\n\nMUNCH"

<<setw(33)<<aden;

<<setw(40)<<amun;

cout<<"\n\n\nPARK AVENUE PERFUME"<<setw(26)<<aper;


cout<<"\n\n\nCOCONUT HAIR OIL" <<setw(29)<<acoc;
cout<<"\n\n\nTITAN WATCH"
cout<<"\n\n\nLUX SOAP"

<<setw(34)<<atit;
<<setw(37)<<alux;

cout<<"\n\n\nTIDE"

<<setw(41)<<atid;

cout<<"\n\n\nREEBOK SHOES"

<<setw(33)<<aree;

cout<<"\n*******************************************************************************";
getch();
goto again;
}
else
{{cout<<"\n\t\t\tItems Avaliable in Canteen.\n\n\n";
cout<<"===================================================================
============";
cout<<"\nITEMS"

<<setw(40)<<"QUANTITY";

cout<<"\n==================================================================
=============";
cout<<"\n\n\nBISCUTE"
cout<<"\n\n\nPEPSODENT"
cout<<"\n\n\nDENIM POWDER"
cout<<"\n\n\nMUNCH"

<<setw(38)<<qubis;
<<setw(36)<<qupep;
<<setw(33)<<quden;
<<setw(40)<<qumun;

cout<<"\n\n\nPARK AVENUE PERFUME"<<setw(26)<<quperk;


cout<<"\n\n\nCOCONUT HAIR OIL"
cout<<"\n\n\nTITAN WATCH"
cout<<"\n\n\nLUX SOAP"
cout<<"\n\n\nTIDE"
18 | P a g e

<<setw(29)<<qucoc;
<<setw(34)<<qutit;
<<setw(37)<<qulux;
<<setw(41)<<qutid;

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

cout<<"\n\n\nREEBOK SHOES"

<<setw(33)<<quree;

cout<<"\n\n*******************************************************************************";
getch();
goto again;

}
case 5:

clrscr();
cout<<"\n\n\n\n\n\n\n\n\\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\tTHANKs\n\n\n\t\t\t\t
Press any key to Exit.......";
getch();
exit(0);
default:
cout<<"Your choice is wrong";
getch();
goto again;
}

return 0;
}}

19 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

START PAGE OF PROGRAM

20 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

MAIN FRAME OF PROGRAM

1.MENU & PURCHASE

21 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

22 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

2.DETAILS

3.NEW COUSTOMER

23 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

4.QUANTITY AVILABLE

5.EXIT

24 | P a g e

MADE BY:
AVNEESH, RAJAT, ASHISH BHARDWAJ & SHUBHAM

You might also like