Write a Ruby Program
Write a Ruby program named format grades.rb in your Ruby environment Netbeans Rubt and Rails IDE (http://plugins.netbeans.org/plugin/38549/ruby-and-rails), or Online IDE for Ruby Development at https://repl.it/languages/ruby
The program must read an input file formatted in CSV format, named input.csv. Each record contains data about a student and their corresponding grades.
The data will look similar to the following: Please also see the input.csv file below for download.
Student Name, assignment 1, assignment 2, assignment 3, assignment 4
John Adams, 90, 91, 99, 98
Paul Newman, 90, 92, 93, 94
Mary Smith, 95, 96, 99
input.csv
Be careful to follow the output format exactly, including spacing and number of decimals.
The output of your program must exactly show the following:
Student Assignment Averages:
John Adams -> 94.5
Paul Newman -> 92.3
Mary Smith -> 72.5
Compress your files (grades.rb and input.csv) into a ZIP folder.
Review the readings for this week from Ruby on Rails Tutorial if you have additional questions on deploying Ruby applications.
Submit the ZIP file.
6 years ago 45
Purchase the answer to view it
- grades.zip
- Readme.txt
Purchase the answer to view it
- AnswerDocument.docx
- For MARKMANU ONLY!!!!!
- Marketing Research Presentation - Please have a GOOD command of English
- BUS 300 Week 6 Quiz 5 Chapters 9 and 10
- HOSP100 Week 2: Theme Restaurants
- Eng 125 Week 1 Discussion 1
- "Top Management Concerns" According to the text, the authors asserted that business productivity and cost reduction were the top concerns by a wide margin among the top five (5) management concerns. Give your opinion on whether or not you agree wit
- Maping coordinates on a map using R
- Access Chapter 1 Grader* Project [Assessment 1]
- Help!!!!!!!!
- Can I get help with my Spanish 2 homework?