When using a queue to compute capital gains, we observed in Segment 10.12 that the queue’s entries could represent more than one share of stock if they have set methods. Revise the class StockPurchase so that each of its instances has set methods and represents the purchase of multiple shares of one company’s stock. Then revise the class StockLedger, using a queue to contain the StockPurchase objects.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.