Question: Write, test, and debug (if necessary) a Ruby program with the following specification: Input: A list of numbers from the keyboard. Output: Two lists of

Write, test, and debug (if necessary) a Ruby program with the following specification:

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

3.50 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

e155rb A solution to Exercise 155 Create the two arrays poslist Arraynew neglist Arraynew Loo... View full answer

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 Programming World Wide Questions!