I need to get the user to input five words, which I believe I have. Then the program needs to spit the words in alphabetical order with every other word being in all-caps, s
with_index can help you with the every other word problem:
with_index
words = %w(hello world this is test) # => ["hello", "world", "this", "is", "test"] words.map(&:downcase).sort.map.with_index {|word, index| index.odd? ? word : word.upcase} # => ["HELLO", "is", "TEST", "this", "WORLD"]