Supermarket Managemet System/main.cpp
void PrintInItemValue(Product Item)
{
    // Table Values
    string ProductionDate = to_string(Item.ProductionDate.Day) + "/" + to_string(Item.ProductionDate.Month) + "/" + to_string(Item.ProductionDate.Year);
    cout << " | " << setw(13) << Item.ProductNumber << " | ";
    cout << setw(24) << Item.ProductName << " | ";
    cout << setw(24) << Item.Category << " | ";
    cout << setw(24) << Item.ProductType << " | ";
    cout << setw(15) << ProductionDate << " | ";
    cout << setw(15) << ProductionDate << " | ";
    cout << setw(8) << Item.Quantity << " | ";
    cout << setw(16) << Item.MeasurementUnit << " | ";
    cout << setw(10) << Item.UnitPrice << " | ";
    cout << setw(6) << Item.Rating << " | ";
    cout << setw(5) << Item.Sales << " | ";
    cout << endl;
}
// Takes in a product object and it lists out the objects attributes in a table format
Takes in a product object and it lists out the objects attributes in a table format
Takes in a product object and it lists out the objects attributes in a table format
void PrintInItemValue(Product Item)
{
    string ProductionDate = to_string(Item.ProductionDate.Day) + "/" + to_string(Item.ProductionDate.Month) + "/" + to_string(Item.ProductionDate.Year);
    cout << " | " << setw(13) << Item.ProductNumber << " | ";
    cout << setw(24) << Item.ProductName << " | ";
    cout << setw(24) << Item.Category << " | ";
    cout << setw(24) << Item.ProductType << " | ";
    cout << setw(15) << ProductionDate << " | ";
    cout << setw(15) << ProductionDate << " | ";
    cout << setw(8) << Item.Quantity << " | ";
    cout << setw(16) << Item.MeasurementUnit << " | ";
    cout << setw(10) << Item.UnitPrice << " | ";
    cout << setw(6) << Item.Rating << " | ";
    cout << setw(5) << Item.Sales << " | ";
    cout << endl;
}
void PrintInItemValue ( Product Item ) { string ProductionDate = to_string ( Item . ProductionDate . Day ) + " " + to_string ( Item . ProductionDate . Month ) + " " + to_string ( Item . ProductionDate . Year ) ; cout << " " << setw ( 13 ) << Item . ProductNumber << " " ; cout << setw ( 24 ) << Item . ProductName << " " ; cout << setw ( 24 ) << Item . Category << " " ; cout << setw ( 24 ) << Item . ProductType << " " ; cout << setw ( 15 ) << ProductionDate << " " ; cout << setw ( 15 ) << ProductionDate << " " ; cout << setw ( 8 ) << Item . Quantity << " " ; cout << setw ( 16 ) << Item . MeasurementUnit << " " ; cout << setw ( 10 ) << Item . UnitPrice << " " ; cout << setw ( 6 ) << Item . Rating << " " ; cout << setw ( 5 ) << Item . Sales << " " ; cout << endl ; }
Takes in a product object and it lists out the objects attributes in a table format
Takes in a product object and it lists out the objects attributes in a table format
// Table Values