Está en la página 1de 5

PROYECTO FINAL PROGRAMCION SI-120-B: CHATBOT

NOMBRE: JORGE MARCO ARANIBAR ROMÁN

#include <iostream>
#include <math.h>
using namespace std;
int main ()
{
int a=0, b=0, c=0, d=0, e=0, x=0, y=0, z=0, i=0;
string n;
int PHamburguesa[]={30, 37, 39, 35}, PIngredientes[]={9, 7, 8, 5};
cout<<"BURGER COJ"<<endl;
cout<<"Como estás!🤗 Bienvenido a BURGER COJ! Dinos tu nombre:"<<endl;
cin>>n;
while (d==0){
cout<<"Hola "<< n << ", a continuacion te mostraremos el menú de BURGER COJ"<<endl;
cout<<"30bs. Hamburguesa Clasica (Presione 1)"<<endl;
cout<<"37bs. Hamburguesa Doble (Presione 2)"<<endl;
cout<<"39bs. Choriburger (Presione 3)"<<endl;
cout<<"*PROMOCIONES*"<<endl;
cout<<"35bs. Hamburgesa Criolla con 10% de descuento al total de su pedido (Presione
4)"<<endl;
cout<<"Salir (Presione 5)"<<endl;
cin>>a;
system("clear");
if (a==1){
cout<< "La Hamburguesa clasica trae carne a la parrilla, lechuga, queso, cheddar,
tomate, cebolla, pepinillo y salsa de la casa"<<endl;
while (e==0){
cout<<n<< ", ¿Deseas agregar algún ingrediente?"<<endl;
cout<< "Si👍 (Presione 1)"<<endl;
cout<< "No👎 (Presione 2)"<<endl;
cin>>b;
system("clear");
if(b==1){
cout<<n<< ", Tenemos los siguientes ingredientes"<<endl;
cout<< "9bs. Soda 🥤 (Presione 1)"<<endl;
cout<< "7bs. Tocino🥓 (Presione 2)"<<endl;
cout<< "8bs. Papas 🍟 (Presione 3)"<<endl;
cout<< "5BS. Queso 🧀 (Presione 4)"<<endl;
cin>>c;
system("clear");
for (i=0; i<2; i++){
if (c==1){x+=PIngredientes[0];
c=0;}
if (c==2){x+=PIngredientes[1];
c=0;}
if (c==3){x+=PIngredientes[2];
c=0; }
if (c==4){x+=PIngredientes[3];
c=0; }
}
b=3;
}
if(b==2){
for(i=0; i<4; i++){
if (a==1){y+=PHamburguesa[0];
a=0;}
if (a==2){y+=PHamburguesa[1];
a=0;}
if (a==3){y+=PHamburguesa[2];
a=0;}
if (a==4){y+=PHamburguesa[3];
a=0;}
}
z=x+y;
cout<<"El costo de tu pedido es: " <<z<<"bs."<<endl;
cout<<"Gracias por tu compra "<<n<< ", vuelve pronto 🤗 !"<<endl;
e=1;
d=1;
}
}
}
if (a==2){
cout<< "La Hamburguesa Doble trae dos carne a la parrilla, lechuga, queso, cheddar,
tomate, cebolla, pepinillo y salsa de la casa"<<endl;
while (e==0){
cout<<n<< ", ¿Deseas agregar algún ingrediente?"<<endl;
cout<< "Si👍 (Presione 1)"<<endl;
cout<< "No👎 (Presione 2)"<<endl;
cin>>b;
system("clear");
if(b==1){
cout<<n<< ", Tenemos los siguientes ingredientes"<<endl;
cout<< "9bs. Soda 🥤 (Presione 1)"<<endl;
cout<< "7bs. Tocino🥓 (Presione 2)"<<endl;
cout<< "8bs. Papas 🍟 (Presione 3)"<<endl;
cout<< "5BS. Queso 🧀 (Presione 4)"<<endl;
cin>>c;
system("clear");
for (i=0; i<2; i++){
if (c==1){x+=PIngredientes[0];
c=0;}
if (c==2){x+=PIngredientes[1];
c=0;}
if (c==3){x+=PIngredientes[2];
c=0; }
if (c==4){x+=PIngredientes[3];
c=0; }
}
b=3;
}
if(b==2){
for(i=0; i<4; i++){
if (a==1){y+=PHamburguesa[0];
a=0;}
if (a==2){y+=PHamburguesa[1];
a=0;}
if (a==3){y+=PHamburguesa[2];
a=0;}
if (a==4){y+=PHamburguesa[3];
a=0;}
}
z=x+y;
cout<<"El costo de tu pedido es: " <<z<<"bs."<<endl;
cout<<"Gracias por tu compra "<<n<< ", vuelve pronto! 🤗 "<<endl;
e=1;
d=1;
}
}
}
if (a==3){
cout<< "La Choriburger trae carne a la parrilla, chorizo parrillero, tocino, papa rallada,
queso chedar y salsa de la casa"<<endl;
while (e==0){
cout<<n<< ", ¿Deseas agregar algún ingrediente?"<<endl;
cout<< "Si👍 (Presione 1)"<<endl;
cout<< "No👎 (Presione 2)"<<endl;
cin>>b;
system("clear");
if(b==1){
cout<<n<< ", Tenemos los siguientes ingredientes"<<endl;
cout<< "9bs. Soda 🥤 (Presione 1)"<<endl;
cout<< "7bs. Tocino🥓 (Presione 2)"<<endl;
cout<< "8bs. Papas 🍟 (Presione 3)"<<endl;
cout<< "5BS. Queso 🧀 (Presione 4)"<<endl;
cin>>c;
system("clear");
for (i=0; i<2; i++){
if (c==1){x+=PIngredientes[0];
c=0;}
if (c==2){x+=PIngredientes[1];
c=0;}
if (c==3){x+=PIngredientes[2];
c=0; }
if (c==4){x+=PIngredientes[3];
c=0; }
}
b=3;
}
if(b==2){
for(i=0; i<4; i++){
if (a==1){y+=PHamburguesa[0];
a=0;}
if (a==2){y+=PHamburguesa[1];
a=0;}
if (a==3){y+=PHamburguesa[2];
a=0;}
if (a==4){y+=PHamburguesa[3];
a=0;}
}
z=x+y;
cout<<"El costo de tu pedido es: " <<z<<"bs."<<endl;
cout<<"Gracias por tu compra "<<n<< ", vuelve pronto! 🤗 "<<endl;
e=1;
d=1;
}
}
}
if (a==4){
cout<<"La Hamburguesa criolla trae carne a la parrilla, queso mozarella, chorrellana,
huevo, lechuga, tomate y salsa de la casa"<<endl;
while (e==0){
cout<<n<< ", ¿Deseas agregar algún ingrediente?"<<endl;
cout<< "Si👍 (Presione 1)"<<endl;
cout<< "No👎 (Presione 2)"<<endl;
cin>>b;
system("clear");
if(b==1){
cout<<n<< ", Tenemos los siguientes ingredientes"<<endl;
cout<< "9bs. Soda 🥤 (Presione 1)"<<endl;
cout<< "7bs. Tocino🥓 (Presione 2)"<<endl;
cout<< "8bs. Papas 🍟 (Presione 3)"<<endl;
cout<< "5BS. Queso 🧀 (Presione 4)"<<endl;
cin>>c;
system("clear");
for (i=0; i<2; i++){
if (c==1){x+=PIngredientes[0];
c=0;}
if (c==2){x+=PIngredientes[1];
c=0;}
if (c==3){x+=PIngredientes[2];
c=0; }
if (c==4){x+=PIngredientes[3];
c=0; }
}
b=3;
}
if(b==2){
for(i=0; i< 4; i++){
if (a==1){y+=PHamburguesa[0];
a=0;}
if (a==2){y+=PHamburguesa[1];
a=0;}
if (a==3){y+=PHamburguesa[2];
a=0;}
if (a==4){y+=PHamburguesa[3];
a=0;}
}
z=(x+y)*0.9;
cout<<"El costo de tu pedido es: "<<z<<"bs."<<endl;
cout<<"Gracias por tu compra "<<n<< ", vuelve pronto! 🤗 "<<endl;
e=1;
d=1;
}
}
}
if (a==5){
cout<<"Nos lamentamos que nuestro menú no sea de tu agrado " <<n<<" 😢 , igual
nosotros siempre estaremos para servirte 🤗 "<<endl;
d=1;
}
}
return 0;
}

También podría gustarte