1) Simple average: write a script that takes a list of numbers from the console (all on one line separated by spaces) and reports the average.
2)Text statistics: write a script that reads in a text file as one large array of words. Iterate through the array counting the total number of letters. Divide the total number of letters by the number of words to report the average word length. Also report the longest word in the text.
3)Movie search: write a script that reads a word from the user. The script then searches the movie titles in the file [url removed, login to view] and reports any matches. The script should also display the number of matches.
* I will provide [url removed, login to view] file
20 freelancer đang chào giá trung bình $44 cho công việc này
I have 4 years of professional experience. Here is the first solution: p "enter numbers separated by commas:" input = [url removed, login to view] numbers = [url removed, login to view](',') total = 0 [url removed, login to view] do |number| total = total + n Thêm
I have been working in Ruby since a year and currently, i am working as a Ruby on Rails developer at Synup Digital Pvt. Ltd. I can do this task within one day.
Hi, I have 2 years of experience in Ruby on Rails. And I would love to finish this job according to project requirements. Please PM me for further discussion. Thanks
I'm the most qualified of the bidders. Over 10 years of experience developing software, and 3 with ruby/rails. As a freebie you get full test coverage!