SlideShare a Scribd company logo
#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,quperk=50
0,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;

 main:;
  {cout<<"nnnttt     ALADIN CANTEEN MANAGEMENT";
      cout<<"nnnCONSUMER INFORMATION";
      cout<<"nnnn 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<<"nnnn1.MENU & PURCHASE";
      cout<<"nnn2.DETAILS";
      cout<<"nnn3.NEW CUSTOMER";
      cout<<"nnn4.QUANTITY AVAILABLE";
      cout<<"nnn5.EXIT";
      cout<<"nnnENTER YOUR CHOICE:";
      cin>>d;
      clrscr();
  switch(d)
  {
     case 1:
      cout<<"nITEMSttttttt       RATE(RS)";
      cout<<"nnnBISCUTEtttttttt10 ";
      cout<<"nnPEPSODENTttttttt36";
      cout<<"nnDENIM POWDERttttttt110    ";
      cout<<"nnMUNCHtttttttt8 ";
      cout<<"nnPARK AVENUE PERFUMEtttttt110    ";
      cout<<"nnCOCONUT HAIR OILtttttt90 ";
      cout<<"nnTITAN WATCHttttttt1199    ";
      cout<<"nnLUX SOAPttttttt17    ";
      cout<<"nnTIDEtttttttt107    ";
      cout<<"nnREEBOK SHOESttttttt1499     ";
      start:
      cout<<"nnnDO YOU WANT TO PURCHASE(Y/N):n";
      cin>>pu;
      if(pu=='Y'||pu=='y')
{switch(pu)
 case 1:
  clrscr();
  cout<<"nnnttttPURCHASE LIST";
  bis:;
  cout<<"nBISCUTE(MAX 30): ";
  cin>>m;

 if(m>30)
 {
   cout<<"Enter Quantity Smaller than 30";
 getch();
 goto bis;
 }
 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;

 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
 aperk=quperk-q;
 coco:;
 cout<<"nCOCONUT HAIR OIL(MAX 2): ";
cin>>r;

if(r>2)
{
  cout<<"Enter Quantity Smaller then 2";
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;
}
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();
cout<<"nnnnnnttttALADIN CANTEENn";
cout<<"nntttt CASH MEMOn";
cout<<"nnBILL NO.:"<<i;
cout<<"nnNAME:";
         cout<<name;
         cout<<"nnRANK:"<<rank;
         cout<<"nnSERVICE NO.:"<<a;
         cout<<"nnSMART CARD NO.:"<<b;
         cout<<"nnPHONE NO.:"<<c;
         cout<<"nnnnn";

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

cout<<"=========================================================================
======";
        if(m>0)
          cout<<"nnBISCUTE"        <<setw(38)<<m<<setw(28)<<"Rs."<<m*bir;
        if(n>0)
          cout<<"nnPEPSODENT"        <<setw(36)<<n<<setw(28)<<"Rs."<<n*per;
        if(o>0)
          cout<<"nnDENIM POWDER"     <<setw(33)<<o<<setw(28)<<"Rs."<<o*der;
        if(p>0)
          cout<<"nnMUNCH"            <<setw(40)<<p<<setw(28)<<"Rs."<<p*mur;
        if(q>0)
          cout<<"nnPARK AVENUE PERFUME"<<setw(26)<<q<<setw(28)<<"Rs."<<q*par;
        if(r>0)
          cout<<"nnCOCONUT HAIR OIL" <<setw(29)<<r<<setw(28)<<"Rs."<<r*cor;
        if(s>0)
          cout<<"nnTITAN WATCH"      <<setw(34)<<s<<setw(28)<<"Rs."<<s*twr;
        if(t>0)
          cout<<"nnLUX SOAP"         <<setw(37)<<t<<setw(28)<<"Rs."<<t*lur;
        if(u>0)
          cout<<"nnTIDE"             <<setw(41)<<u<<setw(28)<<"Rs."<<u*tir;
        if(v>0)
          cout<<"nnREEBOK 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<<"nnTHANK YOU .ttt     VISIT US AGAINn";
      getch();
      clrscr();
      goto again;
      }
      else
      {goto again;

     }


     case 2:
     cout<<"nnnnnttttCANTEEN DETAILS";
cout<<"nn#TIMING:nn 11 AM TO 02 PM n 03 PM TO 05 PM";
     cout<<"nn#CANTEEN WILL CLOSED ON TUESDAY";
     cout<<"nn#GOODS ONCE SOLD WILL NOT BE EXCHANGED/REPLACED";
     cout<<"nn#TAKE YOUR SMART CARD WITH YOU";
     cout<<"nn#COLLECT YOUR SMART CARD & BILL AFTER PAYMENT";
     cout<<"nn#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<<"ntttItems Avaliable in Canteen.nnn";

cout<<"=========================================================================
======";
        cout<<"nITEMS"            <<setw(40)<<"QUANTITY";

cout<<"n=======================================================================
========";
        cout<<"nnnBISCUTE"        <<setw(38)<<abis;
        cout<<"nnnPEPSODENT"        <<setw(36)<<apep;
        cout<<"nnnDENIM POWDER"     <<setw(33)<<aden;
        cout<<"nnnMUNCH"            <<setw(40)<<amun;
        cout<<"nnnPARK AVENUE PERFUME"<<setw(26)<<aperk;
        cout<<"nnnCOCONUT HAIR OIL" <<setw(29)<<acoc;
        cout<<"nnnTITAN WATCH"      <<setw(34)<<atit;
        cout<<"nnnLUX SOAP"         <<setw(37)<<alux;
        cout<<"nnnTIDE"             <<setw(41)<<atid;
        cout<<"nnnREEBOK SHOES"     <<setw(33)<<aree;

cout<<"n***********************************************************************
********";
        getch();
        goto again;
        }
        else
        {{cout<<"ntttItems Avaliable in Canteen.nnn";

cout<<"=========================================================================
======";
        cout<<"nITEMS"            <<setw(40)<<"QUANTITY";

cout<<"n=======================================================================
========";
        cout<<"nnnBISCUTE"        <<setw(38)<<qubis;
        cout<<"nnnPEPSODENT"        <<setw(36)<<qupep;
        cout<<"nnnDENIM POWDER"     <<setw(33)<<quden;
        cout<<"nnnMUNCH"            <<setw(40)<<qumun;
        cout<<"nnnPARK AVENUE PERFUME"<<setw(26)<<quperk;
        cout<<"nnnCOCONUT HAIR OIL" <<setw(29)<<qucoc;
        cout<<"nnnTITAN WATCH"      <<setw(34)<<qutit;
        cout<<"nnnLUX SOAP"         <<setw(37)<<qulux;
        cout<<"nnnTIDE"             <<setw(41)<<qutid;
        cout<<"nnnREEBOK SHOES"     <<setw(33)<<quree;

cout<<"nn*********************************************************************
**********";
        getch();
        goto again;

       }
     case 5:
cout<<"nnnnnnnnntttt   THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnnnnntttt   THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnnnnnnnnnnntttt   THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnnnnnnnnnnnnnnntttt    THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnntttt
THANKS";
      sleep(1);
      clrscr();

cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnntttt
THANKS";
      sleep(1);
      clrscr();

cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
tttt   THANKS";
      sleep(1);
      clrscr();

cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
nnntttt   THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnntPress any key to Exit.......";
      getch();
      exit(0);
      default:
            cout<<"Your choice is wrong";
      getch();
      goto again;
       }

 }

}
}
cout<<"nnnnnnnnntttt   THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnnnnntttt   THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnnnnnnnnnnntttt   THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnnnnnnnnnnnnnnntttt    THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnntttt
THANKS";
      sleep(1);
      clrscr();

cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnntttt
THANKS";
      sleep(1);
      clrscr();

cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
tttt   THANKS";
      sleep(1);
      clrscr();

cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
nnntttt   THANKS";
      sleep(1);
      clrscr();
      cout<<"nnnnnnnnnnntPress any key to Exit.......";
      getch();
      exit(0);
      default:
            cout<<"Your choice is wrong";
      getch();
      goto again;
       }

 }

}
}

More Related Content

TXT
c++ project on restaurant billing
DOCX
Travel management
DOCX
Supermarket
DOCX
Computer Science investigatory project class 12
DOC
Quiz using C++
TXT
Hospital management
PDF
寫程式?那些老師沒教的事
PDF
寫程式?那些老師沒教的事 (Git 部分節錄)
c++ project on restaurant billing
Travel management
Supermarket
Computer Science investigatory project class 12
Quiz using C++
Hospital management
寫程式?那些老師沒教的事
寫程式?那些老師沒教的事 (Git 部分節錄)

What's hot (20)

PDF
如何「畫圖」寫測試 - RxJS Marble Test
TXT
Railwaynew
DOCX
Binomial heap
PDF
You will learn RxJS in 2017
TXT
PDF
Numerical Methods with Computer Programming
PDF
Zone IDA Proc
PPT
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
PDF
Работа с реляционными базами данных в C++
PDF
Node.js flow control
PDF
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
PDF
Code as Risk
DOCX
Assignment no39
DOCX
PDF
Finch.io - Purely Functional REST API with Finagle
DOC
Computer Science Investigatory Project class 12th
PDF
How to stand on the shoulders of giants
PPTX
Project in programming
DOC
Ds 2 cycle
PDF
Finch + Finagle OAuth2
如何「畫圖」寫測試 - RxJS Marble Test
Railwaynew
Binomial heap
You will learn RxJS in 2017
Numerical Methods with Computer Programming
Zone IDA Proc
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
Работа с реляционными базами данных в C++
Node.js flow control
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
Code as Risk
Assignment no39
Finch.io - Purely Functional REST API with Finagle
Computer Science Investigatory Project class 12th
How to stand on the shoulders of giants
Project in programming
Ds 2 cycle
Finch + Finagle OAuth2
Ad

