COMPUTER SCIENCE PROJECT FILE ON CANTEEN MANAGEMENT
PROJECT PROJ ECT PREP PREPARED ARED BY: XII Session: 2010-2011
1
TABLE OF CONTENT CONTENTS S Certificate Acknowledgement
Working Working Header Files
description of project
files and their purpose
generated
Coding
& outputs
Bibliography
2
TABLE OF CONTENT CONTENTS S Certificate Acknowledgement
Working Working Header Files
description of project
files and their purpose
generated
Coding
& outputs
Bibliography
2
ACKNOWLEDGEMENT It would be my utmost pleasure to express my sincere thanks to My Computer Science Teacher Ms in providing a helping hand in this project !er un"lagging patience# creativity and immense knowledge that she shared with me have proved highly bene"icial to me and have made my $roject %ile both possible and success"ul
&
'
HEADER FILES USED AND THEIR PURPOSE 1.
IOSTREAM.H – for le handling, cin
and cout 2. .
!. %. '. .
PROCESS.H – for exit() function CONIO.H – for clrscr() and getch()
functions STDIO.H – for standard I"# o$erations DOS.H – for execution of $rogra& STRING.H – for string handling IOMANIP.H–for ** strea&s I"# &ani$ulators
FILES GENERATED (
PROGRAM FILE
+/++/. OBJECT FILE
+/++/.#3 EXECUTION FILE
+/++/.X
)
WORKING DESCRIPTION OF
PROJECT his $rogra& is designed to 4ee$ the friend5s record. his $rogra& consists of 6e o$tions as follo7s
1. 2. . !.
TO TO TO TO
PURCHASE SHOW DETAILS ADD NEW CUSTOMER SHOW QUANTITY
AVAILABLE %. TO EXIT
*
#8I
"9
#/;< SI <#3 =#<>
S#?=+< ?#< @ ;S #? + 8+</ """"I<#8;I#"""" +
""""""""""""""""""""""""""""" ""+/:- /#@I A+8+B " ""C+SS:- XII DD " ""<#CC #.:- 1 " """"""""""""""""""""""""""""" EEEEEEEEEEEEEEEEEEEE E+ /++/E EEEEEEEEEEEEEEEEEEEE
9"
"9EE @+8< ?ICS EE9" EincludeFiostrea&.hG EincludeFconio.hG EincludeFstring.hG EincludeFstdio.hG EincludeF$rocess.hG EincludeFio&ani$.hG EincludeFdos.hG &ain() H clrscr() unsigned int su&,add,d,i,J,e,f,g,h,4,l,7,x,K,L unsigned int MirN10,$erN',derN110,&urNO,$arN110,corNP0,t7rN11PP, lurN1,tirN10, rerN1!PP int QuMisN1000,aMisN0,Qu$e$N1000,a$e$N0,QudenN110,adenN0,Qu&un N1000,a&unN0,Qu$er4N%00,a$er4N0,QucocN!00,acocN0,QutitN100,a titN0,QuluxN1000,aluxN0,QutidN1000,atidN0,QureeN00,areeN0 unsigned int &N0,nN0,oN0,$N0,QN0,rN0,sN0,tN0,uN0,6N0 char na&eR%0,ran4R10,$u,cR20,aR1%,MR1%,o4 clrscr() $rintf(TUn ************************************ ***9************************************* *T) $rintf(TUn * 999 *T) $rintf(TUn * 99999 *T) $rintf(TUn * 9999999 *T) $rintf(TUn * 999999999 *T) $rintf(TUn * 99999999999 *T) $rintf(TUn * 9999999999999 *T) $rintf(TUn * 999999999999999 *T) $rintf(TUn * 99999999999999999 *T) $rintf(TUn * 9999999999999999999 *T) ,
$rintf(TUn * 999999999999999999999 *T) $rintf(TUn * 99999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999 *T) $rintf(TUn * 999999999999999999999999999 *T) $rintf(TUn * 99999999999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999999999 *T) $rintf(TUn * 999999999999999999999999999999999 *T) $rintf(TUn * 99999999999999999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999999999999999 *T) $rintf(TUn * 999999999999999999999999999999999999999 *T) $rintf(TUn * 99999999999999999999999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999999999999999999999 *T) $rintf(TUn * 999999999999999999999999999999999999999999999 *T) $rintf(TUn * 99999999999999999999999999999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999999999999999999999999999 *T) $rintf(TUn * 999999999999999999999=C#/99999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999999999999999999999999999 *T) $rintf(TUn * 99999999999999999999999999999999999999999999999 *T) $rintf(TUn * 999999999999999999999999999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999999999999999999999 *T) $rintf(TUn * 999999999999999999999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999999999999999 *T) $rintf(TUn * 99999999999999999999999999999999999 *T) 1-
$rintf(TUn * 999999999999999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999999999 *T) $rintf(TUn * 99999999999999999999999999999 *T) $rintf(TUn * 999999999999999999999999999 *T) $rintf(TUn * 9999999999999999999999999 *T) $rintf(TUn * 99999999999999999999999 *T) $rintf(TUn * 999999999999999999999 *T) $rintf(TUn * 9999999999999999999 *T) $rintf(TUn * 99999999999999999 *T) $rintf(TUn * 999999999999999 *T) $rintf(TUn * 9999999999999 *T) $rintf(TUn * 99999999999 *T) $rintf(TUn * 999999999 *T) $rintf(TUn * 9999999 *T) $rintf(TUn * 99999 *T) $rintf(TUn * 999 *T) $rintf(TUn ************************************ ***9************************************* *T) getch() clrscr() coutFFTUnUnUt 7 7 eeeeeeee l T coutFFTUnUnUt 7 7 7 e l T coutFFTUnUnUt 7 77 7 e l T coutFFTUnUnUt 7 7 7 7 eeeeeeee l T coutFFTUnUnUt 7 7 7 7 eeeeeeee l T coutFFTUnUnUt 7 7 7 7 e l T coutFFTUnUnUt 77 77 e l T coutFFTUnUnUt 7 7 e e e e e e e e l l l l l l l lT coutFFTUnUnUnUn c c c c c c c ooooooo & & eee e e e e e T coutFFTUnUn c o o && & & e T coutFFTUnUn c o o & & & & e T coutFFTUnUn c o o & & & & eeeeeee e T coutFFTUnUn c o o & & & & eeeeeee e T coutFFTUnUn c o o & & & & e T coutFFTUnUn c o o & && & e T 11
coutFFTUnUn c c c c c c c ooooooo & & e e e e T getch() clrscr() &ain: coutFFTUnUnUnUtUtUt +??=+ + /++/T coutFFTUnUnUn#S;/< I?#+I#T coutFFTUnUnUnUn +/:T gets(na&e) coutFFTUn <+>:T gets(ran4) coutFFTUn S +B; ;/UtUtUtUtUtUt110 T coutFFTUnUn##; @+I< #ICUtUtUtUtUtUtP0 T coutFFTUnUnI+ =+@UtUtUtUtUtUtUt11PP T coutFFTUnUnC;X S#+UtUtUtUtUtUtUt1 T coutFFTUnUnI8UtUtUtUtUtUtUtUt10 T coutFFTUnUn<#> S@#SUtUtUtUtUtUtUt1!PP T start: coutFFTUnUnUn8# A#; =+ # ;<@+S(A"):UnT cinGG$u 12
&
eeee
if($uNNDADWW$uNNDKD) Hs7itch($u) case 1: clrscr() coutFFTUnUnUnUtUtUtUt;<@+S CIST Mis: coutFFTUnIS;(/+X 0): T cinGG& if(&G0) H coutFFTnter VuantitK S&aller than 0T getch() goto Mis else aMisNQuMis-& $e$: coutFFTUnS#8(/+X 2): T cinGGn if(nG2) H coutFFTnter VuantitK S&aller than 2T getch() goto $e$ else a$e$NQu$e$-n den: coutFFTUn8I/ #=8<(/+X 2): T cinGGo if(oG2) H coutFFTnter VuantitK S&aller then 2T getch() goto den else adenNQuden-o &un: coutFFTUn/;@(/+X %0): T cinGG$ if($G%0) H coutFFTnter VuantitK S&aller then %0T 1&
getch() goto &un else a&unNQu&un-$ $ar4: coutFFTUn+<> +B; ;/(/+X 2): T cinGGQ if(QG2) H coutFFTnter VuantitK S&aller then 2T getch() goto $ar4 else a$er4NQu$er4-Q coco: coutFFTUn##; @+I< #IC(/+X 2): T cinGGr if(rG2) H coutFFTnter VuantitK S&aller then 2T getch() goto coco else acocNQucoc-r titan: coutFFTUnI+ =+@(/+X 2): T cinGGs if(sG2) H coutFFTnter VuantitK S&aller then 2T getch() goto titan else atitNQutit-s lux: coutFFTUnC;X S#+(/+X 10): T cinGGt 1'
if(tG10) H coutFFTnter VuantitK S&aller then 10T getch() goto lux else aluxNQulux-t tid: coutFFTUnI8(/+X 2): T cinGGu if(uG2) H coutFFTnter VuantitK S&aller then 2T getch() goto tid else atidNQutid-u ree: coutFFTUn<#> S@#S(/+X !): T cinGG6 if(6G!) H coutFFTnter VuantitK S&aller then !T getch() goto ree else areeNQuree-6 coutFFTUnT clrscr() coutFFTUnUnUnUnUnUnUtUtUtUt+??=+ +UnT coutFFTUnUnUtUtUtUt +S@ //#UnT coutFFTUnUnICC #.:TFFi coutFFTUnUn+/:T coutFFna&e coutFFTUnUn<+>:TFFran4 coutFFTUnUnS
1(
coutFFTNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNT coutFFTUnI/ST FFset7(!0)FFTV;+IATFFset7(%)FFT +B; ;/TFFset7(2')FFQFFset7(2O)FFT S@#ST FFset7()FF6FFset7(2O)FFT
LN69rer su&Ne*f*g*h*4*l*7*x*K*L addN&*n*o*$*Q*r*s*t*u*6 coutFFTUnNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NT coutFFTUn#+C:TFFset7(!0)FFaddFFset7(2)FFT A#; .UtUtUt BISI ;S ++IUnT getch() clrscr() goto again else Hgoto again case 2: coutFFTUnUnUnUnUnUtUtUtUt+ 8+ICST coutFFTUnUnEI/I:UnUn 11 +/ # 02 / Un 0 / # 0% /T coutFFTUnUnE+ =ICC C#S8 # ;S8+AT coutFFTUnUnE##8S # S#C8 =ICC # X@+8"<C+8T coutFFTUnUnE+> A#;< S/+< +<8 =I@ A#;T coutFFTUnUnE#CC A#;< S/+< +<8 ICC +?< +A/T coutFFTUnUnE8# # <+> +A + I/ST getch() clrscr() goto again case : goto &ain case !: if(&G0WWnG0WWoG0WW$G0WWQG0WWrG0WWsG0WWtG0WWuG0WW6G0) HcoutFFTUnUtUtUtIte&s +6aliaMle in anteen.UnUnUnT coutFFTNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNT coutFFTUnI/ST FFset7(!0)FFTV;+IAT coutFFTUnNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NT 1*
coutFFTUnUnUnIS;T FFset7(O)FFaMis coutFFTUnUnUnS#8T FFset7(')FFa$e$ coutFFTUnUnUn8I/ #=8 +B; ;/TFFset7(2')FFa$er4 coutFFTUnUnUn##; @+I< #ICT FFset7(2P)FFacoc coutFFTUnUnUnI+ =+@T FFset7(!)FFatit coutFFTUnUnUnC;X S#+T FFset7()FFalux coutFFTUnUnUnI8T FFset7(!1)FFatid coutFFTUnUnUn<#> S@#ST FFset7()FFaree coutFFTUn9999999999999999999999999999999999999999999999999999999999999 999999999999999999T getch() goto again else HHcoutFFTUnUtUtUtIte&s +6aliaMle in anteen.UnUnUnT coutFFTNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNT coutFFTUnI/ST FFset7(!0)FFTV;+IAT coutFFTUnNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NT coutFFTUnUnUnIS;T FFset7(O)FFQuMis coutFFTUnUnUnS#8T FFset7(')FFQu$e$ coutFFTUnUnUn8I/ #=8 +B; ;/TFFset7(2')FFQu$er4 coutFFTUnUnUn##; @+I< #ICT FFset7(2P)FFQucoc coutFFTUnUnUnI+ =+@T FFset7(!)FFQutit coutFFTUnUnUnC;X S#+T FFset7()FFQulux coutFFTUnUnUnI8T FFset7(!1)FFQutid coutFFTUnUnUn<#> S@#ST FFset7()FFQuree coutFFTUnUn99999999999999999999999999999999999999999999999999999999999 99999999999999999999T getch() goto again case %: coutFFTUnUnUnUnUnUnUnUnUnUtUtUtUt @+>ST slee$(1) 1+
clrscr() coutFFTUnUnUnUnUnUnUnUnUnUnUnUnUnUnUtUtUtUt @+>ST slee$(1) clrscr() coutFFTUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUtUtUtUt @+>ST slee$(1) clrscr() coutFFTUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUtUtUtUt @+>ST slee$(1) clrscr() coutFFTUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUtUtUtUt @+>ST slee$(1) clrscr() coutFFTUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnU tUtUtUt @+>ST slee$(1) clrscr() coutFFTUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnU nUnUnUnUtUtUtUt @+>ST slee$(1) clrscr() coutFFTUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnU nUnUnUnUnUnUnUtUtUtUt @+>ST slee$(1) clrscr() coutFFTUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnUnU nUnUnUnUnUnUnUnUnUnUtUtUtUt @+>SUnUnUnUtUtUtUtress anK 4eK to xit.......T getch() exit(0) default: coutFFTAour choice is 7rongT getch() goto again ""getch() "" return 0 1,
#;;S
2-
21
22
2&
2'
2(
2)
2*
2+
2,
&-