diff --git a/Module3-Lab/CopilotTestApp/CopilotTestApp.csproj b/Module3-Lab/CopilotTestApp/CopilotTestApp.csproj new file mode 100644 index 0000000..fd4bd08 --- /dev/null +++ b/Module3-Lab/CopilotTestApp/CopilotTestApp.csproj @@ -0,0 +1,10 @@ + + + + Exe + net9.0 + enable + enable + + + diff --git a/Module3-Lab/CopilotTestApp/Program.cs b/Module3-Lab/CopilotTestApp/Program.cs new file mode 100644 index 0000000..27770a5 --- /dev/null +++ b/Module3-Lab/CopilotTestApp/Program.cs @@ -0,0 +1,53 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); +// This is a test for Copilot in the Module3-Lab repository. +// It is designed to test the Copilot's ability to understand and generate code. +// Sort a list of integers +List numbers = new List { 5, 3, 8, 1, 2 }; +numbers.Sort(); +// Print the sorted list +foreach (var number in numbers) +{ + Console.WriteLine(number); +} +// This is a test for Copilot in the Module3-Lab repository. + +// It is designed to test the Copilot's ability to understand and generate code. +// Sort a list of strings +List names = new List { "Alice", "Bob", "Charlie" }; +names.Sort(); +// Print the sorted list +foreach (var name in names) +{ + Console.WriteLine(name); +} +// This is a test for Copilot in the Module3-Lab repository. +// It is designed to test the Copilot's ability to understand and generate code. +// Calculate the sum of a list of integers +List values = new List { 1, 2, 3, 4, 5 }; +int sum = 0; +foreach (var value in values) +{ + sum += value; +} +// Print the sum +Console.WriteLine($"Sum: {sum}"); +// This is a test for Copilot in the Module3-Lab repository. +// It is designed to test the Copilot's ability to understand and generate code. +// Find the maximum value in a list of integers +List scores = new List { 10, 20, 30, 40, 50 }; +int maxScore = scores[0]; +foreach (var score in scores) +{ + if (score > maxScore) + { + maxScore = score; + } +} +// Print the maximum score +Console.WriteLine($"Max Score: {maxScore}"); +// This is a test for Copilot in the Module3-Lab repository. +// It is designed to test the Copilot's ability to understand and generate code. +// Reverse a list of strings +List fruits = new List { "Apple", "Banana", "Cherry" }; +fruits.Reverse(); \ No newline at end of file