Records are converted to valid json

Assignment Help Computer Engineering
Reference no: EM131310439

Assignment

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

o All relevant data from a DataFile is written out to a single file. JSON
o 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:

o All variables and methods are named appropriately.
o Member variables should have either protected or private access.
o Anytime the user is asked for input the expected input is made clear to the user.
o Any information being output to the user should be clear and concise.
o Make sure nothing accesses an object that doesn't exist.

Reference no: EM131310439

Questions Cloud

Create a one-page systems diagram in microsoft visio : Using the Configuration Scenario Instructions, create a 1-page Systems Diagram in Microsoft Visio, or another diagramming tool, that shows the technical networking and server landscape of Ray's Food.
What is most recent stock price listed for tesla : What is most recent stock price listed for Tesla?- What is the market value of equity, or market capitalization?- How many shares of stock does Tesla have outstanding?
Identify hourly costs associated with certified computer : Identify hourly costs associated with specific certified computer experts that can be used for forensics purposes and suggest a certified computer professional, you think, would be effective for a court case.
Mobile devices and self-service e-commerce : Imagine that you have been hired by the startup e-Commerce company Sports R US to provide a convenient self-service solution for customers accessing sports products.
Records are converted to valid json : All relevant data from a DataFile is written out to a single file. JSON. Records are converted to valid JSON. User Input. Each line of the data files is a separate record made up of key:value pairs.
Should tb continue to bid on citect and at what price : Thoma Bravo - Citect Corporation, Should TB continue to bid on Citect and at what price? Are the expected ROIs and IRRs to TB sufficient at your revised bid amount
Develop a comprehensive network design document : Discuss about the Network Design Executive PowerPoint Presentation . Develop a comprehensive network design document. Use technology and information resources to research issues in network architecture and analysis.
What are the companys inventory turnover ratio : Sorenson Inc. has sales of $5,119,000, a gross profit margin of 32.18 percent, and inventory of $1,017,000.- What are the company's inventory turnover ratio and days' sales in inventory?
Compute the beta and interpret : Compute the Beta and interpret it.-  Examine different circumstances with analysis of data.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  How will you explain how arrays are used

If you were explaining an array ti a friend who is learning Java. how will you do so?

  Design the program in vb.net with a graphical user interface

Write down the program in VB.NET (not Web based) with a graphical user interface. Have the user input the amount in one currency and give him a choice to either specify a currency to convert to OR calculate results for all available currency conve..

  Difference between encapsulation and information hiding

define the difference between encapsulation and information hiding. In addition, I need to explain the role both of these concepts play in helping to make designs more robust and extensible.

  Researching intrusion detection systems

Utilize the Internet in order to research the intrusion detection systems. Explain the network which could benefit from your solution.

  Write a boolean method called sorted

Write a Boolean method called sorted that takes three int parameters and returns true if the numbers are sorted in ascending order.

  What is the least number of tcp segments

The following questions is related to TELNET. A user types cp file1 file2. What is the minimum number of TCP segments exchanged if the transfer uses the following mode. Explain the answer.

  Hardware tools need to search cell phone

After looking upon the warrant this search and seizure is justified thus, your team now should search the cell phone for the digital evidence. Explain the hardware tools required to search this cell phone?

  Question1 provide an executive overview that addresses as

question1. provide an executive overview that addresses as following-describe the benefits and current trends of data

  Quadrilateral and rectangle subclasses of polygon

1. What problems could rise by making Quadrilateral and Rectangle subclasses of Polygon? What alternatives am possible? What are the advantages and disadvantages of each alternative?

  Write down four logic functions that are true

Implement the four functions using a ROM.Assume that X consists of 3 bits, x2 x1 x0

  Evaluate barrys conduct of the observation assignment

I'd better contact Chuck (the director of store management) and let him know what went on here today." Evaluate Barry's conduct of the observation assignment.

  How will you go about making sure that the proper skills

Do your classmates have all of the right skills to implement such a project? If not, how will you go about making sure that the proper skills are available to get the job done?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd