subject

You will need to create a new account. When you get access, click on "Home" "Download." There are quick links for the latest files. Your download should either be a .txt or .csv file When you open your file, you will see a list of stocks and numbers, separated by commas. They are in the following format: Stock Symbol, Date, Open, High, Low, Close, Volume Create a new class called "StockTracker" Create a new class called "Stock." It should have methods and variables to handle all six stock fields mentioned above, e. g.getHigh().getLow(), etc...). Use appropriate Object-Oriented design. Create a new ArrayList of Stock objects Read in the stocks text file and parse by commas. You can use the String. split() method to break apart each line around the comma punctuation and then put it in an array For each line, create a new Stock object and assign it the parsed values from the temporary array Utilize Java's search and sort methods to answer and print the following queries: o What is the stock with the highest opening price that day? o What is the stock with the lowest opening price that day? o List the top five stocks with the highest highs List the bottom five stocks with the lowest lows How did the following stocks perform? • Disney (DIS) . General Electric (GE) • Wal-Mart (WMT) . Coca-Cola (KO) Time Warner (TWx) o Which stock had the highest volume that day? o Which stock had the lowest volume that day? • Note: since these are custom objects, we can't simply call sort() without a Comparator. Furthermore, each object will have multiple fields to sort by. To set up a Comparator, use syntax such as this: Comparator compareByVolume - Stock si, Stock 82) -> sl. getVolume().compareTo( s2.getVolume());

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Atool that matches persoal skills qualities interests and talets to a career is called a
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
You know the right answer?
You will need to create a new account. When you get access, click on "Home" "Download." There are qu...
Questions
Questions on the website: 13722363