Programming with RUBY
The college IT department manager no longer wants to use spreadsheets to calculate grades. The manager has asked you to create a program that will input the teachers' files and output the students' grades.
Write a Ruby program named formatfile.rb, which can be run by typing ruby widgets.rb.
In your Ruby environment, 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:
Student Name, assignment1, assignment 2, assignment 3, assignment 4
John Adams, 90, 91, 99, 98
Paul Newman, 90, 92, 93, 94
Mary Smith, 95, 96, 99
Be careful to follow the output format exactly, including spacing. The output of your program must look like the following:
Student Assignment Average
John Adams 94.5
Compress your files into a ZIP folder.
7 years ago 50
Purchase the answer to view it
- RubyProgramming.zip
- formatfile.rb
- input.csv
- widgets.rb
Purchase the answer to view it
- code.rb
- input.csv
- Rubycode.docx
- Typical Reasoning
- Answer the following questions 1- Why are general capital assets recorded in an “off the balance sheet” list or schedule, rather than fund? 2- A state incurs interest on funds used while a highway was under construction. How will this interest be accou
- psych 365
- for JoyMercy M3D1
- a mass, m1 = 5kg, resting on a frictionless ramp is connected to do cabe that passes over a puleey...
- starbucks - Strategic Analysis
- Comparison Essay
- Marketing replies
- sherwin williams internal enviornmental scan
- Macroeconomics : the short run model; graphing and consumption function