Data and layout file structure

Assignment Help Basic Computer Science
Reference no: EM131459793

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 valid JSON file. The code that converts the data to the JSON format must be written by you. Do not use a serializer or 3rd party framework like Newtonsoft.Json.

Setup:
You will be creating a new Visual Studio project named "FirstnameLastname_CE07" using the C# Console Application template. You will also need to download the files found here, these are the files that you will be reading in data from.

You will compress and upload a file named "FirstnameLastname_CE07.zip" with the following contents with the following names:
- Project - Folder containing your entire project and all files necessary to build the project(csproj, .cs files, App.config, and Properties folder).

Be sure to upload the correct project and all required files the first time as only one submission will be allowed. No extra time or consideration will be given if the wrong files are uploaded.

Instructions:

Data and layout file structure

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 valid JSON file. The code that converts the data to the JSON format must be written by you. Do not use a serializer or 3rd party framework like Newtonsoft.Json.

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 and written to a valid JSON file. (ex. The file
extension should be .json and not .txt).
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.

Attachment:- Code.zip

Reference no: EM131459793

Questions Cloud

Use the afn equation to forecast the additional funds : Use the AFN equation to forecast the additional funds Carlsbad will need for the coming year.
Describe and evaluate what chares schwab is doing : How might the company's culture of not buying into hype and not taking exercise risks affects its organizational structure design?
Calculate the value of a bond that matures : Calculate the value of a bond that matures in 11 years and has a $1,000 par value.
Write down your observations on success of technical aspects : Write down your observations and comment on the success of the technical aspects of the production. Lights, sound, costumes, set design.
Data and layout file structure : 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.
Define the sales task : Identify and briefly describe the three basic sales tasks. Order processing is the routine handling of an order.
Identify and model the logic of the program : Identify the rationale for doing the evaluation design, that is, the reasons why the project is worthwhile. Discuss the main questions that are driving .
Interested in bond funds versus stock funds : What type of investors are likely to be interested in bond funds versus stock funds?
Recommend an investment-financing package : Please recommend an investment-financing package that meet the investor's target return.

Reviews

len1459793

4/12/2017 4:53:16 AM

Needs to be completed in C# 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 valid JSON file. The code that converts the data to the JSON format must be written by you. Do not use a serializer or 3rd party framework like Newtonsoft.Json.

Write a Review

Basic Computer Science Questions & Answers

  Why do we need communication protocols

In addition to ISO and TCP/IP, what are the other models?

  What is an add-on instruction

What does the dot on an input or output pin of a function block indicate?

  Any reason other than listen queue being full on the server

In the Internet File Server example (Figure 6-6), can the connect( ) system call on theclient fail for any reason other than listen queue being full on the server

  Covert the subsequent decimal numbers into binary numbers

Write the results of the two numbers (in decimal) after the BIT operations and please covert the subsequent decimal numbers into binary numbers:  (using 2 bytes = 16 bits)

  Let l be a language over s

Please answer the question by the following format: example:Let L be a language over Σ = {0, 1}, construct a DFSA that accepts it, as well as a regex that denotes it for the following languageL = {x ∈ Σ* : x ends in 01 or 10 or 00 or 11 }.

  How many multiplications did you have to per-form

Compute 2735 (mod 569) using the exponentiation routine described in Section 10.4.2. How many multiplications did you have to per-form?

  Introduction to managerial economics

1. Which of the following most closely approximates our definition of oligopoly?

  Exploration of what is out there

Website benchmarking, to put it simply, is an exploration of what is out there, what is working well, and what is not. Begin by reading the article Understanding Website Benchmarking:

  Initializing and reloading a router and switch

You find a couple configurations issues after saving the running configuration to the startup configuration, so you make the necessary changes to fix those issues. If you were to reload the device now, what configuration would be restored to the d..

  Would you make changes to the list of sites for these zones

On the computer you typically use, find out whether any Web sites are listed in the Trusted or Restricted zones. Would you make changes to the list of sites for these zones? Explain why or why not.

  Find an equation for the tower

Find an equation for the tower. (Assume the center is at the origin with axis the z-axis and the minimum diameter is at the center.)

  Given the three goals of relational database design

Given the three goals of relational database design

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