static void Main(string[] args) { LINQ linq = new LINQ(); // #1 ******************************************************************************************** List <string> words = new List <string>() { "the", "bike", "this", "it", "tenth", "mathematics" }; List <string> thWords = linq.WordsContainingTH(words); foreach (string s in thWords) { Console.WriteLine(s); } Console.ReadLine(); // #2 ******************************************************************************************** List <string> names = new List <string>() { "Mike", "Brad", "Nevin", "Ian", "Mike" }; List <string> nodupNames = linq.RemoveDuplicates(names); foreach (string s in nodupNames) { Console.WriteLine(s); } Console.ReadLine(); // #3 ******************************************************************************************** List <string> classGrades = new List <string>() { "80,100,92,89,65", "93,81,78,84,69", "73,88,83,99,64", "98,100,66,74,55" }; Console.WriteLine($"Class Grade Average: {linq.ClassGradeAverage(classGrades)}"); Console.ReadLine(); // #4 ******************************************************************************************** string inStr = "Terrill"; Console.WriteLine($"{inStr} => {linq.GetLetterFreq(inStr)}"); Console.ReadLine(); }
static void Main(string[] args) { LINQ lINQ = new LINQ(); lINQ.GetLetterFreq("telvin"); var ReturnedListQuery = lINQ.SelectWordQuery(); foreach (string s in ReturnedListQuery) { Console.WriteLine(s + " "); } var ReturnedDistinctList = lINQ.NoDupList(); foreach (string s in ReturnedDistinctList) { Console.WriteLine(s); } // Console.WriteLine(ReturnedListQuery); Console.ReadLine(); }
static void Main(string[] args) { LINQ l = new LINQ(); l.Cau11(); }