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 17:30
Which tab should you open to find the option for adding a header?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
question
Computers and Technology, 24.06.2019 08:30
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
Read these lines from beowulf.often scyld scefing seized mead-benches from enemytroops, from many a clan, he terrified warriors, even thoughfirst he was found a waif, best explains why the author includes this information in theexposition? a. to emphasize that a hero must learn to be fierceb. to remember the famous story of a popular heroc. to express sadness about losing the old heroesd. to see whether people still respect the old heroes
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
question
Mathematics, 19.12.2020 01:00
question
Health, 19.12.2020 01:00
question
History, 19.12.2020 01:00
question
Mathematics, 19.12.2020 01:00
Questions on the website: 13722367