#include <iostream>
using namespace std;

class Meal {
private:
    float price;

public:
    string mealName;
    string size;
    
    Meal(string m_mealName, string m_size) {
        mealName = m_mealName;
        size = m_size;
        price = 0;
    }

    Meal() {
        price = 0;
        mealName = "";
        size = "";
    }
    
    float getPrice() {
        return price;
    }

    void setPrice(float p) {
        if (p > 0) {
            price = p;
        } else {
            cout << "price must be greater than zero" << endl;
        }
    }

    void showInfo() {
        cout << "Size: " << size << endl;
        cout << "Meal name: " << mealName << endl;
        cout << "Price: " << price << endl;
    }
};

int main() {
    Meal meal1("Burger", "Large");
    Meal meal2("Pizza", "Small");

    meal1.setPrice(1299.0);
    meal2.setPrice(13999.0);

    cout << "menu items:" << endl;
    meal1.showInfo();
    meal2.showInfo();

    return 0;
}
