Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

Homework
This answer was rated:

LOGICPRO ONLY -

LOGICPRO ONLY - I have...

LOGICPRO ONLY - I have the CSV file (an example), also in the hyperlink, This was a solution you addressed a year ago, with the exception that the PIG latin is not required. Language is C# (sharp).

 

Step 1: Given a file of data, read the data and parse it based on a fixed given field headers. To download the file, select the following link: Unit 4 Sample Data. We do not have to do the PIG latin in this assignment.

 

The file is a comma delimited file with the following record structure:

  • FirstName – Character – Size (12)
  • LastName – Character – Size (16)
  • Company – Character – Size (32)
  • Address – Character – Size (32)
  • City – Character – Size (24)
  • County – Character – Size (24)
  • State – Character – Size (2)
  • ZIP – Number – Size (5)
  • Phone – Character – Size (12)
  • Fax – Character – Size (12)
  • Email – Character – Size (32)
  • Web – Character – Size (42)

Step 2: Write a complete C# XXXXX in console mode to load the data file as a sequential file using C# XXXXX library into an ArrayList data structure (using the System.Collection library) Store each line in the file as a separate record.

Step 3: After the file is loaded into the ArrayList, sort the data in ascending order based on the LastName field and Display the following fields:

  • First name
  • Last name
  • Company

Step 4: Next, sort the data in descending order based on the ZIP field, and display the following fields:

  • First name
  • Last name
  • Company
  • ZIP

Step 5: Display all the records (and all its fields) for everyone that is in the state "NY."

Step 6: Submit the source code for the solution and the output screenshots for the following list. You can use any appropriate algorithm in the solution.

  1. Sorted data based on last name
  2. Sorted data based on ZIP
  3. Everyone in the state of NY
Show More
Show Less
Ask Your Own Homework Question
Answered in 12 minutes by:
8/19/2013
Angela--Mod
Category: Homework
Satisfied Customers: 8
Verified
Hello, I am a moderator for this topic. I sent your requested professional a message to follow up with you here, when they are back online. If I can help further, please let me know, otherwise, no need to reply. Thank you for your patience.
Ask Your Own Homework Question
Customer reply replied 4 years ago


Angela,


 


Thank you so very much. Do you anticipate the requested professional to be online tonight?

Customer reply replied 4 years ago


here is what I currently have, but errors,,,,

Attachment: 2013-08-20_000636_unit4ip.docx


Attachment: 2013-08-20_000735_unit4ip.docx


 


Not sure how to attach... here it is pasted:


 


using System;


using System.IO;


using System.Collections;


using System.Collections.Generic;


using System.Linq;


using System.Text;


 


namespace ConsoleApplication24


{


class dataItem


{


// this class will hold the data from one string in the file


string FirstName;


string LastName;


// etc.


}


 


class Program


{


static void Main(string[] args)


{


// create a place to store our data


ArrayList data = new ArrayList();


 


// open and read a text file


StreamReader sr = new StreamReader("Unit4IP");


 


try


{


using (StreamReader sr = new StreamReader("Unit4IP"))


{


// need a string to hold the fields and a string variable for each line of text.


String line;


string[] fields;


 


while ((line = sr.ReadLine()) != null);


}


fields = line.Split(new Char [] {','});


 


Console.WriteLine(fields[0]);


Console.WriteLine(fields[1]);


 


// from here you can create a data to store your fields in it


// then insert the object into your data ArrayList.


// after that, you can do the sorting and output after this loop is done reading


}


}


}


catch (Exception e)


{


Console.WriteLine("The file could not be read:");


Console.WriteLine(e.Message);


 


// Store text file contents in an appropriate data structure


 


// Sort data


 


// Output data


 


// put this at the end to keep the console window from disappearing


Console.WriteLine("Press enter to continue..");


Console.ReadLine();


}


}


 

LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,232
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
Hi,
Welcome back
I will review and reply ASAP
Ask Your Own Homework Question
Customer reply replied 4 years ago
Thanks LogicPro!
Welcome :)
Ask Your Own Homework Question
Download answer from here DataProject.zip

Unzip the zip file to a folder.
Look for .sln file in the unzipped folder.
Double click this .sln file to open it in Visual Studio.
Press F5 to run the project.

You can ask me again using "For LogicPro only" at the start of your questions like you did to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/homework/expert-logicpro/
so you can come back and ask me a question anytime.

Remember, if for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions on original requirements at no extra charge and I’m always here to help.
Thank you for using JustAnswer!
Ask Your Own Homework Question
Customer reply replied 4 years ago


please send to link for solution to [email protected], as I cant get my [email protected] account to log back in and its my alternate email address.


 


I'm appreciative of the turn around time, and will rate you the highest rating once I d/l and run the file.


 


Also, for step 6 of my project, was that completed? The algorithm piece?


 


Thanks again - you are awesome!

Apologies, We can not see email addresses here as system masks them and not allowed to send mails.

You can download from here only.
I didn't write algorithm. I can do that if you need.
Ask Your Own Homework Question
Customer reply replied 4 years ago


Yes please, I require the algorithm. Not a problem about alt email address, while you do that I will work to get my email address corrected for log in.


 


Thanks LogicPro!

ok. I will provide algorithm ASAP
Ask Your Own Homework Question
Customer reply replied 4 years ago


Thank you!

Welcome
Ask Your Own Homework Question
Customer reply replied 4 years ago


Code is perfect, I did adjust the comment for step three to exclude the wording for "pig latin", but no worries. Just require the step 6 algorithm and we are set to complete.


 


Thanks for the team work LogicPro!


 


Let me know if you require until tomorrow, as that is fine.

