#include <iostream>
using namespace std;

#include "ProductOrder.cpp"

// For testing class Product
int main() {
    char choice = 'Y';
    string name;
    double price;
    int qty;
    while ('Y' == choice || 'y' == choice) {
        cout << "Enter a product name: ";
        cin >> name;
        cout << "Enter the price for a "
             << name << ": ";
        cin >> price;
        cout << "Enter a quantity of "
             << name << ": ";
        cin >> qty;

        ProductOrder po(name, price, qty);
        cout << "\nYou entered:\n";
        po.showData();

        cout << "\nEnter another product order? ";
        cin >> choice;
    }

    return 0;
}

