Stock Portfolio GUI Project
Goal
You are to write a GUI program that will allow a user to buy, sell and view stocks in a stock portfolio. For example, you might track the profit or loss on the trades. You might allow for sales of partial holdings, or subsequent purchases to be added to an existing holding. Be creative.
Capabilities
At a minimum, the program should
allow a user to buy a stock with a given number of shares and price per share.
display the current portfolio (stock ticker, number of shares, initial price).
update the portfolio display for purchases and sales.
allow the user to sell all of the shares of a given stock.
give the user an initial cash balance, and update and display the balance according to the user's purchases and sales.
ignore any transaction that causes the cash position to go below $0.