Canteen

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 21

COMPUTER SCIENCE

PROJECT FILE
ON
CANTEEN-
MANAGEMENT

PROJECT PREPARED BY:


Aakash Jain XII
Session: 2009-2010
Jaswant Modern Sr. Sec. Public School
TABLE OF CONTENTS

> Certificate

> Acknowledgement

> Working description of project

> Header files and their purpose

> Coding & outputs


ACKNOWLEDGEMENT

It would be my utmost pleasure to express my


sincere thanks to My Computer Science Teacher
Mrs.Bhawana 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.
CERTIFICATE
This is to certify that Aakash Jain of class XII
completed this project titled 'Canteen-
Management” under my guidance & this project
may be considered as the part of the practical exam
of AISSCE conducted by CBSE.

Mrs. Bhawana
Computer Science
Jaswant Modern Sr. Sec. Public School
HEADER FILES USED
AND THEIR PURPOSE

1. PROCESS.H - for exit() function


2. CONIO.H - for clrscrQ and getch() functions
3. STDIO.H - for standard I/O operations
4. DOS.H - for execution of program
5. STRING.H - for string handling
6. IOSTREAM.H -for input/output operations
7. IOMANIP.H-for C++ streams I/O manipulators

WORKING
DESCRIPTION
OF

PROJECT
This program is designed for calculating
the bill for the items purchased by the
customer.

This program consists of five options as


follows

1. FOR MENU & PURCHASE


2. DETAILS ABOUT THE CANTEEN
3. QUATITY AVAILABLE
4. TO EXIT
CODING

/- /////////////////////////INTRODUCTION////////////
//NAME:- AAKASH JAIN/
//CLASS:- XII / lllllllllllllllllllllllllllll #################### 7CANTEEN MANAGEMENT#
#################### - l-## HEADER FILES ##-l
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
#include<process.h>
#include<iomanip.h>
#include<dos.h> main;)
=
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,quper
k=500,aperk=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();
getch();
clrscr();
cout<<"\n\n\t w w e e ee e e e e l ”;
cout<<"\n\n\t w w w e l ”;
cout<<"\n\n\t w ww w e l ”;
cout<<"\n\n\t w w w w ee e ee ee el ”


cout<<"\n\n\t w w w w ee e ee ee el

cout<<"\n\n\t w w w w e l ”;
cout<<"\n\n\t w w ww e l ”;
cout<<”\n\n\t w w e e ee e e e e l l l l l ll
cout<<"\n\n\n\n c c c c c c c o o o o o o o l”; m m eee ee eee
cout<<"\n\n c o o mm m m e ”;
cout<<"\n\n c o o m m mm e ”

cout<<"\n\n c o o m m m m e e e e e e e e ”;
cout<<"\n\n c o o m m m m e e e e e e e e ”;
cout<<"\n\n c o o m m m m e ”;
cout<<"\n\n c o o m mm m e ”
m ;e e e e e e e e
N
cout<<”\n\n c c c c c c c o o o oo o o m m
.
getch();
clrscr();
main:;
cout«M\n\n\n\t\t\t AFFWA CANTEEN MANAGEMENT";
cout«”\n\n\nC0NSUMER 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\n\l.MENU & PURCHASE";
cout«”\n\n\n\2.DETAILS”;
cout«”\n\n\n\3.NEW CUSTOMER"; cout<<
"\n\n\n\4.QUANTITY AVAILABLE";
cout«”\n\n\n\5.EXIT”; cout<<"\n\n\nENTER
YOUR CHOICE:"; cin»d; clrscr(); switch(d)
=
case l:
cout<<"\nITEMS\t\t\t\t\t\t\t RATE(RS)";
cout<<”\n\n\nBISCUTE\t\t\t\t\t\t\t\tlO ”;
cout<<”\n\nPEPSODENT\t\t\t\t\t\t\t36”;
cout<<"\n\nDENIM POWDER\t\t\t\t\t\t\tllO
cout<<"\n\nMUNCH\t\t\t\t\t\t\t\t8 "; cout<< "\n\nPARK
AVENUE PERFUME\t\t\t\t\t\tllO "; cout<<"\n\nCOCONUT
HAIR OIL\t\t\t\t\t\t9O "; cout<<"\n\nTITAN
WATCH\t\t\t\t\t\t\tll99 ”; cout<<"\n\nLUX
SOAP\t\t\t\t\t\t\tl7 "; cout<<”\n\nTIDE\t\t\t\t\t\t\t\tlO7 ”;
cout<<"\n\nREEBOK SHOES\t\t\t\t\t\t\tl499 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«M\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;
V
else
abis=qubis-m;
pep:;
cout«”\nPEPS0DENT(MAX 2): ”;
cin>>n; if(n>2)
=•
cout«”Enter Quantity Smaller than 2”;
getch(); goto pep;
V
else
apep=qupep-n;
den:;
cout«”\nDENIM P0WDER(MAX 2): ”;
cin>>o;
if(o>2)
=•
cout«”Enter Quantity Smaller then 2”;
getch(); goto den;
V

