SlideShare a Scribd company logo
1 of 7
#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

如何「畫圖」寫測試 - RxJS Marble Test
如何「畫圖」寫測試 - RxJS Marble Test如何「畫圖」寫測試 - RxJS Marble Test
如何「畫圖」寫測試 - RxJS Marble Test名辰 洪
 
You will learn RxJS in 2017
You will learn RxJS in 2017You will learn RxJS in 2017
You will learn RxJS in 2017名辰 洪
 
Numerical Methods with Computer Programming
Numerical Methods with Computer ProgrammingNumerical Methods with Computer Programming
Numerical Methods with Computer ProgrammingUtsav Patel
 
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDYDATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDYMalikireddy Bramhananda Reddy
 
Работа с реляционными базами данных в C++
Работа с реляционными базами данных в C++Работа с реляционными базами данных в C++
Работа с реляционными базами данных в C++corehard_by
 
Node.js flow control
Node.js flow controlNode.js flow control
Node.js flow controlSimon Su
 
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloadingkinan keshkeh
 
Assignment no39
Assignment no39Assignment no39
Assignment no39Jay Patel
 
Finch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with FinagleFinch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with FinagleVladimir Kostyukov
 
Computer Science Investigatory Project class 12th
Computer Science Investigatory Project class 12thComputer Science Investigatory Project class 12th
Computer Science Investigatory Project class 12thiamtheanupam
 
How to stand on the shoulders of giants
How to stand on the shoulders of giantsHow to stand on the shoulders of giants
How to stand on the shoulders of giantsIan Barber
 

What's hot (20)

如何「畫圖」寫測試 - RxJS Marble Test
如何「畫圖」寫測試 - RxJS Marble Test如何「畫圖」寫測試 - RxJS Marble Test
如何「畫圖」寫測試 - RxJS Marble Test
 
Railwaynew
RailwaynewRailwaynew
Railwaynew
 
Binomial heap
Binomial heapBinomial heap
Binomial heap
 
You will learn RxJS in 2017
You will learn RxJS in 2017You will learn RxJS in 2017
You will learn RxJS in 2017
 
Ss
SsSs
Ss
 
Numerical Methods with Computer Programming
Numerical Methods with Computer ProgrammingNumerical Methods with Computer Programming
Numerical Methods with Computer Programming
 
Zone IDA Proc
Zone IDA ProcZone IDA Proc
Zone IDA Proc
 
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDYDATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
 
Работа с реляционными базами данных в C++
Работа с реляционными базами данных в C++Работа с реляционными базами данных в C++
Работа с реляционными базами данных в C++
 
Node.js flow control
Node.js flow controlNode.js flow control
Node.js flow control
 
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
 
Code as Risk
Code as RiskCode as Risk
Code as Risk
 
Assignment no39
Assignment no39Assignment no39
Assignment no39
 
Arp
ArpArp
Arp
 
Finch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with FinagleFinch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with Finagle
 
Computer Science Investigatory Project class 12th
Computer Science Investigatory Project class 12thComputer Science Investigatory Project class 12th
Computer Science Investigatory Project class 12th
 
How to stand on the shoulders of giants
How to stand on the shoulders of giantsHow to stand on the shoulders of giants
How to stand on the shoulders of giants
 
Project in programming
Project in programmingProject in programming
Project in programming
 
Ds 2 cycle
Ds 2 cycleDs 2 cycle
Ds 2 cycle
 
Finch + Finagle OAuth2
Finch + Finagle OAuth2Finch + Finagle OAuth2
Finch + Finagle OAuth2
 

Viewers also liked (20)

Canteen management
Canteen managementCanteen management
Canteen management
 
Canteen Management System
Canteen Management SystemCanteen Management System
Canteen Management System
 
cafeteria info management system
cafeteria info management systemcafeteria info management system
cafeteria info management system
 
Canteen project
Canteen projectCanteen project
Canteen project
 
