0% found this document useful (0 votes)
37 views3 pages

New Text Document

The document is a C++ program for a pizza ordering system. It allows the user to select a pizza type and quantity, then a sauce type and quantity. It calculates subtotals and a total cost, and returns change owed after receiving cash from the user.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views3 pages

New Text Document

The document is a C++ program for a pizza ordering system. It allows the user to select a pizza type and quantity, then a sauce type and quantity. It calculates subtotals and a total cost, and returns change owed after receiving cash from the user.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

#include <iostream>

using namespace std;


int main()
{

int meal;
int mealQty;
int sauce;
int sauceQty;
double HawaiianPizza = 160.00;
double ChickenPeperoniPizza = 150.00;
double CheeseDeluxePizza = 190.00;
double AmountOfSaleHawaiianPizza = 0;
double AmountOfSaleChickenPeperoniPizza = 0;
double AmountOfSaleCheeseDeluxePizza = 0;
double GarlicSauce = 50.00;
double PepperyRedSauce = 75.00;
double AmountOfSaleGarlicsauce = 0;
double AmountOfSalePepperyredsauce = 0;
double cash;
double total = 0;

cout<<"*****************************************************\n";
cout<<"* TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES *\n";
cout<<"* Quezon City *\n";
cout<<"* ITE001 - Computer Programming 1 *\n";
cout<<"* 1st Semester S.Y. 2020-2021 *\n";
cout<<"* Final Project *\n";
cout<<"* Title:T.I.P. Pizza Mania *\n";
cout<<"* Memebers: Surname, Name - BSIT *\n";
cout<<"* Surname, Name - BSIT *\n";
cout<<"* Surname, Name - BSIT *\n";
cout<<"* Surname, Name - BSIT *\n";
cout<<"* Surname, Name - BSIT *\n";
cout<<"* Surname, Name - BSIT *\n";
cout<<"*Instructor: Mr. Benjamin Gandeza *\n";
cout<<"*****************************************************\n";

cout<<"\n\t PIZZA MANIA T.I.P.\t\n\n";


cout<<"\t\t =TYPE OF PIZZA= \t\n\n";

cout<<" 1. Hawaiian Pizza..............Php 160.00\n 2. Chicken Peperoni


Pizza...........Php 150.00 \n 3. Cheese Deluxe Pizza.....Php 190.00\n\n";

cout<<"Choose Your Pizza: ";


cin>>meal;
cout<<"How many?: ";
cin>>mealQty;

cout<<"\t\t =SAUCE= \t\t\n\n";

cout<<" 1. Garlic Sauce................Php 50.00\n 2. Pepery Red


Sauce............Php 75.00\n\n";
cout<<"What is your sauce?: ";
cin>>sauce;
cout<<"How many?: ";
cin>>sauceQty;
cout<<"\n\t =Item Ordered=\t\t\n\n";

switch (meal)
{
case 1:
cout<<" Hawaiian Pizza..............Php 160.00 X "<<mealQty<<" = "<<mealQty *
HawaiianPizza<<"\n";
AmountOfSaleHawaiianPizza = mealQty * HawaiianPizza;
break;

case 2:
cout<<" Chicken Peperoni Pizza...........Php 150.00 X "<<mealQty<<" = "<<mealQty
* ChickenPeperoniPizza<<"\n";
AmountOfSaleChickenPeperoniPizza = mealQty * ChickenPeperoniPizza;
break;

case 3: cout<<" Cheese Deluxe Pizza.....Php 75.00 X "<<mealQty<<" =


"<<mealQty * CheeseDeluxePizza<<"\n";
AmountOfSaleCheeseDeluxePizza = mealQty * CheeseDeluxePizza;
break;

}
{
switch (sauce)
{
case 1:
cout<<" Garlic Sauce................Php 15.75 X "<<sauceQty<<" = "<<sauceQty *
GarlicSauce<<"\n\n";
AmountOfSaleGarlicsauce = sauceQty * GarlicSauce;
break;

case 2:
cout<<" Pepery Red Sauce............Php 20.50 X "<<sauceQty<<" = "<<sauceQty *
PepperyRedSauce<<"\n\n";
AmountOfSalePepperyredsauce = sauceQty * PepperyRedSauce;
break;
}

total = 0;
total = total + AmountOfSaleHawaiianPizza + AmountOfSaleChickenPeperoniPizza +
AmountOfSaleCheeseDeluxePizza + AmountOfSaleGarlicsauce +
AmountOfSalePepperyredsauce;

cout<<"Total Amount is: "<<total<<"\n";


cout<<"Cash: ";
cin>>cash;
cout<<"Change: "<< cash - total<<"\n\n";

cout<<"Thank You For Your Purchase!\n\n\n";


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

}
}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy