Advertisement
operationBirdNet

readme.txt -- for flexible-read-display-csv

Aug 28th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. readme.txt -- for flexible-read-display-csv
  2.  
  3. THE TASK
  4. Create a class named "ReadFileWriteToConsole" that imports
  5. com.csvreader.CsvReader (found in the "javacsv" project
  6. or directory) and uses CsvReader to read a csv file into a
  7. flexible data structure and then write the contents out to
  8. Console with square brackets enclosing each value.
  9. REED'S NOTES:
  10. 1) Create class named "ReadFileWriteToConsole".
  11. public class ReadFileWriteToConsole {
  12. // TODO: stuff
  13. }
  14.  
  15. 2) import statement(*imports*).
  16. import com.csvreader.CsvReader;
  17.  
  18. 3) Flexible Data Structure: Translation? ArrayList? If so, why?
  19.  
  20. 4) Square brackets enclosing each value.
  21. [each][value]
  22.  
  23. CsvReader.java is in the javacsv project in this workspace.
  24.  
  25. The input file name is "in.csv" and should be read from the
  26. current working directory.
  27. REED'S NOTES:
  28. 1) Read from the current working directory: Translation?
  29.  
  30. The ReadFileWriteToConsole maintains a private data structure
  31. that contains the csv file data. The data structure must use
  32. very little memory when there are few cells, and the data
  33. structure must be able to handle a reasonably large number
  34. (tens of thousands) of cells. Clients of the class can
  35. access the data structure by calling the following methods:
  36. getCell(int row, int col) returns a String at the given
  37. location
  38. getRowCount() returns the number of rows
  39. getColCount() returns the number of columns
  40. REED'S NOTES:
  41. 1) Maintains a private data structure that,
  42. contains the csv file data: Translation?
  43. 2) A data structure that uses little memory(when few cells),
  44. but can handle tens of thousands of cells: Translation?
  45.  
  46.  
  47.  
  48. You may assume that all rows of the input files have the same
  49. number of columns.
  50. REED'S NOTES:
  51. 1)...*ALL* rows...*SAME* number of colums
  52.  
  53. SAMPLE INPUT FILE
  54. 1,2,3,4,5,1
  55. Hello World,7,foo,,2,
  56. ,,perfect,3,,
  57. ,,4,,= A1 + (B3 /16),
  58. ,5,,,,
  59. 6,,,,,
  60.  
  61. SAMPLE OUTPUT TO CONSOLE
  62. [1][2][3][4][5][1]
  63. [Hello World][7][foo][][2][]
  64. [][][perfect][3][][]
  65. [][][4][][= A1 + (B3 /16)][]
  66. [][5][][][][]
  67. [6][][][][][]
  68.  
  69. A skeleton of the program is provided. You should add code
  70. to implement the behavior and interface described above.
  71. Do not rename methods.
  72. REED'S NOTES:
  73. 1)...*BEHAVIOR* and *INTERACE*...
  74.  
  75. Video demonstrations of a solution for this task are available.
  76. 1. During the exam: as flexible-read-display-csv.html in the "Solution Demonstration Videos"
  77. folder on the desktop in the exam delivery environment.
  78. 2. During exam preparation, outside the exam environment.
  79. https://s3-us-west-2.amazonaws.com/proxor-video/video/flexible-read-display-csv-transcoded.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement