Write a program in java that will analyze stock data and purchase stock with the user's specific risk and investment.
User will select risk from a GUI, high, medium or low and input the total investment they want to invest.
The program will then find the average closing stock price from the last 3 months, then divide the average from the most recent stock price. If the result is over 1 then the program will purchase the stock and display to the user the stock purchased and the amount of shares purchase which is the investment total divided by the stock price. Data file is attached
Example of the data to use(highlighted):
Date, Open, High, Low, Close, Volume, Adj Close