else
aden=quden-o;
mun:;
cout«”\nMUNCH(MAX 50): ”; cin>>p;

if(p>50)
=
cout«”Enter Quantity Smaller then 50”;
getch(); goto mun;
V
else
amun=qumun-p > park:;
cout«M\nPARK AVENUE PERFUME(MAX 2): M;
cin»q;

i ( >2)
fq
=•
cout«”Enter Quantity Smaller then 2”;
getch(); goto park;
V
else
aperk=quperk-q;
coco:;
cout«”\nC0C0NUT HAIR 0IL(MAX 2): ”; cin>>r;

if(r>2)
=•
cout«”Enter Quantity Smaller then 2”;
getch(); goto coco;
V

else
acoc=qucoc-r;
titan:;
cout«”\nTITAN WATCH(MAX 2): ”;
cin>>s;
if(s>2)
=•
cout«”Enter Quantity Smaller then 2”;
getch();

goto titan;
V

else
atit=qutit-s;
lux:;
cout«”\nLUX S0AP(MAX 10): ”; cin>>t;

if(t>10)
=
cout«”Enter Quantity Smaller then 10"; getch();
goto lux;
V
else
alux=qulux-t;
tid:;
cout«"\nTIDE(MAX 2):"; cin»u;

if(u>2)
=•
cout«"Enter Quantity Smaller then 2";
getch(); goto tid;
V
else
atid=qutid-u;
ree:;
cout«"\nREEB0K SH0ES(MAX 4):"; cin>>v;

if(v>4)
=
cout«"Enter Quantity Smaller then 4"; getch();
goto ree;
V

