Question: C# Please.....(Sorting Letters and Removing Duplicates) Write a console application that inserts 30 random letters into a List. Perform the following queries on the List

C# Please.....(Sorting Letters and Removing Duplicates) Write a console application that inserts 30 random letters into a List. Perform the following queries on the List and display your results: {Hint: Strings can be indexed like arrays to access a character at a specific index]. a) Use LINQ to sort the List in ascending order. b) Use LINQ to sort the List in descending order. c) Display the List in ascending order with duplicates removed.

C# Please ...(Duplicate Word Removal) Write a console application that inputs a sentence from the user (assume no punctuation), then determines and displays the nonduplicate words in alphabetical order. Treat uppercase and lowercase letters the same. [Hint: You can 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 orderby clauses of your LINQ query to obtain the lowercase version of each word].

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!