0% found this document useful (0 votes)
242 views

Computer Science Project On Management System

The document is a project file for a Pizza Ordering Management System created by Sajid Ali for the 2019-2020 session. It includes: 1. An introduction describing the features of the pizza ordering system project created in C++. 2. Details of the header files used and their purposes. 3. The source code for the pizza ordering system which allows users to select pizza sets, input quantities, make payments, and receive receipts. 4. The project was created under the guidance of a teacher for a school assignment and includes typical project documentation like a certificate, acknowledgment, and bibliography sections.

Uploaded by

sajid ali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
242 views

Computer Science Project On Management System

The document is a project file for a Pizza Ordering Management System created by Sajid Ali for the 2019-2020 session. It includes: 1. An introduction describing the features of the pizza ordering system project created in C++. 2. Details of the header files used and their purposes. 3. The source code for the pizza ordering system which allows users to select pizza sets, input quantities, make payments, and receive receipts. 4. The project was created under the guidance of a teacher for a school assignment and includes typical project documentation like a certificate, acknowledgment, and bibliography sections.

Uploaded by

sajid ali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 26

2019

-
2020

COMPUTER SCIENCE
PROJECT FILE

PIZZA ORDERING
MANAGEMENT SYSTEM

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 successfully completed his Computer
Science Project on Pizza Ordering Management
System under the guidance of Mr. Mohit Garg
for the CBSE as prescribed by CBSE in the year
2019-2020.

Date :

Registration No. :

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 displayed in RM currency
(Malaysian Ringgit). This project contains lots of
essential features.
Talking about the features of the Pizza Ordering
System, a user can view all the items in the main
menu with their respective prices 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
equivalent to his/her total 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 display payment
receipt or not. If yes then, the payment receipt is
displayed which includes full date, telephone, fax,
order number, cashier’s name and description with
total quantity, price and amount.
Pizza Ordering System is developed using C++
Programming Language and different variables,
strings have been used for the development of 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 << "\n\n\n\t\t\t -----------Pizza Ordering System------------


"<<endl;
cout << "\n\n\n\t\t\t -----------Branch Owner: Sajid Ali------------
"<<endl;
cout << "\t\t\t| |"<<endl;
cout << "\t\t\t| Press Y to continue and press N to exit |"<<endl;
cout << "\t\t\t| |"<<endl;
cout << "\t\t\t| |"<<endl;
cout << "\t\t\t ---------------------------------------------"<<endl;

input:
cout << "\n\t\t\tEnter Input [y/n] : ";
cin >> character;

