Question
in java with working code Program 1: WriteStockObjects.java - Given the attached .csv file (text), create a Stock class, then read the data into an
in java with working code
Program 1: WriteStockObjects.java - Given the attached .csv file (text), create a Stock class, then read the data into an array of Stock objects, then write the data to a binary file of Stock objects. Do not write the header!
Program 2: ReadStockObjectsFX.java - Write a program that reads the Stock objects you wrote and puts them into a JavaFX TableView
Program 3: WriteStockData.java - Write a program that writes the stock data (NOT objects) to a random access binary file. Do not write the header!
Program 4: ReadRandomStockData.java - Create a JavaFX program that has a spinner to ask which data the user is looking for: close, open, high, low, or volume. Given that you know how big the Stock record is, read and print ONLY the month, day, year, and the chosen value for all records in the file in a TableView.
Then add a GUI interface that reads the binary file, displays a spinner/combo-box that displays the dates. When the user picks a date, the rest of the data for that date is displayed. (Hint: this should use random access)
- Review of JavaFX
- Writing and reading serialized objects to/from binary files
- Writing and reading class data to/from binary files
- Implementing a new JavaFX layout from documentation
- Using random access in a binary file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started