title: Display elements in ruby array with every other element in all caps and all other elements in all lowercase
body: <p>I'm trying to write a program that adds inputted words array. After the user completes entering the last element in the array, the words are then displayed, with every other word being displayed in ALL CAPITAL LETTERS. The other words, should be all lowercase letters. Is there a way to display the words alphabetically? This is what I have so far.</p>
  
  <pre><code>userWords = []
  
  6.times do
    puts "Please enter a word:"
    userWords &lt;&lt; gets.chomp
  end
  
  userWords.each do |word|
  puts word
  end
  </code></pre>