diff --git a/Checkpoint3/Checkpoint3.csproj b/Checkpoint3/Checkpoint3.csproj new file mode 100644 index 00000000..23df6047 --- /dev/null +++ b/Checkpoint3/Checkpoint3.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.1 + + + diff --git a/Checkpoint3/Program.cs b/Checkpoint3/Program.cs new file mode 100644 index 00000000..4ef4ae90 --- /dev/null +++ b/Checkpoint3/Program.cs @@ -0,0 +1,12 @@ +using System; + +namespace Checkpoint3 +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + } + } +} diff --git a/Enum/Enum.csproj b/Enum/Enum.csproj new file mode 100644 index 00000000..23df6047 --- /dev/null +++ b/Enum/Enum.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.1 + + + diff --git a/Enum/Program.cs b/Enum/Program.cs new file mode 100644 index 00000000..656c0c74 --- /dev/null +++ b/Enum/Program.cs @@ -0,0 +1,22 @@ + +using System; + +public class Program +{ + public static void Main() + { + int myDay = 15; + int myMonth = 10; + + Console.WriteLine("Please input a year"); + int myYear = Convert.ToInt32(Console.ReadLine()); + DateTime dt = new DateTime(myYear,myMonth, myDay); + int dow = (int)dt.DayOfWeek; + var dowName = (DaysOfTheWeekWithNumbers)dow; + Console.WriteLine(dowName); + } + enum DaysOfTheWeekWithNumbers + { + Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6, Sunday = 0 + } +} \ No newline at end of file diff --git a/Files/Files.cs b/Files/Files.cs index da1ebc78..506c7605 100644 --- a/Files/Files.cs +++ b/Files/Files.cs @@ -1,4 +1,5 @@ using System; +using System.IO; namespace Files { @@ -6,7 +7,12 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello World!"); + Console.WriteLine("This is a file"); } + static void CreateFile(string filename) + { + + } + static void } }