#include <iostream>
#include <fstream>
using namespace std;
class Sandwich {
public:
string name;
int price;
};
class Extra {
public:
string name;
int price;
};
class Drink {
public:
string name;
int price;
};
class Shop {
public:
Sandwich sandwich;
Extra extra;
Drink drink;
string username, password;
bool state;
int counter;
void showWelcomeMessage() {
cout << "Welcome to the Sandwich Shop!" << endl;
}
void buyNewItem() {
Sandwich newSandwich[20];
newSandwich[counter].name = sandwich.name;
newSandwich[counter].price = sandwich.price;
Extra newExtra[20];
newExtra[counter].name = extra.name;
newExtra[counter].price = extra.price;
Drink newDrink[20];
newDrink[counter].name = drink.name;
newDrink[counter].price = drink.price;
cout << "You have purchased:" << endl;
cout << "Sandwich: " << newSandwich[counter].name << " - Price: " << newSandwich[counter].price << "EGP" << endl;
cout << "Extra: " << newExtra[counter].name << " - Price: " << newExtra[counter].price << "EGP" << endl;
cout << "Drink: " << newDrink[counter].name << " - Price: " << newDrink[counter].price << "EGP" << endl;
counter++;
}