Viewers also liked (20)

DOCX
Canteen management
PPTX
Canteen Management System
PPTX
cafeteria info management system
PPTX
Canteen project
PPTX
Canteen management system
DOCX
Hotel Management system in C++
PPTX
Canteen management system
PDF
PDF
PDF
PDF
File handling
PDF
PDF
01 computer communication and networks v
DOCX
12th CBSE Computer Science Project
PDF
Constructor & destructor
PPT
Hotel Management In C++
PDF
C++ revision tour
Canteen management
Canteen Management System
cafeteria info management system
Canteen project
Canteen management system
Hotel Management system in C++
Canteen management system
File handling
01 computer communication and networks v
12th CBSE Computer Science Project
Constructor & destructor
Hotel Management In C++
C++ revision tour
Ad

Similar to c++ program for Canteen management (20)

PPTX
Hybrid Inheritance in C++
DOCX
C programs
PDF
Bangun datar dan bangun ruang
PPT
DOCX
C++ program: All tasks .cpp
DOCX
Ejercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATAS
PDF
Decipher Multi-Factor Authentication - A Developers Introduction
PDF
The Ring programming language version 1.6 book - Part 69 of 189
DOCX
Power meter log
PDF
Inc decsourcefile
PDF
The Ring programming language version 1.3 book - Part 50 of 88
DOCX
Include
PDF
Hey, looking to do the following with this programFill in the multip.pdf
PDF
Listing pid
PDF
The Ring programming language version 1.5.1 book - Part 63 of 180
RTF
project3
DOCX
Algoritma 5 november wiwik p.l
PDF
El text.life science6.matsubayashi191120
DOCX
Utility bill project.doc
Hybrid Inheritance in C++
C programs
Bangun datar dan bangun ruang
C++ program: All tasks .cpp
Ejercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATAS
Decipher Multi-Factor Authentication - A Developers Introduction
The Ring programming language version 1.6 book - Part 69 of 189
Power meter log
Inc decsourcefile
The Ring programming language version 1.3 book - Part 50 of 88
Include
Hey, looking to do the following with this programFill in the multip.pdf
Listing pid
The Ring programming language version 1.5.1 book - Part 63 of 180
project3
Algoritma 5 november wiwik p.l
El text.life science6.matsubayashi191120
Utility bill project.doc

More from Swarup Kumar Boro (15)

