Steph Bassos

Steph Bassos

  • NA
  • 17
  • 15.6k

LINQ

Jul 25 2013 1:42 PM
Write a console application that inputs a sentence from the user (assume no punctuation), then determines and displays the non-duplicate words in alphabetical order. Treat uppercase and lowercase letters in the same. You should use string method Split with no arguments, as in sentence.Split(), to break a sentence into an array of strings containing the individual words. By default, Split uses spaces as delimiters. Use string method ToLower in the select and order by clauses of your LINQ query to obtain the lowercase version of each word.

Answers (1)