Question: Write test and debug (if necessary) a Ruby Program with the following specifications. A. Input: A list of numbers from the keyboard Output: The second-smallest
Write test and debug (if necessary) a Ruby Program with the following specifications. A. Input: A list of numbers from the keyboard Output: The second-smallest number in the list, along with its position in the list, with 1 being the position of the first number. B. Input: A list of numbers from the keyboard Output: Two lists of numbers, one with input numbers greater than zero and one with those less than zero(ignore the zero-valued numbers). You must first build two arrays with the required output numbers before you display any of them.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