TXT
c++ program for Railway reservation
PDF
Structures in c++
PDF
Implementation of oop concept in c++
PDF
Computer science study material
PDF
Arrays and library functions
PDF
Function overloading
PDF
computer science sample papers 2
PDF
computer science sample papers 3
PDF
computer science sample papers 1
PDF
Boolean algebra
PDF
Boolean algebra laws
PDF
Oop basic concepts
DOCX
PPTX
Physics activity
c++ program for Railway reservation
Structures in c++
Implementation of oop concept in c++
Computer science study material
Arrays and library functions
Function overloading
computer science sample papers 2
computer science sample papers 3
computer science sample papers 1
Boolean algebra
Boolean algebra laws
Oop basic concepts
Physics activity

Recently uploaded (20)

PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
01-Introduction-to-Information-Management.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPH.pptx obstetrics and gynecology in nursing
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharma ospi slides which help in ospi learning
01-Introduction-to-Information-Management.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Final Presentation General Medicine 03-08-2024.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Insiders guide to clinical Medicine.pdf
GDM (1) (1).pptx small presentation for students
Renaissance Architecture: A Journey from Faith to Humanism
Supply Chain Operations Speaking Notes -ICLT Program
Cell Types and Its function , kingdom of life
STATICS OF THE RIGID BODIES Hibbelers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...

c++ program for Canteen management

  • 1. #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,quperk=50 0,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; main:; {cout<<"nnnttt ALADIN CANTEEN MANAGEMENT"; cout<<"nnnCONSUMER INFORMATION"; cout<<"nnnn 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<<"nnnn1.MENU & PURCHASE"; cout<<"nnn2.DETAILS"; cout<<"nnn3.NEW CUSTOMER"; cout<<"nnn4.QUANTITY AVAILABLE"; cout<<"nnn5.EXIT"; cout<<"nnnENTER YOUR CHOICE:"; cin>>d; clrscr(); switch(d) { case 1: cout<<"nITEMSttttttt RATE(RS)"; cout<<"nnnBISCUTEtttttttt10 "; cout<<"nnPEPSODENTttttttt36"; cout<<"nnDENIM POWDERttttttt110 "; cout<<"nnMUNCHtttttttt8 "; cout<<"nnPARK AVENUE PERFUMEtttttt110 "; cout<<"nnCOCONUT HAIR OILtttttt90 "; cout<<"nnTITAN WATCHttttttt1199 "; cout<<"nnLUX SOAPttttttt17 "; cout<<"nnTIDEtttttttt107 "; cout<<"nnREEBOK SHOESttttttt1499 "; start: cout<<"nnnDO YOU WANT TO PURCHASE(Y/N):n"; cin>>pu; if(pu=='Y'||pu=='y')
  • 2. {switch(pu) case 1: clrscr(); cout<<"nnnttttPURCHASE LIST"; bis:; cout<<"nBISCUTE(MAX 30): "; cin>>m; if(m>30) { cout<<"Enter Quantity Smaller than 30"; getch(); goto bis; } 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; 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 aperk=quperk-q; coco:; cout<<"nCOCONUT HAIR OIL(MAX 2): ";
  • 3. cin>>r; if(r>2) { cout<<"Enter Quantity Smaller then 2"; 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; } 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(); cout<<"nnnnnnttttALADIN CANTEENn"; cout<<"nntttt CASH MEMOn"; cout<<"nnBILL NO.:"<<i;
  • 4. cout<<"nnNAME:"; cout<<name; cout<<"nnRANK:"<<rank; cout<<"nnSERVICE NO.:"<<a; cout<<"nnSMART CARD NO.:"<<b; cout<<"nnPHONE NO.:"<<c; cout<<"nnnnn"; cout<<"========================================================================= ======"; cout<<"nITEMS" <<setw(40)<<"QUANTITY"<<setw(35)<<"PRICE(Rs.)"; cout<<"========================================================================= ======"; if(m>0) cout<<"nnBISCUTE" <<setw(38)<<m<<setw(28)<<"Rs."<<m*bir; if(n>0) cout<<"nnPEPSODENT" <<setw(36)<<n<<setw(28)<<"Rs."<<n*per; if(o>0) cout<<"nnDENIM POWDER" <<setw(33)<<o<<setw(28)<<"Rs."<<o*der; if(p>0) cout<<"nnMUNCH" <<setw(40)<<p<<setw(28)<<"Rs."<<p*mur; if(q>0) cout<<"nnPARK AVENUE PERFUME"<<setw(26)<<q<<setw(28)<<"Rs."<<q*par; if(r>0) cout<<"nnCOCONUT HAIR OIL" <<setw(29)<<r<<setw(28)<<"Rs."<<r*cor; if(s>0) cout<<"nnTITAN WATCH" <<setw(34)<<s<<setw(28)<<"Rs."<<s*twr; if(t>0) cout<<"nnLUX SOAP" <<setw(37)<<t<<setw(28)<<"Rs."<<t*lur; if(u>0) cout<<"nnTIDE" <<setw(41)<<u<<setw(28)<<"Rs."<<u*tir; if(v>0) cout<<"nnREEBOK 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<<"nnTHANK YOU .ttt VISIT US AGAINn"; getch(); clrscr(); goto again; } else {goto again; } case 2: cout<<"nnnnnttttCANTEEN DETAILS";
  • 5. cout<<"nn#TIMING:nn 11 AM TO 02 PM n 03 PM TO 05 PM"; cout<<"nn#CANTEEN WILL CLOSED ON TUESDAY"; cout<<"nn#GOODS ONCE SOLD WILL NOT BE EXCHANGED/REPLACED"; cout<<"nn#TAKE YOUR SMART CARD WITH YOU"; cout<<"nn#COLLECT YOUR SMART CARD & BILL AFTER PAYMENT"; cout<<"nn#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<<"ntttItems Avaliable in Canteen.nnn"; cout<<"========================================================================= ======"; cout<<"nITEMS" <<setw(40)<<"QUANTITY"; cout<<"n======================================================================= ========"; cout<<"nnnBISCUTE" <<setw(38)<<abis; cout<<"nnnPEPSODENT" <<setw(36)<<apep; cout<<"nnnDENIM POWDER" <<setw(33)<<aden; cout<<"nnnMUNCH" <<setw(40)<<amun; cout<<"nnnPARK AVENUE PERFUME"<<setw(26)<<aperk; cout<<"nnnCOCONUT HAIR OIL" <<setw(29)<<acoc; cout<<"nnnTITAN WATCH" <<setw(34)<<atit; cout<<"nnnLUX SOAP" <<setw(37)<<alux; cout<<"nnnTIDE" <<setw(41)<<atid; cout<<"nnnREEBOK SHOES" <<setw(33)<<aree; cout<<"n*********************************************************************** ********"; getch(); goto again; } else {{cout<<"ntttItems Avaliable in Canteen.nnn"; cout<<"========================================================================= ======"; cout<<"nITEMS" <<setw(40)<<"QUANTITY"; cout<<"n======================================================================= ========"; cout<<"nnnBISCUTE" <<setw(38)<<qubis; cout<<"nnnPEPSODENT" <<setw(36)<<qupep; cout<<"nnnDENIM POWDER" <<setw(33)<<quden; cout<<"nnnMUNCH" <<setw(40)<<qumun; cout<<"nnnPARK AVENUE PERFUME"<<setw(26)<<quperk; cout<<"nnnCOCONUT HAIR OIL" <<setw(29)<<qucoc; cout<<"nnnTITAN WATCH" <<setw(34)<<qutit; cout<<"nnnLUX SOAP" <<setw(37)<<qulux; cout<<"nnnTIDE" <<setw(41)<<qutid; cout<<"nnnREEBOK SHOES" <<setw(33)<<quree; cout<<"nn********************************************************************* **********"; getch(); goto again; } case 5:
  • 6. cout<<"nnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn tttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnntPress any key to Exit......."; getch(); exit(0); default: cout<<"Your choice is wrong"; getch(); goto again; } } } }
  • 7. cout<<"nnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn tttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnntttt THANKS"; sleep(1); clrscr(); cout<<"nnnnnnnnnnntPress any key to Exit......."; getch(); exit(0); default: cout<<"Your choice is wrong"; getch(); goto again; } } } }