Canteen management system
Canteen management systemCanteen management system
Canteen management system
 
Hotel Management system in C++
Hotel Management system in C++ Hotel Management system in C++
Hotel Management system in C++
 
Canteen management system
Canteen management systemCanteen management system
Canteen management system
 
1-D array
1-D array1-D array
1-D array
 
Pointers
PointersPointers
Pointers
 
2-D array
2-D array2-D array
2-D array
 
File handling
File handlingFile handling
File handling
 
Unit 3
Unit  3Unit  3
Unit 3
 
Functions
FunctionsFunctions
Functions
 
01 computer communication and networks v
01 computer communication and networks v01 computer communication and networks v
01 computer communication and networks v
 
Stack
StackStack
Stack
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
 
Constructor & destructor
Constructor & destructorConstructor & destructor
Constructor & destructor
 
Hotel Management In C++
Hotel Management In C++Hotel Management In C++
Hotel Management In C++
 
C++ revision tour
C++ revision tourC++ revision tour
C++ revision tour
 
Queue
QueueQueue
Queue
 

Similar to c++ program for Canteen management

Hybrid Inheritance in C++
Hybrid Inheritance in C++Hybrid Inheritance in C++
Hybrid Inheritance in C++Abhishek Pratap
 
Bangun datar dan bangun ruang
Bangun datar dan bangun ruangBangun datar dan bangun ruang
Bangun datar dan bangun ruangSanSan Yagyoo
 
C++ program: All tasks .cpp
C++ program: All tasks .cppC++ program: All tasks .cpp
C++ program: All tasks .cppKhalid Waleed
 
Ejercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATAS
Ejercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATASEjercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATAS
Ejercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATASGABRIEL COCA
 
Decipher Multi-Factor Authentication - A Developers Introduction
Decipher Multi-Factor Authentication - A Developers IntroductionDecipher Multi-Factor Authentication - A Developers Introduction
Decipher Multi-Factor Authentication - A Developers IntroductionArcBlock
 
The Ring programming language version 1.6 book - Part 69 of 189
The Ring programming language version 1.6 book - Part 69 of 189The Ring programming language version 1.6 book - Part 69 of 189
The Ring programming language version 1.6 book - Part 69 of 189Mahmoud Samir Fayed
 
Power meter log
Power meter logPower meter log
Power meter logzamriibr82
 
The Ring programming language version 1.3 book - Part 50 of 88
The Ring programming language version 1.3 book - Part 50 of 88The Ring programming language version 1.3 book - Part 50 of 88
The Ring programming language version 1.3 book - Part 50 of 88Mahmoud Samir Fayed
 
Hey, looking to do the following with this programFill in the multip.pdf
Hey, looking to do the following with this programFill in the multip.pdfHey, looking to do the following with this programFill in the multip.pdf
Hey, looking to do the following with this programFill in the multip.pdfrupeshmehta151
 
The Ring programming language version 1.5.3 book - Part 77 of 184
The Ring programming language version 1.5.3 book - Part 77 of 184The Ring programming language version 1.5.3 book - Part 77 of 184
The Ring programming language version 1.5.3 book - Part 77 of 184Mahmoud Samir Fayed
 
The Ring programming language version 1.5.1 book - Part 63 of 180
The Ring programming language version 1.5.1 book - Part 63 of 180The Ring programming language version 1.5.1 book - Part 63 of 180
The Ring programming language version 1.5.1 book - Part 63 of 180Mahmoud Samir Fayed
 
El text.life science6.matsubayashi191120
El text.life science6.matsubayashi191120El text.life science6.matsubayashi191120
El text.life science6.matsubayashi191120RCCSRENKEI
 

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

Hybrid Inheritance in C++
Hybrid Inheritance in C++Hybrid Inheritance in C++
Hybrid Inheritance in C++
 
Bangun datar dan bangun ruang
Bangun datar dan bangun ruangBangun datar dan bangun ruang
Bangun datar dan bangun ruang
 