ok. I will provide the answer ASAP :)
Ask Your Own Homework Question
Customer reply replied 4 years ago
Sounds perfect, thanks!
Download:

http://www.wikisend.com/download/221582/AlgoDataProject.docx


You can ask me again using "For LogicPro only" at the start of your questions like you did to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/homework/expert-logicpro/
so you can come back and ask me a question anytime.

Remember, if for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions on original requirements at no extra charge and I’m always here to help.
Thank you for using JustAnswer!
Ask Your Own Homework Question
Customer reply replied 4 years ago
LogicPro, URL is not hyperlinked...can u correct?
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,232
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
LogicPro and 87 other Homework Specialists are ready to help you
Ask your own question now
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,232
13,232 Satisfied Customers
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML

LogicPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

13,232 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,549 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,635 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,158 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
A recent survey found that 73% of all adults over 50 wear
A recent survey found that 73% of all adults over 50 wear sunglasses for driving. In a random sample of 20 adults over 50, what is the mean and standard deviation of those that wear sunglasses?… read more
Dr. Donna Kakonge
Dr. Donna Kakonge
Doctor of Education
181 satisfied customers
Is anyone familiar with Excel??? The link below will take
Is anyone familiar with Excel??? The link below will take you to my question. It is due 02/14/10 Sunday night , but the sooner the better. You will see "1: Five-Year Sales Projections" that is what I … read more
Stephen, MBA
Stephen, MBA
Master's Degree
166 satisfied customers
I would ask this in homework but I think this is out of
Hi,I would ask this in homework but I think this is out of their area of expertise. How much to answer these 40 electrician trade school questions from Penn foster. This is their NEC graded project wh… read more
Dr. Donna Kakonge
Dr. Donna Kakonge
Doctor of Education
181 satisfied customers
I need help implementing expectation maximization algorithm
I need help implementing expectation maximization algorithm in python … read more
Dr. Donna Kakonge
Dr. Donna Kakonge
Doctor of Education
181 satisfied customers
Section 1 – Objectives: Provide a brief summary of the
Section 1 – Objectives: Provide a brief summary of the project. • Section 2 – Task 1: Basic Web Tracking Mechanism: Summarize your efforts to investigate web tracking, including the screenshots you to… read more
Dr. Donna Kakonge
Dr. Donna Kakonge
Doctor of Education
181 satisfied customers
I have 3 more if you want them, i have to pick a heroine,
i have 3 more if you want them, i have to pick a heroine, and do these assignments, let me know, and let me know what its worth, when this one is done, i will send you the other two, and pay seperatel… read more
O. Adames
O. Adames
Bachelor\u0027s Degree
77 satisfied customers
I need help with advanced macroeconomics. I'm having trouble
I'm having trouble with the IS-MP-PC model, showing what would happen if the FFR would be increased, and also if there were to be a tax reform. … read more
Dr. Donna Kakonge
Dr. Donna Kakonge
Doctor of Education
181 satisfied customers
With a minimum word count of 130: Do you believe business
With a minimum word count of 130: Do you believe business enterprise should be regulated by the federal government or that the marketplace should determine price? Explain your response.… read more
Experienced Teacher
Experienced Teacher
Bachelor\u0027s Degree
394 satisfied customers
Is there any help for Linux beginners testout chapter exams.
is there any help for Linux beginners testout chapter exams … read more
Dr. Donna Kakonge
Dr. Donna Kakonge
Doctor of Education
181 satisfied customers
Prepare 10 column work sheet for fiscal year 2005 starting
prepare 10 column work sheet for fiscal year 2005 starting with unadjust trial balance including adjustments on additional facts?… read more
Manal Elkhoshkhany
Manal Elkhoshkhany
Tutor
Foundation classes for MBA
4,549 satisfied customers
Need an SQL query written that will create a row for every
Need an SQL query written that will create a row for every possible date. I need it to take all invoices, payments and exchange rates and create a row for each record so that it can be filtered by exa… read more
The-PC-Guy
The-PC-Guy
Bachelor\u0027s Degree
628 satisfied customers
We have a project that is due October 29, I have scanned the
Angela, We have a project that is due October 29, I have scanned the info for it but I don't know how to get them to you. Could you please let me know how I can get them to you? Here is the file : dow… read more
Seanna
Seanna
Tutor
1,781 satisfied customers
For LogicPro only: I need to develop a code using SQL for a
For LogicPro only: I need to develop a code using SQL for a cookbook database. Below are the requirements:Provide the SQL CREATE TABLE commands for the five tables in your cookbook database. Include P… read more
LogicPro
LogicPro
Engineer
13,232 satisfied customers
I need some one to answere a couple excel question. Excel
I need some one to answere a couple excel question … read more
Jason Jones
Jason Jones
AAS Information Technology
6,316 satisfied customers
Program 1) A small company is moving all its employee data
Program 1) A small company is moving all its employee data to a computer. To make a smooth transition, a software program will permit the data entry personnel to enter data into a file. Design a progr… read more
LogicPro
LogicPro
Engineer
13,232 satisfied customers
Paying a large tip to secure a better table in a restaurant
Paying a large tip to secure a better table in a restaurant is the same as offering a bribe in business to secure a contract." Defend or oppose this statement.… read more
KARRY
KARRY
Master's Degree
92 satisfied customers
For a list of numbers entered by the user and terminated by
For a list of numbers entered by the user and terminated by 0. Write a program to find the sum of the positive numbers and the sum of the negative numbers. Needs to be done in Raptor Program.… read more
LogicPro
LogicPro
Engineer
13,232 satisfied customers
Will your tutors assist with an entire exam? I have the
hello, will your tutors assist with an entire exam? … read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x