Question: PROGRAMMING LANGUAGE USED IS RUBY Object Oriented Programming with Ruby: (10 pts) Write a Ruby method that takes an array of strings as an argument,

 PROGRAMMING LANGUAGE USED IS RUBY Object Oriented Programming with Ruby: (10

PROGRAMMING LANGUAGE USED IS RUBY

Object Oriented Programming with Ruby: (10 pts) Write a Ruby method that takes an array of strings as an argument, sorts it alphabetically, iterates and uses a code block to display each string element along with its characters count. For example, if passing the following argument array ["Adam", "Eve", "Mark","Franklin", "John"], then the output should be: Adam, ch count 4 Eve, ch count 3 Franklin, ch count-8 John, ch_count 4 Mark, ch_count- 4 Object Oriented Programming with Ruby: (10 pts) Write a Ruby method that takes an array of strings as an argument, sorts it alphabetically, iterates and uses a code block to display each string element along with its characters count. For example, if passing the following argument array ["Adam", "Eve", "Mark","Franklin", "John"], then the output should be: Adam, ch count 4 Eve, ch count 3 Franklin, ch count-8 John, ch_count 4 Mark, ch_count- 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!