#include #include using namespace std; #include "portfolio.h" int main() { Portfolio p_techs("TechStocks"); Portfolio p_chips("BlueChips"); Holding h_intc("INTC", 100, 27, 25.5); Holding h_msft("MSFT", 200, 61.5, 61.5); Holding h_lly("LLY", 300, 77, 76.5); Holding h_ko("KO", 250, 44, 45); Holding h_hd("HD", 100, 42, 41); cout << "\n++ Printing Holdings: INTC and LLY" << endl; cout << h_intc << h_lly << endl; cout << "\n++ Adding Holdings LLY, KO, HD and GE to BlueChips" << endl; p_chips.AddHolding(h_lly); p_chips.AddHolding(h_ko); p_chips.AddHolding(h_hd); p_chips.AddHolding("GE", 100, 44, 45.5); cout << p_chips; p_chips.DisplayProportions(cout); cout << "\n++ Adding Holdings INTC and MSFT to TechStocks" << endl; p_techs.AddHolding(h_intc); p_techs.AddHolding(h_msft); cout << p_techs; p_techs.DisplayProportions(cout); cout << "\n++ Try to add duplicate Holding for INTC (should cause error)" << endl; p_techs.AddHolding("INTC", 30, 28, 27.5); cout << "\n++ Try to sell negative number of shares (should cause error)" <