switch(character){
case 'Y' :
case 'y' :
goto menu;
break;
case 'N' :
case 'n' :
system("PAUSE");
cout<<"\n\t\t\tTHANK YOU FOR VISITING";
exit(EXIT_SUCCESS);
break;
default :
cout << "\n\t\t\tYou enter wrong input"<<endl;
goto input;
break;

menu:
system("cls");

/*This is Categories of Pizza*/

cout << "\n\t\t\t -----------------------------------------------------------


"<<endl;
cout << "\t\t\t| Pizza Hut - Menu |"<<endl;
cout << "\t\t\t -----------------------------------------------------------
"<<endl;
cout << "\n\t\t\t ------------Set A----------\t ------------Set B----------
"<<endl;
cout << "\t\t\t| Pizza : Tropical Chicken |\t| Pizza : Beef Pepperoni
|"<<endl;
cout << "\t\t\t| Drink : Pepsi |\t| Drink : Coca Cola
|"<<endl;
cout << "\t\t\t| Price : RM 23.40 |\t| Price : RM 30.50
|"<<endl;
cout << "\t\t\t ---------------------------\t ---------------------------"<<endl;

cout << "\n\t\t\t ------------Set C----------\t ------------Set D----------


"<<endl;
cout << "\t\t\t| Pizza : Deluxe Cheese |\t| Pizza : Hawaiian Chicken
|"<<endl;
cout << "\t\t\t| Drink : Sprite |\t| Drink : 7up |"<<endl;
cout << "\t\t\t| Price : RM 20.30 |\t| Price : RM 25.20
|"<<endl;
cout << "\t\t\t ---------------------------\t ---------------------------"<<endl;

choose:
cout << "\n\t\t\tChoose Set : ";
cin >> choice;

/*This is Calculation Part*/

switch(choice){
case 'A' :
case 'a' :
cout << "\n\t\t\tQuantity : ";
cin >> quantity;
system("cls");
cout << "\n\t\t\tYou pick Set : A"<<endl;
cout << "\n\t\t\t ---------------------------"<<endl;
cout << "\t\t\t| Pizza : Tropical Chicken |"<<endl;
cout << "\t\t\t| Drink : Pepsi |"<<endl;
cout << "\t\t\t| Price : RM 23.40 |"<<endl;
cout << "\t\t\t ---------------------------"<<endl;
cout << fixed<<showpoint<<setprecision(2);
cout << "\t\t\tQuantity : "<<quantity<<endl;
cout << "\n\t\t\tYour total cost is RM "<<(set1*quantity)<<endl;
do{
cout << "\n\t\t\tPlease make your payment RM: ";
cin >> payment;

if(payment>=(set1*quantity)){

balance=payment-(set1*quantity);
cout << fixed<<showpoint<<setprecision(2);
cout << "\n\t\t\tYour balance is RM: " << balance;
}

else{

cout<< "\n\t\t\tPayment not enough";


}
}while(payment< (set1*quantity));
x:
cout << "\n\n\t\t\tDo you want to print receipt? Y/N? ";
cin >> receipt;
if(receipt=='Y'||receipt=='y'){
system("cls");

/*This is Bill Details of Set A*/

cout << "\n\t\t\t ------------------------------------------------"<<endl;


cout << "\t\t\t| Pizza Hut |"<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
cout << endl;
cout << " "<<dt<<endl;
cout << "\t\t\t Tel : 03-339-31206 Fax : 013-363-4357"<<endl;
cout << "\t\t\t Till : R3451 Order : M35042627"<<endl;
cout << endl;
cout << endl;
cout << "\t\t\t Cashier : MIRUL"<<endl;
cout << "\t\t\t Shift : SHIFT-1"<<endl;
cout << endl;
cout << "\n\t\t\t ------------------------------------------------"<<endl;
cout << "\t\t\t| Description Qty Price Amount |"<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
cout << "\t\t\t Set A "<<" "<<quantity<<" "<<set1<<"
"<<set1*quantity<<" "<<endl;
cout << " "<<endl;
cout << "\t\t\t Total "<<" "<<set1*quantity<<endl;
cout << "\t\t\t Cash "<<" "<<payment<<endl;
cout << "\t\t\t Balance "<<" "<<balance<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
}
else if(receipt=='N'||receipt=='n'){
goto inmenu;
}
else{
cout << "\n\t\t\tYou enter wrong input!!!"<<endl;
goto x;
}

break;
case 'B' :
case 'b' :
cout << "\n\t\t\tQuantity : ";
cin >> quantity;
system("cls");
cout << "\n\t\t\tYou pick Set : B"<<endl;
cout << "\n\t\t\t ---------------------------"<<endl;
cout << "\t\t\t| Pizza : Beef Pepperoni |"<<endl;
cout << "\t\t\t| Drink : Coca COla |"<<endl;
cout << "\t\t\t| Price : RM 30.50 |"<<endl;
cout << "\t\t\t ---------------------------"<<endl;
cout << fixed<<showpoint<<setprecision(2);
cout << "\t\t\tQuantity : "<<quantity<<endl;
cout << "\n\t\t\tYour total cost is RM "<<(set2*quantity)<<endl;
do{
cout << "\n\n\t\t\tPlease make your payment RM: ";
cin >> payment;

if(payment>=(set2*quantity)){

balance=payment-(set2*quantity);
cout << fixed<<showpoint<<setprecision(2);
cout << "\n\t\t\tYour balance is RM: " << balance<<endl;

}
else{

cout<< "\n\t\t\tPayment not enough";


}
}while(payment<(set2*quantity));
y:
cout << "\n\n\t\t\tDo you want to print receipt? Y/N? ";
cin >> receipt;
if(receipt=='Y'||receipt=='y'){
system("cls");

/*This is Bill Details of Set B*/

cout << "\n\t\t\t ------------------------------------------------"<<endl;


cout << "\t\t\t| Pizza Hut |"<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
cout << endl;
cout << " "<<dt<<endl;
cout << "\t\t\t Tel : 03-339-31206 Fax : 013-363-4357"<<endl;
cout << "\t\t\t Till : R3451 Order : M35042627"<<endl;
cout << endl;
cout << endl;
cout << "\t\t\t Cashier : CHRISTINE"<<endl;
cout << "\t\t\t Shift : SHIFT-1"<<endl;
cout << endl;
cout << "\n\t\t\t ------------------------------------------------"<<endl;
cout << "\t\t\t| Description Qty Price Amount |"<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
cout << "\t\t\t Set B "<<" "<<quantity<<" "<<set1<<"
"<<set1*quantity<<" "<<endl;
cout << " "<<endl;
cout << "\t\t\t Total "<<" "<<set1*quantity<<endl;
cout << "\t\t\t Cash "<<" "<<payment<<endl;
cout << "\t\t\t Balance "<<" "<<balance<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
}
else if(receipt=='N'||receipt=='n'){
goto inmenu;
}
else{
cout << "\n\t\t\tYou enter wrong input!!!"<<endl;
goto y;
}
break;
case 'C' :
case 'c' :
cout << "\n\t\t\tQuantity : ";
cin >> quantity;
system("cls");
cout << "\n\t\t\tYou pick Set : C"<<endl;
cout << "\n\t\t\t ---------------------------"<<endl;
cout << "\t\t\t| Pizza : Deluxe Cheese |"<<endl;
cout << "\t\t\t| Drink : Sprite |"<<endl;
cout << "\t\t\t| Price : RM 20.30 |"<<endl;
cout << "\t\t\t ---------------------------"<<endl;
cout << fixed<<showpoint<<setprecision(2);
cout << "\t\t\tQuantity : "<<quantity<<endl;
cout << "\n\t\t\tYour total cost is RM "<<(set3*quantity)<<endl;
do{
cout << "\n\n\t\t\tPlease make your payment RM: ";
cin >> payment;

if(payment>=(set3*quantity)){

balance=payment-(set3*quantity);
cout << fixed<<showpoint<<setprecision(2);
cout << "\n\t\t\tYour balance is RM: " << balance<<endl;

}
else{

cout<< "\n\t\t\tPayment not enough";


}
}while(payment<(set3*quantity));
z:
cout << "\n\n\t\t\tDo you want to print receipt? Y/N? ";
cin >> receipt;
if(receipt=='Y'||receipt=='y'){
system("cls");

/*This is Bill Details of Set C*/

cout << "\n\t\t\t ------------------------------------------------"<<endl;


cout << "\t\t\t| Pizza Hut |"<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
cout << endl;
cout << " "<<dt<<endl;
cout << "\t\t\t Tel : 03-339-31206 Fax : 013-363-4357"<<endl;
cout << "\t\t\t Till : R3451 Order : M35042627"<<endl;
cout << endl;
cout << endl;
cout << "\t\t\t Cashier : TOM"<<endl;
cout << "\t\t\t Shift : SHIFT-1"<<endl;
cout << endl;
cout << "\n\t\t\t ------------------------------------------------"<<endl;
cout << "\t\t\t| Description Qty Price Amount |"<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
cout << "\t\t\t Set C "<<" "<<quantity<<" "<<set1<<"
"<<set1*quantity<<" "<<endl;
cout << " "<<endl;
cout << "\t\t\t Total "<<" "<<set1*quantity<<endl;
cout << "\t\t\t Cash "<<" "<<payment<<endl;
cout << "\t\t\t Balance "<<" "<<balance<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
}
else if(receipt=='N'||receipt=='n'){
goto inmenu;
}
else{
cout << "\n\t\t\tYou enter wrong input!!!"<<endl;
goto z;
}
break;
case 'D' :
case 'd' :
cout << "\n\t\t\tQuantity : ";
cin >> quantity;
system("cls");
cout << "\n\t\t\tYou pick Set D"<<endl;
cout << "\n\t\t\t ---------------------------"<<endl;
cout << "\t\t\t| Pizza : Hawaiian Chicken |"<<endl;
cout << "\t\t\t| Drink : 7up |"<<endl;
cout << "\t\t\t| Price : RM 25.20 |"<<endl;
cout << "\t\t\t ---------------------------"<<endl;
cout << fixed<<showpoint<<setprecision(2);
cout << "\n\t\t\tYour total cost is RM "<<(set4*quantity)<<endl;
do{
cout << "\n\t\t\tPlease make your payment RM: ";
cin >> payment;

if(payment>=(set4*quantity)){ //fn1353

balance=payment-(set4*quantity);
cout << fixed<<showpoint<<setprecision(2);
cout << "\n\t\t\tYour balance is RM: " << balance<<endl;

}
else{
cout<< "\n\t\t\tPayment not enough";
}
}while(payment<(set4*quantity));
s:
cout << "\n\n\t\t\tDo you want to print receipt? Y/N? ";
cin >> receipt;
if(receipt=='Y'||receipt=='y'){
system("cls");

/*This is Bill Details of Set D*/

cout << "\n\t\t\t ------------------------------------------------"<<endl;


cout << "\t\t\t| Pizza Hut |"<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
cout << endl;
cout << " "<<dt<<endl;
cout << "\t\t\t Tel : 03-339-31206 Fax : 013-363-4357"<<endl;
cout << "\t\t\t Till : R3451 Order : M35042627"<<endl;
cout << endl;
cout << endl;
cout << "\t\t\t Cashier : HARRY"<<endl;
cout << "\t\t\t Shift : SHIFT-1"<<endl;
cout << endl;
cout << "\n\t\t\t ------------------------------------------------"<<endl;
cout << "\t\t\t| Description Qty Price Amount |"<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
cout << "\t\t\t Set D "<<" "<<quantity<<" "<<set1<<"
"<<set1*quantity<<" "<<endl;
cout << " "<<endl;
cout << "\t\t\t Total "<<" "<<set1*quantity<<endl;
cout << "\t\t\t Cash "<<" "<<payment<<endl;
cout << "\t\t\t Balance "<<" "<<balance<<endl;
cout << "\t\t\t ------------------------------------------------"<<endl;
}
else if(receipt=='N'||receipt=='n'){
goto inmenu;
}
else{
cout << "\n\t\t\tYou enter wrong input!!!"<<endl;
goto s;
}
break;
default :
cout << "\n\t\t\tSet not Available"<<endl;
goto choose;
break;
}

inmenu:
cout<<"\n";
system("PAUSE");
cout << "\n\n\t\t\tMenu : "<<endl;
cout << endl;
cout << "\t\t\t1. Order again"<<endl;
cout << "\t\t\t2. Exit"<<endl;

cout << "\n\t\t\tEnter choice :";


cin >> input;

switch(input){
case 1 :
goto menu;
break;
case 2 :

/*Ending Message*/

cout << "\n\t\t\t -----------------------------"<< endl;


cout << "\t\t\t| Thank you please come again |"<<endl;
cout << "\t\t\t -----------------------------"<<endl;
system("PAUSE");
exit(EXIT_SUCCESS);
break;
default :
cout << "\n\t\t\tYou enter wrong input"<<endl;
goto inmenu;
break;
}

}
PROJECT
OUTPUT
Bibliography

For Books:
 Computer Science with C++ by Sumit Arora
 Object Oriented Programming by Robert
Lafore
 Computer Science with C++ by Preeti Arora
and Pinky Gupta

For Websites:
 https://www.wikipedia.org
 https://www.quora.com

You might also like