Ch4
Ch4Ch4
Ch4
 
C++ program: All tasks .cpp
C++ program: All tasks .cppC++ program: All tasks .cpp
C++ program: All tasks .cpp
 
New text document
New text documentNew text document
New text document
 
Ejercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATAS
Ejercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATASEjercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATAS
Ejercicios resueltos en clase de fundaciones ayudante CALCULO DE ZAPATAS
 
Decipher Multi-Factor Authentication - A Developers Introduction
Decipher Multi-Factor Authentication - A Developers IntroductionDecipher Multi-Factor Authentication - A Developers Introduction
Decipher Multi-Factor Authentication - A Developers Introduction
 
The Ring programming language version 1.6 book - Part 69 of 189
The Ring programming language version 1.6 book - Part 69 of 189The Ring programming language version 1.6 book - Part 69 of 189
The Ring programming language version 1.6 book - Part 69 of 189
 
Power meter log
Power meter logPower meter log
Power meter log
 
Inc decsourcefile
Inc decsourcefileInc decsourcefile
Inc decsourcefile
 
The Ring programming language version 1.3 book - Part 50 of 88
The Ring programming language version 1.3 book - Part 50 of 88The Ring programming language version 1.3 book - Part 50 of 88
The Ring programming language version 1.3 book - Part 50 of 88
 
Include
IncludeInclude
Include
 
Hey, looking to do the following with this programFill in the multip.pdf
Hey, looking to do the following with this programFill in the multip.pdfHey, looking to do the following with this programFill in the multip.pdf
Hey, looking to do the following with this programFill in the multip.pdf
 
Listing pid
Listing pidListing pid
Listing pid
 
The Ring programming language version 1.5.3 book - Part 77 of 184
The Ring programming language version 1.5.3 book - Part 77 of 184The Ring programming language version 1.5.3 book - Part 77 of 184
The Ring programming language version 1.5.3 book - Part 77 of 184
 
The Ring programming language version 1.5.1 book - Part 63 of 180
The Ring programming language version 1.5.1 book - Part 63 of 180The Ring programming language version 1.5.1 book - Part 63 of 180
The Ring programming language version 1.5.1 book - Part 63 of 180
 
project3
project3project3
project3
 
Algoritma 5 november wiwik p.l
Algoritma 5 november wiwik p.lAlgoritma 5 november wiwik p.l
Algoritma 5 november wiwik p.l
 
El text.life science6.matsubayashi191120
El text.life science6.matsubayashi191120El text.life science6.matsubayashi191120
El text.life science6.matsubayashi191120
 
Rabia
RabiaRabia
Rabia
 

More from Swarup Kumar Boro

More from Swarup Kumar Boro (15)

c++ program for Railway reservation
c++ program for Railway reservationc++ program for Railway reservation
c++ program for Railway reservation
 
Structures in c++
Structures in c++Structures in c++
Structures in c++
 
Implementation of oop concept in c++
Implementation of oop concept in c++Implementation of oop concept in c++
Implementation of oop concept in c++
 
Computer science study material
Computer science study materialComputer science study material
Computer science study material
 
Arrays and library functions
Arrays and library functionsArrays and library functions
Arrays and library functions
 
Function overloading
Function overloadingFunction overloading
Function overloading
 
computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
 
computer science sample papers 3
computer science sample papers 3computer science sample papers 3
computer science sample papers 3
 
computer science sample papers 1
computer science sample papers 1computer science sample papers 1
computer science sample papers 1
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean algebra laws
Boolean algebra lawsBoolean algebra laws
Boolean algebra laws
 
Class
ClassClass
Class
 
Oop basic concepts
Oop basic conceptsOop basic concepts
Oop basic concepts
 
Physics
PhysicsPhysics
Physics
 
Physics activity
Physics activityPhysics activity
Physics activity
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 

Recently uploaded (20)

Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 

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