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

What's hot (20)

PDF
如何「畫圖」寫測試 - RxJS Marble Test
名辰 洪
 
TXT
Railwaynew
Arsh Vishwakarma
 
DOCX
Binomial heap
Kalpana Vijayaraghavan
 
PDF
You will learn RxJS in 2017
名辰 洪
 
TXT
Ss
Karan Soni
 
PDF
Numerical Methods with Computer Programming
Utsav Patel
 
PDF
Zone IDA Proc
Tzung-Bi Shih
 
PPT
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
 
PDF
Работа с реляционными базами данных в C++
corehard_by
 
PDF
Node.js flow control
Simon Su
 
PDF
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
kinan keshkeh
 
PDF
Code as Risk
Kevlin Henney
 
DOCX
Assignment no39
Jay Patel
 
DOCX
Arp
Ebsil Sherly
 
PDF
Finch.io - Purely Functional REST API with Finagle
Vladimir Kostyukov
 
DOC
Computer Science Investigatory Project class 12th
iamtheanupam
 
PDF
How to stand on the shoulders of giants
Ian Barber
 
PPTX
Project in programming
sahashi11342091
 
DOC
Ds 2 cycle
Chaitanya Kn
 
PDF
Finch + Finagle OAuth2
Vladimir Kostyukov
 
如何「畫圖」寫測試 - RxJS Marble Test
名辰 洪
 
Railwaynew
Arsh Vishwakarma
 
Binomial heap
Kalpana Vijayaraghavan
 
You will learn RxJS in 2017
名辰 洪
 
Numerical Methods with Computer Programming
Utsav Patel
 
Zone IDA Proc
Tzung-Bi Shih
 
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
 
Работа с реляционными базами данных в C++
corehard_by
 
Node.js flow control
Simon Su
 
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
kinan keshkeh
 
Code as Risk
Kevlin Henney
 
Assignment no39
Jay Patel
 
Finch.io - Purely Functional REST API with Finagle
Vladimir Kostyukov
 
Computer Science Investigatory Project class 12th
iamtheanupam
 
How to stand on the shoulders of giants
Ian Barber
 
Project in programming
sahashi11342091
 
Ds 2 cycle
Chaitanya Kn
 
Finch + Finagle OAuth2
Vladimir Kostyukov
 

Viewers also liked (20)

DOCX
Canteen management
Omkar Majukar
 
PPTX
Canteen Management System
lissapenas123
 
PPTX
cafeteria info management system
Gaurav Subham
 
PPTX
Canteen project
jmilne7
 
PPTX
Canteen management system
RITESH HELONDE
 
DOCX
Hotel Management system in C++
Prince Kumar
 
PPTX
Canteen management system
Shailendra Goyal
 
PDF
1-D array
Swarup Kumar Boro
 
PDF
Pointers
Swarup Kumar Boro
 
PDF
2-D array
Swarup Kumar Boro
 
PDF
File handling
Swarup Kumar Boro
 
PDF
Functions
Swarup Kumar Boro
 
PDF
01 computer communication and networks v
Swarup Kumar Boro
 
DOCX
12th CBSE Computer Science Project
Ashwin Francis
 
PDF
Constructor & destructor
Swarup Kumar Boro
 
PPT
Hotel Management In C++
Amish Mhatre
 
PDF
C++ revision tour
Swarup Kumar Boro
 
Canteen management
Omkar Majukar
 
Canteen Management System
lissapenas123
 
cafeteria info management system
Gaurav Subham
 
Canteen project
jmilne7
 
Canteen management system
RITESH HELONDE
 
Hotel Management system in C++
Prince Kumar
 
Canteen management system
Shailendra Goyal
 
File handling
Swarup Kumar Boro
 
01 computer communication and networks v
Swarup Kumar Boro
 
12th CBSE Computer Science Project
Ashwin Francis
 
Constructor & destructor
Swarup Kumar Boro
 
Hotel Management In C++
Amish Mhatre
 
C++ revision tour
Swarup Kumar Boro
 
Ad

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

DOC
Project hotel on hotel management fo
Sunny Singhania
 
