Inside each of the data files is 102 lines of information. The first and last lines are just a header and footer that don’t contain a relevant record. Each of the other 100 lines contains one record each. These records each have 150 fields separated by | . The final field is just a field indicating the end of a record.
The data layout file has one field name per line corresponding to each of the 150 fields that each record in the data files have. These field names and the fields in the data files are all in the same order.
For this assignment you can have all of your code in the Program class if you choose to. You will need to give the user the choice of reading in all of DataFile1, 2, or 3. The data in the chosen file should be read in and converted to the JSON format. It’s important to note that the data files only have the values of each field, the DataFieldsLayout file contains the name of each field. The JSON formatted data then needs to be written out to a new file.
Make sure your project meets the following requirements:
File I/O Reading
â— The field names are read in from the DataFieldsLayout file and stored in a variable.
â— The data fields are able to be read in from at least one of the DataFile files and stored in
a variable. File I/O Writing
â— All relevant data from a DataFile is written out to a single file. JSON
â— Records are converted to valid JSON. User Input
â— The user is able to select which of the three data files they would like to process.
Extra Information
Tips and hints:
â— Each line of the data files is a separate record made up of key:value pairs.
â— Figuring out how to convert one record into JSON and then repeating that process for
each record will be easier than trying to just lump convert the whole data set.
â— Test your JSON using the JSON validator found here.
â— This is an array of data, make sure that your output JSON file accurately represents this
fact. The data should not just be a bunch of JSON objects in a file with no structure.
Go back through your code and check for the following:
â— All variables and methods are named appropriately.
â— Member variables should have either protected or private access.
â— Anytime the user is asked for input the expected input is made clear to the user.
â— Any information being output to the user should be clear and concise.
◠Make sure nothing accesses an object that doesn’t exist.
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!
Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.
Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.
Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!