Solution: Implement Multiple Routines
Explore how to break down a Ruby program into multiple routines for better organization and reuse. This lesson teaches you to create routines that gather input to populate a collection and another to display its contents, helping you improve code structure and functionality.
We'll cover the following...
We'll cover the following...
Flowchart of a possible solution
Here we are required to build two routines that perform the following tasks:
Get input and populate a collection.
Print the collection.
To achieve the above we'll divide the code into two ...