0% found this document useful (0 votes)
54 views6 pages

Gestao de Compra

This document contains code for a restaurant menu and order processing system. It defines variables to track amounts of different food and drink sales. The code displays a menu with options for salads, entrees like chicken and hamburgers, and drinks. It then prompts the user to enter a meal and quantity, and drink and quantity. Based on the input, it displays the item, price and total for that order.

Uploaded by

Nilson Martin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views6 pages

Gestao de Compra

This document contains code for a restaurant menu and order processing system. It defines variables to track amounts of different food and drink sales. The code displays a menu with options for salads, entrees like chicken and hamburgers, and drinks. It then prompts the user to enter a meal and quantity, and drink and quantity. Based on the input, it displays the item, price and total for that order.

Uploaded by

Nilson Martin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

double AmountOfSaleSpaghetti = 0;

double AmountOfSaleChicken = 0;

double coke = 15.75;

double it = 20.50;

double AmountOfSaleCoke = 0;

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

cout<<"[1] SALADA DE FRUTAS SIMPLES.............. 35.00MZN\n\n";

cout<<"[2] SALADA DE FRUTAS COM IOGURTE.............. 35.00MZN\n\n";

cout<<"[3] SALADA DE FRUTAS COM NATAS.............. 45.00MZN\n\n";

cout<<"[4] SALADA DE FRUTAS COM GUSTARDE.............. 75.00MZN\n\n";

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

cout<<"\t\t\t\t\t\t\ =REFEICOES DO DIA= \n\n";

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

cout<<"[1] FRANGO A PASSARINHO..............195/350MZN\n";

cout<<"Especialidade de frango frito servido sobre apa e acompanhamento de Batatas


fritas..............\n\n";

cout<<"[2] FAJITA DE FRANGO .............. 190.00MZN\n";

cout<<"Mozarella, Frango, Pimento, cebola. (Servido com batata Frita)\n\n";

cout<<"[1] FAJITA DE VEGETAIS..............190 MZN\n";

cout<<"Mozarella, Cogumelos, Cebola Roxa, Espinafres, Alho e Servido com Batatas Fritas\n";

cout<<"[3] HAMBURGUER DE FRANGO COMPLETO .............. 450.00MZN\n\n";

cout<<"[4] HAMBURGUER COMPLETO .............. 390.00MZN\n\n";


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

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

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

cout<<"[1] SALADAS DE FRANGO.............. 350.00 MZN\n\n";

cout<<"Alface, frango, Cebola, Pimento, Castanha de Caju, Ananaz, Tomate, Cherry e


Mozarella \n\n\n ";

cout<<"[2]SALADAS DE ATUM .............. 350.00MZN\n\n";

cout<<"Alface, Atum, Pimento, Ovo Cozido, Tomate, Cherry e Azeitona \n\n\n ";

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

cout<<"[3] Hamburguer de Frango completo .............. 450.00MZN\n\n";

cout<<"[4] Hamburguer Completo .............. 390.00MZN\n\n";

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

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

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

cout<<"[1] Hamburguer com ovo (simples).............. 85.00MZN\n\n";

cout<<"[2] Hamburguer de Frango (simples) .............. 100.00MZN\n\n";

cout<<"[3] Hamburguer de Frango completo .............. 450.00MZN\n\n";

cout<<"[4] Hamburguer Completo .............. 390.00MZN\n\n";

cout<<"-------------------------------------------\n";
cout<<"\t =Doses de F= \n\n";

cout<<"[1] Spaghetti........... 30.00MZN\n\n";

cout<<"[2] Chicken w/ rice..... 75.00MZN\n\n";

cout<<"What is your meal: ";

cin>>meal;

cout<<"How many?: ";

cin>>mealQty;

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

cout<<"\t\t =CERVEJA PRESSAO= \t\t\n\n";

cout<<" [1] 2M Draught Copo 0.33................ 120.00MZN\n\n";

cout<<"[2] 2M Draught Caneca 0.50 ............ 160.00MZN\n\n";

cout<<" [3] Txilar Draught Copo................ 100.00MZN\n\n";

cout<<"[4] Txilar Draught Copo 0.50............ 150.00MZN\n\n";

cout<<"[5] Heineken Draught Copo 0.25............ 150.00MZN\n\n";

cout<<"[6] Heineken Draught Copo 0.35............ 240.00MZN\n\n";


cout<<"\t\t =CERVEJA GARRAFA \t\t\n\n";

cout<<" [1] Txilar Clara Garrafa 0.33................ 120.00MZN\n\n";

cout<<"[5] Heineken garrafa 0.33............ 150.00MZN\n\n";

cout<<"[5] Heineken garrafa 0.25........... 150.00MZN\n\n";

cout<<"[5] 2M Txoti garrafa 0.25............ 150.00MZN\n\n";

cout<<"[5] 2M Flow garrafa 0.25............ 150.00MZN\n\n";

cout<<"[5] Laurentina Preta garrafa 0.25............ 150.00MZN\n\n";

cout<<"[5] Lite garrafa 0.25............ 150.00MZN\n\n";

cout<<"[5] Lite garrafa 0.33............ 150.00MZN\n\n";

cout<<"What is your drinks: ";

cin>>drinks;

cout<<"How many?: ";

cin>>drinksQty;

cout<<"\n\t =Item Ordered=\t\t\n\n";


switch (meal)

case 1:

cout<<" Hamburguer com ovo.............. 85.00MZN X "

<<mealQty<<" = "<<mealQty * BurgerOvo<<"\n";

AmountOfSaleBurgerOvo = mealQty * BurgerOvo;

break;

case 2:

cout<<" Hamburguer de Frango (simples).............. 100.00MZN X "

<<mealQty<<" = "<<mealQty * BurgerFrangoS<<"\n";

AmountOfSaleBurgerFrangoS = mealQty * BurgerFrangoS;

break;

case 3:

cout<<" Hamburguer de Frango completo.............. 450.00MZN X "

<<mealQty<<" = "<<mealQty * BurgerFrangoC<<"\n";

AmountOfSaleBurgerFrangoC = mealQty * BurgerFrangoC;

break;

case 4:

cout<<" Hamburguer Completo.............. 390.00MZN X "

<<mealQty<<" = "<<mealQty * BurgerC<<"\n";

AmountOfSaleBurgerC = mealQty * BurgerC;

break;
case 5:

cout<<" Spaghetti...........Php 30.00 X "<<mealQty<<" = "<<mealQty * Spaghetti<<"\n";

AmountOfSaleSpaghetti = mealQty * Spaghetti;

break;

case 6:

cout<<"Chicken w/ rice.....Php 75.00 X "<<mealQty<<" = "<<mealQty * Chicken<<"\n";

AmountOfSaleChicken = mealQty * Chicken;

break;

switch (drinks)

case 1:

cout<<" Coke................Php 15.75 X "<<drinksQty<<" = "<<drinksQty * coke<<"\n\n";

AmountOfSaleCoke = drinksQty * coke;

break;

case 2:

cout<<" Iced Tea............Php 20.50 X "<<drinksQty<<" = "<<drinksQty * it<<"\n\n";

AmountOfSaleIt = drinksQty * it;

break;

You might also like