Write a ruby program to calculate grades

Assignment Help Programming Languages
Reference no: EM132286887

Question: 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.

Review the readings for this week from Ruby on Rails Tutorial if you have additional questions on deploying Ruby applications.

Reference no: EM132286887

Questions Cloud

Draw a diagram to show the firm and the market : The market for wheat is perfectly competitive. Draw a diagram to show the firm and the market in long run equilibrium.
Considering two diverse strategies to increase business : The CEO of your firm has just announced that the organization is considering two diverse strategies to increase business:
Member of the justice department : A group of competitive firms in the shoe industry announce that they plan a horizontal merger (a merger of all competitors) that will lead to a monopoly in this
Imagine that you are engaging in debate with hitchens : Imagine that you are engaging in a debate with Hitchens. What responses would you give to those three positions?
Write a ruby program to calculate grades : 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.
Trade-off between good employee relations and profitability : Determine the trade-off between good employee relations and profitability.
Favor of tariffs and quotas is partially valid : Which of the following arguments in favor of tariffs and quotas is partially valid?
Price of one national currency in terms of another currency : An international exchange rate: a. Is the price of one national currency in terms of another currency.
What is the minimum price necessary for the firm to earn : Suppose a firm has the following total cost function: TC = 108 + 4q2. What is the minimum price necessary for the firm to earn profit?

Reviews

Write a Review

Programming Languages Questions & Answers

  Program to compute risk of weight-related health problems

A quantity known as the body mass (BMI) is used to calculate the risk of weight-related health problems. Write a program that accepts weight and height and then displays the BMI value and Status.

  Logic for a program that performs arithmetic functions

Create the logic for a program that performs arithmetic functions. Design the program to contain two numeric variables. Prompt the user for values for the variables

  The ideal hpc programming language

Read the article titled, "The Ideal HPC Programming Language" dated 2010. Article Source: Loh, E. (2010, June). The ideal hpc programming language

  Display information about users that are currently logged in

Create a new file titled TestWork.scr Change the permissions on this new file to add the execute bit for user, group, and owner. Edit your new file using Gedit or VI and change it so it performs the following actions:

  Program to accept mass-density and compute volume

Write down the program which accepts as input the mass (in grames) and density (in grams per cubic centimeters), and output volume of the object.

  Write a program to find the common songs in these lists

Write a program to find the common songs in these lists. Let user enter the list sizes n and m and the songs. While testing your program for submission, make sure that the lists are different but they do intersect in some songs.

  Design a program that gives simple math quizzes

Design a program that gives simple math quizzes. The program should display two random numbers that are to be added.

  Create class templates for administrative employess

Create classes or class templates for the following: Administrative Employess are paid a salary, but they also receive a bonus at regular intervals during the year.

  Write a perl program that asks a user for a gene id

Write a Perl program that asks a user for a gene ID or accession number and returns the sequence that corresponds to that gene. Use a hash to accomplish this.

  Create a program that demonstrates the core algorithms

Create a program that demonstrates the core algorithms that will prototype the general operation of the application.

  Write a function that accepts an array a as input and

write a function that accepts an array a as input and searches the contents of the array for elements in three

  Write a function prime that takes a single integer

Write a higher order function list To that takes a function f and a number n and uses list comprehension to return a list of all the numbers from 1 to n for which the function f evaluates to True.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd