COMPUTER SCIENCE
PROJECT FILE
PIZZA ORDERING
MANAGEMENT SYSTEM
2019
-
2020
PROJECT PREPARED BY:
SAJID ALI
XII - A
Session:2019-2020
RAJKIYA PRATIBHA VIKAS
VIDYALAYA
TABLE OF CONTENTS
 Certificate
 Acknowledgement
 About the Project
 Header files and their purpose
 Source Code
 Project Output
 Bibliography
Certificate
This is to certify that Sajid Ali student of class
12th
, has successfullycompletedhis Computer
Science Project on Pizza Ordering Management
System under the guidance of Mr. Mohit Garg
for the CBSE as prescribedby CBSE in the year
2019-2020.
Date :
RegistrationNo. :
Signature of Internal Signature of External
Examiner Examiner
__________________ __________________
Acknowledgement
I thank my Computer Science teacher Mr.
Mohit Garg for guidance and support me. I also
thank my Principal Mr. Rakesh Semalty. I
would also like to thank my parents and my
brother for encouraging me during the course
of this project. Finally, I would like to thank
CBSE for giving me this opportunity to
undertake this project.
About the Project
Pizza Ordering System is based on a concept of
making pizza orders and payments. Here, the user
can select pizza sets, quantity and proceed towards
payment. Other features include viewing full
payment receipt which includes each and every
details. Prices are displayedin RM currency
(MalaysianRinggit). This project contains lots of
essentialfeatures.
Talking about the features of the Pizza Ordering
System, a user can view all the items in the main
menu with their respectiveprices and select among
them. Then the user has to enter Quantity to
proceed toward payments. The system displays a
total amount and the user has to enter amount
equivalentto his/hertotal cost or more than that.
The system declines whenever a user provides an
amount less than the total cost of the user. After all
these, the system asks whether to displaypayment
receipt or not. If yes then, the payment receipt is
displayedwhich includes full date, telephone, fax,
order number, cashier’s name and descriptionwith
total quantity, price and amount.
Pizza Ordering System is developedusing C++
Programming Language and different variables,
strings have been used for the developmentof it.
Pizza Ordering System of C++ Programming saves
our lots of time. This project provides the simplest
system for managing pizza orders and payment in a
restaurant.
HEADER FILES USED AND THEIR
PURPOSE
1. IOSTREAM.H– for Basic input and output services
2. STDLIB.H – for random(), randomize() functions
3. CONIO.H – for clrscr() and getch() functions
4. STDIO.H – for standard I/O operations
5. STRING.H – for string handling
6. IOMANIP.H – for use of setw() function
SOURCE
CODE
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <iomanip>
#include <stdlib.h>
#include <conio.h>
#include <ctime>
using namespace std;
int main(){
int input;
char character,choice,receipt;
int order,quantity;
float payment,balance;
time_t now = time(0);
char* dt=ctime(&now);
const float set1=23.40;
const float set2=30.50;
const float set3=20.30;
const float set4=25.20;
system("cls");
/*This is The Main Menu*/
cout << "nnnttt -----------Pizza Ordering System------------
"<<endl;
cout << "nnnttt -----------Branch Owner: Sajid Ali------------
"<<endl;
cout << "ttt| |"<<endl;
cout << "ttt| Press Y to continue and press N to exit |"<<endl;
cout << "ttt| |"<<endl;
cout << "ttt| |"<<endl;
cout << "ttt ---------------------------------------------"<<endl;
input:
cout << "ntttEnter Input [y/n] : ";
cin >> character;
switch(character){
case 'Y' :
case 'y' :
goto menu;
break;
case 'N' :
case 'n' :
system("PAUSE");
cout<<"ntttTHANK YOU FOR VISITING";
exit(EXIT_SUCCESS);
break;
default :
cout << "ntttYou enter wrong input"<<endl;
goto input;
break;
}
menu:
system("cls");
/*This is Categories of Pizza*/
cout << "nttt -----------------------------------------------------------
"<<endl;
cout << "ttt| Pizza Hut - Menu |"<<endl;
cout << "ttt -----------------------------------------------------------
"<<endl;
cout << "nttt ------------Set A----------t ------------Set B----------
"<<endl;
cout << "ttt| Pizza : Tropical Chicken |t| Pizza : Beef Pepperoni
|"<<endl;
cout << "ttt| Drink : Pepsi |t| Drink : Coca Cola
|"<<endl;
cout << "ttt| Price : RM 23.40 |t| Price : RM 30.50
|"<<endl;
cout << "ttt ---------------------------t ---------------------------"<<endl;
cout << "nttt ------------Set C----------t ------------Set D----------
"<<endl;
cout << "ttt| Pizza : Deluxe Cheese |t| Pizza : Hawaiian Chicken
|"<<endl;
cout << "ttt| Drink : Sprite |t| Drink : 7up |"<<endl;
cout << "ttt| Price : RM 20.30 |t| Price : RM 25.20
|"<<endl;
cout << "ttt ---------------------------t ---------------------------"<<endl;
choose:
cout << "ntttChoose Set : ";
cin >> choice;
/*This is Calculation Part*/
switch(choice){
case 'A' :
case 'a' :
cout << "ntttQuantity : ";
cin >> quantity;
system("cls");
cout << "ntttYou pick Set : A"<<endl;
cout << "nttt ---------------------------"<<endl;
cout << "ttt| Pizza : Tropical Chicken |"<<endl;
cout << "ttt| Drink : Pepsi |"<<endl;
cout << "ttt| Price : RM 23.40 |"<<endl;
cout << "ttt ---------------------------"<<endl;
cout << fixed<<showpoint<<setprecision(2);
cout << "tttQuantity : "<<quantity<<endl;
cout << "ntttYour total cost is RM "<<(set1*quantity)<<endl;
do{
cout << "ntttPlease make your payment RM: ";
cin >> payment;
if(payment>=(set1*quantity)){
balance=payment-(set1*quantity);
cout << fixed<<showpoint<<setprecision(2);
cout << "ntttYour balance is RM: " << balance;
}
else{
cout<< "ntttPayment not enough";
}
}while(payment< (set1*quantity));
x:
cout << "nntttDo you want to print receipt? Y/N? ";
cin >> receipt;
if(receipt=='Y'||receipt=='y'){
system("cls");
/*This is Bill Details of Set A*/
cout << "nttt ------------------------------------------------"<<endl;
cout << "ttt| Pizza Hut |"<<endl;
cout << "ttt ------------------------------------------------"<<endl;
cout << endl;
cout << " "<<dt<<endl;
cout << "ttt Tel : 03-339-31206 Fax : 013-363-4357"<<endl;
cout << "ttt Till : R3451 Order : M35042627"<<endl;
cout << endl;
cout << endl;
cout << "ttt Cashier : MIRUL"<<endl;
cout << "ttt Shift : SHIFT-1"<<endl;
cout << endl;
cout << "nttt ------------------------------------------------"<<endl;
cout << "ttt| Description Qty Price Amount |"<<endl;
cout << "ttt ------------------------------------------------"<<endl;
cout << "ttt Set A "<<" "<<quantity<<" "<<set1<<"
"<<set1*quantity<<" "<<endl;
cout << " "<<endl;
cout << "ttt Total "<<" "<<set1*quantity<<endl;
cout << "ttt Cash "<<" "<<payment<<endl;
cout << "ttt Balance "<<" "<<balance<<endl;
cout << "ttt ------------------------------------------------"<<endl;
}
else if(receipt=='N'||receipt=='n'){
goto inmenu;
}
else{
cout << "ntttYou enter wrong input!!!"<<endl;
goto x;
}
break;
case 'B' :
case 'b' :
cout << "ntttQuantity : ";
cin >> quantity;
system("cls");
cout << "ntttYou pick Set : B"<<endl;
cout << "nttt ---------------------------"<<endl;
cout << "ttt| Pizza : Beef Pepperoni |"<<endl;
cout << "ttt| Drink : Coca COla |"<<endl;
cout << "ttt| Price : RM 30.50 |"<<endl;
cout << "ttt ---------------------------"<<endl;
cout << fixed<<showpoint<<setprecision(2);
cout << "tttQuantity : "<<quantity<<endl;
cout << "ntttYour total cost is RM "<<(set2*quantity)<<endl;
do{
cout << "nntttPlease make your payment RM: ";
cin >> payment;
if(payment>=(set2*quantity)){
balance=payment-(set2*quantity);
cout << fixed<<showpoint<<setprecision(2);
cout << "ntttYour balance is RM: " << balance<<endl;
}
else{
cout<< "ntttPayment not enough";
}
}while(payment<(set2*quantity));
y:
cout << "nntttDo you want to print receipt? Y/N? ";
cin >> receipt;
if(receipt=='Y'||receipt=='y'){
system("cls");
/*This is Bill Details of Set B*/
cout << "nttt ------------------------------------------------"<<endl;
cout << "ttt| Pizza Hut |"<<endl;
cout << "ttt ------------------------------------------------"<<endl;
cout << endl;
cout << " "<<dt<<endl;
cout << "ttt Tel : 03-339-31206 Fax : 013-363-4357"<<endl;
cout << "ttt Till : R3451 Order : M35042627"<<endl;
cout << endl;
cout << endl;
cout << "ttt Cashier : CHRISTINE"<<endl;
cout << "ttt Shift : SHIFT-1"<<endl;
cout << endl;
cout << "nttt ------------------------------------------------"<<endl;
cout << "ttt| Description Qty Price Amount |"<<endl;
cout << "ttt ------------------------------------------------"<<endl;
cout << "ttt Set B "<<" "<<quantity<<" "<<set1<<"
"<<set1*quantity<<" "<<endl;
cout << " "<<endl;
cout << "ttt Total "<<" "<<set1*quantity<<endl;
cout << "ttt Cash "<<" "<<payment<<endl;
cout << "ttt Balance "<<" "<<balance<<endl;
cout << "ttt ------------------------------------------------"<<endl;
}
else if(receipt=='N'||receipt=='n'){
goto inmenu;
}
else{
cout << "ntttYou enter wrong input!!!"<<endl;
goto y;
}
break;
case 'C' :
case 'c' :
cout << "ntttQuantity : ";
cin >> quantity;
system("cls");
cout << "ntttYou pick Set : C"<<endl;
cout << "nttt ---------------------------"<<endl;
cout << "ttt| Pizza : Deluxe Cheese |"<<endl;
cout << "ttt| Drink : Sprite |"<<endl;
cout << "ttt| Price : RM 20.30 |"<<endl;
cout << "ttt ---------------------------"<<endl;
cout << fixed<<showpoint<<setprecision(2);
cout << "tttQuantity : "<<quantity<<endl;
cout << "ntttYour total cost is RM "<<(set3*quantity)<<endl;
do{
cout << "nntttPlease make your payment RM: ";
cin >> payment;
if(payment>=(set3*quantity)){
balance=payment-(set3*quantity);
cout << fixed<<showpoint<<setprecision(2);
cout << "ntttYour balance is RM: " << balance<<endl;
}
else{
cout<< "ntttPayment not enough";
}
}while(payment<(set3*quantity));
z:
cout << "nntttDo you want to print receipt? Y/N? ";
cin >> receipt;
if(receipt=='Y'||receipt=='y'){
system("cls");
/*This is Bill Details of Set C*/
cout << "nttt ------------------------------------------------"<<endl;
cout << "ttt| Pizza Hut |"<<endl;
cout << "ttt ------------------------------------------------"<<endl;
cout << endl;
cout << " "<<dt<<endl;
cout << "ttt Tel : 03-339-31206 Fax : 013-363-4357"<<endl;
cout << "ttt Till : R3451 Order : M35042627"<<endl;
cout << endl;
cout << endl;
cout << "ttt Cashier : TOM"<<endl;
cout << "ttt Shift : SHIFT-1"<<endl;
cout << endl;
cout << "nttt ------------------------------------------------"<<endl;
cout << "ttt| Description Qty Price Amount |"<<endl;
cout << "ttt ------------------------------------------------"<<endl;
cout << "ttt Set C "<<" "<<quantity<<" "<<set1<<"
"<<set1*quantity<<" "<<endl;
cout << " "<<endl;
cout << "ttt Total "<<" "<<set1*quantity<<endl;
cout << "ttt Cash "<<" "<<payment<<endl;
cout << "ttt Balance "<<" "<<balance<<endl;
cout << "ttt ------------------------------------------------"<<endl;
}
else if(receipt=='N'||receipt=='n'){
goto inmenu;
}
else{
cout << "ntttYou enter wrong input!!!"<<endl;
goto z;
}
break;
case 'D' :
case 'd' :
cout << "ntttQuantity : ";
cin >> quantity;
system("cls");
cout << "ntttYou pick Set D"<<endl;
cout << "nttt ---------------------------"<<endl;
cout << "ttt| Pizza : Hawaiian Chicken |"<<endl;
cout << "ttt| Drink : 7up |"<<endl;
cout << "ttt| Price : RM 25.20 |"<<endl;
cout << "ttt ---------------------------"<<endl;
cout << fixed<<showpoint<<setprecision(2);
cout << "ntttYour total cost is RM "<<(set4*quantity)<<endl;
do{
cout << "ntttPlease make your payment RM: ";
cin >> payment;
if(payment>=(set4*quantity)){ //fn1353
balance=payment-(set4*quantity);
cout << fixed<<showpoint<<setprecision(2);
cout << "ntttYour balance is RM: " << balance<<endl;
}
else{
cout<< "ntttPayment not enough";
}
}while(payment<(set4*quantity));
s:
cout << "nntttDo you want to print receipt? Y/N? ";
cin >> receipt;
if(receipt=='Y'||receipt=='y'){
system("cls");
/*This is Bill Details of Set D*/
cout << "nttt ------------------------------------------------"<<endl;
cout << "ttt| Pizza Hut |"<<endl;
cout << "ttt ------------------------------------------------"<<endl;
cout << endl;
cout << " "<<dt<<endl;
cout << "ttt Tel : 03-339-31206 Fax : 013-363-4357"<<endl;
cout << "ttt Till : R3451 Order : M35042627"<<endl;
cout << endl;
cout << endl;
cout << "ttt Cashier : HARRY"<<endl;
cout << "ttt Shift : SHIFT-1"<<endl;
cout << endl;
cout << "nttt ------------------------------------------------"<<endl;
cout << "ttt| Description Qty Price Amount |"<<endl;
cout << "ttt ------------------------------------------------"<<endl;
cout << "ttt Set D "<<" "<<quantity<<" "<<set1<<"
"<<set1*quantity<<" "<<endl;
cout << " "<<endl;
cout << "ttt Total "<<" "<<set1*quantity<<endl;
cout << "ttt Cash "<<" "<<payment<<endl;
cout << "ttt Balance "<<" "<<balance<<endl;
cout << "ttt ------------------------------------------------"<<endl;
}
else if(receipt=='N'||receipt=='n'){
goto inmenu;
}
else{
cout << "ntttYou enter wrong input!!!"<<endl;
goto s;
}
break;
default :
cout << "ntttSet not Available"<<endl;
goto choose;
break;
}
inmenu:
cout<<"n";
system("PAUSE");
cout << "nntttMenu : "<<endl;
cout << endl;
cout << "ttt1. Order again"<<endl;
cout << "ttt2. Exit"<<endl;
cout << "ntttEnter choice :";
cin >> input;
switch(input){
case 1 :
goto menu;
break;
case 2 :
/*Ending Message*/
cout << "nttt -----------------------------"<< endl;
cout << "ttt| Thank you please come again |"<<endl;
cout << "ttt -----------------------------"<<endl;
system("PAUSE");
exit(EXIT_SUCCESS);
break;
default :
cout << "ntttYou enter wrong input"<<endl;
goto inmenu;
break;
}
}
PROJECT
OUTPUT
Bibliography
For Books:
 Computer Science with C++ by Sumit Arora
 Object Oriented Programmingby Robert
