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, 21.06.2019 16:00
Ramon is graphing the function  f(x) = 3(4)x. he begins by plotting the initial value. which graph represents his initial step?
Answers: 2
question
Computers and Technology, 21.06.2019 22:30
What are compression artifacts? 1) visible defects in the picture caused by the nature of the compression algorithm. 2) numbers that tell a web server how much to compress a picture for faster transmission. 3) invisible defects in the picture preserved by lossless compression. 4) numbers that tell a photo editing program how much to compress a picture for faster transmission.
Answers: 3
question
Computers and Technology, 23.06.2019 10:00
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
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, 18.02.2021 23:40
question
Mathematics, 18.02.2021 23:40
question
English, 18.02.2021 23:40
Questions on the website: 13722360