T
Thierry Ntoh yuh
Please someone help me with this ruby code on putty/emacs
Thanks
Write a statistical program in Ruby to:
a) Input the name of a data file from the command line arguments.
b) Input floating-point numbers from the data file.
c) Calculate and output the mean. This is the average, or the sum of
the
values divided by the number of values.
d) Calculate and output the median. This is the value such than half
the
values are larger and half are smaller. If you have an even number
of
values use either middle value or the average of the two middle
values.
Thanks
Write a statistical program in Ruby to:
a) Input the name of a data file from the command line arguments.
b) Input floating-point numbers from the data file.
c) Calculate and output the mean. This is the average, or the sum of
the
values divided by the number of values.
d) Calculate and output the median. This is the value such than half
the
values are larger and half are smaller. If you have an even number
of
values use either middle value or the average of the two middle
values.