DOC
Shopping mall
Pranav Ghildiyal
 
DOCX
Billing in a supermarket c++
varun arora
 
TXT
Canteen management program
Swarup Boro
 
PDF
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
अयशकांत मिश्र
 
DOCX
CS Project-Source code for shopping inventory for CBSE 12th
Sudhindra Mudhol
 
DOCX
ShopC++
Stephen Harrison
 
DOCX
Project fast food automaton
varun arora
 
PDF
Reshma Kodwani , BCA Third Year
dezyneecole
 
PDF
Kirti Kumawat, BCA Third Year
dezyneecole
 
DOCX
c++main.cpp#include iostream#include store.h#includ.docx
humphrieskalyn
 
PDF
I have the first program completed (not how request, but it works) a.pdf
footworld1
 
PPTX
Bank management system project in c++ with graphics
Vtech Academy of Computers
 
PDF
Durgesh
dkbossverma
 
DOCX
computer project on shopping mall..cbse 2017-2018 project
Róhït Ràút
 
DOC
Practical Class 12th (c++programs+sql queries and output)
Aman Deep
 
DOC
Practical Class 12th (c++programs+sql queries and output)
Aman Deep
 
DOC
c++ program on bookshop for class 12th boards
Paras Swarnkar
 
DOCX
Cbse project computer science xii 2018
Kaushalesh Upadhyay
 
DOCX
simple-movie-ticket-booking-system-1
Ajay132002
 
Project hotel on hotel management fo
Sunny Singhania
 
Shopping mall
Pranav Ghildiyal
 
Billing in a supermarket c++
varun arora
 
Canteen management program
Swarup Boro
 
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
अयशकांत मिश्र
 
CS Project-Source code for shopping inventory for CBSE 12th
Sudhindra Mudhol
 
Project fast food automaton
varun arora
 
Reshma Kodwani , BCA Third Year
dezyneecole
 
Kirti Kumawat, BCA Third Year
dezyneecole
 
c++main.cpp#include iostream#include store.h#includ.docx
humphrieskalyn
 
I have the first program completed (not how request, but it works) a.pdf
footworld1
 
Bank management system project in c++ with graphics
Vtech Academy of Computers
 
Durgesh
dkbossverma
 
computer project on shopping mall..cbse 2017-2018 project
Róhït Ràút
 
Practical Class 12th (c++programs+sql queries and output)
Aman Deep
 
Practical Class 12th (c++programs+sql queries and output)
Aman Deep
 
c++ program on bookshop for class 12th boards
Paras Swarnkar
 
Cbse project computer science xii 2018
Kaushalesh Upadhyay
 
simple-movie-ticket-booking-system-1
Ajay132002
 
Ad

More from Swarup Kumar Boro (15)

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

Recently uploaded (20)

PPTX
Controller Request and Response in Odoo18
Celine George
 
DOCX
Lesson 1 - Nature and Inquiry of Research
marvinnbustamante1
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PDF
AI-assisted IP-Design lecture from the MIPLM 2025
MIPLM
 
PDF
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
PPTX
Different types of inheritance in odoo 18
Celine George
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PDF
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
 
PDF
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
PPT
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PDF
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
PPTX
How to Manage Expiry Date in Odoo 18 Inventory
Celine George
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PDF
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PDF
I3PM Case study smart parking 2025 with uptoIP® and ABP
MIPLM
 
Controller Request and Response in Odoo18
Celine George
 
Lesson 1 - Nature and Inquiry of Research
marvinnbustamante1
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
AI-assisted IP-Design lecture from the MIPLM 2025
MIPLM
 
Week 2 - Irish Natural Heritage Powerpoint.pdf
swainealan
 
Different types of inheritance in odoo 18
Celine George
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
 
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 
epi editorial commitee meeting presentation
MIPLM
 
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
How to Manage Expiry Date in Odoo 18 Inventory
Celine George
 
Introduction to Indian Writing in English
Trushali Dodiya
 
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
I3PM Case study smart parking 2025 with uptoIP® and ABP
MIPLM
 

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; } } } }