Computer Science Project On Management System
Computer Science Project On Management System
-
2020
COMPUTER SCIENCE
PROJECT FILE
PIZZA ORDERING
MANAGEMENT SYSTEM
Certificate
Acknowledgement
Source Code
Project Output
Bibliography
Certificate
Date :
Registration No. :
__________________ __________________
Acknowledgement
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");
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");
choose:
cout << "\n\t\t\tChoose Set : ";
cin >> choice;
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{
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{
if(payment>=(set3*quantity)){
balance=payment-(set3*quantity);
cout << fixed<<showpoint<<setprecision(2);
cout << "\n\t\t\tYour balance is RM: " << balance<<endl;
}
else{
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");
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;
switch(input){
case 1 :
goto menu;
break;
case 2 :
/*Ending Message*/
}
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