Lafore
 Computer Science with C++ by Preeti Arora
and Pinky Gupta
For Websites:
 https://www.wikipedia.org
 https://www.quora.com

Computer Science Project on Management System

  • 1.
    COMPUTER SCIENCE PROJECT FILE PIZZAORDERING MANAGEMENT SYSTEM 2019 - 2020 PROJECT PREPARED BY: SAJID ALI XII - A Session:2019-2020 RAJKIYA PRATIBHA VIKAS VIDYALAYA
  • 2.
    TABLE OF CONTENTS Certificate  Acknowledgement  About the Project  Header files and their purpose  Source Code  Project Output  Bibliography
  • 3.
    Certificate This is tocertify that Sajid Ali student of class 12th , has successfullycompletedhis Computer Science Project on Pizza Ordering Management System under the guidance of Mr. Mohit Garg for the CBSE as prescribedby CBSE in the year 2019-2020. Date : RegistrationNo. : Signature of Internal Signature of External Examiner Examiner __________________ __________________
  • 4.
    Acknowledgement I thank myComputer Science teacher Mr. Mohit Garg for guidance and support me. I also thank my Principal Mr. Rakesh Semalty. I would also like to thank my parents and my brother for encouraging me during the course of this project. Finally, I would like to thank CBSE for giving me this opportunity to undertake this project.
  • 5.
    About the Project PizzaOrdering System is based on a concept of making pizza orders and payments. Here, the user can select pizza sets, quantity and proceed towards payment. Other features include viewing full payment receipt which includes each and every details. Prices are displayedin RM currency (MalaysianRinggit). This project contains lots of essentialfeatures. Talking about the features of the Pizza Ordering System, a user can view all the items in the main menu with their respectiveprices and select among them. Then the user has to enter Quantity to proceed toward payments. The system displays a total amount and the user has to enter amount equivalentto his/hertotal cost or more than that. The system declines whenever a user provides an amount less than the total cost of the user. After all these, the system asks whether to displaypayment receipt or not. If yes then, the payment receipt is displayedwhich includes full date, telephone, fax, order number, cashier’s name and descriptionwith total quantity, price and amount. Pizza Ordering System is developedusing C++ Programming Language and different variables, strings have been used for the developmentof it.
  • 6.
    Pizza Ordering Systemof C++ Programming saves our lots of time. This project provides the simplest system for managing pizza orders and payment in a restaurant.
  • 7.
    HEADER FILES USEDAND THEIR PURPOSE 1. IOSTREAM.H– for Basic input and output services 2. STDLIB.H – for random(), randomize() functions 3. CONIO.H – for clrscr() and getch() functions 4. STDIO.H – for standard I/O operations 5. STRING.H – for string handling 6. IOMANIP.H – for use of setw() function
  • 8.
  • 9.
    #include <iostream> #include <string.h> #include<stdio.h> #include <iomanip> #include <stdlib.h> #include <conio.h> #include <ctime> using namespace std; int main(){ int input; char character,choice,receipt; int order,quantity; float payment,balance; time_t now = time(0); char* dt=ctime(&now); const float set1=23.40; const float set2=30.50; const float set3=20.30; const float set4=25.20; system("cls"); /*This is The Main Menu*/ cout << "nnnttt -----------Pizza Ordering System------------ "<<endl; cout << "nnnttt -----------Branch Owner: Sajid Ali------------ "<<endl; cout << "ttt| |"<<endl; cout << "ttt| Press Y to continue and press N to exit |"<<endl; cout << "ttt| |"<<endl; cout << "ttt| |"<<endl;
  • 10.
    cout << "ttt---------------------------------------------"<<endl; input: cout << "ntttEnter Input [y/n] : "; cin >> character; switch(character){ case 'Y' : case 'y' : goto menu; break; case 'N' : case 'n' : system("PAUSE"); cout<<"ntttTHANK YOU FOR VISITING"; exit(EXIT_SUCCESS); break; default : cout << "ntttYou enter wrong input"<<endl; goto input; break; } menu: system("cls"); /*This is Categories of Pizza*/ cout << "nttt ----------------------------------------------------------- "<<endl; cout << "ttt| Pizza Hut - Menu |"<<endl; cout << "ttt ----------------------------------------------------------- "<<endl; cout << "nttt ------------Set A----------t ------------Set B---------- "<<endl;
  • 11.
    cout << "ttt|Pizza : Tropical Chicken |t| Pizza : Beef Pepperoni |"<<endl; cout << "ttt| Drink : Pepsi |t| Drink : Coca Cola |"<<endl; cout << "ttt| Price : RM 23.40 |t| Price : RM 30.50 |"<<endl; cout << "ttt ---------------------------t ---------------------------"<<endl; cout << "nttt ------------Set C----------t ------------Set D---------- "<<endl; cout << "ttt| Pizza : Deluxe Cheese |t| Pizza : Hawaiian Chicken |"<<endl; cout << "ttt| Drink : Sprite |t| Drink : 7up |"<<endl; cout << "ttt| Price : RM 20.30 |t| Price : RM 25.20 |"<<endl; cout << "ttt ---------------------------t ---------------------------"<<endl; choose: cout << "ntttChoose Set : "; cin >> choice; /*This is Calculation Part*/ switch(choice){ case 'A' : case 'a' : cout << "ntttQuantity : "; cin >> quantity; system("cls"); cout << "ntttYou pick Set : A"<<endl; cout << "nttt ---------------------------"<<endl; cout << "ttt| Pizza : Tropical Chicken |"<<endl; cout << "ttt| Drink : Pepsi |"<<endl; cout << "ttt| Price : RM 23.40 |"<<endl; cout << "ttt ---------------------------"<<endl; cout << fixed<<showpoint<<setprecision(2);
  • 12.
    cout << "tttQuantity: "<<quantity<<endl; cout << "ntttYour total cost is RM "<<(set1*quantity)<<endl; do{ cout << "ntttPlease make your payment RM: "; cin >> payment; if(payment>=(set1*quantity)){ balance=payment-(set1*quantity); cout << fixed<<showpoint<<setprecision(2); cout << "ntttYour balance is RM: " << balance; } else{ cout<< "ntttPayment not enough"; } }while(payment< (set1*quantity)); x: cout << "nntttDo you want to print receipt? Y/N? "; cin >> receipt; if(receipt=='Y'||receipt=='y'){ system("cls"); /*This is Bill Details of Set A*/ cout << "nttt ------------------------------------------------"<<endl; cout << "ttt| Pizza Hut |"<<endl; cout << "ttt ------------------------------------------------"<<endl; cout << endl; cout << " "<<dt<<endl; cout << "ttt Tel : 03-339-31206 Fax : 013-363-4357"<<endl; cout << "ttt Till : R3451 Order : M35042627"<<endl; cout << endl; cout << endl; cout << "ttt Cashier : MIRUL"<<endl; cout << "ttt Shift : SHIFT-1"<<endl;
  • 13.
    cout << endl; cout<< "nttt ------------------------------------------------"<<endl; cout << "ttt| Description Qty Price Amount |"<<endl; cout << "ttt ------------------------------------------------"<<endl; cout << "ttt Set A "<<" "<<quantity<<" "<<set1<<" "<<set1*quantity<<" "<<endl; cout << " "<<endl; cout << "ttt Total "<<" "<<set1*quantity<<endl; cout << "ttt Cash "<<" "<<payment<<endl; cout << "ttt Balance "<<" "<<balance<<endl; cout << "ttt ------------------------------------------------"<<endl; } else if(receipt=='N'||receipt=='n'){ goto inmenu; } else{ cout << "ntttYou enter wrong input!!!"<<endl; goto x; } break; case 'B' : case 'b' : cout << "ntttQuantity : "; cin >> quantity; system("cls"); cout << "ntttYou pick Set : B"<<endl; cout << "nttt ---------------------------"<<endl; cout << "ttt| Pizza : Beef Pepperoni |"<<endl; cout << "ttt| Drink : Coca COla |"<<endl; cout << "ttt| Price : RM 30.50 |"<<endl; cout << "ttt ---------------------------"<<endl; cout << fixed<<showpoint<<setprecision(2); cout << "tttQuantity : "<<quantity<<endl; cout << "ntttYour total cost is RM "<<(set2*quantity)<<endl; do{ cout << "nntttPlease make your payment RM: ";
  • 14.
    cin >> payment; if(payment>=(set2*quantity)){ balance=payment-(set2*quantity); cout<< fixed<<showpoint<<setprecision(2); cout << "ntttYour balance is RM: " << balance<<endl; } else{ cout<< "ntttPayment not enough"; } }while(payment<(set2*quantity)); y: cout << "nntttDo you want to print receipt? Y/N? "; cin >> receipt; if(receipt=='Y'||receipt=='y'){ system("cls"); /*This is Bill Details of Set B*/ cout << "nttt ------------------------------------------------"<<endl; cout << "ttt| Pizza Hut |"<<endl; cout << "ttt ------------------------------------------------"<<endl; cout << endl; cout << " "<<dt<<endl; cout << "ttt Tel : 03-339-31206 Fax : 013-363-4357"<<endl; cout << "ttt Till : R3451 Order : M35042627"<<endl; cout << endl; cout << endl; cout << "ttt Cashier : CHRISTINE"<<endl; cout << "ttt Shift : SHIFT-1"<<endl; cout << endl; cout << "nttt ------------------------------------------------"<<endl; cout << "ttt| Description Qty Price Amount |"<<endl; cout << "ttt ------------------------------------------------"<<endl;
  • 15.
    cout << "tttSet B "<<" "<<quantity<<" "<<set1<<" "<<set1*quantity<<" "<<endl; cout << " "<<endl; cout << "ttt Total "<<" "<<set1*quantity<<endl; cout << "ttt Cash "<<" "<<payment<<endl; cout << "ttt Balance "<<" "<<balance<<endl; cout << "ttt ------------------------------------------------"<<endl; } else if(receipt=='N'||receipt=='n'){ goto inmenu; } else{ cout << "ntttYou enter wrong input!!!"<<endl; goto y; } break; case 'C' : case 'c' : cout << "ntttQuantity : "; cin >> quantity; system("cls"); cout << "ntttYou pick Set : C"<<endl; cout << "nttt ---------------------------"<<endl; cout << "ttt| Pizza : Deluxe Cheese |"<<endl; cout << "ttt| Drink : Sprite |"<<endl; cout << "ttt| Price : RM 20.30 |"<<endl; cout << "ttt ---------------------------"<<endl; cout << fixed<<showpoint<<setprecision(2); cout << "tttQuantity : "<<quantity<<endl; cout << "ntttYour total cost is RM "<<(set3*quantity)<<endl; do{ cout << "nntttPlease make your payment RM: "; cin >> payment; if(payment>=(set3*quantity)){ balance=payment-(set3*quantity);
  • 16.
    cout << fixed<<showpoint<<setprecision(2); cout<< "ntttYour balance is RM: " << balance<<endl; } else{ cout<< "ntttPayment not enough"; } }while(payment<(set3*quantity)); z: cout << "nntttDo you want to print receipt? Y/N? "; cin >> receipt; if(receipt=='Y'||receipt=='y'){ system("cls"); /*This is Bill Details of Set C*/ cout << "nttt ------------------------------------------------"<<endl; cout << "ttt| Pizza Hut |"<<endl; cout << "ttt ------------------------------------------------"<<endl; cout << endl; cout << " "<<dt<<endl; cout << "ttt Tel : 03-339-31206 Fax : 013-363-4357"<<endl; cout << "ttt Till : R3451 Order : M35042627"<<endl; cout << endl; cout << endl; cout << "ttt Cashier : TOM"<<endl; cout << "ttt Shift : SHIFT-1"<<endl; cout << endl; cout << "nttt ------------------------------------------------"<<endl; cout << "ttt| Description Qty Price Amount |"<<endl; cout << "ttt ------------------------------------------------"<<endl; cout << "ttt Set C "<<" "<<quantity<<" "<<set1<<" "<<set1*quantity<<" "<<endl; cout << " "<<endl; cout << "ttt Total "<<" "<<set1*quantity<<endl; cout << "ttt Cash "<<" "<<payment<<endl;
  • 17.
    cout << "tttBalance "<<" "<<balance<<endl; cout << "ttt ------------------------------------------------"<<endl; } else if(receipt=='N'||receipt=='n'){ goto inmenu; } else{ cout << "ntttYou enter wrong input!!!"<<endl; goto z; } break; case 'D' : case 'd' : cout << "ntttQuantity : "; cin >> quantity; system("cls"); cout << "ntttYou pick Set D"<<endl; cout << "nttt ---------------------------"<<endl; cout << "ttt| Pizza : Hawaiian Chicken |"<<endl; cout << "ttt| Drink : 7up |"<<endl; cout << "ttt| Price : RM 25.20 |"<<endl; cout << "ttt ---------------------------"<<endl; cout << fixed<<showpoint<<setprecision(2); cout << "ntttYour total cost is RM "<<(set4*quantity)<<endl; do{ cout << "ntttPlease make your payment RM: "; cin >> payment; if(payment>=(set4*quantity)){ //fn1353 balance=payment-(set4*quantity); cout << fixed<<showpoint<<setprecision(2); cout << "ntttYour balance is RM: " << balance<<endl; } else{
  • 18.
    cout<< "ntttPayment notenough"; } }while(payment<(set4*quantity)); s: cout << "nntttDo you want to print receipt? Y/N? "; cin >> receipt; if(receipt=='Y'||receipt=='y'){ system("cls"); /*This is Bill Details of Set D*/ cout << "nttt ------------------------------------------------"<<endl; cout << "ttt| Pizza Hut |"<<endl; cout << "ttt ------------------------------------------------"<<endl; cout << endl; cout << " "<<dt<<endl; cout << "ttt Tel : 03-339-31206 Fax : 013-363-4357"<<endl; cout << "ttt Till : R3451 Order : M35042627"<<endl; cout << endl; cout << endl; cout << "ttt Cashier : HARRY"<<endl; cout << "ttt Shift : SHIFT-1"<<endl; cout << endl; cout << "nttt ------------------------------------------------"<<endl; cout << "ttt| Description Qty Price Amount |"<<endl; cout << "ttt ------------------------------------------------"<<endl; cout << "ttt Set D "<<" "<<quantity<<" "<<set1<<" "<<set1*quantity<<" "<<endl; cout << " "<<endl; cout << "ttt Total "<<" "<<set1*quantity<<endl; cout << "ttt Cash "<<" "<<payment<<endl; cout << "ttt Balance "<<" "<<balance<<endl; cout << "ttt ------------------------------------------------"<<endl; } else if(receipt=='N'||receipt=='n'){ goto inmenu; }
  • 19.
    else{ cout << "ntttYouenter wrong input!!!"<<endl; goto s; } break; default : cout << "ntttSet not Available"<<endl; goto choose; break; } inmenu: cout<<"n"; system("PAUSE"); cout << "nntttMenu : "<<endl; cout << endl; cout << "ttt1. Order again"<<endl; cout << "ttt2. Exit"<<endl; cout << "ntttEnter choice :"; cin >> input; switch(input){ case 1 : goto menu; break; case 2 : /*Ending Message*/ cout << "nttt -----------------------------"<< endl; cout << "ttt| Thank you please come again |"<<endl; cout << "ttt -----------------------------"<<endl; system("PAUSE"); exit(EXIT_SUCCESS); break; default :
  • 20.
    cout << "ntttYouenter wrong input"<<endl; goto inmenu; break; } }
  • 21.
  • 26.
    Bibliography For Books:  ComputerScience with C++ by Sumit Arora  Object Oriented Programmingby Robert Lafore  Computer Science with C++ by Preeti Arora and Pinky Gupta For Websites:  https://www.wikipedia.org  https://www.quora.com