else
aree=quree-v;
cout«"\n";
clrscr();
cout«"\n\n\n\n\n\n\t\t\t\tAFF WA CANTEENOn";
cout«"\n\n\t\t\t\t CASH MEM0\n"; cout«"\n\nBILL
N0.:"«i; cout«"\n\nNAME:"; cout«name;
cout«"\n\nRANK: "《rank; cout«"\n\nSERVICE
N0.:"«a; cout«"\n\nSMART CARD N0.:"«b;
cout«
cout«"\n\nPH0NE N0.:"«c; cout«"\n\n\n\n\n";
";
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\nPEPS0DENT” <<setw(36)<<n<<setw(28)<<”Rs.”<<n*per;
if(o>0)
cout<<M\n\nDENIM POWDER”
<<setw(33)<<o<<setw(28)<<MRs.M<<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\nC0C0NUT HAIR OIL”
<<setw(29)<<r<<setw(28)<<”Rs.”<<r*cor; if(s>0)
cout<<”\n\nT ITAN 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\nREEB0K 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<<”\nT0TAL:”<<setw(40)<<add<<setw(27)<<”Rs.”<<sum;
cout<<”\n\nTHANK YOU .\t\t\t VISIT US AGAIN\n”; getch();
clrscr(); goto again;
V
else
{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#G00DS 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” <<setw(3 8)<<abis;


cout<<”\n\n\nPEPSODENT” <<setw(36)<<apep;
cout<<”\n\n\nDENIM POWDER” <<setw(33)<<aden;
cout<<”\n\n\nMUNCH” <<setw(40)<<amun;
cout<<”\n\n\nPARK AVENUE PERFUME”<<setw(26)<<aperk;
cout<<”\n\n\nCOCONUT HAIR OIL” <<setw(29)<<acoc; cout<<
”\n\n\nTITAN WATCH” <<setw(3 4)<<atit;
cout<<”\n\n\nLUX SOAP” <<setw(37)<<alux; cout<<”\n\n\nTIDE” <<setw(41
)<<atid;
cout<<”\n\n\nREEBOK SHOES” <<setw(33)<<aree;

cout<<”
getch(); goto
again;
V
else

={cout«"\n\t\t\tItems Avaliable in Canteen.\n\n\n”;

cout«M=====================================

cout«”\nITEMS” <<setw(40)«”QUANTITY”;

cout«’’\n=======================================
cout<<”\n\n\nBISCUTE” <<setw(38)<<qubis;
cout<<”\n\n\nPEPS0DENT” <<setw(36)<<qupep;
cout<<”\n\n\nDENIM POWDER” <<setw(33)<<quden;
cout<<”\n\n\nMUNCH” <<setw(40)<<qumun;
cout<<”\n\n\nPARK AVENUE PERFUME”<<setw(26)<<quperk;
cout<<”\n\n\nC0C0NUT HAIR OIL” <<setw(29)<<qucoc; cout<<
”\n\n\nTITAN WATCH” <<setw(3 4)<<qutit;
cout<<”\n\n\nLUX SOAP” <<setw(37)<<qulux; cout<<”\n\n\nTIDE” <<setw(41
)<<qutid;
cout<<”\n\n\nREEB0K SHOES” <<setw(33)<<quree;

cout<<”

getch(); goto
again;

V
case 5:
cout<<”\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS”;
sleep(1);
clrscr();
cout<<”\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS”;
sleep(1);
clrscr();
cout<<”\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS”;
sleep(1);
clrscr();
cout<<”\n\n\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\t THANKS”;
sleep(1);
clrscr();
cout<<”\n\n\n\n\n\n\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\t THANKS”;
sleep(1);
clrscr();
cout«”\n\n\n\n\n\n\n\n\n\n\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\t
THANKS”;
sleep(l);
clrscr();

cout«”\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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\t
THANKS”;
sleep(l);
clrscr();

cout«”\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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\t
THANKS”;
sleep(l);
clrscr();

cout«”\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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\t THANKS\n\n\n\t\t\t\tPress any key to Exit .............. ”;
getch();
exit(O);
default:
cout«”Your choice is wrong”;
getch(); goto again;
V
//getch();
// return O;
V

V
OUTPUT
w w eeeeeeee l
w w w e l
w ww w e l
w w w w eeeeeeee l
w w w w eeeeeeee l
w w w w e l
ww ww e l
w ww eeeeeeee llllllll
cccccccoooooocooc m m ee e e e e e e
oocoocoocoocoocc mm mm e
cccccoooooo m m mm e
m m m m ee e e e e e e
m mm m ee e e e e e e
m mm m e
AFFWA m mm m e
CANTEEN m m m eeeeeeee

MANAGEMENT

CONSUMER INFORMATION
NAME: AAKASH RANK:234
SERVICE NO. :564 SMART
CARD NO.:876 PHONE
NO.:09786543561 ENTER BILL
NO.:12345
1. MENU & PURCHASE
2. DETAILS
3. NEW CUSTOMER
4. QUANTITY AVAILABLE
5. EXIT

ENTER YOUR CHOICER

ITEMS RATE

BISCUIT 10
PEPSODENT 36
DENIM POWDER 110
MUNCH 8
PARK AVENUE PERFUME 110
1199
COCONUT HAIR OIL 17
90
TITAN WATCH LUX 107
SOAP TIDE 1499
REEBOK SHOES

DO YOU WANT TO PURCHASE(Y/N):Y

BISCUIT+MAX 30>:2
PEPSODENT+MAX 2>:1
DENIM POWDER+MAX 2>:2
MUNCH+MAX 50>:30
PARK AVENUE PERFUME+MAX 2>:2
COCONUT HAIR OIL+MAX 2>:0
TITAN WATCH+MAX 2>:2
LUX SOAP+MAX 10>:6
TIDE+MAX 2>:2
REEBOK SHOES+MAX 4>:2

AFFWA CANTEEN

CASH MEMO
NAME: AAKASH
RANK:234 SERVICE NO.
:564 SMART CARD
NO.:876 PHONE
NO.:09786543561 ENTER
BILL NO.:12345

ITEMS QUANTITY PRICE(Rs.)


BISCUIT 2 Rs.20
PEPSODENT 1 Rs.36
DENIM POWDER 2 Rs.220
MUNCH 30 Rs.240
PARK AVENUE PERFUME 2 Rs.220
TITAN WATCH 2 Rs.2398
LUX SOAP 6 Rs.102
TIDE 2 Rs.214
REEBOK SHOES 2 Rs.2998
TOTAL: 49 Rs.6448
THANK YOU VISIT US AGAIN

You might also like