

#Ruby download csv code
grades_util.rb - starter code for the Ruby methods that will be invoked by grades.rb.grades.rb - starter code for the Ruby script that will read *.csv files and produce grade reports.Project Instructions - There are two distinct releases for this project - PLEASE READ CAREFULLYĭownload the following files to a directory in your repository name Project-1 Invocation of the script would look like: ruby grades.rb < example.csv Open and close files, or to process any command line arguments. Input is read from the standard input (via input redirection from a file), andĪll output is written to the standard output. You should consider creating other files to use for your own testing. Otherįiles may have a different number of columns, different column headings, aĭifferent number of student grade lines, different student names, etc. The file example.csv is provided for you. Lines all record the grade information for individual students, one You may assume this value will always be 0-100. EachĪssociated column does not contribute to the grade, for example, a studentĠ-100 (relative to a total of 100) for the grade item in this column. The second line is a set of numeric weights, giving the relativeĬontribution of the grade in the associated column to the overall grade.You may alsoĪssume that all lines after the first have exactly the same number of fields as Headings, and that the headings contain only letters and digits. The first line is a list of headings to be applied to the associated.The format of a grading CSV file is as follows: Process Comma Separated Value (CSV) files representing a class grade book. For this project you will develop a Ruby script to
