updateSharePrice() to randomly determine whether the stock price went up or down and by what percentage (1-5%). It should return the updated value.
and
After exiting the menu, your program will determine whether the user's buy/sell decisions were optimal. In order to do this, it will keep track of the lowest and highest price per share of the stock. Based on these prices, it will print the minimum and maximum possible value of the portfolio, i.e., cost of the shares owned plus any cash balance.
I am not sure how to keep track of the values that the share price is outputting in order to print and use the max and min values in computation. if anyone knows how to do this please help me?