akosiraff

DataProject C#

Aug 21st, 2013
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/dataproject-c/
  3. 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.
  4. The file is a comma delimited file with the following record structure:
  5. FirstName – Character – Size (12)
  6. LastName – Character – Size (16)
  7. Company – Character – Size (32)
  8. Address – Character – Size (32)
  9. City – Character – Size (24)
  10. County – Character – Size (24)
  11. State – Character – Size (2)
  12. ZIP – Number – Size (5)
  13. Phone – Character – Size (12)
  14. Fax – Character – Size (12)
  15. Email – Character – Size (32)
  16. Web – Character – Size (42)
  17. Step 2: Write a complete C# Program in console mode to load the data file as a sequential file using C# Program library into an ArrayList data structure (using the System.Collection library) Store each line in the file as a separate record.
  18. 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:
  19. First name
  20. Last name
  21. Company
  22. Step 4: Next, sort the data in descending order based on the ZIP field, and display the following fields:
  23. First name
  24. Last name
  25. Company
  26. ZIP
  27. Step 5: Display all the records (and all its fields) for everyone that is in the state “NY.”
  28. 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.
  29. Sorted data based on last name
  30. Sorted data based on ZIP
  31. Everyone in the state of NY
  32.  
  33. Download: http://solutionzip.com/downloads/dataproject-c/
Advertisement
Add Comment
Please, Sign In to add comment