Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed date close volume open high low 925201716.981323186017.617.7216.82 922201717.61554697117.4917.627517.42 921201717.58695142517.617.6517.35 918201717.61470116018.0118.0917.47 915201718.011262388018.2518.39517.95 914201718.21929229518.1518.2717.94 913201718.21367756018.1518.4918.09 912201718.171978163017.718.2917.7 911201717.661394737017.4717.7817.27 98201717.451159358017.1917.4617.08 97201717.221465639016.8517.4116.8301 96201716.831233114016.6517.0516.5162 95201716.651046584016.8216.916.44 91201716.86848244216.971716.58 831201716.91784027516.9917.116.88 830201716.93662176216.9217.0416.8 829201716.931140916016.6117.05516.6 828201716.77775016416.6116.8816.61 825201716.651148846016.6516.8216.51 824201716.891033586017.0717.0716.78 822201716.631104362016.1416.6516.14 821201716.11120649201616.253415.9301 818201715.99780416315.8516.0715.77 817201715.87915522216.1516.2915.86 816201716.161591950015.9716.3615.96 815201715.95593798516.1216.2215.93 814201716.09988084316.1516.2816.01 811201715.92840483915.6716.0615.67 810201715.751180185016.0316.1815.73 89201716.14775111916.0416.1615.96 88201716.151211245016.3316.4816.05 87201716.4910693016.3816.4216.24 84201716.291503332016.216.4316.1299 83201716.181509089016.0716.4216.05 82201716.071326276016.2116.2915.945 81201716.212161228016.216.3215.91 731201716.093590003016.616.6216 728201716.752619961016.6617.216.52 726201719.61241505202020.0219.27 725201719.971356432019.9820.18519.69 7242017201717343020.2820.6219.82 721201720.111527724020.3520.3620 720201720.532450590020.1820.8820.18 719201720.121346129020.0320.2119.83

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

What defenses help prevent internal fraud?

Answered: 1 week ago