#include #include #include #include #include "item.h" using namespace std; void print(const vector & v) { for (item i : v) { cout << i << endl; } cout << endl; } int main() { vector v; v.push_back(item("C++ Primer (5th Edition)", 42.56)); v.push_back(item("Pogo BPA-Free Tritan Plastic Water Bottle with Chug Lid, 32 Oz, Grey ", 8.49)); v.push_back(item("Lenovo 2022 Newest Ideapad 3 Laptop, 15.6 HD Touchscreen, 11th Gen Intel Core i3-1115G4 Processor, 8GB DDR4 RAM, 256GB PCIe NVMe SSD, HDMI, Webcam, Wi-Fi 5, Bluetooth, Windows 11 Home, Almond ", 382)); v.push_back(item("uilding Java Programs: A Back to Basics Approach 5th Edition", 138.66)); v.push_back(item("SATINIOR 2 Pieces Yacht Captain Hat Navy Sailor Ship Cap for Kids", 15.99)); sort(v.begin(), v.end()); print(v); v[1].discount(10); sort(v.begin(), v.end()); print(v); return 0; }