diff --git a/AlexandrTkachuk/1/ConsoleApplication/ConsoleApplication.sln b/AlexandrTkachuk/1/ConsoleApplication/ConsoleApplication.sln new file mode 100644 index 0000000..1718d2b --- /dev/null +++ b/AlexandrTkachuk/1/ConsoleApplication/ConsoleApplication.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1MyName", "Task1MyName\Task1MyName.csproj", "{DBA64E87-EA8B-4DF4-850E-1338F7FE2ED8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DBA64E87-EA8B-4DF4-850E-1338F7FE2ED8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DBA64E87-EA8B-4DF4-850E-1338F7FE2ED8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DBA64E87-EA8B-4DF4-850E-1338F7FE2ED8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DBA64E87-EA8B-4DF4-850E-1338F7FE2ED8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/1/ConsoleApplication/ConsoleApplication.v12.suo b/AlexandrTkachuk/1/ConsoleApplication/ConsoleApplication.v12.suo new file mode 100644 index 0000000..e21f1ca Binary files /dev/null and b/AlexandrTkachuk/1/ConsoleApplication/ConsoleApplication.v12.suo differ diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/App.config b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/Program.cs b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/Program.cs new file mode 100644 index 0000000..d8c6626 --- /dev/null +++ b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/Program.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1MyName +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("+--------------------------------+"); + Console.WriteLine("| Tkachuk Alexandr Alexandrovich |"); + Console.WriteLine("+--------------------------------+"); + Console.ReadKey(); + } + } +} diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/Properties/AssemblyInfo.cs b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..3ccfd9b --- /dev/null +++ b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1MyName")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1MyName")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f8bc48aa-c07d-4759-9c58-c7183b7f8578")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/Task1MyName.csproj b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/Task1MyName.csproj new file mode 100644 index 0000000..4db6fb6 --- /dev/null +++ b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/Task1MyName.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {DBA64E87-EA8B-4DF4-850E-1338F7FE2ED8} + Exe + Properties + Task1MyName + Task1MyName + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.exe b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.exe new file mode 100644 index 0000000..a6f1f4f Binary files /dev/null and b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.exe differ diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.exe.config b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.pdb b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.pdb new file mode 100644 index 0000000..321509d Binary files /dev/null and b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.pdb differ diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.vshost.exe b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.vshost.exe differ diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.vshost.exe.config b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.vshost.exe.manifest b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/bin/Debug/Task1MyName.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..bc4fc5a Binary files /dev/null and b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.csproj.FileListAbsolute.txt b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..0cfd47a --- /dev/null +++ b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\ConsoleApplication\Task1MyName\bin\Debug\Task1MyName.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\ConsoleApplication\Task1MyName\bin\Debug\Task1MyName.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\ConsoleApplication\Task1MyName\bin\Debug\Task1MyName.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\ConsoleApplication\Task1MyName\obj\Debug\Task1MyName.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\ConsoleApplication\Task1MyName\obj\Debug\Task1MyName.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\ConsoleApplication\Task1MyName\obj\Debug\Task1MyName.pdb diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.exe b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.exe new file mode 100644 index 0000000..a6f1f4f Binary files /dev/null and b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.exe differ diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.pdb b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.pdb new file mode 100644 index 0000000..321509d Binary files /dev/null and b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/Task1MyName.pdb differ diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/1/ConsoleApplication/Task1MyName/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/CyclicConstructions.sln b/AlexandrTkachuk/1/CyclicConstructions/CyclicConstructions.sln new file mode 100644 index 0000000..4500bc3 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/CyclicConstructions.sln @@ -0,0 +1,64 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1MultiplicationTable", "Task1MultiplicationTable\Task1MultiplicationTable.csproj", "{BD1B81C5-2A13-43E6-84AD-6B3FBD442E99}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2QuantityOfDigits", "Task2QuantityOfDigits\Task2QuantityOfDigits.csproj", "{7EC4D1BA-4514-4BAA-934D-484DBB3E66EB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3GuessTheNumber", "Task3GuessTheNumber\Task3GuessTheNumber.csproj", "{DBB4C5B0-09D1-4A70-BB1C-1FC5D0F316FF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task4TheSquaresOfTheNumbers", "Task4TheSquaresOfTheNumbers\Task4TheSquaresOfTheNumbers.csproj", "{42E6F0EC-9931-4222-B047-E6E60E3AC55F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task5UsersArithmeticMean", "Task5UsersArithmeticMean\Task5UsersArithmeticMean.csproj", "{25B1B6EF-3F50-419C-A1D4-A7F81CE1CE23}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task6ArithmeticMean", "Task6ArithmeticMean\Task6ArithmeticMean.csproj", "{4FC089A3-1159-482A-853F-4526B0E40D76}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task7GeeseAndRabbits", "Task7GeeseAndRabbits\Task7GeeseAndRabbits.csproj", "{9001D001-7B19-4AFE-835A-B51823497708}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task8CorrectPassword", "Task8CorrectPassword\Task8CorrectPassword.csproj", "{7E257C81-9494-443E-9934-89A85381A15A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BD1B81C5-2A13-43E6-84AD-6B3FBD442E99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BD1B81C5-2A13-43E6-84AD-6B3FBD442E99}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BD1B81C5-2A13-43E6-84AD-6B3FBD442E99}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BD1B81C5-2A13-43E6-84AD-6B3FBD442E99}.Release|Any CPU.Build.0 = Release|Any CPU + {7EC4D1BA-4514-4BAA-934D-484DBB3E66EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7EC4D1BA-4514-4BAA-934D-484DBB3E66EB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7EC4D1BA-4514-4BAA-934D-484DBB3E66EB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7EC4D1BA-4514-4BAA-934D-484DBB3E66EB}.Release|Any CPU.Build.0 = Release|Any CPU + {DBB4C5B0-09D1-4A70-BB1C-1FC5D0F316FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DBB4C5B0-09D1-4A70-BB1C-1FC5D0F316FF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DBB4C5B0-09D1-4A70-BB1C-1FC5D0F316FF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DBB4C5B0-09D1-4A70-BB1C-1FC5D0F316FF}.Release|Any CPU.Build.0 = Release|Any CPU + {42E6F0EC-9931-4222-B047-E6E60E3AC55F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {42E6F0EC-9931-4222-B047-E6E60E3AC55F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {42E6F0EC-9931-4222-B047-E6E60E3AC55F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {42E6F0EC-9931-4222-B047-E6E60E3AC55F}.Release|Any CPU.Build.0 = Release|Any CPU + {25B1B6EF-3F50-419C-A1D4-A7F81CE1CE23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {25B1B6EF-3F50-419C-A1D4-A7F81CE1CE23}.Debug|Any CPU.Build.0 = Debug|Any CPU + {25B1B6EF-3F50-419C-A1D4-A7F81CE1CE23}.Release|Any CPU.ActiveCfg = Release|Any CPU + {25B1B6EF-3F50-419C-A1D4-A7F81CE1CE23}.Release|Any CPU.Build.0 = Release|Any CPU + {4FC089A3-1159-482A-853F-4526B0E40D76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4FC089A3-1159-482A-853F-4526B0E40D76}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4FC089A3-1159-482A-853F-4526B0E40D76}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4FC089A3-1159-482A-853F-4526B0E40D76}.Release|Any CPU.Build.0 = Release|Any CPU + {9001D001-7B19-4AFE-835A-B51823497708}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9001D001-7B19-4AFE-835A-B51823497708}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9001D001-7B19-4AFE-835A-B51823497708}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9001D001-7B19-4AFE-835A-B51823497708}.Release|Any CPU.Build.0 = Release|Any CPU + {7E257C81-9494-443E-9934-89A85381A15A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7E257C81-9494-443E-9934-89A85381A15A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7E257C81-9494-443E-9934-89A85381A15A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7E257C81-9494-443E-9934-89A85381A15A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/1/CyclicConstructions/CyclicConstructions.v12.suo b/AlexandrTkachuk/1/CyclicConstructions/CyclicConstructions.v12.suo new file mode 100644 index 0000000..dcee124 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/CyclicConstructions.v12.suo differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/App.config b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/Program.cs b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/Program.cs new file mode 100644 index 0000000..6a53a32 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1MultiplicationTable +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите число : "); + int num = Convert.ToInt32(Console.ReadLine()); + for (int i = 1; i <= 20; i++) + { + Console.WriteLine(num + " * " + i + " = " + num * i); + } + } + } +} diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/Properties/AssemblyInfo.cs b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7df5961 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1MultiplicationTable")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1MultiplicationTable")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("5587cc57-184d-4394-bb6c-d7a473f14c4e")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/Task1MultiplicationTable.csproj b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/Task1MultiplicationTable.csproj new file mode 100644 index 0000000..0e8378d --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/Task1MultiplicationTable.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {BD1B81C5-2A13-43E6-84AD-6B3FBD442E99} + Exe + Properties + Task1MultiplicationTable + Task1MultiplicationTable + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.exe b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.exe new file mode 100644 index 0000000..bff8019 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.pdb new file mode 100644 index 0000000..4ac96f7 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.vshost.exe b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.vshost.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.vshost.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.vshost.exe.manifest b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/bin/Debug/Task1MultiplicationTable.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..765ef09 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.csproj.FileListAbsolute.txt b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..d258c87 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.csproj.FileListAbsolute.txt @@ -0,0 +1,9 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task1MultiplicationTable\bin\Debug\Task1MultiplicationTable.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task1MultiplicationTable\bin\Debug\Task1MultiplicationTable.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task1MultiplicationTable\bin\Debug\Task1MultiplicationTable.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task1MultiplicationTable\obj\Debug\Task1MultiplicationTable.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task1MultiplicationTable\obj\Debug\Task1MultiplicationTable.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task1MultiplicationTable\obj\Debug\Task1MultiplicationTable.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\1\CyclicConstructions\Task1MultiplicationTable\bin\Debug\Task1MultiplicationTable.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\1\CyclicConstructions\Task1MultiplicationTable\obj\Debug\Task1MultiplicationTable.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\1\CyclicConstructions\Task1MultiplicationTable\obj\Debug\Task1MultiplicationTable.pdb diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.exe b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.exe new file mode 100644 index 0000000..bff8019 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.pdb new file mode 100644 index 0000000..4ac96f7 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/Task1MultiplicationTable.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/1/CyclicConstructions/Task1MultiplicationTable/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/App.config b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/Program.cs b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/Program.cs new file mode 100644 index 0000000..62321a1 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/Program.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2QuantityOfDigits +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите число : "); + int enteredNumber = Convert.ToInt32(Console.ReadLine()); + int number = enteredNumber; + int count = 0; + while (number > 0) + { + number = number / 10; + count++; + } + if (count == 1) + { + Console.WriteLine("Число " + enteredNumber + " имеет " + count + " разряд"); + } + else if (count >= 2 && count <= 4) + { + Console.WriteLine("Число " + enteredNumber + " имеет " + count + " разряда"); + } + else + { + Console.WriteLine("Число " + enteredNumber + " имеет " + count + " разрядов"); + } + } + } +} diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/Properties/AssemblyInfo.cs b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..a21fea0 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2QuantityOfDigits")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2QuantityOfDigits")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d40e13b3-0f72-48ea-ba6d-1404bb43a7a0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/Task2QuantityOfDigits.csproj b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/Task2QuantityOfDigits.csproj new file mode 100644 index 0000000..904af6a --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/Task2QuantityOfDigits.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {7EC4D1BA-4514-4BAA-934D-484DBB3E66EB} + Exe + Properties + Task2QuantityOfDigits + Task2QuantityOfDigits + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.exe b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.exe new file mode 100644 index 0000000..d973908 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.pdb new file mode 100644 index 0000000..602401b Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.vshost.exe b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.vshost.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.vshost.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.vshost.exe.manifest b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/bin/Debug/Task2QuantityOfDigits.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..5d3ad19 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.csproj.FileListAbsolute.txt b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..227de9e --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task2QuantityOfDigits\bin\Debug\Task2QuantityOfDigits.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task2QuantityOfDigits\bin\Debug\Task2QuantityOfDigits.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task2QuantityOfDigits\bin\Debug\Task2QuantityOfDigits.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task2QuantityOfDigits\obj\Debug\Task2QuantityOfDigits.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task2QuantityOfDigits\obj\Debug\Task2QuantityOfDigits.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task2QuantityOfDigits\obj\Debug\Task2QuantityOfDigits.pdb diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.exe b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.exe new file mode 100644 index 0000000..d973908 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.pdb new file mode 100644 index 0000000..602401b Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/Task2QuantityOfDigits.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/1/CyclicConstructions/Task2QuantityOfDigits/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/App.config b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/Program.cs b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/Program.cs new file mode 100644 index 0000000..46df490 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/Program.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3GuessTheNumber +{ + class Program + { + static void Main(string[] args) + { + Random r = new Random(); + int unknownNumber = r.Next(1, 147); + int number = 0; + Console.WriteLine("Загадано число от 1 до 146, попытайтесь угадать"); + do + { + Console.Write("Введите число : "); + number = Convert.ToInt32(Console.ReadLine()); + if (number < unknownNumber) + { + Console.WriteLine("Больше"); + } + if (number > unknownNumber) + { + Console.WriteLine("Меньше"); + } + } + while (number != unknownNumber); + Console.WriteLine("Вы угадали! Загаданное число : " + unknownNumber); + } + } +} diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/Properties/AssemblyInfo.cs b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7c8a639 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task3GuessTheNumber")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task3GuessTheNumber")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b47a2ec4-c188-4959-b306-c117dc3f50de")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/Task3GuessTheNumber.csproj b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/Task3GuessTheNumber.csproj new file mode 100644 index 0000000..b1c26f4 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/Task3GuessTheNumber.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {DBB4C5B0-09D1-4A70-BB1C-1FC5D0F316FF} + Exe + Properties + Task3GuessTheNumber + Task3GuessTheNumber + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.exe b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.exe new file mode 100644 index 0000000..2160337 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.pdb new file mode 100644 index 0000000..304e272 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.vshost.exe b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.vshost.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.vshost.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.vshost.exe.manifest b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/bin/Debug/Task3GuessTheNumber.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7b56dd6 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.csproj.FileListAbsolute.txt b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..6977a4a --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task3GuessTheNumber\bin\Debug\Task3GuessTheNumber.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task3GuessTheNumber\bin\Debug\Task3GuessTheNumber.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task3GuessTheNumber\bin\Debug\Task3GuessTheNumber.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task3GuessTheNumber\obj\Debug\Task3GuessTheNumber.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task3GuessTheNumber\obj\Debug\Task3GuessTheNumber.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task3GuessTheNumber\obj\Debug\Task3GuessTheNumber.pdb diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.exe b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.exe new file mode 100644 index 0000000..2160337 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.pdb new file mode 100644 index 0000000..304e272 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/Task3GuessTheNumber.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/1/CyclicConstructions/Task3GuessTheNumber/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/App.config b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/Program.cs b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/Program.cs new file mode 100644 index 0000000..d8f50e4 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/Program.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4TheSquaresOfTheNumbers +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите число : "); + int number = Convert.ToInt32(Console.ReadLine()); + Console.Write("Числа, квадраты которых меньше, чем " + number + " : "); + for (int i = 1; i < number; i++) + { + if (i * i < number) + { + Console.Write(i + "(" + i * i + ") "); + } + } + + } + } +} diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/Properties/AssemblyInfo.cs b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..05a350f --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task4TheSquaresOfTheNumbers")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task4TheSquaresOfTheNumbers")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("2d15ec0b-045c-4de8-80f7-527024dcb30d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/Task4TheSquaresOfTheNumbers.csproj b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/Task4TheSquaresOfTheNumbers.csproj new file mode 100644 index 0000000..f80752e --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/Task4TheSquaresOfTheNumbers.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {42E6F0EC-9931-4222-B047-E6E60E3AC55F} + Exe + Properties + Task4TheSquaresOfTheNumbers + Task4TheSquaresOfTheNumbers + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.exe b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.exe new file mode 100644 index 0000000..3eb211c Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.pdb new file mode 100644 index 0000000..d3b5da4 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.vshost.exe b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.vshost.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.vshost.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.vshost.exe.manifest b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/bin/Debug/Task4TheSquaresOfTheNumbers.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..237cb07 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.csproj.FileListAbsolute.txt b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4b9e64c --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task4TheSquaresOfTheNumbers\bin\Debug\Task4TheSquaresOfTheNumbers.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task4TheSquaresOfTheNumbers\bin\Debug\Task4TheSquaresOfTheNumbers.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task4TheSquaresOfTheNumbers\bin\Debug\Task4TheSquaresOfTheNumbers.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task4TheSquaresOfTheNumbers\obj\Debug\Task4TheSquaresOfTheNumbers.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task4TheSquaresOfTheNumbers\obj\Debug\Task4TheSquaresOfTheNumbers.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task4TheSquaresOfTheNumbers\obj\Debug\Task4TheSquaresOfTheNumbers.pdb diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.exe b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.exe new file mode 100644 index 0000000..3eb211c Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.pdb new file mode 100644 index 0000000..d3b5da4 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/Task4TheSquaresOfTheNumbers.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/1/CyclicConstructions/Task4TheSquaresOfTheNumbers/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/App.config b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/Program.cs b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/Program.cs new file mode 100644 index 0000000..2db65f8 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5UsersArithmeticMean +{ + class Program + { + static void Main(string[] args) + { + int sum = 0; + int[] numbers = new int[5]; + for (int i = 0; i < numbers.Length; i++) + { + Console.Write("Введите " + (i + 1) + "-е число : "); + numbers[i] = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine(); + sum += numbers[i]; + } + Console.WriteLine("Среднее арифметическое этих чисел : " + (double)sum / numbers.Length); + } + } +} diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/Properties/AssemblyInfo.cs b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..aa65828 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task5UsersArithmeticMean")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task5UsersArithmeticMean")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("30462627-2f32-473b-b8f3-625b8355cffd")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/Task5UsersArithmeticMean.csproj b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/Task5UsersArithmeticMean.csproj new file mode 100644 index 0000000..76ad121 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/Task5UsersArithmeticMean.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {25B1B6EF-3F50-419C-A1D4-A7F81CE1CE23} + Exe + Properties + Task5UsersArithmeticMean + Task5UsersArithmeticMean + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.exe b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.exe new file mode 100644 index 0000000..f47358a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.pdb new file mode 100644 index 0000000..2e658a7 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.vshost.exe b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.vshost.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.vshost.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.vshost.exe.manifest b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/bin/Debug/Task5UsersArithmeticMean.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..2b90a85 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.csproj.FileListAbsolute.txt b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..068223c --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task5UsersArithmeticMean\bin\Debug\Task5UsersArithmeticMean.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task5UsersArithmeticMean\bin\Debug\Task5UsersArithmeticMean.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task5UsersArithmeticMean\bin\Debug\Task5UsersArithmeticMean.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task5UsersArithmeticMean\obj\Debug\Task5UsersArithmeticMean.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task5UsersArithmeticMean\obj\Debug\Task5UsersArithmeticMean.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task5UsersArithmeticMean\obj\Debug\Task5UsersArithmeticMean.pdb diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.exe b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.exe new file mode 100644 index 0000000..f47358a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.pdb new file mode 100644 index 0000000..2e658a7 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/Task5UsersArithmeticMean.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/1/CyclicConstructions/Task5UsersArithmeticMean/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/App.config b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/Program.cs b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/Program.cs new file mode 100644 index 0000000..9f04f70 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/Program.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task6ArithmeticMean +{ + class Program + { + static void Main(string[] args) + { + Random random = new Random(); + int sum = 0; + int[] numbers = { random.Next(0, 50), random.Next(0, 50), random.Next(0, 50), random.Next(0, 50), random.Next(0, 50) }; + Console.Write("Созданы числа : "); + for (int i = 0; i < numbers.Length; i++) + { + Console.Write(numbers[i] + " "); + sum += numbers[i]; + } + Console.WriteLine(); + Console.WriteLine("Среднее арифметическое этих чисел : " + (double)sum / numbers.Length); + } + } +} diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/Properties/AssemblyInfo.cs b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f8128ac --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task6ArithmeticMean")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task6ArithmeticMean")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("7bbf8071-ac68-445f-89dc-5172cbe34775")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/Task6ArithmeticMean.csproj b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/Task6ArithmeticMean.csproj new file mode 100644 index 0000000..5712660 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/Task6ArithmeticMean.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {4FC089A3-1159-482A-853F-4526B0E40D76} + Exe + Properties + Task6ArithmeticMean + Task6ArithmeticMean + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.exe b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.exe new file mode 100644 index 0000000..1e91822 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.pdb new file mode 100644 index 0000000..1578c8f Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.vshost.exe b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.vshost.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.vshost.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.vshost.exe.manifest b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/bin/Debug/Task6ArithmeticMean.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..9966c28 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.csproj.FileListAbsolute.txt b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..b412ab5 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task6ArithmeticMean\bin\Debug\Task6ArithmeticMean.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task6ArithmeticMean\bin\Debug\Task6ArithmeticMean.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task6ArithmeticMean\bin\Debug\Task6ArithmeticMean.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task6ArithmeticMean\obj\Debug\Task6ArithmeticMean.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task6ArithmeticMean\obj\Debug\Task6ArithmeticMean.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task6ArithmeticMean\obj\Debug\Task6ArithmeticMean.pdb diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.exe b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.exe new file mode 100644 index 0000000..1e91822 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.pdb new file mode 100644 index 0000000..1578c8f Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/Task6ArithmeticMean.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/1/CyclicConstructions/Task6ArithmeticMean/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/App.config b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/Program.cs b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/Program.cs new file mode 100644 index 0000000..477c5d7 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/Program.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task7GeeseAndRabbits +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("У гусей и кроликов вместе 64 лапы. Все возможные сочетания : "); + for (int goose = 0; goose <= 64; goose += 2) + { + for (int rabbit = 0; rabbit <= 64; rabbit += 4) + { + if (goose + rabbit == 64) + { + Console.WriteLine(goose / 2 + " гусей и " + rabbit / 4 + " кроликов"); + } + } + } + } + } +} diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/Properties/AssemblyInfo.cs b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9fcb45c --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task7GeeseAndRabbits")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task7GeeseAndRabbits")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("dadcec28-aaec-4900-aadb-4baaacc227b7")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/Task7GeeseAndRabbits.csproj b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/Task7GeeseAndRabbits.csproj new file mode 100644 index 0000000..91845c8 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/Task7GeeseAndRabbits.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {9001D001-7B19-4AFE-835A-B51823497708} + Exe + Properties + Task7GeeseAndRabbits + Task7GeeseAndRabbits + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.exe b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.exe new file mode 100644 index 0000000..48a27b4 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.pdb new file mode 100644 index 0000000..d891098 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.vshost.exe b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.vshost.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.vshost.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.vshost.exe.manifest b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/bin/Debug/Task7GeeseAndRabbits.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..c582ce0 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.csproj.FileListAbsolute.txt b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..f8ead04 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task7GeeseAndRabbits\bin\Debug\Task7GeeseAndRabbits.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task7GeeseAndRabbits\bin\Debug\Task7GeeseAndRabbits.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task7GeeseAndRabbits\bin\Debug\Task7GeeseAndRabbits.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task7GeeseAndRabbits\obj\Debug\Task7GeeseAndRabbits.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task7GeeseAndRabbits\obj\Debug\Task7GeeseAndRabbits.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task7GeeseAndRabbits\obj\Debug\Task7GeeseAndRabbits.pdb diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.exe b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.exe new file mode 100644 index 0000000..48a27b4 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.pdb new file mode 100644 index 0000000..d891098 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/Task7GeeseAndRabbits.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/1/CyclicConstructions/Task7GeeseAndRabbits/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/App.config b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/Program.cs b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/Program.cs new file mode 100644 index 0000000..128f4b0 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/Program.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task8CorrectPassword +{ + class Program + { + static void Main(string[] args) + { + string password = "root"; + Console.Write("Введите пароль : "); + string input = Console.ReadLine(); + while (input != password) + { + Console.Write("Неверный пароль. Попробуйте еще раз : "); + input = Console.ReadLine(); + } + Console.WriteLine("Верный пароль!"); + } + } +} diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/Properties/AssemblyInfo.cs b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..680766d --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task8CorrectPassword")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task8CorrectPassword")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b7f62c79-b3a6-4d9c-b7f1-e9687e015d92")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/Task8CorrectPassword.csproj b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/Task8CorrectPassword.csproj new file mode 100644 index 0000000..9c5a9a5 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/Task8CorrectPassword.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {7E257C81-9494-443E-9934-89A85381A15A} + Exe + Properties + Task8CorrectPassword + Task8CorrectPassword + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.exe b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.exe new file mode 100644 index 0000000..0c88c01 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.pdb new file mode 100644 index 0000000..f32d4a3 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.vshost.exe b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.vshost.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.vshost.exe.config b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.vshost.exe.manifest b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/bin/Debug/Task8CorrectPassword.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3fbde95 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.csproj.FileListAbsolute.txt b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..17036b2 --- /dev/null +++ b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task8CorrectPassword\bin\Debug\Task8CorrectPassword.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task8CorrectPassword\bin\Debug\Task8CorrectPassword.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task8CorrectPassword\bin\Debug\Task8CorrectPassword.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task8CorrectPassword\obj\Debug\Task8CorrectPassword.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task8CorrectPassword\obj\Debug\Task8CorrectPassword.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\CyclicConstructions\Task8CorrectPassword\obj\Debug\Task8CorrectPassword.pdb diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.exe b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.exe new file mode 100644 index 0000000..0c88c01 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.exe differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.pdb b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.pdb new file mode 100644 index 0000000..f32d4a3 Binary files /dev/null and b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/Task8CorrectPassword.pdb differ diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/1/CyclicConstructions/Task8CorrectPassword/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/App.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/Program.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/Program.cs" new file mode 100644 index 0000000..b5787f9 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/Program.cs" @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1GreaterNumber +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите первое число : "); + int number1 = Convert.ToInt32(Console.ReadLine()); + Console.Write("Введите второе число : "); + int number2 = Convert.ToInt32(Console.ReadLine()); + int result = number1 > number2 ? number1 : number2; + Console.WriteLine("Наибольшее число : " + result); + } + } +} diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/Properties/AssemblyInfo.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..d647883 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1GreaterNumber")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1GreaterNumber")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9fa25545-dff8-478d-bb44-a51168248de8")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/Task1GreaterNumber.csproj" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/Task1GreaterNumber.csproj" new file mode 100644 index 0000000..11b1a36 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/Task1GreaterNumber.csproj" @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {0116D8AE-2138-4E78-8FBC-104DF1A3684B} + Exe + Properties + Task1GreaterNumber + Task1GreaterNumber + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.exe" new file mode 100644 index 0000000..448cac2 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.pdb" new file mode 100644 index 0000000..7f150a4 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.vshost.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.vshost.exe" new file mode 100644 index 0000000..666c0af Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.vshost.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.vshost.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.vshost.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.vshost.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.vshost.exe.manifest" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.vshost.exe.manifest" new file mode 100644 index 0000000..061c9ca --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/bin/Debug/Task1GreaterNumber.vshost.exe.manifest" @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" new file mode 100644 index 0000000..bd2b85e Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.csproj.FileListAbsolute.txt" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000..1422bda --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.csproj.FileListAbsolute.txt" @@ -0,0 +1,9 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task1GreaterNumber\bin\Debug\Task1GreaterNumber.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task1GreaterNumber\bin\Debug\Task1GreaterNumber.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task1GreaterNumber\bin\Debug\Task1GreaterNumber.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task1GreaterNumber\obj\Debug\Task1GreaterNumber.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task1GreaterNumber\obj\Debug\Task1GreaterNumber.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task1GreaterNumber\obj\Debug\Task1GreaterNumber.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\1\СonditionalConstructions\Task1GreaterNumber\bin\Debug\Task1GreaterNumber.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\1\СonditionalConstructions\Task1GreaterNumber\obj\Debug\Task1GreaterNumber.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\1\СonditionalConstructions\Task1GreaterNumber\obj\Debug\Task1GreaterNumber.pdb diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.csprojResolveAssemblyReference.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.csprojResolveAssemblyReference.cache" new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.csprojResolveAssemblyReference.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.exe" new file mode 100644 index 0000000..448cac2 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.pdb" new file mode 100644 index 0000000..7f150a4 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/Task1GreaterNumber.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task1GreaterNumber/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/App.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/Program.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/Program.cs" new file mode 100644 index 0000000..0497add --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/Program.cs" @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2CatAndDog +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите слово : "); + string word = Console.ReadLine(); + if (word == "мяу") + { + Console.WriteLine("Покорми кота"); + } + else if (word == "гав") + { + Console.WriteLine("Погуляй с собакой"); + } + else + { + Console.WriteLine("Введено неправильное слово"); + } + } + } +} diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/Properties/AssemblyInfo.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..61b2dc0 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2CatAndDog")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2CatAndDog")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("2df71582-e972-4971-b0c6-774e079f5031")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/Task2CatAndDog.csproj" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/Task2CatAndDog.csproj" new file mode 100644 index 0000000..8632514 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/Task2CatAndDog.csproj" @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {C283B085-0FF3-43C9-B4C6-C83780F0A79B} + Exe + Properties + Task2CatAndDog + Task2CatAndDog + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.exe" new file mode 100644 index 0000000..4bb204a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.pdb" new file mode 100644 index 0000000..a354cd4 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.vshost.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.vshost.exe" new file mode 100644 index 0000000..666c0af Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.vshost.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.vshost.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.vshost.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.vshost.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.vshost.exe.manifest" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.vshost.exe.manifest" new file mode 100644 index 0000000..061c9ca --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/bin/Debug/Task2CatAndDog.vshost.exe.manifest" @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" new file mode 100644 index 0000000..fe85ebc Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.csproj.FileListAbsolute.txt" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000..a7b2477 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.csproj.FileListAbsolute.txt" @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task2CatAndDog\bin\Debug\Task2CatAndDog.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task2CatAndDog\bin\Debug\Task2CatAndDog.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task2CatAndDog\bin\Debug\Task2CatAndDog.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task2CatAndDog\obj\Debug\Task2CatAndDog.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task2CatAndDog\obj\Debug\Task2CatAndDog.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task2CatAndDog\obj\Debug\Task2CatAndDog.pdb diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.csprojResolveAssemblyReference.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.csprojResolveAssemblyReference.cache" new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.csprojResolveAssemblyReference.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.exe" new file mode 100644 index 0000000..4bb204a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.pdb" new file mode 100644 index 0000000..a354cd4 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/Task2CatAndDog.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task2CatAndDog/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/App.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/Program.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/Program.cs" new file mode 100644 index 0000000..85293e8 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/Program.cs" @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3NumberOfMonth +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите номер месяца : "); + int numberOfMonth = Convert.ToInt32(Console.ReadLine()); + if (numberOfMonth == 1 || numberOfMonth == 2 || numberOfMonth == 12) + { + Console.WriteLine("Зима"); + } + else if (numberOfMonth == 3 || numberOfMonth == 4 || numberOfMonth == 5) + { + Console.WriteLine("Весна"); + } + else if (numberOfMonth == 6 || numberOfMonth == 7 || numberOfMonth == 8) + { + Console.WriteLine("Лето"); + } + else if (numberOfMonth == 9 || numberOfMonth == 10 || numberOfMonth == 11) + { + Console.WriteLine("Осень"); + } + else + { + Console.WriteLine("На этой планете такого месяца нет"); + } + } + } +} diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/Properties/AssemblyInfo.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..21ae2e2 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task3NumberOfMonth")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task3NumberOfMonth")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("98e3c2fa-ed2d-499f-abab-32d94a759114")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/Task3NumberOfMonth.csproj" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/Task3NumberOfMonth.csproj" new file mode 100644 index 0000000..73d0dcb --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/Task3NumberOfMonth.csproj" @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {04454403-D802-4D8F-B607-0248C8CA3522} + Exe + Properties + Task3NumberOfMonth + Task3NumberOfMonth + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.exe" new file mode 100644 index 0000000..ed27a45 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.pdb" new file mode 100644 index 0000000..699cbdf Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.vshost.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.vshost.exe" new file mode 100644 index 0000000..666c0af Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.vshost.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.vshost.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.vshost.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.vshost.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.vshost.exe.manifest" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.vshost.exe.manifest" new file mode 100644 index 0000000..061c9ca --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/bin/Debug/Task3NumberOfMonth.vshost.exe.manifest" @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" new file mode 100644 index 0000000..952e4ed Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.csproj.FileListAbsolute.txt" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000..bd26ad5 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.csproj.FileListAbsolute.txt" @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task3NumberOfMonth\bin\Debug\Task3NumberOfMonth.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task3NumberOfMonth\bin\Debug\Task3NumberOfMonth.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task3NumberOfMonth\bin\Debug\Task3NumberOfMonth.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task3NumberOfMonth\obj\Debug\Task3NumberOfMonth.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task3NumberOfMonth\obj\Debug\Task3NumberOfMonth.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task3NumberOfMonth\obj\Debug\Task3NumberOfMonth.pdb diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.csprojResolveAssemblyReference.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.csprojResolveAssemblyReference.cache" new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.csprojResolveAssemblyReference.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.exe" new file mode 100644 index 0000000..ed27a45 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.pdb" new file mode 100644 index 0000000..699cbdf Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/Task3NumberOfMonth.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task3NumberOfMonth/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/App.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/Program.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/Program.cs" new file mode 100644 index 0000000..3afa684 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/Program.cs" @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4GoodAndBad +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите число : "); + int inputNumber = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine(inputNumber == 1 ? "Хорошо" : inputNumber == 0 ? "Плохо" : "Непрвильный ввод"); + } + } +} diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/Properties/AssemblyInfo.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..a04bb8c --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task4GoodAndBad")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task4GoodAndBad")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("2113a5bb-ef6e-49ac-9270-890f36f2c3c7")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/Task4GoodAndBad.csproj" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/Task4GoodAndBad.csproj" new file mode 100644 index 0000000..2efdbe3 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/Task4GoodAndBad.csproj" @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {980D73F2-1E81-4F85-B240-549FC49C9B2F} + Exe + Properties + Task4GoodAndBad + Task4GoodAndBad + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.exe" new file mode 100644 index 0000000..95a6047 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.pdb" new file mode 100644 index 0000000..db8c599 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.vshost.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.vshost.exe" new file mode 100644 index 0000000..666c0af Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.vshost.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.vshost.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.vshost.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.vshost.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.vshost.exe.manifest" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.vshost.exe.manifest" new file mode 100644 index 0000000..061c9ca --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/bin/Debug/Task4GoodAndBad.vshost.exe.manifest" @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" new file mode 100644 index 0000000..565c5a0 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.csproj.FileListAbsolute.txt" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000..eb944cf --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.csproj.FileListAbsolute.txt" @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task4GoodAndBad\bin\Debug\Task4GoodAndBad.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task4GoodAndBad\bin\Debug\Task4GoodAndBad.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task4GoodAndBad\bin\Debug\Task4GoodAndBad.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task4GoodAndBad\obj\Debug\Task4GoodAndBad.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task4GoodAndBad\obj\Debug\Task4GoodAndBad.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task4GoodAndBad\obj\Debug\Task4GoodAndBad.pdb diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.csprojResolveAssemblyReference.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.csprojResolveAssemblyReference.cache" new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.csprojResolveAssemblyReference.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.exe" new file mode 100644 index 0000000..95a6047 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.pdb" new file mode 100644 index 0000000..db8c599 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/Task4GoodAndBad.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task4GoodAndBad/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/App.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/Program.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/Program.cs" new file mode 100644 index 0000000..e0faf44 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/Program.cs" @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5NumberOfDay +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите число : "); + int numberOfDay = Convert.ToInt32(Console.ReadLine()); + switch (numberOfDay) + { + + case 1: + Console.WriteLine("Понедельник"); + break; + case 2: + Console.WriteLine("Вторник"); + break; + case 3: + Console.WriteLine("Среда"); + break; + case 4: + Console.WriteLine("Четверг"); + break; + case 5: + Console.WriteLine("Пятница"); + break; + case 6: + Console.WriteLine("Суббота"); + break; + case 7: + Console.WriteLine("Воскресенье"); + break; + default: + Console.WriteLine("Дня недели с таким номером не существует"); + break; + + } + } + } +} diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/Properties/AssemblyInfo.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..edb5914 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task5NumberOfDay")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task5NumberOfDay")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("aac84937-5fab-41f6-8e39-b63de3fe2ac9")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/Task5NumberOfDay.csproj" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/Task5NumberOfDay.csproj" new file mode 100644 index 0000000..7a373b0 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/Task5NumberOfDay.csproj" @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {4CA91744-6B26-43DD-BA93-85431BA65B22} + Exe + Properties + Task5NumberOfDay + Task5NumberOfDay + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.exe" new file mode 100644 index 0000000..0cfd27a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.pdb" new file mode 100644 index 0000000..54a7341 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.vshost.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.vshost.exe" new file mode 100644 index 0000000..666c0af Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.vshost.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.vshost.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.vshost.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.vshost.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.vshost.exe.manifest" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.vshost.exe.manifest" new file mode 100644 index 0000000..061c9ca --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/bin/Debug/Task5NumberOfDay.vshost.exe.manifest" @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" new file mode 100644 index 0000000..9a5d7e9 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.csproj.FileListAbsolute.txt" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000..3e47f91 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.csproj.FileListAbsolute.txt" @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task5NumberOfDay\bin\Debug\Task5NumberOfDay.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task5NumberOfDay\bin\Debug\Task5NumberOfDay.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task5NumberOfDay\bin\Debug\Task5NumberOfDay.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task5NumberOfDay\obj\Debug\Task5NumberOfDay.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task5NumberOfDay\obj\Debug\Task5NumberOfDay.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task5NumberOfDay\obj\Debug\Task5NumberOfDay.pdb diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.csprojResolveAssemblyReference.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.csprojResolveAssemblyReference.cache" new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.csprojResolveAssemblyReference.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.exe" new file mode 100644 index 0000000..0cfd27a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.pdb" new file mode 100644 index 0000000..54a7341 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/Task5NumberOfDay.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task5NumberOfDay/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/App.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/Program.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/Program.cs" new file mode 100644 index 0000000..9e95748 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/Program.cs" @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task6Taxi +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите количество километров : "); + int km = Convert.ToInt32(Console.ReadLine()); + Console.Write("Введите количество минут простоя : "); + int min = Convert.ToInt32(Console.ReadLine()); + int result = 0; + if (km <= 5) + { + result = 20 + min; + Console.WriteLine("Вы должны заплатить: " + result + "грн"); + } + else + { + result = 20 + (km - 5) * 3 + min; + Console.WriteLine("Вы должны заплатить: " + result + "грн"); + } + } + } +} diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/Properties/AssemblyInfo.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..1f09b48 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task6Taxi")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task6Taxi")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("bdd308b6-ae11-40b4-a841-685f4f81e659")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/Task6Taxi.csproj" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/Task6Taxi.csproj" new file mode 100644 index 0000000..a27a997 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/Task6Taxi.csproj" @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {DB323CE5-80A8-4D80-BD92-E2DC015D4B9A} + Exe + Properties + Task6Taxi + Task6Taxi + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.exe" new file mode 100644 index 0000000..d52c8f6 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.pdb" new file mode 100644 index 0000000..63a10da Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.vshost.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.vshost.exe" new file mode 100644 index 0000000..666c0af Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.vshost.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.vshost.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.vshost.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.vshost.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.vshost.exe.manifest" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.vshost.exe.manifest" new file mode 100644 index 0000000..061c9ca --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/bin/Debug/Task6Taxi.vshost.exe.manifest" @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" new file mode 100644 index 0000000..f2aa700 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.csproj.FileListAbsolute.txt" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000..a8812a4 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.csproj.FileListAbsolute.txt" @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task6Taxi\bin\Debug\Task6Taxi.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task6Taxi\bin\Debug\Task6Taxi.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task6Taxi\bin\Debug\Task6Taxi.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task6Taxi\obj\Debug\Task6Taxi.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task6Taxi\obj\Debug\Task6Taxi.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task6Taxi\obj\Debug\Task6Taxi.pdb diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.csprojResolveAssemblyReference.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.csprojResolveAssemblyReference.cache" new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.csprojResolveAssemblyReference.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.exe" new file mode 100644 index 0000000..d52c8f6 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.pdb" new file mode 100644 index 0000000..63a10da Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/Task6Taxi.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task6Taxi/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/App.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/Program.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/Program.cs" new file mode 100644 index 0000000..e50489b --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/Program.cs" @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task7IsDigitSimple +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите число : "); + int number = Convert.ToInt32(Console.ReadLine()); + for (int i = number / 2; i > 1; i--) + { + if (number % i == 0) + { + Console.WriteLine("Число " + number + " не простое"); + return; + } + + } + Console.WriteLine("Число " + number + " простое"); + } + } +} diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/Properties/AssemblyInfo.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..153f89a --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task7IsDigitSimple")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task7IsDigitSimple")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("14eaa848-d3d2-45ca-bffd-0b2b6864552c")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/Task7IsDigitSimple.csproj" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/Task7IsDigitSimple.csproj" new file mode 100644 index 0000000..03ca15b --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/Task7IsDigitSimple.csproj" @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {D9809A78-2E4F-4CB1-9932-D8EBFA7BB294} + Exe + Properties + Task7IsDigitSimple + Task7IsDigitSimple + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.exe" new file mode 100644 index 0000000..b9ac4e3 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.pdb" new file mode 100644 index 0000000..06be335 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.vshost.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.vshost.exe" new file mode 100644 index 0000000..666c0af Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.vshost.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.vshost.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.vshost.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.vshost.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.vshost.exe.manifest" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.vshost.exe.manifest" new file mode 100644 index 0000000..061c9ca --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/bin/Debug/Task7IsDigitSimple.vshost.exe.manifest" @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" new file mode 100644 index 0000000..a694c18 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.csproj.FileListAbsolute.txt" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000..33119cf --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.csproj.FileListAbsolute.txt" @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task7IsDigitSimple\bin\Debug\Task7IsDigitSimple.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task7IsDigitSimple\bin\Debug\Task7IsDigitSimple.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task7IsDigitSimple\bin\Debug\Task7IsDigitSimple.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task7IsDigitSimple\obj\Debug\Task7IsDigitSimple.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task7IsDigitSimple\obj\Debug\Task7IsDigitSimple.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task7IsDigitSimple\obj\Debug\Task7IsDigitSimple.pdb diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.csprojResolveAssemblyReference.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.csprojResolveAssemblyReference.cache" new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.csprojResolveAssemblyReference.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.exe" new file mode 100644 index 0000000..b9ac4e3 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.pdb" new file mode 100644 index 0000000..06be335 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/Task7IsDigitSimple.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task7IsDigitSimple/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/App.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/Program.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/Program.cs" new file mode 100644 index 0000000..7e809dd --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/Program.cs" @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task8Lottery +{ + class Program + { + static void Main(string[] args) + { + ShowLotteryConditions(); + Console.Write("Сделайте ставку : "); + int bet = Convert.ToInt32(Console.ReadLine()); + Lottery(bet); + } + static void ShowLotteryConditions() + { + Console.WriteLine("Условия лотереи : "); + Console.WriteLine("Если выпадают значениея от 1 до 5, то вы проиграли."); + Console.WriteLine("Если выпадают значениея от 6 до 8, то вы получаете ставку обратно."); + Console.WriteLine("Если выпадают значениея от 9 до 11, то ваша ставка удваивается."); + Console.WriteLine("Если выпадает 12, то ваша ставка увеличивается в 10 раз."); + Console.WriteLine(); + } + + static void Lottery(int bet) + { + Random random = new Random(); + int numberOnCube; + for (; ; ) + { + Console.WriteLine(); + numberOnCube = random.Next(1, 13); + if (numberOnCube >= 1 && numberOnCube <= 5) + { + Console.WriteLine("Выпало число " + numberOnCube + ". Вы проиграли"); + Console.WriteLine("Игра закончена"); + return; + } + else if (numberOnCube >= 6 && numberOnCube <= 8) + { + Console.WriteLine("Выпало число " + numberOnCube + ". Вы получаете вашу ставку обратно"); + } + else if (numberOnCube >= 9 && numberOnCube <= 11) + { + Console.WriteLine("Выпало число " + numberOnCube + ". Ваша ставка удваивается"); + bet *= 2; + } + else + { + Console.WriteLine("Выпало число " + numberOnCube + ". Ваша ставка ставка увеличивается в 10 раз!!!"); + bet *= 10; + } + if (bet != 0) + { + Console.WriteLine("Ваша ставка равна " + bet); + Console.Write("Вы хотите играть дальше?. Если хотите, то введите слово \"да\", если не хотите, то нажмите любую кнопку : "); + if (Console.ReadLine() != "да") + { + Console.WriteLine("Игра закончена"); + Console.ReadKey(); + return; + } + } + } + } + } +} diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/Properties/AssemblyInfo.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..c3b2890 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task8Lottery")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task8Lottery")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e8dc5960-4297-47b6-8304-8460942f79a6")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/Task8Lottery.csproj" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/Task8Lottery.csproj" new file mode 100644 index 0000000..fc2f184 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/Task8Lottery.csproj" @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {7D47E871-F420-443A-8D16-B7840914F3FD} + Exe + Properties + Task8Lottery + Task8Lottery + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.exe" new file mode 100644 index 0000000..bbe66da Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.pdb" new file mode 100644 index 0000000..98e654e Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.vshost.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.vshost.exe" new file mode 100644 index 0000000..666c0af Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.vshost.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.vshost.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.vshost.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.vshost.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.vshost.exe.manifest" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.vshost.exe.manifest" new file mode 100644 index 0000000..061c9ca --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/bin/Debug/Task8Lottery.vshost.exe.manifest" @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" new file mode 100644 index 0000000..1fcf20f Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.csproj.FileListAbsolute.txt" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000..1f67d09 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.csproj.FileListAbsolute.txt" @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task8Lottery\bin\Debug\Task8Lottery.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task8Lottery\bin\Debug\Task8Lottery.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task8Lottery\bin\Debug\Task8Lottery.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task8Lottery\obj\Debug\Task8Lottery.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task8Lottery\obj\Debug\Task8Lottery.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task8Lottery\obj\Debug\Task8Lottery.pdb diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.csprojResolveAssemblyReference.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.csprojResolveAssemblyReference.cache" new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.csprojResolveAssemblyReference.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.exe" new file mode 100644 index 0000000..bbe66da Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.pdb" new file mode 100644 index 0000000..98e654e Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/Task8Lottery.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task8Lottery/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/App.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/Program.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/Program.cs" new file mode 100644 index 0000000..97854d3 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/Program.cs" @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task9CurrencyConverter +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите сумму : "); + double amount = Convert.ToInt32(Console.ReadLine()); + Console.Write("Выберите валюту, в которой вы вводите сумму. Доллары - 1, Евро - 2, Гривны - 3: "); + int currency = Convert.ToInt32(Console.ReadLine()); + CurrencyConverter(currency, amount); + } + + static void CurrencyConverter(int currency, double amount) + { + switch (currency) + { + case 1: + Console.WriteLine(amount + " долларов = " + amount * 0.89 + " евро = " + amount * 25.83 + " гривен."); + break; + case 2: + Console.WriteLine(amount + " евро = " + amount * 1.12 + " долларов = " + amount * 28.98 + " гривен."); + break; + case 3: + Console.WriteLine(amount + " гривен = " + amount * 0.0387 + " долларов = " + amount * 0.0345 + " евро."); + break; + default: + Console.WriteLine("Неправильно введена валюта"); + break; + } + } + } +} diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/Properties/AssemblyInfo.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..ba6e3fc --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task9CurrencyConverter")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task9CurrencyConverter")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b0c181b6-3ec6-480d-af9d-13defde645bc")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/Task9CurrencyConverter.csproj" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/Task9CurrencyConverter.csproj" new file mode 100644 index 0000000..1f6defb --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/Task9CurrencyConverter.csproj" @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {FFB09837-4705-41D7-883A-62AF358BC1F3} + Exe + Properties + Task9CurrencyConverter + Task9CurrencyConverter + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.exe" new file mode 100644 index 0000000..36fc814 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.pdb" new file mode 100644 index 0000000..6b107e1 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.vshost.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.vshost.exe" new file mode 100644 index 0000000..666c0af Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.vshost.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.vshost.exe.config" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.vshost.exe.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.vshost.exe.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.vshost.exe.manifest" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.vshost.exe.manifest" new file mode 100644 index 0000000..061c9ca --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/bin/Debug/Task9CurrencyConverter.vshost.exe.manifest" @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" new file mode 100644 index 0000000..08948f6 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.csproj.FileListAbsolute.txt" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000..a981c14 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.csproj.FileListAbsolute.txt" @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task9CurrencyConverter\bin\Debug\Task9CurrencyConverter.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task9CurrencyConverter\bin\Debug\Task9CurrencyConverter.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task9CurrencyConverter\bin\Debug\Task9CurrencyConverter.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task9CurrencyConverter\obj\Debug\Task9CurrencyConverter.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task9CurrencyConverter\obj\Debug\Task9CurrencyConverter.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\СonditionalConstructions\Task9CurrencyConverter\obj\Debug\Task9CurrencyConverter.pdb diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.csprojResolveAssemblyReference.cache" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.csprojResolveAssemblyReference.cache" new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.csprojResolveAssemblyReference.cache" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.exe" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.exe" new file mode 100644 index 0000000..36fc814 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.exe" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.pdb" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.pdb" new file mode 100644 index 0000000..6b107e1 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/Task9CurrencyConverter.pdb" differ diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/Task9CurrencyConverter/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs" new file mode 100644 index 0000000..e69de29 diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/\320\241onditionalConstructions.sln" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/\320\241onditionalConstructions.sln" new file mode 100644 index 0000000..811c7f7 --- /dev/null +++ "b/AlexandrTkachuk/1/\320\241onditionalConstructions/\320\241onditionalConstructions.sln" @@ -0,0 +1,70 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1GreaterNumber", "Task1GreaterNumber\Task1GreaterNumber.csproj", "{0116D8AE-2138-4E78-8FBC-104DF1A3684B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2CatAndDog", "Task2CatAndDog\Task2CatAndDog.csproj", "{C283B085-0FF3-43C9-B4C6-C83780F0A79B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3NumberOfMonth", "Task3NumberOfMonth\Task3NumberOfMonth.csproj", "{04454403-D802-4D8F-B607-0248C8CA3522}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task4GoodAndBad", "Task4GoodAndBad\Task4GoodAndBad.csproj", "{980D73F2-1E81-4F85-B240-549FC49C9B2F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task5NumberOfDay", "Task5NumberOfDay\Task5NumberOfDay.csproj", "{4CA91744-6B26-43DD-BA93-85431BA65B22}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task6Taxi", "Task6Taxi\Task6Taxi.csproj", "{DB323CE5-80A8-4D80-BD92-E2DC015D4B9A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task7IsDigitSimple", "Task7IsDigitSimple\Task7IsDigitSimple.csproj", "{D9809A78-2E4F-4CB1-9932-D8EBFA7BB294}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task8Lottery", "Task8Lottery\Task8Lottery.csproj", "{7D47E871-F420-443A-8D16-B7840914F3FD}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task9CurrencyConverter", "Task9CurrencyConverter\Task9CurrencyConverter.csproj", "{FFB09837-4705-41D7-883A-62AF358BC1F3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0116D8AE-2138-4E78-8FBC-104DF1A3684B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0116D8AE-2138-4E78-8FBC-104DF1A3684B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0116D8AE-2138-4E78-8FBC-104DF1A3684B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0116D8AE-2138-4E78-8FBC-104DF1A3684B}.Release|Any CPU.Build.0 = Release|Any CPU + {C283B085-0FF3-43C9-B4C6-C83780F0A79B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C283B085-0FF3-43C9-B4C6-C83780F0A79B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C283B085-0FF3-43C9-B4C6-C83780F0A79B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C283B085-0FF3-43C9-B4C6-C83780F0A79B}.Release|Any CPU.Build.0 = Release|Any CPU + {04454403-D802-4D8F-B607-0248C8CA3522}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {04454403-D802-4D8F-B607-0248C8CA3522}.Debug|Any CPU.Build.0 = Debug|Any CPU + {04454403-D802-4D8F-B607-0248C8CA3522}.Release|Any CPU.ActiveCfg = Release|Any CPU + {04454403-D802-4D8F-B607-0248C8CA3522}.Release|Any CPU.Build.0 = Release|Any CPU + {980D73F2-1E81-4F85-B240-549FC49C9B2F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {980D73F2-1E81-4F85-B240-549FC49C9B2F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {980D73F2-1E81-4F85-B240-549FC49C9B2F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {980D73F2-1E81-4F85-B240-549FC49C9B2F}.Release|Any CPU.Build.0 = Release|Any CPU + {4CA91744-6B26-43DD-BA93-85431BA65B22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4CA91744-6B26-43DD-BA93-85431BA65B22}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4CA91744-6B26-43DD-BA93-85431BA65B22}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4CA91744-6B26-43DD-BA93-85431BA65B22}.Release|Any CPU.Build.0 = Release|Any CPU + {DB323CE5-80A8-4D80-BD92-E2DC015D4B9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DB323CE5-80A8-4D80-BD92-E2DC015D4B9A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DB323CE5-80A8-4D80-BD92-E2DC015D4B9A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DB323CE5-80A8-4D80-BD92-E2DC015D4B9A}.Release|Any CPU.Build.0 = Release|Any CPU + {D9809A78-2E4F-4CB1-9932-D8EBFA7BB294}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D9809A78-2E4F-4CB1-9932-D8EBFA7BB294}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D9809A78-2E4F-4CB1-9932-D8EBFA7BB294}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D9809A78-2E4F-4CB1-9932-D8EBFA7BB294}.Release|Any CPU.Build.0 = Release|Any CPU + {7D47E871-F420-443A-8D16-B7840914F3FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7D47E871-F420-443A-8D16-B7840914F3FD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7D47E871-F420-443A-8D16-B7840914F3FD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7D47E871-F420-443A-8D16-B7840914F3FD}.Release|Any CPU.Build.0 = Release|Any CPU + {FFB09837-4705-41D7-883A-62AF358BC1F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FFB09837-4705-41D7-883A-62AF358BC1F3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FFB09837-4705-41D7-883A-62AF358BC1F3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FFB09837-4705-41D7-883A-62AF358BC1F3}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git "a/AlexandrTkachuk/1/\320\241onditionalConstructions/\320\241onditionalConstructions.v12.suo" "b/AlexandrTkachuk/1/\320\241onditionalConstructions/\320\241onditionalConstructions.v12.suo" new file mode 100644 index 0000000..93109c6 Binary files /dev/null and "b/AlexandrTkachuk/1/\320\241onditionalConstructions/\320\241onditionalConstructions.v12.suo" differ diff --git a/AlexandrTkachuk/2.Classes/2.Classes.sln b/AlexandrTkachuk/2.Classes/2.Classes.sln new file mode 100644 index 0000000..b044387 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/2.Classes.sln @@ -0,0 +1,64 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1Adress", "Task1Adress\Task1Adress.csproj", "{D35935C0-EAA0-4FAB-AAAC-6BE779A0555B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2Rectangle", "Task2Rectangle\Task2Rectangle.csproj", "{B92CFB39-4CF7-4982-BB16-3B201BE72BC3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3Book", "Task3Book\Task3Book.csproj", "{2C432FE6-BD7B-4300-8B75-36138D06A89C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task4PointAndFigure", "Task4PointAndFigure\Task4PointAndFigure.csproj", "{5AD49761-7072-4AF9-82B0-0F21DC87AD6D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task5FillingForm", "Task5FillingForm\Task5FillingForm.csproj", "{E372F002-0507-4EAF-B8CB-11F19A6B59EE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task6CurrencyConverter", "Task6CurrencyConverter\Task6CurrencyConverter.csproj", "{FBF5F740-AAEA-4B2F-BAAB-94D24DA28E05}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task7ShowEmployeeSalary", "Task7ShowEmployeeSalary\Task7ShowEmployeeSalary.csproj", "{4F53F119-194B-4625-9239-206C185C096F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task8ValueOfArticle", "Task8ValueOfArticle\Task8ValueOfArticle.csproj", "{AE29B3CC-D468-4EAB-B615-1CE915A0AB97}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D35935C0-EAA0-4FAB-AAAC-6BE779A0555B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D35935C0-EAA0-4FAB-AAAC-6BE779A0555B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D35935C0-EAA0-4FAB-AAAC-6BE779A0555B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D35935C0-EAA0-4FAB-AAAC-6BE779A0555B}.Release|Any CPU.Build.0 = Release|Any CPU + {B92CFB39-4CF7-4982-BB16-3B201BE72BC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B92CFB39-4CF7-4982-BB16-3B201BE72BC3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B92CFB39-4CF7-4982-BB16-3B201BE72BC3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B92CFB39-4CF7-4982-BB16-3B201BE72BC3}.Release|Any CPU.Build.0 = Release|Any CPU + {2C432FE6-BD7B-4300-8B75-36138D06A89C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2C432FE6-BD7B-4300-8B75-36138D06A89C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2C432FE6-BD7B-4300-8B75-36138D06A89C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2C432FE6-BD7B-4300-8B75-36138D06A89C}.Release|Any CPU.Build.0 = Release|Any CPU + {5AD49761-7072-4AF9-82B0-0F21DC87AD6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5AD49761-7072-4AF9-82B0-0F21DC87AD6D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5AD49761-7072-4AF9-82B0-0F21DC87AD6D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5AD49761-7072-4AF9-82B0-0F21DC87AD6D}.Release|Any CPU.Build.0 = Release|Any CPU + {E372F002-0507-4EAF-B8CB-11F19A6B59EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E372F002-0507-4EAF-B8CB-11F19A6B59EE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E372F002-0507-4EAF-B8CB-11F19A6B59EE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E372F002-0507-4EAF-B8CB-11F19A6B59EE}.Release|Any CPU.Build.0 = Release|Any CPU + {FBF5F740-AAEA-4B2F-BAAB-94D24DA28E05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FBF5F740-AAEA-4B2F-BAAB-94D24DA28E05}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FBF5F740-AAEA-4B2F-BAAB-94D24DA28E05}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FBF5F740-AAEA-4B2F-BAAB-94D24DA28E05}.Release|Any CPU.Build.0 = Release|Any CPU + {4F53F119-194B-4625-9239-206C185C096F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4F53F119-194B-4625-9239-206C185C096F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4F53F119-194B-4625-9239-206C185C096F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4F53F119-194B-4625-9239-206C185C096F}.Release|Any CPU.Build.0 = Release|Any CPU + {AE29B3CC-D468-4EAB-B615-1CE915A0AB97}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AE29B3CC-D468-4EAB-B615-1CE915A0AB97}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AE29B3CC-D468-4EAB-B615-1CE915A0AB97}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AE29B3CC-D468-4EAB-B615-1CE915A0AB97}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/2.Classes/2.Classes.v12.suo b/AlexandrTkachuk/2.Classes/2.Classes.v12.suo new file mode 100644 index 0000000..1f74851 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/2.Classes.v12.suo differ diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/Adress.cs b/AlexandrTkachuk/2.Classes/Task1Adress/Adress.cs new file mode 100644 index 0000000..430e72e --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task1Adress/Adress.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Adress +{ + class Adress + { + int index; + string country; + string city; + string street; + int house; + int apartment; + + + public int Index + { + get { return index; } + set { index = value; } + } + public string Country + { + get { return country; } + set { country = value; } + } + public string City + { + get { return city; } + set { city = value; } + } + public string Street + { + get { return street; } + set { street = value; } + } + public int House + { + get { return house; } + set { house = value; } + } + public int Apartment + { + get { return apartment; } + set { apartment = value; } + } + + public Adress(int index, string country, string city, string street, int house, int apartment) + { + this.index = index; + this.country = country; + this.city = city; + this.street = street; + this.house = house; + this.apartment = apartment; + + } + + public void ShowAdress() + { + Console.WriteLine("Adress:\nindex: {0}\ncountry: {1}\ncity: {2}\nstreet: {3}\nhouse: {4}\napartment: {5}", + index, country, city, street, house, apartment); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/App.config b/AlexandrTkachuk/2.Classes/Task1Adress/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task1Adress/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/Program.cs b/AlexandrTkachuk/2.Classes/Task1Adress/Program.cs new file mode 100644 index 0000000..5f9b235 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task1Adress/Program.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Adress +{ + class Program + { + static void Main(string[] args) + { + Adress adress = new Adress(49000, "Ukraine", "Dnipro", "Geroev", 12, 45); + adress.ShowAdress(); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/Properties/AssemblyInfo.cs b/AlexandrTkachuk/2.Classes/Task1Adress/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d9e7730 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task1Adress/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1Adress")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1Adress")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a3713b82-cb74-49b6-b495-840cfbf548b9")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/Task1Adress.csproj b/AlexandrTkachuk/2.Classes/Task1Adress/Task1Adress.csproj new file mode 100644 index 0000000..4a26b0b --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task1Adress/Task1Adress.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {D35935C0-EAA0-4FAB-AAAC-6BE779A0555B} + Exe + Properties + Task1Adress + Task1Adress + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.exe b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.exe new file mode 100644 index 0000000..f2830f7 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.exe.config b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.pdb b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.pdb new file mode 100644 index 0000000..c6a08af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.vshost.exe b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.vshost.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.vshost.exe.config b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.vshost.exe.manifest b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task1Adress/bin/Debug/Task1Adress.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..f8f1f3e Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.csproj.FileListAbsolute.txt b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e927d06 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.csproj.FileListAbsolute.txt @@ -0,0 +1,12 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task1Adress\bin\Debug\Task1Adress.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task1Adress\bin\Debug\Task1Adress.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task1Adress\bin\Debug\Task1Adress.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task1Adress\obj\Debug\Task1Adress.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task1Adress\obj\Debug\Task1Adress.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task1Adress\obj\Debug\Task1Adress.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\Task1Adress\bin\Debug\Task1Adress.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\Task1Adress\obj\Debug\Task1Adress.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\Task1Adress\obj\Debug\Task1Adress.pdb +C:\Users\Alexandr\Documents\GitHub\CSharpCourse-2016\AlexandrTkachuk\2.Classes\Task1Adress\bin\Debug\Task1Adress.exe.config +C:\Users\Alexandr\Documents\GitHub\CSharpCourse-2016\AlexandrTkachuk\2.Classes\Task1Adress\obj\Debug\Task1Adress.exe +C:\Users\Alexandr\Documents\GitHub\CSharpCourse-2016\AlexandrTkachuk\2.Classes\Task1Adress\obj\Debug\Task1Adress.pdb diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.exe b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.exe new file mode 100644 index 0000000..f2830f7 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.pdb b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.pdb new file mode 100644 index 0000000..c6a08af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/Task1Adress.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/2.Classes/Task1Adress/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/App.config b/AlexandrTkachuk/2.Classes/Task2Rectangle/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task2Rectangle/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/Program.cs b/AlexandrTkachuk/2.Classes/Task2Rectangle/Program.cs new file mode 100644 index 0000000..58ddc73 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task2Rectangle/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2Rectangle +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Если вы вводите дробное число, то в качестве разделителя используйте \',\'"); + Console.Write("Введите длину первой стороны прямоугольника: "); + double side1 = Convert.ToDouble(Console.ReadLine()); + Console.Write("Введите длину второй стороны прямоугольника: "); + double side2 = Convert.ToDouble(Console.ReadLine()); + Rectangle rectangle = new Rectangle(side1, side2); + rectangle.AreaCalculator(); + rectangle.ShowArea(); + rectangle.PerimetrCalculator(); + rectangle.ShowPerimetr(); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/Properties/AssemblyInfo.cs b/AlexandrTkachuk/2.Classes/Task2Rectangle/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f2cc728 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task2Rectangle/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2Rectangle")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2Rectangle")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("bb5f93a0-c732-4f62-b612-916210dd24a8")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/Rectangle.cs b/AlexandrTkachuk/2.Classes/Task2Rectangle/Rectangle.cs new file mode 100644 index 0000000..5f1769a --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task2Rectangle/Rectangle.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2Rectangle +{ + class Rectangle + { + double side1; + double side2; + double area; + double perimetr; + + + public double Area + { + get {return area;} + + } + public double Perimetr + { + get {return perimetr;} + } + + + public Rectangle(double side1, double side2) + { + this.side1 = side1; + this.side2 = side2; + area = 0; + perimetr = 0; + } + + + public double AreaCalculator() + { + area = side1 * side2; + return area; + } + + public double PerimetrCalculator() + { + perimetr = 2 * (side1 + side2); + return perimetr; + } + + public void ShowArea() + { + Console.WriteLine("Площадь прямоугольника: " + area); + } + + public void ShowPerimetr() + { + Console.WriteLine("Периметр прямоугольника: " + perimetr); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/Task2Rectangle.csproj b/AlexandrTkachuk/2.Classes/Task2Rectangle/Task2Rectangle.csproj new file mode 100644 index 0000000..8048372 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task2Rectangle/Task2Rectangle.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {B92CFB39-4CF7-4982-BB16-3B201BE72BC3} + Exe + Properties + Task2Rectangle + Task2Rectangle + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.exe b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.exe new file mode 100644 index 0000000..0df57cf Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.exe.config b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.pdb b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.pdb new file mode 100644 index 0000000..25d44cd Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.vshost.exe b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.vshost.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.vshost.exe.config b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.vshost.exe.manifest b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task2Rectangle/bin/Debug/Task2Rectangle.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..23e53c8 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.csproj.FileListAbsolute.txt b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..d1acdcd --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task2Rectangle\bin\Debug\Task2Rectangle.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task2Rectangle\bin\Debug\Task2Rectangle.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task2Rectangle\bin\Debug\Task2Rectangle.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task2Rectangle\obj\Debug\Task2Rectangle.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task2Rectangle\obj\Debug\Task2Rectangle.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task2Rectangle\obj\Debug\Task2Rectangle.pdb diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.exe b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.exe new file mode 100644 index 0000000..0df57cf Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.pdb b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.pdb new file mode 100644 index 0000000..25d44cd Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/Task2Rectangle.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/2.Classes/Task2Rectangle/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task3Book/App.config b/AlexandrTkachuk/2.Classes/Task3Book/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task3Book/Author.cs b/AlexandrTkachuk/2.Classes/Task3Book/Author.cs new file mode 100644 index 0000000..d6468d8 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/Author.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Book +{ + class Author: IShow + { + string authorName; + + public Author(string authorName) + { + this.authorName = authorName; + } + + public void Show() + { + Console.BackgroundColor = ConsoleColor.Blue; + Console.WriteLine("Author: " + authorName); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task3Book/Book.cs b/AlexandrTkachuk/2.Classes/Task3Book/Book.cs new file mode 100644 index 0000000..fd6e3f3 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/Book.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Book +{ + class Book + { + Title title; + Author author; + Content content; + + public Book(string title, string author, string content) + { + this.title = new Title(title); + this.author = new Author(author); + this.content = new Content(content); + } + + public void ShowBookInfo() + { + title.Show(); + author.Show(); + content.Show(); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task3Book/Content.cs b/AlexandrTkachuk/2.Classes/Task3Book/Content.cs new file mode 100644 index 0000000..b4d4cec --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/Content.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Book +{ + class Content: IShow + { + string text; + public Content(string text) + { + this.text = text; + } + + public void Show() + { + Console.BackgroundColor = ConsoleColor.Green; + Console.ForegroundColor = ConsoleColor.Black; + Console.WriteLine("Content: " + text); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task3Book/IShow.cs b/AlexandrTkachuk/2.Classes/Task3Book/IShow.cs new file mode 100644 index 0000000..ee5f4ef --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/IShow.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Book +{ + interface IShow + { + void Show(); + } +} diff --git a/AlexandrTkachuk/2.Classes/Task3Book/Program.cs b/AlexandrTkachuk/2.Classes/Task3Book/Program.cs new file mode 100644 index 0000000..5180c43 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/Program.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Book +{ + class Program + { + static void Main(string[] args) + { + Book book = new Book("The Old Man And The Sea", "Ernest Hemingway", + "He was an old man who fished alone in a skiff in the Gulf Stream"); + book.ShowBookInfo(); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task3Book/Properties/AssemblyInfo.cs b/AlexandrTkachuk/2.Classes/Task3Book/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0949bd1 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task3Book")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task3Book")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("444b89dc-b14f-456d-8e56-73c7c138c970")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/2.Classes/Task3Book/Task3Book.csproj b/AlexandrTkachuk/2.Classes/Task3Book/Task3Book.csproj new file mode 100644 index 0000000..18cb66b --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/Task3Book.csproj @@ -0,0 +1,63 @@ + + + + + Debug + AnyCPU + {2C432FE6-BD7B-4300-8B75-36138D06A89C} + Exe + Properties + Task3Book + Task3Book + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task3Book/Title.cs b/AlexandrTkachuk/2.Classes/Task3Book/Title.cs new file mode 100644 index 0000000..945d55c --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/Title.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Book +{ + class Title: IShow + { + string title; + + public Title(string title) + { + this.title = title; + } + + public void Show() + { + Console.BackgroundColor = ConsoleColor.Red; + Console.WriteLine("Title: " + title); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.exe b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.exe new file mode 100644 index 0000000..60b61bc Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.exe.config b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.pdb b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.pdb new file mode 100644 index 0000000..230bd87 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.vshost.exe b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.vshost.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.vshost.exe.config b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.vshost.exe.manifest b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/bin/Debug/Task3Book.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..5b30cfa Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.csproj.FileListAbsolute.txt b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..00e988a --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task3Book\bin\Debug\Task3Book.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task3Book\obj\Debug\Task3Book.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task3Book\bin\Debug\Task3Book.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task3Book\bin\Debug\Task3Book.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task3Book\obj\Debug\Task3Book.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task3Book\obj\Debug\Task3Book.pdb diff --git a/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.exe b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.exe new file mode 100644 index 0000000..60b61bc Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.pdb b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.pdb new file mode 100644 index 0000000..230bd87 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/Task3Book.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/2.Classes/Task3Book/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/App.config b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Figure.cs b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Figure.cs new file mode 100644 index 0000000..c2e055b --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Figure.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4PointAndFigure +{ + class Figure + { + List listOfPoints; + double perimetr; + string name; + + public Figure(params Point [] points) + { + if (points.Length >= 3 && points.Length <= 5) + { + perimetr = 0; + name = null; + listOfPoints = new List(); + foreach (Point p in points) + { + listOfPoints.Add(p); + } + } + else + { + Console.WriteLine("Ошибка! Количетсво точек может быть от 3 до 5"); + } + } + + + public void ShowNameAndPerimetr() + { + NameCalculator(); + PerimetrCalculator(); + Console.WriteLine("{0} с периметром: {1}", name, perimetr); + } + + void NameCalculator() + { + switch (listOfPoints.Count) + { + case 3: + name = "трехугольник"; + break; + case 4: + name = "четырехугольник"; + break; + case 5: + name = "пятиугольник"; + break; + } + name += " "; + foreach (Point point in listOfPoints) + { + name += point.Name; + } + } + + void PerimetrCalculator() + { + for (int i = 1; i < listOfPoints.Count; i++) + { + perimetr += LengthSide(listOfPoints[i-1], listOfPoints[i]); + } + perimetr += LengthSide(listOfPoints[0], listOfPoints[listOfPoints.Count-1]); + } + + double LengthSide(Point point1, Point point2) + { + double lengthSide = Math.Sqrt((point2.X - point1.X) * (point2.X - point1.X) + + (point2.Y - point1.Y) * (point2.Y - point1.Y)); + return lengthSide; + } + + + + } +} diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Point.cs b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Point.cs new file mode 100644 index 0000000..667be61 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Point.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4PointAndFigure +{ + class Point + { + int x; + int y; + string name; + + + public int X + { + get { return x; } + } + public int Y + { + get { return y; } + } + public string Name + { + get { return name; } + } + + + public Point(string name, int x, int y) + { + this.name = name; + this.x = x; + this.y = y; + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Program.cs b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Program.cs new file mode 100644 index 0000000..b12f24c --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Program.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4PointAndFigure +{ + class Program + { + static void Main(string[] args) + { + Point point1 = new Point("A", 2, 2); + Point point2 = new Point("B", 2, -2); + Point point3 = new Point("C", -2, -2); + Figure f1 = new Figure(point1, point2, point3); + f1.ShowNameAndPerimetr(); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Properties/AssemblyInfo.cs b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..16ac152 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task4PointAndFigure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task4PointAndFigure")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e849b0dd-a2c0-4a2a-b988-891e1045f233")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Task4PointAndFigure.csproj b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Task4PointAndFigure.csproj new file mode 100644 index 0000000..26c317e --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/Task4PointAndFigure.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {5AD49761-7072-4AF9-82B0-0F21DC87AD6D} + Exe + Properties + Task4PointAndFigure + Task4PointAndFigure + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.exe b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.exe new file mode 100644 index 0000000..364798b Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.exe.config b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.pdb b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.pdb new file mode 100644 index 0000000..5934ecd Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.vshost.exe b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.vshost.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.vshost.exe.config b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.vshost.exe.manifest b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/bin/Debug/Task4PointAndFigure.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..6ab26a7 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.csproj.FileListAbsolute.txt b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..56b3b38 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task4PointAndFigure\bin\Debug\Task4PointAndFigure.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task4PointAndFigure\bin\Debug\Task4PointAndFigure.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task4PointAndFigure\bin\Debug\Task4PointAndFigure.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task4PointAndFigure\obj\Debug\Task4PointAndFigure.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task4PointAndFigure\obj\Debug\Task4PointAndFigure.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task4PointAndFigure\obj\Debug\Task4PointAndFigure.pdb diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.exe b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.exe new file mode 100644 index 0000000..364798b Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.pdb b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.pdb new file mode 100644 index 0000000..5934ecd Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/Task4PointAndFigure.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/2.Classes/Task4PointAndFigure/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/App.config b/AlexandrTkachuk/2.Classes/Task5FillingForm/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5FillingForm/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/Program.cs b/AlexandrTkachuk/2.Classes/Task5FillingForm/Program.cs new file mode 100644 index 0000000..64c49ae --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5FillingForm/Program.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5FillingForm +{ + class Program + { + static void Main(string[] args) + { + User user1 = new User("Alex", "Alexandr", "Tkachuk", 20); + user1.ShowUserInformation(); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/Properties/AssemblyInfo.cs b/AlexandrTkachuk/2.Classes/Task5FillingForm/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b171973 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5FillingForm/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task5FillingForm")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task5FillingForm")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c67effe3-01c0-4ad2-acc3-521787a27a5a")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/Task5FillingForm.csproj b/AlexandrTkachuk/2.Classes/Task5FillingForm/Task5FillingForm.csproj new file mode 100644 index 0000000..de7fd89 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5FillingForm/Task5FillingForm.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {E372F002-0507-4EAF-B8CB-11F19A6B59EE} + Exe + Properties + Task5FillingForm + Task5FillingForm + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/User.cs b/AlexandrTkachuk/2.Classes/Task5FillingForm/User.cs new file mode 100644 index 0000000..bb7a6f8 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5FillingForm/User.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5FillingForm +{ + class User + { + string login; + string firstName; + string secondName; + int age; + readonly DateTime dateOfFilling; + + public User(string login, string firstName, string secondName, int age) + { + this.login = login; + this.firstName = firstName; + this.secondName = secondName; + this.age = age; + dateOfFilling = DateTime.Now; + } + + public void ShowUserInformation() + { + Console.WriteLine("Information about user: "); + Console.WriteLine("login: {0}\nfirst name: {1}\nsecond name: {2}\nage: {3}\ndate of filling a form: {4}", + login, firstName, secondName, age, dateOfFilling); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.exe b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.exe new file mode 100644 index 0000000..1002990 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.exe.config b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.pdb b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.pdb new file mode 100644 index 0000000..5aaab10 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.vshost.exe b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.vshost.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.vshost.exe.config b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.vshost.exe.manifest b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5FillingForm/bin/Debug/Task5FillingForm.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..f887300 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.csproj.FileListAbsolute.txt b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..efbd1a9 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task5FillingForm\bin\Debug\Task5FillingForm.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task5FillingForm\bin\Debug\Task5FillingForm.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task5FillingForm\bin\Debug\Task5FillingForm.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task5FillingForm\obj\Debug\Task5FillingForm.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task5FillingForm\obj\Debug\Task5FillingForm.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task5FillingForm\obj\Debug\Task5FillingForm.pdb diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.exe b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.exe new file mode 100644 index 0000000..1002990 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.pdb b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.pdb new file mode 100644 index 0000000..5aaab10 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/Task5FillingForm.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/2.Classes/Task5FillingForm/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task5User/App.config b/AlexandrTkachuk/2.Classes/Task5User/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5User/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task5User/Program.cs b/AlexandrTkachuk/2.Classes/Task5User/Program.cs new file mode 100644 index 0000000..dc54ad8 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5User/Program.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5User +{ + class Program + { + static void Main(string[] args) + { + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task5User/Properties/AssemblyInfo.cs b/AlexandrTkachuk/2.Classes/Task5User/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..067d424 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5User/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task5User")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task5User")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ca12de4f-4706-4761-a09c-d8fff1707869")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/2.Classes/Task5User/Task5User.csproj b/AlexandrTkachuk/2.Classes/Task5User/Task5User.csproj new file mode 100644 index 0000000..8c1d0f7 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5User/Task5User.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + ca12de4f-4706-4761-a09c-d8fff1707869 + Exe + Properties + Task5User + Task5User + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task5User/User.cs b/AlexandrTkachuk/2.Classes/Task5User/User.cs new file mode 100644 index 0000000..5dd0592 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task5User/User.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5User +{ + class User + { + } +} diff --git a/AlexandrTkachuk/2.Classes/Task5User/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/2.Classes/Task5User/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3a503b0 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task5User/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task5User/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/2.Classes/Task5User/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task5User/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/2.Classes/Task5User/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task5User/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/2.Classes/Task5User/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/App.config b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Converter.cs b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Converter.cs new file mode 100644 index 0000000..b33be48 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Converter.cs @@ -0,0 +1,134 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task6CurrencyConverter +{ + class Converter + { + double usd; + double eur; + double rub; + double resultOfConvertation; + + + public Converter(double usd, double eur, double rub) + { + this.usd = usd; + this.eur = eur; + this.rub = rub; + resultOfConvertation = 0; + } + + public void ShowResult(int initialCurrency, int demandedCurrency, double amount) + { + Console.WriteLine("{0} {1} это {2} {3}", amount, ToNameInitialCurrency(initialCurrency), + resultOfConvertation, ToNameDemandedCurrency(demandedCurrency)); + + } + + public string ToNameInitialCurrency(int initialCurrency) + { + string nameOfInitialCurrency; + switch (initialCurrency) + { + case 1: + nameOfInitialCurrency = "гривен"; + break; + case 2: + nameOfInitialCurrency = "долларов"; + break; + case 3: + nameOfInitialCurrency = "евро"; + break; + case 4: + nameOfInitialCurrency = "рублей"; + break; + default: + Console.WriteLine("Неправильно введена валюта!"); + nameOfInitialCurrency = null; + break; + } + return nameOfInitialCurrency; + } + + public string ToNameDemandedCurrency(int demandedCurrency) + { + string nameOfDemandedCurrency; + switch (demandedCurrency) + { + case 1: + nameOfDemandedCurrency = "гривен"; + break; + case 2: + nameOfDemandedCurrency = "долларов"; + break; + case 3: + nameOfDemandedCurrency = "евро"; + break; + case 4: + nameOfDemandedCurrency = "рублей"; + break; + default: + Console.WriteLine("Неправильно введена валюта!"); + nameOfDemandedCurrency = null; + break; + } + return nameOfDemandedCurrency; + + } + + public void Convert(int initialCurrency, int demandedCurrency, double amount) + { + if (initialCurrency == 1) + { + ConvertFromUAH(demandedCurrency, amount); + } + else + { + ConvertToUAH(initialCurrency, amount); + } + } + + void ConvertFromUAH(int demandedCurrency, double amount) + { + switch (demandedCurrency) + { + case 2: + resultOfConvertation = amount * usd; + break; + case 3: + resultOfConvertation = amount * eur; + break; + case 4: + resultOfConvertation = amount * rub; + break; + default: + Console.WriteLine("Неправильно введена валюта!!!"); + break; + } + } + + void ConvertToUAH(int initialCurrency, double amount) + { + switch (initialCurrency) + { + case 2: + resultOfConvertation = amount / usd; + break; + case 3: + resultOfConvertation = amount / eur; + break; + case 4: + resultOfConvertation = amount / rub; + break; + default: + Console.WriteLine("Неправильно введена валюта!!!"); + break; + } + } + + } +} diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Program.cs b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Program.cs new file mode 100644 index 0000000..d3b902d --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Program.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task6CurrencyConverter +{ + class Program + { + static void Main(string[] args) + { + int demandedCurrency; + Converter converter = new Converter(0.039, 0.035, 2.436); + Console.Write("Введите сумму: "); + double amount = Convert.ToDouble(Console.ReadLine()); + Console.Write("Укажите в какой валюте была введена сумма"); + Console.Write("(1 - гривны, 2 - доллары, 3 - евро, 4 - рубли): "); + int initialCurrency = Convert.ToInt32(Console.ReadLine()); + if (initialCurrency == 1) + { + Console.Write("Укажите в какую валюту требуется конвертация: "); + Console.Write("(1 - гривны, 2 - доллары, 3 - евро, 4 - рубли): "); + demandedCurrency = Convert.ToInt32(Console.ReadLine()); + } + else + { + demandedCurrency = 1; + } + converter.Convert(initialCurrency, demandedCurrency, amount); + converter.ShowResult(initialCurrency, demandedCurrency, amount); + } + + + } +} diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Properties/AssemblyInfo.cs b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..462fbc5 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task6CurrencyConverter")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task6CurrencyConverter")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("5948c1f9-c0a4-4465-a9ae-b2e3eac52adc")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Task6CurrencyConverter.csproj b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Task6CurrencyConverter.csproj new file mode 100644 index 0000000..aef537e --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/Task6CurrencyConverter.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {FBF5F740-AAEA-4B2F-BAAB-94D24DA28E05} + Exe + Properties + Task6CurrencyConverter + Task6CurrencyConverter + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.exe b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.exe new file mode 100644 index 0000000..40a0af3 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.exe.config b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.pdb b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.pdb new file mode 100644 index 0000000..6029fdb Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.vshost.exe b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.vshost.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.vshost.exe.config b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.vshost.exe.manifest b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/bin/Debug/Task6CurrencyConverter.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..58f9cdb Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.csproj.FileListAbsolute.txt b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..eea5bdf --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task6CurrencyConverter\bin\Debug\Task6CurrencyConverter.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task6CurrencyConverter\bin\Debug\Task6CurrencyConverter.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task6CurrencyConverter\bin\Debug\Task6CurrencyConverter.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task6CurrencyConverter\obj\Debug\Task6CurrencyConverter.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task6CurrencyConverter\obj\Debug\Task6CurrencyConverter.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task6CurrencyConverter\obj\Debug\Task6CurrencyConverter.csprojResolveAssemblyReference.cache diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.exe b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.exe new file mode 100644 index 0000000..40a0af3 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.pdb b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.pdb new file mode 100644 index 0000000..6029fdb Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/Task6CurrencyConverter.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/2.Classes/Task6CurrencyConverter/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/App.config b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Employee.cs b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Employee.cs new file mode 100644 index 0000000..9d4d68f --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Employee.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task7ShowEmployeeSalary +{ + class Employee + { + string firstName; + string secondName; + int salary; + double amountOfTaxLevy; + const double taxLevyCoefficient = 0.20; + const int workExperienceСoefficient = 100; + + public Employee(string firstName, string secondName) + { + this.firstName = firstName; + this.secondName = secondName; + } + + public void ShowSalaryAndTax(EmployeeInfo employeeInfo) + { + CanculateSalary(employeeInfo); + CanculateAmountOfTaxLevy(); + Console.WriteLine("Информация о сотруднике:"); + Console.WriteLine("First name: {0}\nSecond: {1}", firstName, secondName); + Console.WriteLine("Position: {0}\nSalary: {1}$", employeeInfo.Position, salary); + Console.WriteLine("Tax levy: {0}$", amountOfTaxLevy); + } + + void CanculateSalary(EmployeeInfo employeeInfo) + { + switch (employeeInfo.Position) + { + case Position.guard: + salary = 500; + break; + case Position.programmer: + salary = 1000; + break; + case Position.chief: + salary = 5000; + break; + default: + Console.WriteLine("Error"); + break; + } + salary += employeeInfo.WorkExperience * workExperienceСoefficient; + } + + void CanculateAmountOfTaxLevy() + { + amountOfTaxLevy = salary * taxLevyCoefficient; + } + + } +} diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/EmployeeInfo.cs b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/EmployeeInfo.cs new file mode 100644 index 0000000..f87e761 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/EmployeeInfo.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task7ShowEmployeeSalary +{ + struct EmployeeInfo + { + Position position; + int workExperience; + + public int WorkExperience + { + get { return workExperience; } + } + internal Position Position + { + get { return position; } + } + + public EmployeeInfo(Position position, int workExperience) + { + this.position = position; + this.workExperience = workExperience; + } + + } +} diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Position.cs b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Position.cs new file mode 100644 index 0000000..645603a --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Position.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task7ShowEmployeeSalary +{ + enum Position + { + guard = 1, + programmer, + chief + } +} diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Program.cs b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Program.cs new file mode 100644 index 0000000..cacb65a --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Program.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task7ShowEmployeeSalary +{ + class Program + { + static void Main(string[] args) + { + Employee employee = new Employee("Alexandr", "Tkachuk"); + EmployeeInfo employeeInfo = new EmployeeInfo(Position.chief, 10); + employee.ShowSalaryAndTax(employeeInfo); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Properties/AssemblyInfo.cs b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ef4576b --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task7ShowEmployeeSalary")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task7ShowEmployeeSalary")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a7904a36-2e7c-4ca2-b476-d457c82a7d88")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Task7ShowEmployeeSalary.csproj b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Task7ShowEmployeeSalary.csproj new file mode 100644 index 0000000..6581d77 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/Task7ShowEmployeeSalary.csproj @@ -0,0 +1,61 @@ + + + + + Debug + AnyCPU + {4F53F119-194B-4625-9239-206C185C096F} + Exe + Properties + Task7ShowEmployeeSalary + Task7ShowEmployeeSalary + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.exe b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.exe new file mode 100644 index 0000000..5b3c067 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.exe.config b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.pdb b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.pdb new file mode 100644 index 0000000..8084b0d Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.vshost.exe b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.vshost.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.vshost.exe.config b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.vshost.exe.manifest b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/bin/Debug/Task7ShowEmployeeSalary.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..d8398af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.csproj.FileListAbsolute.txt b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4334561 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task7ShowEmployeeSalary\bin\Debug\Task7ShowEmployeeSalary.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task7ShowEmployeeSalary\bin\Debug\Task7ShowEmployeeSalary.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task7ShowEmployeeSalary\bin\Debug\Task7ShowEmployeeSalary.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task7ShowEmployeeSalary\obj\Debug\Task7ShowEmployeeSalary.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task7ShowEmployeeSalary\obj\Debug\Task7ShowEmployeeSalary.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task7ShowEmployeeSalary\obj\Debug\Task7ShowEmployeeSalary.pdb diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.exe b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.exe new file mode 100644 index 0000000..5b3c067 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.pdb b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.pdb new file mode 100644 index 0000000..8084b0d Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/Task7ShowEmployeeSalary.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/2.Classes/Task7ShowEmployeeSalary/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/App.config b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Invoice.cs b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Invoice.cs new file mode 100644 index 0000000..ccc0420 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Invoice.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task8ValueOfArticle +{ + class Invoice + { + readonly int account; + readonly string customer; + readonly string provider; + string article; + int quantity; + double valueOfOrder; + double valueOfNDS; + static double NDSCoefficient = 0.20; + + public Invoice(int account, string customer, string provider) + { + this.account = account; + this.customer = customer; + this.provider = provider; + } + + public void CalculateOrder(string article, int valueOfArticle, int quantity) + { + this.article = article; + this.quantity = quantity; + CalculateValueOfOrder(valueOfArticle); + CalculateNDS(); + } + void CalculateValueOfOrder(int valueOfArticle) + { + valueOfOrder = valueOfArticle * quantity; + } + + void CalculateNDS() + { + valueOfNDS = valueOfOrder * NDSCoefficient; + } + + public void ShowValueOfOrder() + { + Console.WriteLine("Information about order:"); + Console.WriteLine("account: {0}\ncustomer: {1}", account, customer); + Console.WriteLine("provider: {0}\narticle: {1}", provider, article); + Console.WriteLine("quantity: {0}\nvalue of order without NDS: {1}$", quantity, valueOfOrder); + Console.WriteLine("value of order with NDS: {0}$", valueOfOrder + valueOfNDS); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Program.cs b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Program.cs new file mode 100644 index 0000000..41c2367 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Program.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task8ValueOfArticle +{ + class Program + { + static void Main(string[] args) + { + Invoice invoice = new Invoice(1234, "Alexander", "Nova Poshta"); + invoice.CalculateOrder("Pen", 1, 50); + invoice.ShowValueOfOrder(); + } + } +} diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Properties/AssemblyInfo.cs b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..8091be9 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task8ValueOfArticle")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task8ValueOfArticle")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("97d0c023-6cf4-43a6-93d2-8aaa7814d86b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Task8ValueOfArticle.csproj b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Task8ValueOfArticle.csproj new file mode 100644 index 0000000..c0304b3 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/Task8ValueOfArticle.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {AE29B3CC-D468-4EAB-B615-1CE915A0AB97} + Exe + Properties + Task8ValueOfArticle + Task8ValueOfArticle + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.exe b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.exe new file mode 100644 index 0000000..f2068cd Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.exe.config b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.pdb b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.pdb new file mode 100644 index 0000000..0a319d0 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.vshost.exe b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.vshost.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.vshost.exe.config b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.vshost.exe.manifest b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/bin/Debug/Task8ValueOfArticle.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..6b243a2 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.csproj.FileListAbsolute.txt b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..3a98309 --- /dev/null +++ b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.csproj.FileListAbsolute.txt @@ -0,0 +1,9 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task8ValueOfArticle\bin\Debug\Task8ValueOfArticle.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task8ValueOfArticle\bin\Debug\Task8ValueOfArticle.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task8ValueOfArticle\bin\Debug\Task8ValueOfArticle.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task8ValueOfArticle\obj\Debug\Task8ValueOfArticle.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task8ValueOfArticle\obj\Debug\Task8ValueOfArticle.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\2.Classes\Task8ValueOfArticle\obj\Debug\Task8ValueOfArticle.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\Task8ValueOfArticle\bin\Debug\Task8ValueOfArticle.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\Task8ValueOfArticle\obj\Debug\Task8ValueOfArticle.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\Task8ValueOfArticle\obj\Debug\Task8ValueOfArticle.pdb diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.exe b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.exe new file mode 100644 index 0000000..f2068cd Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.exe differ diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.pdb b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.pdb new file mode 100644 index 0000000..0a319d0 Binary files /dev/null and b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/Task8ValueOfArticle.pdb differ diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/2.Classes/Task8ValueOfArticle/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/3.Inheritance.sln b/AlexandrTkachuk/3.Inheritance/3.Inheritance.sln new file mode 100644 index 0000000..86ffaed --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/3.Inheritance.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1Printer", "Task1Printer\Task1Printer.csproj", "{3126CC15-1B32-45D2-99D2-D52B2191A090}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2ClassRoom", "Task2ClassRoom\Task2ClassRoom.csproj", "{02DACFD5-6F28-4ECC-90EB-D5E4C49BA585}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3Vehicle", "Task3Vehicle\Task3Vehicle.csproj", "{B73718CE-98C5-4563-AA74-25CC085924F2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task4DocumentWorker", "Task4DocumentWorker\Task4DocumentWorker.csproj", "{C29EAE25-DD58-4ED2-86B1-842006C2F38A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3126CC15-1B32-45D2-99D2-D52B2191A090}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3126CC15-1B32-45D2-99D2-D52B2191A090}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3126CC15-1B32-45D2-99D2-D52B2191A090}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3126CC15-1B32-45D2-99D2-D52B2191A090}.Release|Any CPU.Build.0 = Release|Any CPU + {02DACFD5-6F28-4ECC-90EB-D5E4C49BA585}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {02DACFD5-6F28-4ECC-90EB-D5E4C49BA585}.Debug|Any CPU.Build.0 = Debug|Any CPU + {02DACFD5-6F28-4ECC-90EB-D5E4C49BA585}.Release|Any CPU.ActiveCfg = Release|Any CPU + {02DACFD5-6F28-4ECC-90EB-D5E4C49BA585}.Release|Any CPU.Build.0 = Release|Any CPU + {B73718CE-98C5-4563-AA74-25CC085924F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B73718CE-98C5-4563-AA74-25CC085924F2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B73718CE-98C5-4563-AA74-25CC085924F2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B73718CE-98C5-4563-AA74-25CC085924F2}.Release|Any CPU.Build.0 = Release|Any CPU + {C29EAE25-DD58-4ED2-86B1-842006C2F38A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C29EAE25-DD58-4ED2-86B1-842006C2F38A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C29EAE25-DD58-4ED2-86B1-842006C2F38A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C29EAE25-DD58-4ED2-86B1-842006C2F38A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/3.Inheritance/3.Inheritance.v12.suo b/AlexandrTkachuk/3.Inheritance/3.Inheritance.v12.suo new file mode 100644 index 0000000..81264b5 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/3.Inheritance.v12.suo differ diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/App.config b/AlexandrTkachuk/3.Inheritance/Task1Printer/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/BluePrinter.cs b/AlexandrTkachuk/3.Inheritance/Task1Printer/BluePrinter.cs new file mode 100644 index 0000000..b1578e1 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/BluePrinter.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Printer +{ + class BluePrinter: Printer + { + public override void Print(string value) + { + Console.ForegroundColor = ConsoleColor.Blue; + Console.WriteLine(value); + Console.ResetColor(); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/Printer.cs b/AlexandrTkachuk/3.Inheritance/Task1Printer/Printer.cs new file mode 100644 index 0000000..1e7ab1e --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/Printer.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Printer +{ + class Printer + { + public virtual void Print(string value) + { + Console.WriteLine(value); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/Program.cs b/AlexandrTkachuk/3.Inheritance/Task1Printer/Program.cs new file mode 100644 index 0000000..e09c031 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Printer +{ + class Program + { + static void Main(string[] args) + { + Printer printer = new Printer(); + Printer bluePrinter = new BluePrinter(); + Printer redPrinter = new RedPrinter(); + printer.Print("Printer"); + bluePrinter.Print("BluePrinter"); + redPrinter.Print("RedPrinter"); + + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/Properties/AssemblyInfo.cs b/AlexandrTkachuk/3.Inheritance/Task1Printer/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..df59512 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1Printer")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1Printer")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("53abe32c-2b5b-459d-beb9-f99fcf08bcab")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/RedPrinter.cs b/AlexandrTkachuk/3.Inheritance/Task1Printer/RedPrinter.cs new file mode 100644 index 0000000..e4d08e3 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/RedPrinter.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Printer +{ + class RedPrinter: Printer + { + public override void Print(string value) + { + Console.ForegroundColor = ConsoleColor.Red; + Console.WriteLine(value); + Console.ResetColor(); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/Task1Printer.csproj b/AlexandrTkachuk/3.Inheritance/Task1Printer/Task1Printer.csproj new file mode 100644 index 0000000..a175bb1 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/Task1Printer.csproj @@ -0,0 +1,61 @@ + + + + + Debug + AnyCPU + {3126CC15-1B32-45D2-99D2-D52B2191A090} + Exe + Properties + Task1Printer + Task1Printer + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.exe b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.exe new file mode 100644 index 0000000..2ca3816 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.exe.config b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.pdb b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.pdb new file mode 100644 index 0000000..ceabf6c Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.pdb differ diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.vshost.exe b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.vshost.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.vshost.exe.config b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/bin/Debug/Task1Printer.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..fa17b63 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.csproj.FileListAbsolute.txt b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..9c30b8e --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task1Printer\bin\Debug\Task1Printer.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task1Printer\bin\Debug\Task1Printer.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task1Printer\bin\Debug\Task1Printer.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task1Printer\obj\Debug\Task1Printer.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task1Printer\obj\Debug\Task1Printer.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task1Printer\obj\Debug\Task1Printer.pdb diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.exe b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.exe new file mode 100644 index 0000000..2ca3816 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.pdb b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.pdb new file mode 100644 index 0000000..ceabf6c Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/Task1Printer.pdb differ diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/3.Inheritance/Task1Printer/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/App.config b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/BadPupil.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/BadPupil.cs new file mode 100644 index 0000000..e754ddb --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/BadPupil.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2ClassRoom +{ + class BadPupil: Pupil + { + public override void Study() + { + Console.WriteLine("Bad study"); + } + public override void Read() + { + Console.WriteLine("Bad read"); + } + public override void Write() + { + Console.WriteLine("Bad write"); + } + public override void Relax() + { + Console.WriteLine("Bad relax"); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/ClassRoom.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/ClassRoom.cs new file mode 100644 index 0000000..b6ac055 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/ClassRoom.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2ClassRoom +{ + class ClassRoom + { + List ListOfPupils; + + + public ClassRoom(Pupil pupil1, Pupil pupil2) + { + ListOfPupils = new List(); + ListOfPupils.Add(pupil1); + ListOfPupils.Add(pupil2); + } + + public ClassRoom(Pupil pupil1, Pupil pupil2, Pupil pupil3): this(pupil1, pupil2) + { + ListOfPupils.Add(pupil3); + } + public ClassRoom(Pupil pupil1, Pupil pupil2, Pupil pupil3, Pupil pupil4): this(pupil1, pupil2, pupil3) + { + ListOfPupils.Add(pupil4); + } + + public void ShowPupilsInformation() + { + int count = 1; + foreach (Pupil pupil in ListOfPupils) + { + Console.WriteLine("Information about pupil № " + count); + pupil.Study(); + pupil.Read(); + pupil.Write(); + pupil.Relax(); + count++; + Console.WriteLine(); + } + + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/ExcelentPupil.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/ExcelentPupil.cs new file mode 100644 index 0000000..1daf15a --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/ExcelentPupil.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2ClassRoom +{ + class ExcelentPupil: Pupil + { + public override void Study() + { + Console.WriteLine("Excelent study"); + } + public override void Read() + { + Console.WriteLine("Excelent read"); + } + public override void Write() + { + Console.WriteLine("Excelent write"); + } + public override void Relax() + { + Console.WriteLine("Excelent relax"); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/GoodPupil.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/GoodPupil.cs new file mode 100644 index 0000000..b663ebf --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/GoodPupil.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2ClassRoom +{ + class GoodPupil: Pupil + { + public override void Study() + { + Console.WriteLine("Good study"); + } + public override void Read() + { + Console.WriteLine("Good read"); + } + public override void Write() + { + Console.WriteLine("Good write"); + + } + public override void Relax() + { + Console.WriteLine("Good relax"); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Program.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Program.cs new file mode 100644 index 0000000..e280639 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2ClassRoom +{ + class Program + { + static void Main(string[] args) + { + GoodPupil pupil1 = new GoodPupil(); + BadPupil pupil2 = new BadPupil(); + GoodPupil pupil3 = new GoodPupil(); + ExcelentPupil pupil4 = new ExcelentPupil(); + ClassRoom classRoom = new ClassRoom(pupil1, pupil2, pupil3, pupil4); + classRoom.ShowPupilsInformation(); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Properties/AssemblyInfo.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0babf56 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2ClassRoom")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2ClassRoom")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d33e06f8-06db-4642-961b-375bc6d876f0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Pupil.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Pupil.cs new file mode 100644 index 0000000..21fe568 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Pupil.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2ClassRoom +{ + abstract class Pupil + { + abstract public void Study(); + abstract public void Read(); + abstract public void Write(); + abstract public void Relax(); + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Task2ClassRoom.csproj b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Task2ClassRoom.csproj new file mode 100644 index 0000000..9be1216 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/Task2ClassRoom.csproj @@ -0,0 +1,63 @@ + + + + + Debug + AnyCPU + {02DACFD5-6F28-4ECC-90EB-D5E4C49BA585} + Exe + Properties + Task2ClassRoom + Task2ClassRoom + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.exe b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.exe new file mode 100644 index 0000000..5da2b3f Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.exe.config b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.pdb b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.pdb new file mode 100644 index 0000000..8808e57 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.pdb differ diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.vshost.exe b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.vshost.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.vshost.exe.config b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.vshost.exe.manifest b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/bin/Debug/Task2ClassRoom.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..a991f84 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.csproj.FileListAbsolute.txt b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..2866767 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task2ClassRoom\bin\Debug\Task2ClassRoom.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task2ClassRoom\bin\Debug\Task2ClassRoom.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task2ClassRoom\bin\Debug\Task2ClassRoom.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task2ClassRoom\obj\Debug\Task2ClassRoom.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task2ClassRoom\obj\Debug\Task2ClassRoom.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task2ClassRoom\obj\Debug\Task2ClassRoom.csprojResolveAssemblyReference.cache diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.exe b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.exe new file mode 100644 index 0000000..5da2b3f Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.pdb b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.pdb new file mode 100644 index 0000000..8808e57 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/Task2ClassRoom.pdb differ diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/3.Inheritance/Task2ClassRoom/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/App.config b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Car.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Car.cs new file mode 100644 index 0000000..07012b3 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Car.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Vehicle +{ + class Car: Vehicle + { + public Car(Coordinates coordinates, double price, int maxSpeed,int yearOfRelease): + base(coordinates, price, maxSpeed, yearOfRelease) + { + + } + + public override void ShowInformation() + { + Console.WriteLine("Information about Car: "); + base.ShowInformation(); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Coordinates.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Coordinates.cs new file mode 100644 index 0000000..00cd962 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Coordinates.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Vehicle +{ + class Coordinates + { + int x; + int y; + + + public int X + { + get { return x; } + } + + public int Y + { + get { return y; } + } + + + public Coordinates(int x, int y) + { + this.x = x; + this.y = y; + } + + + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Plane.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Plane.cs new file mode 100644 index 0000000..2a43bb3 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Plane.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Vehicle +{ + class Plane: Vehicle + { + int passengerQuantity; + int maxHeigh; + + public Plane(Coordinates coordinates, double price, int maxSpeed, + int yearOfRelease, int passengerQuantiy, int maxHeigh ): + base(coordinates, price, maxSpeed, yearOfRelease) + { + this.passengerQuantity = passengerQuantiy; + this.maxHeigh = maxHeigh; + } + + public override void ShowInformation() + { + Console.WriteLine("Information about Plane:"); + base.ShowInformation(); + Console.WriteLine("Quantiy of passengers: " + passengerQuantity); + Console.WriteLine("Max height: {0} meters", maxHeigh); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Program.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Program.cs new file mode 100644 index 0000000..c2c64e7 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Vehicle +{ + class Program + { + static void Main(string[] args) + { + Car car = new Car(new Coordinates(100,23), 20000, 200, 2010); + car.ShowInformation(); + Console.WriteLine(); + + Plane plane = new Plane(new Coordinates(200, 123), 2000000, 500, 208, 85, 10000); + plane.ShowInformation(); + Console.WriteLine(); + + Ship ship = new Ship(new Coordinates(300, 789), 300000, 120, 2015, 50, "Barcelona"); + ship.ShowInformation(); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Properties/AssemblyInfo.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b706e4b --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task3Vehicle")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task3Vehicle")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("1f6ed632-f9e5-4f83-b7da-2d4e391908a9")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Ship.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Ship.cs new file mode 100644 index 0000000..ca47d28 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Ship.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Vehicle +{ + class Ship: Vehicle + { + int passengerQuantity; + string portName; + + public Ship(Coordinates coordinates, double price, int maxSpeed, + int yearOfRelease, int passengerQuantiy, string portName): + base(coordinates, price, maxSpeed, yearOfRelease) + { + this.passengerQuantity = passengerQuantiy; + this.portName = portName; + } + + public override void ShowInformation() + { + Console.WriteLine("Information about Ship:"); + base.ShowInformation(); + Console.WriteLine("Quantiy of passengers: " + passengerQuantity); + Console.WriteLine("Name of port: " + portName); + } + + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Task3Vehicle.csproj b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Task3Vehicle.csproj new file mode 100644 index 0000000..bde227b --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Task3Vehicle.csproj @@ -0,0 +1,63 @@ + + + + + Debug + AnyCPU + {B73718CE-98C5-4563-AA74-25CC085924F2} + Exe + Properties + Task3Vehicle + Task3Vehicle + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Vehicle.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Vehicle.cs new file mode 100644 index 0000000..9012b5b --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/Vehicle.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3Vehicle +{ + class Vehicle + { + protected Coordinates coordinates; + protected double price; + protected int maxSpeed; + protected int yearOfRelease; + + public Vehicle(Coordinates coordinates, double price, int maxSpeed, int yearOfRelease) + { + this.coordinates = coordinates; + this.price = price; + this.maxSpeed = maxSpeed; + this.yearOfRelease = yearOfRelease; + } + + public virtual void ShowInformation() + { + Console.WriteLine("Coordinates: x = {0}, y = {1}", coordinates.X, coordinates.Y); + Console.WriteLine("Price: {0}$\nMax speed: {1} km/h", price, maxSpeed); + Console.WriteLine("Year of release: " + yearOfRelease); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.exe b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.exe new file mode 100644 index 0000000..81e4f81 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.exe.config b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.pdb b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.pdb new file mode 100644 index 0000000..49605eb Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.pdb differ diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.vshost.exe b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.vshost.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.vshost.exe.config b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.vshost.exe.manifest b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/bin/Debug/Task3Vehicle.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..19ad2d3 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.csproj.FileListAbsolute.txt b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..068ab39 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task3Vehicle\bin\Debug\Task3Vehicle.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task3Vehicle\bin\Debug\Task3Vehicle.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task3Vehicle\bin\Debug\Task3Vehicle.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task3Vehicle\obj\Debug\Task3Vehicle.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task3Vehicle\obj\Debug\Task3Vehicle.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task3Vehicle\obj\Debug\Task3Vehicle.pdb diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.exe b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.exe new file mode 100644 index 0000000..81e4f81 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.pdb b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.pdb new file mode 100644 index 0000000..49605eb Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/Task3Vehicle.pdb differ diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/3.Inheritance/Task3Vehicle/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/App.config b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/DocumentWorker.cs b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/DocumentWorker.cs new file mode 100644 index 0000000..72d2870 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/DocumentWorker.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4DocumentWorker +{ + class DocumentWorker + { + public void OpenDocument() + { + Console.WriteLine("Документ открыт"); + } + + public virtual void EditDocument() + { + Console.WriteLine("Редактирование документа доступно в версии Про"); + } + + public virtual void SaveDocument() + { + Console.WriteLine("Сохранение документа возможно в версии Про "); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/ExpertDocumentWorker.cs b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/ExpertDocumentWorker.cs new file mode 100644 index 0000000..2e5f682 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/ExpertDocumentWorker.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4DocumentWorker +{ + class ExpertDocumentWorker: ProDocumentWorker + { + public override void SaveDocument() + { + Console.Write("Документ сохранен в новом формате, "); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/ProDocumentWorker.cs b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/ProDocumentWorker.cs new file mode 100644 index 0000000..e4c4fc1 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/ProDocumentWorker.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4DocumentWorker +{ + class ProDocumentWorker: DocumentWorker + { + + public override void EditDocument() + { + Console.WriteLine("Документ отредактирован"); + } + + public override void SaveDocument() + { + Console.Write("Документ сохранен в старом формате, "); + Console.WriteLine("сохранение в других форматах доступно в версии эксперт"); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/Program.cs b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/Program.cs new file mode 100644 index 0000000..b25e94a --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/Program.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4DocumentWorker +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите ключ, если у вас не ключа нажмите \"Enter\": "); + string key = Console.ReadLine(); + DocumentWorker documentWorker; + if (key == "pro") + { + documentWorker = new ProDocumentWorker(); + } + else if (key == "exp") + { + documentWorker = new ExpertDocumentWorker(); + } + else + { + documentWorker = new DocumentWorker(); + } + documentWorker.OpenDocument(); + documentWorker.EditDocument(); + documentWorker.SaveDocument(); + } + } +} diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/Properties/AssemblyInfo.cs b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1732f46 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task4DocumentWorker")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task4DocumentWorker")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c186d815-3caf-489d-b720-63c62256aca4")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/Task4DocumentWorker.csproj b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/Task4DocumentWorker.csproj new file mode 100644 index 0000000..a83620b --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/Task4DocumentWorker.csproj @@ -0,0 +1,61 @@ + + + + + Debug + AnyCPU + {C29EAE25-DD58-4ED2-86B1-842006C2F38A} + Exe + Properties + Task4DocumentWorker + Task4DocumentWorker + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.exe b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.exe new file mode 100644 index 0000000..04007fb Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.exe.config b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.pdb b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.pdb new file mode 100644 index 0000000..2502b04 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.pdb differ diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.vshost.exe b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.vshost.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.vshost.exe.config b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.vshost.exe.manifest b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/bin/Debug/Task4DocumentWorker.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..9aabfa0 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.csproj.FileListAbsolute.txt b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..cf8ccf4 --- /dev/null +++ b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task4DocumentWorker\bin\Debug\Task4DocumentWorker.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task4DocumentWorker\obj\Debug\Task4DocumentWorker.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task4DocumentWorker\bin\Debug\Task4DocumentWorker.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task4DocumentWorker\bin\Debug\Task4DocumentWorker.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task4DocumentWorker\obj\Debug\Task4DocumentWorker.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\3.Inheritance\Task4DocumentWorker\obj\Debug\Task4DocumentWorker.pdb diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.exe b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.exe new file mode 100644 index 0000000..04007fb Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.exe differ diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.pdb b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.pdb new file mode 100644 index 0000000..2502b04 Binary files /dev/null and b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/Task4DocumentWorker.pdb differ diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/3.Inheritance/Task4DocumentWorker/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/4.Abstractions/4.Abstractions.sln b/AlexandrTkachuk/4.Abstractions/4.Abstractions.sln new file mode 100644 index 0000000..36ee16e --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/4.Abstractions.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1DocumentsTypes", "Task1DocumentsTypes\Task1DocumentsTypes.csproj", "{BB52CA5B-AB4B-4A45-BAB3-5787B1622FDC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2Player", "Task2Player\Task2Player.csproj", "{59A7D177-01BB-4C48-A101-08B48008344E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BB52CA5B-AB4B-4A45-BAB3-5787B1622FDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BB52CA5B-AB4B-4A45-BAB3-5787B1622FDC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BB52CA5B-AB4B-4A45-BAB3-5787B1622FDC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BB52CA5B-AB4B-4A45-BAB3-5787B1622FDC}.Release|Any CPU.Build.0 = Release|Any CPU + {59A7D177-01BB-4C48-A101-08B48008344E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {59A7D177-01BB-4C48-A101-08B48008344E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {59A7D177-01BB-4C48-A101-08B48008344E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {59A7D177-01BB-4C48-A101-08B48008344E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/4.Abstractions/4.Abstractions.v12.suo b/AlexandrTkachuk/4.Abstractions/4.Abstractions.v12.suo new file mode 100644 index 0000000..2d26095 Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/4.Abstractions.v12.suo differ diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/AbstractHandler.cs b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/AbstractHandler.cs new file mode 100644 index 0000000..7d0e6e5 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/AbstractHandler.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1DocumentsTypes +{ + abstract class AbstractHandler + { + public abstract void Open(); + public abstract void Create(); + public abstract void Change(); + public abstract void Save(); + } +} diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/App.config b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/DOCHandler.cs b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/DOCHandler.cs new file mode 100644 index 0000000..af5ea27 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/DOCHandler.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1DocumentsTypes +{ + class DOCHandler: AbstractHandler + { + public override void Open() + { + Console.WriteLine("In method Open(). Class DOCHandler"); + } + public override void Create() + { + Console.WriteLine("In method Create(). Class DOCHandler"); + } + public override void Change() + { + Console.WriteLine("In method Change(). Class DOCHandler"); + } + public override void Save() + { + Console.WriteLine("In method Save(). Class DOCHandler"); + } + } +} diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/Program.cs b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/Program.cs new file mode 100644 index 0000000..2f38cf1 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/Program.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1DocumentsTypes +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Enter a type of document "); + Console.Write("(XML - 1, TXT - 2, DOC - 3): "); + int typeOfDocument = Convert.ToInt32(Console.ReadLine()); + AbstractHandler document = DetermineTypeOfDocument(typeOfDocument); + InvokeMethodsOfThisType(document); + } + + static AbstractHandler DetermineTypeOfDocument(int typeOfDocument) + { + AbstractHandler document; + + switch (typeOfDocument) + { + case 1: + document = new XMLHandler(); + break; + case 2: + document = new TXTHandler(); + break; + case 3: + document = new DOCHandler(); + break; + default: + document = new TXTHandler(); + Console.WriteLine("Incorrect type!"); + Environment.Exit(1); + break; + } + return document; + } + + static void InvokeMethodsOfThisType(AbstractHandler document) + { + document.Create(); + document.Open(); + document.Change(); + document.Save(); + } + } +} diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/Properties/AssemblyInfo.cs b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..bb9aca2 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1DocumentsTypes")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1DocumentsTypes")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("4e1e6249-a3cc-4563-b77c-b7e2bade14f3")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/TXTHandler.cs b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/TXTHandler.cs new file mode 100644 index 0000000..cb21da6 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/TXTHandler.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1DocumentsTypes +{ + class TXTHandler: AbstractHandler + { + public override void Open() + { + Console.WriteLine("In method Open(). Class TXTHandlerr"); + } + public override void Create() + { + Console.WriteLine("In method Create(). Class TXTHandler"); + } + public override void Change() + { + Console.WriteLine("In method Change(). Class TXTHandler"); + } + public override void Save() + { + Console.WriteLine("In method Save(). Class TXTHandler"); + } + } +} diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/Task1DocumentsTypes.csproj b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/Task1DocumentsTypes.csproj new file mode 100644 index 0000000..7f12931 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/Task1DocumentsTypes.csproj @@ -0,0 +1,62 @@ + + + + + Debug + AnyCPU + {BB52CA5B-AB4B-4A45-BAB3-5787B1622FDC} + Exe + Properties + Task1DocumentsTypes + Task1DocumentsTypes + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/XMLHandler.cs b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/XMLHandler.cs new file mode 100644 index 0000000..d21a587 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/XMLHandler.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1DocumentsTypes +{ + class XMLHandler: AbstractHandler + { + public override void Open() + { + Console.WriteLine("In method Open(). Class XMLXandler"); + } + public override void Create() + { + Console.WriteLine("In method Create(). Class XMLXandler"); + } + public override void Change() + { + Console.WriteLine("In method Change(). Class XMLXandler"); + } + public override void Save() + { + Console.WriteLine("In method Save(). Class XMLXandler"); + } + } +} diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.exe b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.exe new file mode 100644 index 0000000..d5019cf Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.exe differ diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.exe.config b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.pdb b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.pdb new file mode 100644 index 0000000..2c420c6 Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.pdb differ diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.vshost.exe b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.vshost.exe differ diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.vshost.exe.config b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.vshost.exe.manifest b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/bin/Debug/Task1DocumentsTypes.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7d4a2d6 Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.csproj.FileListAbsolute.txt b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..1bcbce0 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.csproj.FileListAbsolute.txt @@ -0,0 +1,12 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task1DocumentsTypes\bin\Debug\Task1DocumentsTypes.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task1DocumentsTypes\obj\Debug\Task1DocumentsTypes.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task1DocumentsTypes\bin\Debug\Task1DocumentsTypes.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task1DocumentsTypes\bin\Debug\Task1DocumentsTypes.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task1DocumentsTypes\obj\Debug\Task1DocumentsTypes.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task1DocumentsTypes\obj\Debug\Task1DocumentsTypes.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\4.Abstractions\Task1DocumentsTypes\bin\Debug\Task1DocumentsTypes.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\4.Abstractions\Task1DocumentsTypes\obj\Debug\Task1DocumentsTypes.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\4.Abstractions\Task1DocumentsTypes\obj\Debug\Task1DocumentsTypes.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\4.Abstractions\Task1DocumentsTypes\bin\Debug\Task1DocumentsTypes.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\4.Abstractions\Task1DocumentsTypes\bin\Debug\Task1DocumentsTypes.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\4.Abstractions\Task1DocumentsTypes\obj\Debug\Task1DocumentsTypes.csprojResolveAssemblyReference.cache diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.exe b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.exe new file mode 100644 index 0000000..d5019cf Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.exe differ diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.pdb b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.pdb new file mode 100644 index 0000000..2c420c6 Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/Task1DocumentsTypes.pdb differ diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/4.Abstractions/Task1DocumentsTypes/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/App.config b/AlexandrTkachuk/4.Abstractions/Task2Player/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/IPlayable.cs b/AlexandrTkachuk/4.Abstractions/Task2Player/IPlayable.cs new file mode 100644 index 0000000..254e62e --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/IPlayable.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2Player +{ + interface IPlayable + { + void Play(); + void Pause(); + void Stop(); + } +} diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/IRecordable.cs b/AlexandrTkachuk/4.Abstractions/Task2Player/IRecordable.cs new file mode 100644 index 0000000..bf49ed0 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/IRecordable.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2Player +{ + interface IRecordable + { + void Record(); + void Pause(); + void Stop(); + } +} diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/Player.cs b/AlexandrTkachuk/4.Abstractions/Task2Player/Player.cs new file mode 100644 index 0000000..2ea48d9 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/Player.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2Player +{ + class Player: IRecordable, IPlayable + { + public void Play() + { + Console.WriteLine("Play"); + } + void IPlayable.Pause() + { + Console.WriteLine("Pause playing"); + } + + void IPlayable.Stop() + { + Console.WriteLine("Stop playing"); + } + + public void Record() + { + Console.WriteLine("Record"); + } + + void IRecordable.Pause() + { + Console.WriteLine("Pause recording"); + } + + void IRecordable.Stop() + { + Console.WriteLine("Stop recording"); + } + } +} diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/Program.cs b/AlexandrTkachuk/4.Abstractions/Task2Player/Program.cs new file mode 100644 index 0000000..5394671 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/Program.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2Player +{ + class Program + { + static void Main(string[] args) + { + Player player = new Player(); + + IPlayable iplayable = player; + player.Play(); + iplayable.Pause(); + iplayable.Stop(); + + IRecordable irecordable = player; + player.Record(); + irecordable.Pause(); + irecordable.Stop(); + } + } +} diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/Properties/AssemblyInfo.cs b/AlexandrTkachuk/4.Abstractions/Task2Player/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..070d96a --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2Player")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2Player")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("30903be9-833c-42fd-92b1-15d9f816f4f8")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/Task2Player.csproj b/AlexandrTkachuk/4.Abstractions/Task2Player/Task2Player.csproj new file mode 100644 index 0000000..fb60500 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/Task2Player.csproj @@ -0,0 +1,61 @@ + + + + + Debug + AnyCPU + {59A7D177-01BB-4C48-A101-08B48008344E} + Exe + Properties + Task2Player + Task2Player + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.exe b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.exe new file mode 100644 index 0000000..a128f71 Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.exe differ diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.exe.config b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.pdb b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.pdb new file mode 100644 index 0000000..3d5134d Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.pdb differ diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.vshost.exe b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.vshost.exe differ diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.vshost.exe.config b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.vshost.exe.manifest b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/bin/Debug/Task2Player.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..c21ee75 Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.csproj.FileListAbsolute.txt b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..d9acb07 --- /dev/null +++ b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task2Player\bin\Debug\Task2Player.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task2Player\obj\Debug\Task2Player.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task2Player\bin\Debug\Task2Player.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task2Player\bin\Debug\Task2Player.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task2Player\obj\Debug\Task2Player.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\2.Classes\4.Abstractions\Task2Player\obj\Debug\Task2Player.pdb diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.exe b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.exe new file mode 100644 index 0000000..a128f71 Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.exe differ diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.pdb b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.pdb new file mode 100644 index 0000000..3d5134d Binary files /dev/null and b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/Task2Player.pdb differ diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/4.Abstractions/Task2Player/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/5.Static.sln b/AlexandrTkachuk/5.Static/5.Static.sln new file mode 100644 index 0000000..7e68eac --- /dev/null +++ b/AlexandrTkachuk/5.Static/5.Static.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1Calculator", "Task1Calculator\Task1Calculator.csproj", "{612F74DD-F4CC-49C6-92B0-D3BCB9791AD2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2SortExtension", "Task2SortExtension\Task2SortExtension.csproj", "{AD9B042C-C9DF-4EAD-8359-25E13C0BFE3F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3SortExtensionWithSortingOrder", "Task3SortExtensionWithSortingOrder\Task3SortExtensionWithSortingOrder.csproj", "{05EEE2A6-EF53-483B-BCDF-1FAEA9EF6875}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task4MyStringMethods", "Task4MyStringMethods\Task4MyStringMethods.csproj", "{AA57B9C7-4808-4C46-AC5E-016256E4A195}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {612F74DD-F4CC-49C6-92B0-D3BCB9791AD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {612F74DD-F4CC-49C6-92B0-D3BCB9791AD2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {612F74DD-F4CC-49C6-92B0-D3BCB9791AD2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {612F74DD-F4CC-49C6-92B0-D3BCB9791AD2}.Release|Any CPU.Build.0 = Release|Any CPU + {AD9B042C-C9DF-4EAD-8359-25E13C0BFE3F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AD9B042C-C9DF-4EAD-8359-25E13C0BFE3F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AD9B042C-C9DF-4EAD-8359-25E13C0BFE3F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AD9B042C-C9DF-4EAD-8359-25E13C0BFE3F}.Release|Any CPU.Build.0 = Release|Any CPU + {05EEE2A6-EF53-483B-BCDF-1FAEA9EF6875}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {05EEE2A6-EF53-483B-BCDF-1FAEA9EF6875}.Debug|Any CPU.Build.0 = Debug|Any CPU + {05EEE2A6-EF53-483B-BCDF-1FAEA9EF6875}.Release|Any CPU.ActiveCfg = Release|Any CPU + {05EEE2A6-EF53-483B-BCDF-1FAEA9EF6875}.Release|Any CPU.Build.0 = Release|Any CPU + {AA57B9C7-4808-4C46-AC5E-016256E4A195}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AA57B9C7-4808-4C46-AC5E-016256E4A195}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AA57B9C7-4808-4C46-AC5E-016256E4A195}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AA57B9C7-4808-4C46-AC5E-016256E4A195}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/5.Static/5.Static.v12.suo b/AlexandrTkachuk/5.Static/5.Static.v12.suo new file mode 100644 index 0000000..4e47c08 Binary files /dev/null and b/AlexandrTkachuk/5.Static/5.Static.v12.suo differ diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/App.config b/AlexandrTkachuk/5.Static/Task1Calculator/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task1Calculator/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/Calculator.cs b/AlexandrTkachuk/5.Static/Task1Calculator/Calculator.cs new file mode 100644 index 0000000..076aacf --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task1Calculator/Calculator.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Calculator +{ + static class Calculator + { + public static double Add(double number1, double number2) + { + return number1 + number2; + } + + public static double Subtract(double number1, double number2) + { + return number1 - number2; + } + + public static double Multiply(double number1, double number2) + { + return number1 * number2; + } + + public static double Divide(double number1, double number2) + { + return number1 / number2; + } + } +} diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/Program.cs b/AlexandrTkachuk/5.Static/Task1Calculator/Program.cs new file mode 100644 index 0000000..eb54f5b --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task1Calculator/Program.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Calculator +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Введите первый опренд: "); + double enteredNumber1 = Convert.ToDouble(Console.ReadLine()); + Console.Write("Введите знак операции (+, -, *, /): "); + char operationSign = Convert.ToChar(Console.ReadLine()); + Console.Write("Введите второй опренд: "); + double enteredNumber2 = Convert.ToDouble(Console.ReadLine()); + Console.WriteLine("{0} {1} {2} = {3}", enteredNumber1, operationSign, enteredNumber2, + CallRequiredOperation(operationSign, enteredNumber1, enteredNumber2)); + } + + public static double CallRequiredOperation(char operationSign, double enteredNumber1, double enteredNumber2) + { + double result = 0; + switch (operationSign) + { + case '+': + result = Calculator.Add(enteredNumber1, enteredNumber2); + break; + case '-': + result = Calculator.Subtract(enteredNumber1, enteredNumber2); + break; + case '/': + result = Calculator.Divide(enteredNumber1, enteredNumber2); + break; + case '*': + result = Calculator.Multiply(enteredNumber1, enteredNumber2); + break; + default: + Console.WriteLine("Неверный знак операции!"); + Environment.Exit(1); + break; + } + return result; + } + } +} diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/Properties/AssemblyInfo.cs b/AlexandrTkachuk/5.Static/Task1Calculator/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0a9c214 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task1Calculator/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1Calculator")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1Calculator")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("df258d11-7b86-482c-bfcb-2b84497312cc")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/Task1Calculator.csproj b/AlexandrTkachuk/5.Static/Task1Calculator/Task1Calculator.csproj new file mode 100644 index 0000000..f30c0ab --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task1Calculator/Task1Calculator.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {612F74DD-F4CC-49C6-92B0-D3BCB9791AD2} + Exe + Properties + Task1Calculator + Task1Calculator + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.exe b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.exe new file mode 100644 index 0000000..da22fff Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.exe differ diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.exe.config b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.pdb b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.pdb new file mode 100644 index 0000000..cb599c9 Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.pdb differ diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.vshost.exe b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.vshost.exe differ diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.vshost.exe.config b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.vshost.exe.manifest b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task1Calculator/bin/Debug/Task1Calculator.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7e03242 Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.csproj.FileListAbsolute.txt b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..93637ed --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task1Calculator\bin\Debug\Task1Calculator.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task1Calculator\bin\Debug\Task1Calculator.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task1Calculator\bin\Debug\Task1Calculator.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task1Calculator\obj\Debug\Task1Calculator.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task1Calculator\obj\Debug\Task1Calculator.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task1Calculator\obj\Debug\Task1Calculator.pdb diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.exe b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.exe new file mode 100644 index 0000000..da22fff Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.exe differ diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.pdb b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.pdb new file mode 100644 index 0000000..cb599c9 Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/Task1Calculator.pdb differ diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/5.Static/Task1Calculator/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/App.config b/AlexandrTkachuk/5.Static/Task2SortExtension/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task2SortExtension/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/MyIntArrayExtension.cs b/AlexandrTkachuk/5.Static/Task2SortExtension/MyIntArrayExtension.cs new file mode 100644 index 0000000..413d953 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task2SortExtension/MyIntArrayExtension.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2SortExtension +{ + public static class MyIntArrayExtension + { + + public static void SortArrayByIncrease(this int[] array) + { + for (int i = 0; i < array.Length - 1; i++) + { + int indexOfMinValue = i; + for (int j = i+1; j < array.Length; j++) + { + if(array[j] < array[indexOfMinValue]) + { + indexOfMinValue = j; + } + } + int temp = array[i]; + array[i] = array[indexOfMinValue]; + array[indexOfMinValue] = temp; + } + } + + } +} diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/Program.cs b/AlexandrTkachuk/5.Static/Task2SortExtension/Program.cs new file mode 100644 index 0000000..15e8f5e --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task2SortExtension/Program.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2SortExtension +{ + class Program + { + static void Main(string[] args) + { + int[] array = { 6, 3, 8, 10, 2, 5, 1 }; + ShowArray(array); + array.SortArrayByIncrease(); + Console.WriteLine("Sorted array: "); + ShowArray(array); + + } + + public static void ShowArray(int[] array) + { + for (int i = 0; i < array.Length ; i++) + { + Console.Write(array[i] + " "); + } + Console.WriteLine(); + } + } +} diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/Properties/AssemblyInfo.cs b/AlexandrTkachuk/5.Static/Task2SortExtension/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..cb8b0b9 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task2SortExtension/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2SortExtension")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2SortExtension")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("aceec2ca-ceb9-49f4-9d02-516a54c687ec")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/Task2SortExtension.csproj b/AlexandrTkachuk/5.Static/Task2SortExtension/Task2SortExtension.csproj new file mode 100644 index 0000000..d63cf5f --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task2SortExtension/Task2SortExtension.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {AD9B042C-C9DF-4EAD-8359-25E13C0BFE3F} + Exe + Properties + Task2SortExtension + Task2SortExtension + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.exe b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.exe new file mode 100644 index 0000000..2c306b2 Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.exe differ diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.exe.config b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.pdb b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.pdb new file mode 100644 index 0000000..a06917a Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.pdb differ diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.vshost.exe b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.vshost.exe differ diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.vshost.exe.config b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task2SortExtension/bin/Debug/Task2SortExtension.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..720e0f8 Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.csproj.FileListAbsolute.txt b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..c575416 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task2SortExtension\bin\Debug\Task2SortExtension.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task2SortExtension\bin\Debug\Task2SortExtension.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task2SortExtension\bin\Debug\Task2SortExtension.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task2SortExtension\obj\Debug\Task2SortExtension.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task2SortExtension\obj\Debug\Task2SortExtension.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task2SortExtension\obj\Debug\Task2SortExtension.pdb diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.exe b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.exe new file mode 100644 index 0000000..2c306b2 Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.exe differ diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.pdb b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.pdb new file mode 100644 index 0000000..a06917a Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/Task2SortExtension.pdb differ diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/5.Static/Task2SortExtension/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/App.config b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/MyIntArrayExtension.cs b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/MyIntArrayExtension.cs new file mode 100644 index 0000000..d387084 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/MyIntArrayExtension.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3SortExtensionWithSortingOrder +{ + public static class MyIntArrayExtension + { + public static void SortArray(this int[] array, bool SortingOrder) + { + if (SortingOrder == true) + { + SortArrayByIncrease(array); + } + else + { + SortArrayByDecrease(array); + } + } + + public static void SortArrayByIncrease(int[] array) + { + for (int i = 0; i < array.Length - 1; i++) + { + int indexOfMinValue = i; + for (int j = i + 1; j < array.Length; j++) + { + if (array[j] < array[indexOfMinValue]) + { + indexOfMinValue = j; + } + } + int temp = array[i]; + array[i] = array[indexOfMinValue]; + array[indexOfMinValue] = temp; + } + } + + public static void SortArrayByDecrease(int[] array) + { + + for (int i = 0; i < array.Length - 1; i++) + { + int indexOfMaxValue = i; + for (int j = i + 1; j < array.Length; j++) + { + if (array[j] > array[indexOfMaxValue]) + { + indexOfMaxValue = j; + } + } + int temp = array[i]; + array[i] = array[indexOfMaxValue]; + array[indexOfMaxValue] = temp; + } + } + } +} diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/Program.cs b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/Program.cs new file mode 100644 index 0000000..93e9dc0 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/Program.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3SortExtensionWithSortingOrder +{ + class Program + { + static void Main(string[] args) + { + int[] array = { 6, 3, 8, 10, 2, 5, 1 }; + ShowArray(array); + array.SortArray(false); + Console.WriteLine("Sorted array: "); + ShowArray(array); + } + public static void ShowArray(int[] array) + { + for (int i = 0; i < array.Length; i++) + { + Console.Write(array[i] + " "); + } + Console.WriteLine(); + } + } +} diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/Properties/AssemblyInfo.cs b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..90a7c6e --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task3SortExtensionWithSortingOrder")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task3SortExtensionWithSortingOrder")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("569a95fd-d7b7-4869-b4aa-beee974b8c43")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/Task3SortExtensionWithSortingOrder.csproj b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/Task3SortExtensionWithSortingOrder.csproj new file mode 100644 index 0000000..5de6ce2 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/Task3SortExtensionWithSortingOrder.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {05EEE2A6-EF53-483B-BCDF-1FAEA9EF6875} + Exe + Properties + Task3SortExtensionWithSortingOrder + Task3SortExtensionWithSortingOrder + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.exe b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.exe new file mode 100644 index 0000000..df5930d Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.exe differ diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.exe.config b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.pdb b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.pdb new file mode 100644 index 0000000..77ffee6 Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.pdb differ diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.vshost.exe b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.vshost.exe differ diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.vshost.exe.config b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.vshost.exe.manifest b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/bin/Debug/Task3SortExtensionWithSortingOrder.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..2b897db Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/Task3SortExtensionWithSortingOrder.csproj.FileListAbsolute.txt b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/Task3SortExtensionWithSortingOrder.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4ed2f3a --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/Task3SortExtensionWithSortingOrder.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task3SortExtensionWithSortingOrder\bin\Debug\Task3SortExtensionWithSortingOrder.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task3SortExtensionWithSortingOrder\bin\Debug\Task3SortExtensionWithSortingOrder.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task3SortExtensionWithSortingOrder\bin\Debug\Task3SortExtensionWithSortingOrder.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task3SortExtensionWithSortingOrder\obj\Debug\Task3SortExtensionWithSortingOrder.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task3SortExtensionWithSortingOrder\obj\Debug\Task3SortExtensionWithSortingOrder.pdb diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/Task3SortExtensionWithSortingOrder.exe b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/Task3SortExtensionWithSortingOrder.exe new file mode 100644 index 0000000..df5930d Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/Task3SortExtensionWithSortingOrder.exe differ diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/Task3SortExtensionWithSortingOrder.pdb b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/Task3SortExtensionWithSortingOrder.pdb new file mode 100644 index 0000000..77ffee6 Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/Task3SortExtensionWithSortingOrder.pdb differ diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/5.Static/Task3SortExtensionWithSortingOrder/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/App.config b/AlexandrTkachuk/5.Static/Task4MyStringMethods/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task4MyStringMethods/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/MyString.cs b/AlexandrTkachuk/5.Static/Task4MyStringMethods/MyString.cs new file mode 100644 index 0000000..ddb950a --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task4MyStringMethods/MyString.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4MyStringMethods +{ + static class MyString + { + public static string Replace(string line, string oldLine, string newLine) + { + List listOfIndexes = MyString.FoundIndexesOfOldLines(line, oldLine); + string result = ""; + for (int i = 0; i < listOfIndexes.Count; i++) + { + string lineBegining = MyString.Substring(line, 1, MyString.IndexOf(line, oldLine)-1); + string lineEnding = ""; + for (int j = listOfIndexes[i] + oldLine.Length ; j <= line.Length; j++) + { + lineEnding += line[j-1]; + } + result += lineBegining + newLine; + line = lineEnding; + if( i == listOfIndexes.Count-1) + { + result += lineEnding; + } + } + return result; + } + + public static string Substring(string enteredLine, int index, int length) + { + string resultLine = ""; + for (int i = index-1, j = 0; j < length; i++, j++) + { + resultLine += enteredLine[i]; + } + return resultLine; + } + + public static int IndexOf(string line, string lineToFind) + { + char firstCharOfLineToFind = lineToFind[0]; + for (int i = 0; i < line.Length; i++) + { + if(line[i] == firstCharOfLineToFind) + { + for (int j = 0; j < lineToFind.Length; j++) + { + if (line[i+j] != lineToFind[j]) + { + break; + } + if (j == lineToFind.Length - 1) + { + return i+1; + } + } + } + } + return -1; + } + + + static List FoundIndexesOfOldLines(string line, string oldLine) + { + List listOfIndexes = new List(); + string temporaryLine = line; + int index = 0; + int intTemp; + do + { + intTemp = MyString.IndexOf(temporaryLine, oldLine); + if (intTemp != -1) + { + listOfIndexes.Add(intTemp); + string stringTemp = ""; + for (int i = intTemp + oldLine.Length - 1; i < temporaryLine.Length; i++) + { + stringTemp += temporaryLine[i]; + } + temporaryLine = stringTemp; + } + } while (intTemp != -1); + return listOfIndexes; + } + + + } +} diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/Program.cs b/AlexandrTkachuk/5.Static/Task4MyStringMethods/Program.cs new file mode 100644 index 0000000..2e7ecb6 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task4MyStringMethods/Program.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4MyStringMethods +{ + class Program + { + static void Main(string[] args) + { + string line2 = MyString.Substring("12345678", 2, 3); + Console.WriteLine(line2); + Console.WriteLine(MyString.IndexOf("12345678", "456")); + string str = MyString.Replace("12345672389000002300", "23", "a"); + Console.WriteLine(str); + } + } +} diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/Properties/AssemblyInfo.cs b/AlexandrTkachuk/5.Static/Task4MyStringMethods/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..413c082 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task4MyStringMethods/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task4MyStringMethods")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task4MyStringMethods")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ec4e8fd4-af9b-433c-b5ca-d6f131595f40")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/Task4MyStringMethods.csproj b/AlexandrTkachuk/5.Static/Task4MyStringMethods/Task4MyStringMethods.csproj new file mode 100644 index 0000000..960c021 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task4MyStringMethods/Task4MyStringMethods.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {AA57B9C7-4808-4C46-AC5E-016256E4A195} + Exe + Properties + Task4MyStringMethods + Task4MyStringMethods + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.exe b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.exe new file mode 100644 index 0000000..5b60e3a Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.exe differ diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.exe.config b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.pdb b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.pdb new file mode 100644 index 0000000..73387ed Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.pdb differ diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.vshost.exe b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.vshost.exe differ diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.vshost.exe.config b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.vshost.exe.manifest b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task4MyStringMethods/bin/Debug/Task4MyStringMethods.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3180521 Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.csproj.FileListAbsolute.txt b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..a0905fb --- /dev/null +++ b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task4MyStringMethods\bin\Debug\Task4MyStringMethods.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task4MyStringMethods\bin\Debug\Task4MyStringMethods.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task4MyStringMethods\bin\Debug\Task4MyStringMethods.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task4MyStringMethods\obj\Debug\Task4MyStringMethods.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task4MyStringMethods\obj\Debug\Task4MyStringMethods.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\5.Static\Task4MyStringMethods\obj\Debug\Task4MyStringMethods.pdb diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.exe b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.exe new file mode 100644 index 0000000..5b60e3a Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.exe differ diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.pdb b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.pdb new file mode 100644 index 0000000..73387ed Binary files /dev/null and b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/Task4MyStringMethods.pdb differ diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/5.Static/Task4MyStringMethods/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/6Structures.sln b/AlexandrTkachuk/6Structures/6Structures.sln new file mode 100644 index 0000000..fc6e99b --- /dev/null +++ b/AlexandrTkachuk/6Structures/6Structures.sln @@ -0,0 +1,52 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1Notebook", "Task1Notebook\Task1Notebook.csproj", "{67EF7044-999D-42A8-9193-BD1646E5D603}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2Train", "Task2Train\Task2Train.csproj", "{C0A5209A-2C6B-4466-AC26-1B8B196D3323}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3MyClassAndMyStruct", "Task3MyClassAndMyStruct\Task3MyClassAndMyStruct.csproj", "{96B81E91-FFB9-40F4-83C7-2766FABC4193}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task4CounterDaysTillBirthday", "Task4CounterDaysTillBirsday\Task4CounterDaysTillBirthday.csproj", "{E1258A0F-ED0F-465E-A1D2-E209463EEEDC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task5ColorPrint", "Task5ColorPrint\Task5ColorPrint.csproj", "{4B5B2507-4EA0-41C1-8431-9D2B9774BC4E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task6AccountantBonuses", "Task6AccountantBonuses\Task6AccountantBonuses.csproj", "{F01E3941-F6EB-4161-8223-058FF0BA0695}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {67EF7044-999D-42A8-9193-BD1646E5D603}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {67EF7044-999D-42A8-9193-BD1646E5D603}.Debug|Any CPU.Build.0 = Debug|Any CPU + {67EF7044-999D-42A8-9193-BD1646E5D603}.Release|Any CPU.ActiveCfg = Release|Any CPU + {67EF7044-999D-42A8-9193-BD1646E5D603}.Release|Any CPU.Build.0 = Release|Any CPU + {C0A5209A-2C6B-4466-AC26-1B8B196D3323}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C0A5209A-2C6B-4466-AC26-1B8B196D3323}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C0A5209A-2C6B-4466-AC26-1B8B196D3323}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C0A5209A-2C6B-4466-AC26-1B8B196D3323}.Release|Any CPU.Build.0 = Release|Any CPU + {96B81E91-FFB9-40F4-83C7-2766FABC4193}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {96B81E91-FFB9-40F4-83C7-2766FABC4193}.Debug|Any CPU.Build.0 = Debug|Any CPU + {96B81E91-FFB9-40F4-83C7-2766FABC4193}.Release|Any CPU.ActiveCfg = Release|Any CPU + {96B81E91-FFB9-40F4-83C7-2766FABC4193}.Release|Any CPU.Build.0 = Release|Any CPU + {E1258A0F-ED0F-465E-A1D2-E209463EEEDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E1258A0F-ED0F-465E-A1D2-E209463EEEDC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E1258A0F-ED0F-465E-A1D2-E209463EEEDC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E1258A0F-ED0F-465E-A1D2-E209463EEEDC}.Release|Any CPU.Build.0 = Release|Any CPU + {4B5B2507-4EA0-41C1-8431-9D2B9774BC4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4B5B2507-4EA0-41C1-8431-9D2B9774BC4E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4B5B2507-4EA0-41C1-8431-9D2B9774BC4E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4B5B2507-4EA0-41C1-8431-9D2B9774BC4E}.Release|Any CPU.Build.0 = Release|Any CPU + {F01E3941-F6EB-4161-8223-058FF0BA0695}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F01E3941-F6EB-4161-8223-058FF0BA0695}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F01E3941-F6EB-4161-8223-058FF0BA0695}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F01E3941-F6EB-4161-8223-058FF0BA0695}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/6Structures/6Structures.v12.suo b/AlexandrTkachuk/6Structures/6Structures.v12.suo new file mode 100644 index 0000000..1f786ed Binary files /dev/null and b/AlexandrTkachuk/6Structures/6Structures.v12.suo differ diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/App.config b/AlexandrTkachuk/6Structures/Task1Notebook/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task1Notebook/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/Notebook.cs b/AlexandrTkachuk/6Structures/Task1Notebook/Notebook.cs new file mode 100644 index 0000000..80a4f60 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task1Notebook/Notebook.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Notebook +{ + struct Notebook + { + string manufacturer; + string model; + double price; + + public Notebook(string manufacturer, string model, double price ) + { + this.manufacturer = manufacturer; + this.model = model; + this.price = price; + + } + + public void ShowInfo() + { + Console.WriteLine("Information about notebook: "); + Console.WriteLine("manufacturer: " + manufacturer); + Console.WriteLine("model: " + model); + Console.WriteLine("price: {0}$", price); + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/Program.cs b/AlexandrTkachuk/6Structures/Task1Notebook/Program.cs new file mode 100644 index 0000000..8e1d2f8 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task1Notebook/Program.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Notebook +{ + class Program + { + static void Main(string[] args) + { + Notebook notebookHP = new Notebook("HP", "Pavillion 15", 800); ; + notebookHP.ShowInfo(); + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/Properties/AssemblyInfo.cs b/AlexandrTkachuk/6Structures/Task1Notebook/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ab84b50 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task1Notebook/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1Notebook")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1Notebook")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("bc438af9-82ff-40ae-ab12-2cfe85fe5b38")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/Task1Notebook.csproj b/AlexandrTkachuk/6Structures/Task1Notebook/Task1Notebook.csproj new file mode 100644 index 0000000..9cca637 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task1Notebook/Task1Notebook.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {67EF7044-999D-42A8-9193-BD1646E5D603} + Exe + Properties + Task1Notebook + Task1Notebook + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.exe b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.exe new file mode 100644 index 0000000..a7c76cf Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.exe differ diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.exe.config b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.pdb b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.pdb new file mode 100644 index 0000000..d530631 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.vshost.exe b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.vshost.exe differ diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.vshost.exe.config b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.vshost.exe.manifest b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task1Notebook/bin/Debug/Task1Notebook.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..86bcff8 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.csproj.FileListAbsolute.txt b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..1e3488e --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task1Notebook\bin\Debug\Task1Notebook.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task1Notebook\obj\Debug\Task1Notebook.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task1Notebook\bin\Debug\Task1Notebook.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task1Notebook\bin\Debug\Task1Notebook.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task1Notebook\obj\Debug\Task1Notebook.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task1Notebook\obj\Debug\Task1Notebook.pdb diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.exe b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.exe new file mode 100644 index 0000000..a7c76cf Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.exe differ diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.pdb b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.pdb new file mode 100644 index 0000000..d530631 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/Task1Notebook.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/6Structures/Task1Notebook/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task2Train/App.config b/AlexandrTkachuk/6Structures/Task2Train/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task2Train/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task2Train/Program.cs b/AlexandrTkachuk/6Structures/Task2Train/Program.cs new file mode 100644 index 0000000..06e6fce --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task2Train/Program.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2Train +{ + class Program + { + static void Main(string[] args) + { + Train[] trains = new Train[3]; + for (int i = 0; i < trains.Length; i++) + { + Console.WriteLine("Enter information about {0} train:", i+1); + trains[i] = CreateTrain(); + Console.Clear(); + } + ShowInformationAboutTrain(trains); + + } + + private static void ShowInformationAboutTrain(Train[] trains) + { + Console.Write("To get information about train enter the number of train: "); + int trainNumber = Convert.ToInt32(Console.ReadLine()); + trains[trainNumber - 1].ShowTrainInformation(); + } + + static Train CreateTrain() + { + Console.Write("Destination: "); + string destination = Console.ReadLine(); + Console.Write("Train number: "); + int trainNumber = Convert.ToInt32(Console.ReadLine()); + TimeSpan timeOfDeparture = DetermineTime(); + return new Train(destination, trainNumber, timeOfDeparture); + } + + static TimeSpan DetermineTime() + { + Console.Write("Enter time of departure in format h:m:s (examle 12:45:00): "); + string timeOfDeparture = Console.ReadLine(); + string[] hoursMinutesSeconds = timeOfDeparture.Split(':'); + int hours = Convert.ToInt32(hoursMinutesSeconds[0]); + int minutes = Convert.ToInt32(hoursMinutesSeconds[1]); + int seconds = Convert.ToInt32(hoursMinutesSeconds[2]); + return new TimeSpan(hours, minutes,seconds); + } + + + } +} diff --git a/AlexandrTkachuk/6Structures/Task2Train/Properties/AssemblyInfo.cs b/AlexandrTkachuk/6Structures/Task2Train/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0ab23b9 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task2Train/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2Train")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2Train")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("95faf8fb-7df5-4d15-a39b-77294757034f")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/6Structures/Task2Train/Task2Train.csproj b/AlexandrTkachuk/6Structures/Task2Train/Task2Train.csproj new file mode 100644 index 0000000..670cc42 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task2Train/Task2Train.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {C0A5209A-2C6B-4466-AC26-1B8B196D3323} + Exe + Properties + Task2Train + Task2Train + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task2Train/Train.cs b/AlexandrTkachuk/6Structures/Task2Train/Train.cs new file mode 100644 index 0000000..7dc26d2 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task2Train/Train.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2Train +{ + struct Train + { + string destination; + int trainNumber; + TimeSpan timeOfDeparture; + + public Train(string destination, int trainNumber, TimeSpan timeOfDeparture) + { + this.destination = destination; + this.trainNumber = trainNumber; + this.timeOfDeparture = timeOfDeparture; + } + + public void ShowTrainInformation() + { + Console.WriteLine("Destination: " + destination); + Console.WriteLine("Train number: " + trainNumber); + Console.WriteLine("Time of departure: " + timeOfDeparture); + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.exe b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.exe new file mode 100644 index 0000000..5101cb3 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.exe differ diff --git a/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.exe.config b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.pdb b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.pdb new file mode 100644 index 0000000..d3dfa2b Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.vshost.exe b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.vshost.exe differ diff --git a/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.vshost.exe.config b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.vshost.exe.manifest b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task2Train/bin/Debug/Task2Train.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..717c96d Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.csproj.FileListAbsolute.txt b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..2943cc5 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task2Train\bin\Debug\Task2Train.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task2Train\obj\Debug\Task2Train.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task2Train\bin\Debug\Task2Train.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task2Train\bin\Debug\Task2Train.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task2Train\obj\Debug\Task2Train.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task2Train\obj\Debug\Task2Train.pdb diff --git a/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.exe b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.exe new file mode 100644 index 0000000..5101cb3 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.exe differ diff --git a/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.pdb b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.pdb new file mode 100644 index 0000000..d3dfa2b Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/Task2Train.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/6Structures/Task2Train/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/App.config b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/MyClass.cs b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/MyClass.cs new file mode 100644 index 0000000..d5955c5 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/MyClass.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3MyClassAndMyStruct +{ + class MyClass + { + public string change; + } +} diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/MyStruct.cs b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/MyStruct.cs new file mode 100644 index 0000000..17bfa86 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/MyStruct.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3MyClassAndMyStruct +{ + struct MyStruct + { + public string change; + } + + + +} diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/Program.cs b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/Program.cs new file mode 100644 index 0000000..0e750d3 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/Program.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3MyClassAndMyStruct +{ + class Program + { + static void Main(string[] args) + { + MyClass myClass = new MyClass(); + myClass.change = "unchanged"; + + MyStruct myStruct = new MyStruct(); + myStruct.change = "unchanged"; + + Console.WriteLine("Before method Taker: "); + Console.WriteLine("myStruct.change = " + myStruct.change); + Console.WriteLine("myClass.change = " + myClass.change); + ClassTaker(myClass); + StructTaker(myStruct); + Console.WriteLine(); + Console.WriteLine("After method Taker:"); + Console.WriteLine("myStruct.change = " + myStruct.change); + Console.WriteLine("myClass.change = " + myClass.change); + } + static void ClassTaker(MyClass myClass) + { + myClass.change = "changed"; + } + static void StructTaker(MyStruct myStruct) + { + myStruct.change = "changed"; + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/Properties/AssemblyInfo.cs b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..82ffa54 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task3MyClassAndMyStruct")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task3MyClassAndMyStruct")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f241de91-7781-47f1-8428-ca8da5c69e82")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/Task3MyClassAndMyStruct.csproj b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/Task3MyClassAndMyStruct.csproj new file mode 100644 index 0000000..d4c2c77 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/Task3MyClassAndMyStruct.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {96B81E91-FFB9-40F4-83C7-2766FABC4193} + Exe + Properties + Task3MyClassAndMyStruct + Task3MyClassAndMyStruct + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.exe b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.exe new file mode 100644 index 0000000..bdeb84a Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.exe differ diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.exe.config b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.pdb b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.pdb new file mode 100644 index 0000000..2529e76 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.vshost.exe b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.vshost.exe differ diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.vshost.exe.config b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.vshost.exe.manifest b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/bin/Debug/Task3MyClassAndMyStruct.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..73887d5 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/Task3MyClassAndMyStruct.csproj.FileListAbsolute.txt b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/Task3MyClassAndMyStruct.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e98692a --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/Task3MyClassAndMyStruct.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task3MyClassAndMyStruct\bin\Debug\Task3MyClassAndMyStruct.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task3MyClassAndMyStruct\bin\Debug\Task3MyClassAndMyStruct.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task3MyClassAndMyStruct\bin\Debug\Task3MyClassAndMyStruct.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task3MyClassAndMyStruct\obj\Debug\Task3MyClassAndMyStruct.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task3MyClassAndMyStruct\obj\Debug\Task3MyClassAndMyStruct.pdb diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/Task3MyClassAndMyStruct.exe b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/Task3MyClassAndMyStruct.exe new file mode 100644 index 0000000..bdeb84a Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/Task3MyClassAndMyStruct.exe differ diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/Task3MyClassAndMyStruct.pdb b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/Task3MyClassAndMyStruct.pdb new file mode 100644 index 0000000..2529e76 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/Task3MyClassAndMyStruct.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/6Structures/Task3MyClassAndMyStruct/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/App.config b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/CounterDaysTillBirthday.cs b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/CounterDaysTillBirthday.cs new file mode 100644 index 0000000..a6ede6f --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/CounterDaysTillBirthday.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4CounterDaysTillBirthday +{ + class CounterDaysTillBirthday + { + DateTime birthdayDate; + + public CounterDaysTillBirthday(int monthNumber, int dayNumber) + { + birthdayDate = CreateBirthdayDate(monthNumber, dayNumber); + } + + DateTime CreateBirthdayDate(int monthNumber, int dayNumber) + { + if (monthNumber < DateTime.Today.Month || (monthNumber == DateTime.Today.Month && dayNumber < DateTime.Today.Day)) + { + return new DateTime(DateTime.Today.Year + 1, monthNumber, dayNumber); + } + else + { + return new DateTime(DateTime.Today.Year, monthNumber, dayNumber); + } + } + + + public int CalculateQuantityDaysTillBirthday() + { + return (birthdayDate - DateTime.Today).Days; + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/Program.cs b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/Program.cs new file mode 100644 index 0000000..f66efdd --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4CounterDaysTillBirthday +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Enter your birthday's number of month: "); + int monthNumber = Convert.ToInt32(Console.ReadLine()); + + Console.Write("Enter our birthday's number of the day: "); + int dayNumber = Convert.ToInt32(Console.ReadLine()); + + CounterDaysTillBirthday daysTillBirthday = new CounterDaysTillBirthday(monthNumber, dayNumber); + + Console.Write("Days till birthday: "); + Console.WriteLine(daysTillBirthday.CalculateQuantityDaysTillBirthday()); + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/Properties/AssemblyInfo.cs b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..83f2aff --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task4CounterDaysTillBirsday")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task4CounterDaysTillBirsday")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("386b3ecb-36c0-41e4-b68d-a67dcac554b0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/Task4CounterDaysTillBirthday.csproj b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/Task4CounterDaysTillBirthday.csproj new file mode 100644 index 0000000..31a2875 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/Task4CounterDaysTillBirthday.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {E1258A0F-ED0F-465E-A1D2-E209463EEEDC} + Exe + Properties + Task4CounterDaysTillBirthday + Task4CounterDaysTillBirsday + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.exe b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.exe new file mode 100644 index 0000000..9a64cff Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.exe differ diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.exe.config b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.pdb b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.pdb new file mode 100644 index 0000000..7413f83 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.vshost.exe b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.vshost.exe differ diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.vshost.exe.config b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.vshost.exe.manifest b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/bin/Debug/Task4CounterDaysTillBirsday.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..8ca7e1a Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirsday.csproj.FileListAbsolute.txt b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirsday.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..ea051b5 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirsday.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\bin\Debug\Task4CounterDaysTillBirsday.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\bin\Debug\Task4CounterDaysTillBirsday.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\bin\Debug\Task4CounterDaysTillBirsday.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\obj\Debug\Task4CounterDaysTillBirsday.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\obj\Debug\Task4CounterDaysTillBirsday.pdb diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirsday.exe b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirsday.exe new file mode 100644 index 0000000..9a64cff Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirsday.exe differ diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirsday.pdb b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirsday.pdb new file mode 100644 index 0000000..7413f83 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirsday.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirthday.csproj.FileListAbsolute.txt b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirthday.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..21987bd --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirthday.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\bin\Debug\Task4CounterDaysTillBirsday.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\bin\Debug\Task4CounterDaysTillBirsday.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\bin\Debug\Task4CounterDaysTillBirsday.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\obj\Debug\Task4CounterDaysTillBirsday.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\obj\Debug\Task4CounterDaysTillBirsday.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task4CounterDaysTillBirsday\obj\Debug\Task4CounterDaysTillBirthday.csprojResolveAssemblyReference.cache diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirthday.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirthday.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/Task4CounterDaysTillBirthday.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/6Structures/Task4CounterDaysTillBirsday/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/App.config b/AlexandrTkachuk/6Structures/Task5ColorPrint/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task5ColorPrint/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/Color.cs b/AlexandrTkachuk/6Structures/Task5ColorPrint/Color.cs new file mode 100644 index 0000000..93817d0 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task5ColorPrint/Color.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5ColorPrint +{ + enum Color: byte + { + Green = 1, + Red, + Blue, + Yellow + } +} diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/ColorPrinter.cs b/AlexandrTkachuk/6Structures/Task5ColorPrint/ColorPrinter.cs new file mode 100644 index 0000000..742e0a0 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task5ColorPrint/ColorPrinter.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5ColorPrint +{ + static class ColorPrinter + { + public static void Print(string line, int color) + { + ChooseLineColor(color); + Console.WriteLine(line); + + Console.ResetColor(); + } + + static void ChooseLineColor(int color) + { + Color colorOfLine = (Color)color; + switch (colorOfLine) + { + case Color.Green: + Console.ForegroundColor = ConsoleColor.Green; + break; + case Color.Red: + Console.ForegroundColor = ConsoleColor.Red; + break; + case Color.Blue: + Console.ForegroundColor = ConsoleColor.Blue; + break; + case Color.Yellow: + Console.ForegroundColor = ConsoleColor.Yellow; + break; + default: + Console.ForegroundColor = ConsoleColor.White; + Console.WriteLine("Wrong color!!!"); + break; + } + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/Program.cs b/AlexandrTkachuk/6Structures/Task5ColorPrint/Program.cs new file mode 100644 index 0000000..a1d5499 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task5ColorPrint/Program.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5ColorPrint +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Enter a line: "); + string enteredLine = Console.ReadLine(); + Console.Write("Choose the line's color (green - 1, red - 2, blue - 3, yellow - 4): "); + int color = Convert.ToInt32(Console.ReadLine()); + ColorPrinter.Print(enteredLine, color); + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/Properties/AssemblyInfo.cs b/AlexandrTkachuk/6Structures/Task5ColorPrint/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..534435e --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task5ColorPrint/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task5ColorPrint")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task5ColorPrint")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9192d9b3-a213-4cf2-a3c6-ccab17cde6ae")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/Task5ColorPrint.csproj b/AlexandrTkachuk/6Structures/Task5ColorPrint/Task5ColorPrint.csproj new file mode 100644 index 0000000..c64e878 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task5ColorPrint/Task5ColorPrint.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {4B5B2507-4EA0-41C1-8431-9D2B9774BC4E} + Exe + Properties + Task5ColorPrint + Task5ColorPrint + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.exe b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.exe new file mode 100644 index 0000000..8525332 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.exe differ diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.exe.config b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.pdb b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.pdb new file mode 100644 index 0000000..b447e74 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.vshost.exe b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.vshost.exe differ diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.vshost.exe.config b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task5ColorPrint/bin/Debug/Task5ColorPrint.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..d810f86 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..4b0c954 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.csproj.FileListAbsolute.txt b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..34d1e81 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task5ColorPrint\bin\Debug\Task5ColorPrint.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task5ColorPrint\bin\Debug\Task5ColorPrint.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task5ColorPrint\bin\Debug\Task5ColorPrint.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task5ColorPrint\obj\Debug\Task5ColorPrint.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task5ColorPrint\obj\Debug\Task5ColorPrint.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task5ColorPrint\obj\Debug\Task5ColorPrint.pdb diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.exe b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.exe new file mode 100644 index 0000000..8525332 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.exe differ diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.pdb b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.pdb new file mode 100644 index 0000000..b447e74 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/Task5ColorPrint.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/6Structures/Task5ColorPrint/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Accountant.cs b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Accountant.cs new file mode 100644 index 0000000..4c156e7 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Accountant.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task6AccountantBonuses +{ + static class Accountant + { + static public bool AskforBonus(Post post, int hours) + { + if (hours > (int)post) + { + return true; + } + else + { + return false; + } + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/App.config b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Post.cs b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Post.cs new file mode 100644 index 0000000..02bb70e --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Post.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task6AccountantBonuses +{ + enum Post: byte + { + Guard = 200, + Programmist = 160, + TeamLeader = 180, + Boss = 1 + } +} diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Program.cs b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Program.cs new file mode 100644 index 0000000..4bf2d4d --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task6AccountantBonuses +{ + class Program + { + static void Main(string[] args) + { + if (Accountant.AskforBonus(Post.Programmist, 170) == true) + { + Console.WriteLine("Take a bonus"); + } + else + { + Console.WriteLine("No bonuses, work harder"); + } + } + } +} diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Properties/AssemblyInfo.cs b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7dbf994 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task6AccountantBonuses")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task6AccountantBonuses")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("05d9e1e0-6c06-42f1-9c8b-0ca719a22d73")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Task6AccountantBonuses.csproj b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Task6AccountantBonuses.csproj new file mode 100644 index 0000000..b624292 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/Task6AccountantBonuses.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {F01E3941-F6EB-4161-8223-058FF0BA0695} + Exe + Properties + Task6AccountantBonuses + Task6AccountantBonuses + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.exe b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.exe new file mode 100644 index 0000000..cd85231 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.exe differ diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.exe.config b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.pdb b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.pdb new file mode 100644 index 0000000..7cbe705 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.vshost.exe b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.vshost.exe differ diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.vshost.exe.config b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.vshost.exe.manifest b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/bin/Debug/Task6AccountantBonuses.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..2b84caf Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.csproj.FileListAbsolute.txt b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..dc71835 --- /dev/null +++ b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task6AccountantBonuses\bin\Debug\Task6AccountantBonuses.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task6AccountantBonuses\bin\Debug\Task6AccountantBonuses.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task6AccountantBonuses\bin\Debug\Task6AccountantBonuses.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task6AccountantBonuses\obj\Debug\Task6AccountantBonuses.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task6AccountantBonuses\obj\Debug\Task6AccountantBonuses.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\6Structures\Task6AccountantBonuses\obj\Debug\Task6AccountantBonuses.pdb diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.exe b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.exe new file mode 100644 index 0000000..cd85231 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.exe differ diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.pdb b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.pdb new file mode 100644 index 0000000..7cbe705 Binary files /dev/null and b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/Task6AccountantBonuses.pdb differ diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/6Structures/Task6AccountantBonuses/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/7.Delegate/7.Delegate.sln b/AlexandrTkachuk/7.Delegate/7.Delegate.sln new file mode 100644 index 0000000..c5d300b --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/7.Delegate.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1AverageValue", "Task1AverageValue\Task1AverageValue.csproj", "{86FDFDB3-CB2E-4E9F-9527-AFA423348CC2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2AddSubMulDiv", "Task2AddSubMulDiv\Task2AddSubMulDiv.csproj", "{746A5F55-D589-4D8C-9C6C-25A983D00C63}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3ArrayOfDelegates", "Task3ArrayOfDelegates\Task3ArrayOfDelegates.csproj", "{816634F2-07F2-4763-897A-2D5D8AFE338E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {86FDFDB3-CB2E-4E9F-9527-AFA423348CC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {86FDFDB3-CB2E-4E9F-9527-AFA423348CC2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {86FDFDB3-CB2E-4E9F-9527-AFA423348CC2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {86FDFDB3-CB2E-4E9F-9527-AFA423348CC2}.Release|Any CPU.Build.0 = Release|Any CPU + {746A5F55-D589-4D8C-9C6C-25A983D00C63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {746A5F55-D589-4D8C-9C6C-25A983D00C63}.Debug|Any CPU.Build.0 = Debug|Any CPU + {746A5F55-D589-4D8C-9C6C-25A983D00C63}.Release|Any CPU.ActiveCfg = Release|Any CPU + {746A5F55-D589-4D8C-9C6C-25A983D00C63}.Release|Any CPU.Build.0 = Release|Any CPU + {816634F2-07F2-4763-897A-2D5D8AFE338E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {816634F2-07F2-4763-897A-2D5D8AFE338E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {816634F2-07F2-4763-897A-2D5D8AFE338E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {816634F2-07F2-4763-897A-2D5D8AFE338E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/7.Delegate/7.Delegate.v12.suo b/AlexandrTkachuk/7.Delegate/7.Delegate.v12.suo new file mode 100644 index 0000000..b567360 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/7.Delegate.v12.suo differ diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/App.config b/AlexandrTkachuk/7.Delegate/Task1AverageValue/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task1AverageValue/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/Program.cs b/AlexandrTkachuk/7.Delegate/Task1AverageValue/Program.cs new file mode 100644 index 0000000..7a7533e --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task1AverageValue/Program.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1AverageValue +{ + delegate double AverageDel(int num1, int num2, int num3); + class Program + { + + static void Main(string[] args) + { + AverageDel averageDel = delegate(int num1, int num2, int num3) + { + return (num1 + num2 + num3) / 3; + }; + + Console.WriteLine("Среднее значение: " + averageDel(12, 8, 4)); + } + + } +} diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/Properties/AssemblyInfo.cs b/AlexandrTkachuk/7.Delegate/Task1AverageValue/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0030ef3 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task1AverageValue/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1AverageValue")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1AverageValue")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3246f18e-432b-4fce-ac92-a694e3e23c3e")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/Task1AverageValue.csproj b/AlexandrTkachuk/7.Delegate/Task1AverageValue/Task1AverageValue.csproj new file mode 100644 index 0000000..1337e7e --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task1AverageValue/Task1AverageValue.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {86FDFDB3-CB2E-4E9F-9527-AFA423348CC2} + Exe + Properties + Task1AverageValue + Task1AverageValue + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.exe b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.exe new file mode 100644 index 0000000..6c3fbc6 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.exe differ diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.exe.config b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.pdb b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.pdb new file mode 100644 index 0000000..4ef70cd Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.pdb differ diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.vshost.exe b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.vshost.exe differ diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.vshost.exe.config b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.vshost.exe.manifest b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task1AverageValue/bin/Debug/Task1AverageValue.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..507111f Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.csproj.FileListAbsolute.txt b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..66ddde1 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task1AverageValue\bin\Debug\Task1AverageValue.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task1AverageValue\obj\Debug\Task1AverageValue.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task1AverageValue\bin\Debug\Task1AverageValue.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task1AverageValue\bin\Debug\Task1AverageValue.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task1AverageValue\obj\Debug\Task1AverageValue.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task1AverageValue\obj\Debug\Task1AverageValue.pdb diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.exe b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.exe new file mode 100644 index 0000000..6c3fbc6 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.exe differ diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.pdb b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.pdb new file mode 100644 index 0000000..4ef70cd Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/Task1AverageValue.pdb differ diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/7.Delegate/Task1AverageValue/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/App.config b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/Program.cs b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/Program.cs new file mode 100644 index 0000000..f578d34 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/Program.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2AddSubMulDiv +{ + delegate double CalculatorDel(int num1, int num2); + class Program + { + static void Main(string[] args) + { + Console.Write("Enter first number: "); + int num1 = Convert.ToInt32(Console.ReadLine()); + Console.Write("Enter sign of operation: "); + char operationSign = Convert.ToChar(Console.ReadLine()); + Console.Write("Enter second number: "); + int num2 = Convert.ToInt32(Console.ReadLine()); + double result = CalculateResult(num1, num2, operationSign); + Console.WriteLine("{0} {1} {2} = {3}", num1, operationSign, num2, result); + } + + static double CalculateResult(int num1, int num2, char operationSign) + { + double result; + switch (operationSign) + { + case '+': + result = Add(num1, num2); + break; + case '-': + result = Sub(num1, num2); + break; + case '*': + result = Mul(num1, num2); + break; + case '/': + result = Div(num1, num2); + break; + default: + Console.WriteLine("Error! You chose wrong sign"); + result = 0; + break; + } + return result; + } + + static CalculatorDel Add = (num1, num2) => { return num1 + num2; }; + + static CalculatorDel Sub = (num1, num2) => { return num1 - num2; }; + + static CalculatorDel Mul = (num1, num2) => { return num1 * num2; }; + + static CalculatorDel Div = (num1, num2) => + { + if (num2 != 0) + { + return (double)num1 / num2; + } + else + { + Console.WriteLine("Division by zero is not allowed"); + return 0; + }; + }; + + } +} diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/Properties/AssemblyInfo.cs b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d360386 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2AddSubMulDiv")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2AddSubMulDiv")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("545b93c4-fa0b-41a5-bcc0-b9e4609a9308")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/Task2AddSubMulDiv.csproj b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/Task2AddSubMulDiv.csproj new file mode 100644 index 0000000..0868cf7 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/Task2AddSubMulDiv.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {746A5F55-D589-4D8C-9C6C-25A983D00C63} + Exe + Properties + Task2AddSubMulDiv + Task2AddSubMulDiv + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.exe b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.exe new file mode 100644 index 0000000..18bb83e Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.exe differ diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.exe.config b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.pdb b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.pdb new file mode 100644 index 0000000..34df404 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.pdb differ diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.vshost.exe b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.vshost.exe differ diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.vshost.exe.config b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.vshost.exe.manifest b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/bin/Debug/Task2AddSubMulDiv.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..d5acbe8 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/Task2AddSubMulDiv.csproj.FileListAbsolute.txt b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/Task2AddSubMulDiv.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..86d8c72 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/Task2AddSubMulDiv.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task2AddSubMulDiv\bin\Debug\Task2AddSubMulDiv.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task2AddSubMulDiv\bin\Debug\Task2AddSubMulDiv.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task2AddSubMulDiv\bin\Debug\Task2AddSubMulDiv.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task2AddSubMulDiv\obj\Debug\Task2AddSubMulDiv.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task2AddSubMulDiv\obj\Debug\Task2AddSubMulDiv.pdb diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/Task2AddSubMulDiv.exe b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/Task2AddSubMulDiv.exe new file mode 100644 index 0000000..18bb83e Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/Task2AddSubMulDiv.exe differ diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/Task2AddSubMulDiv.pdb b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/Task2AddSubMulDiv.pdb new file mode 100644 index 0000000..34df404 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/Task2AddSubMulDiv.pdb differ diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/7.Delegate/Task2AddSubMulDiv/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/App.config b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/Program.cs b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/Program.cs new file mode 100644 index 0000000..1774f4f --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/Program.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3ArrayOfDelegates +{ + + class Program + { + delegate int RandomDelegate(); + delegate int AverageDelegate(RandomDelegate[] delegates); + + static Random randomValue = new Random(); + + static void Main(string[] args) + { + RandomDelegate randomDelegate1 = () => { return randomValue.Next(1,200); }; + RandomDelegate randomDelegate2 = () => { return randomValue.Next(1, 200); }; + RandomDelegate randomDelegate3 = () => { return randomValue.Next(1, 200); }; + + RandomDelegate[] delegates = { randomDelegate1, randomDelegate2, randomDelegate3 }; + + Console.WriteLine("Average value: "+ CalculateAverageValue(delegates)); + } + + static AverageDelegate CalculateAverageValue = delegate(RandomDelegate[] delegates) + { + int result = 0; + foreach (RandomDelegate rd in delegates) + { + result += rd(); + } + return result/delegates.Length; + }; + } +} diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/Properties/AssemblyInfo.cs b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5c52463 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task3ArrayOfDelegates")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task3ArrayOfDelegates")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("74d39afc-8388-4181-99e7-a052e21b2fbb")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/Task3ArrayOfDelegates.csproj b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/Task3ArrayOfDelegates.csproj new file mode 100644 index 0000000..4e8695b --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/Task3ArrayOfDelegates.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {816634F2-07F2-4763-897A-2D5D8AFE338E} + Exe + Properties + Task3ArrayOfDelegates + Task3ArrayOfDelegates + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.exe b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.exe new file mode 100644 index 0000000..9820154 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.exe differ diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.exe.config b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.pdb b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.pdb new file mode 100644 index 0000000..7de1f09 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.pdb differ diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.vshost.exe b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.vshost.exe differ diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.vshost.exe.config b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.vshost.exe.manifest b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/bin/Debug/Task3ArrayOfDelegates.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..f2609f1 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.csproj.FileListAbsolute.txt b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..6a79247 --- /dev/null +++ b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task3ArrayOfDelegates\bin\Debug\Task3ArrayOfDelegates.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task3ArrayOfDelegates\obj\Debug\Task3ArrayOfDelegates.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task3ArrayOfDelegates\bin\Debug\Task3ArrayOfDelegates.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task3ArrayOfDelegates\bin\Debug\Task3ArrayOfDelegates.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task3ArrayOfDelegates\obj\Debug\Task3ArrayOfDelegates.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\7.Delegate\Task3ArrayOfDelegates\obj\Debug\Task3ArrayOfDelegates.pdb diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.exe b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.exe new file mode 100644 index 0000000..9820154 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.exe differ diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.pdb b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.pdb new file mode 100644 index 0000000..7de1f09 Binary files /dev/null and b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/Task3ArrayOfDelegates.pdb differ diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/7.Delegate/Task3ArrayOfDelegates/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/8.Generics.sln b/AlexandrTkachuk/8.Generics/8.Generics.sln new file mode 100644 index 0000000..03257c6 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/8.Generics.sln @@ -0,0 +1,52 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1Factory", "Task1Factory\Task1Factory.csproj", "{51C3018B-67AC-491C-9A2A-C0A9590AEFDA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2MyList", "Task2MyList\Task2MyList.csproj", "{87CA485D-4B9E-452F-93BE-D04A2E1158C2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3MyDictionary", "Task3MyDictionary\Task3MyDictionary.csproj", "{998862DD-CD37-4911-9A7A-4AEB67BAFBF1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task4MyListExtension", "Task4MyListExtension\Task4MyListExtension.csproj", "{55EB0E42-419F-436A-A04B-9E9D95ABB118}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task5CarCollection", "Task5CarCollection\Task5CarCollection.csproj", "{6CBDD276-A907-4950-987A-3092B9929B68}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task7ArrayList", "Task7ArrayList\Task7ArrayList.csproj", "{025AD373-EA3C-4C53-85B5-CF05A24AD652}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {51C3018B-67AC-491C-9A2A-C0A9590AEFDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {51C3018B-67AC-491C-9A2A-C0A9590AEFDA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {51C3018B-67AC-491C-9A2A-C0A9590AEFDA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {51C3018B-67AC-491C-9A2A-C0A9590AEFDA}.Release|Any CPU.Build.0 = Release|Any CPU + {87CA485D-4B9E-452F-93BE-D04A2E1158C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {87CA485D-4B9E-452F-93BE-D04A2E1158C2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {87CA485D-4B9E-452F-93BE-D04A2E1158C2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {87CA485D-4B9E-452F-93BE-D04A2E1158C2}.Release|Any CPU.Build.0 = Release|Any CPU + {998862DD-CD37-4911-9A7A-4AEB67BAFBF1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {998862DD-CD37-4911-9A7A-4AEB67BAFBF1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {998862DD-CD37-4911-9A7A-4AEB67BAFBF1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {998862DD-CD37-4911-9A7A-4AEB67BAFBF1}.Release|Any CPU.Build.0 = Release|Any CPU + {55EB0E42-419F-436A-A04B-9E9D95ABB118}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55EB0E42-419F-436A-A04B-9E9D95ABB118}.Debug|Any CPU.Build.0 = Debug|Any CPU + {55EB0E42-419F-436A-A04B-9E9D95ABB118}.Release|Any CPU.ActiveCfg = Release|Any CPU + {55EB0E42-419F-436A-A04B-9E9D95ABB118}.Release|Any CPU.Build.0 = Release|Any CPU + {6CBDD276-A907-4950-987A-3092B9929B68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6CBDD276-A907-4950-987A-3092B9929B68}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6CBDD276-A907-4950-987A-3092B9929B68}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6CBDD276-A907-4950-987A-3092B9929B68}.Release|Any CPU.Build.0 = Release|Any CPU + {025AD373-EA3C-4C53-85B5-CF05A24AD652}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {025AD373-EA3C-4C53-85B5-CF05A24AD652}.Debug|Any CPU.Build.0 = Debug|Any CPU + {025AD373-EA3C-4C53-85B5-CF05A24AD652}.Release|Any CPU.ActiveCfg = Release|Any CPU + {025AD373-EA3C-4C53-85B5-CF05A24AD652}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/8.Generics/8.Generics.v12.suo b/AlexandrTkachuk/8.Generics/8.Generics.v12.suo new file mode 100644 index 0000000..d6f8cef Binary files /dev/null and b/AlexandrTkachuk/8.Generics/8.Generics.v12.suo differ diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/App.config b/AlexandrTkachuk/8.Generics/Task1Factory/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task1Factory/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/Program.cs b/AlexandrTkachuk/8.Generics/Task1Factory/Program.cs new file mode 100644 index 0000000..fa0a856 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task1Factory/Program.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Factory +{ + class Program + { + static void Main(string[] args) + { + + int i1 = MyClass.FactoryMethod(); + char ch = MyClass.FactoryMethod(); + DateTime dt = MyClass.FactoryMethod(); + } + + class MyClass where T: new() + { + public static T FactoryMethod() + { + return new T(); + } + } + } +} diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/Properties/AssemblyInfo.cs b/AlexandrTkachuk/8.Generics/Task1Factory/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..eee7b57 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task1Factory/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1Factory")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1Factory")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("6472ebe2-5127-4a1a-85f7-d2c010a64c2c")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/Task1Factory.csproj b/AlexandrTkachuk/8.Generics/Task1Factory/Task1Factory.csproj new file mode 100644 index 0000000..45f27b8 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task1Factory/Task1Factory.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {51C3018B-67AC-491C-9A2A-C0A9590AEFDA} + Exe + Properties + Task1Factory + Task1Factory + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.exe b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.exe new file mode 100644 index 0000000..1cef6fe Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.exe.config b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.pdb b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.pdb new file mode 100644 index 0000000..879f50e Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.vshost.exe b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.vshost.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.vshost.exe.config b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.vshost.exe.manifest b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task1Factory/bin/Debug/Task1Factory.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..2110120 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.csproj.FileListAbsolute.txt b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..eb77bb5 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task1Factory\bin\Debug\Task1Factory.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task1Factory\bin\Debug\Task1Factory.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task1Factory\bin\Debug\Task1Factory.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task1Factory\obj\Debug\Task1Factory.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task1Factory\obj\Debug\Task1Factory.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task1Factory\obj\Debug\Task1Factory.pdb diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.exe b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.exe new file mode 100644 index 0000000..1cef6fe Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.pdb b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.pdb new file mode 100644 index 0000000..879f50e Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/Task1Factory.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/8.Generics/Task1Factory/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/App.config b/AlexandrTkachuk/8.Generics/Task2MyList/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task2MyList/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/MyList.cs b/AlexandrTkachuk/8.Generics/Task2MyList/MyList.cs new file mode 100644 index 0000000..733bea5 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task2MyList/MyList.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2MyList +{ + class MyList + { + int count; + T[] items; + + public int Count + { + get { return count; } + } + + public MyList() + { + items = new T[0]; + count = 0; + } + public MyList(int size) + { + + count = size; + items = new T[count]; + for (int i = 0; i < size-1; i++) + { + items[i] = default(T); + } + } + + public void Add(T enteredItem) + { + T[] temporaryArray = new T[count + 1]; + for (int i = 0; i < count; i++) + { + temporaryArray[i] = items[i]; + } + temporaryArray[count] = enteredItem; + items = temporaryArray; + count++; + } + + public T this[int index] + { + get + { + return items[index]; + } + } + } +} diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/Program.cs b/AlexandrTkachuk/8.Generics/Task2MyList/Program.cs new file mode 100644 index 0000000..556c21d --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task2MyList/Program.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2MyList +{ + class Program + { + static void Main(string[] args) + { + MyList intList = new MyList(); + intList.Add(6); + intList.Add(7); + intList.Add(8); + for (int i = 0; i < intList.Count; i++) + { + Console.WriteLine("{0} элемент: {1}", i, intList[i]); + } + + Console.WriteLine(); + + MyList stringList = new MyList(); + stringList.Add("First"); + stringList.Add("Second"); + stringList.Add("Third"); + for (int i = 0; i < stringList.Count; i++) + { + Console.WriteLine("{0} элемент: {1}", i, stringList[i]); + } + } + } +} diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/Properties/AssemblyInfo.cs b/AlexandrTkachuk/8.Generics/Task2MyList/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9fd5a31 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task2MyList/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2MyList")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2MyList")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("0f4cb85d-5bd2-4218-922f-f92026193449")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/Task2MyList.csproj b/AlexandrTkachuk/8.Generics/Task2MyList/Task2MyList.csproj new file mode 100644 index 0000000..843ab4b --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task2MyList/Task2MyList.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {87CA485D-4B9E-452F-93BE-D04A2E1158C2} + Exe + Properties + Task2MyList + Task2MyList + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.exe b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.exe new file mode 100644 index 0000000..ae7e2c5 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.exe.config b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.pdb b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.pdb new file mode 100644 index 0000000..56c9fc6 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.vshost.exe b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.vshost.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.vshost.exe.config b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.vshost.exe.manifest b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task2MyList/bin/Debug/Task2MyList.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..2020c77 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.csproj.FileListAbsolute.txt b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..292a22c --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task2MyList\bin\Debug\Task2MyList.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task2MyList\bin\Debug\Task2MyList.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task2MyList\bin\Debug\Task2MyList.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task2MyList\obj\Debug\Task2MyList.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task2MyList\obj\Debug\Task2MyList.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task2MyList\obj\Debug\Task2MyList.pdb diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.exe b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.exe new file mode 100644 index 0000000..ae7e2c5 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.pdb b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.pdb new file mode 100644 index 0000000..56c9fc6 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/Task2MyList.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/8.Generics/Task2MyList/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/App.config b/AlexandrTkachuk/8.Generics/Task3MyDictionary/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task3MyDictionary/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/MyDictionary.cs b/AlexandrTkachuk/8.Generics/Task3MyDictionary/MyDictionary.cs new file mode 100644 index 0000000..a12e7dd --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task3MyDictionary/MyDictionary.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3MyDictionary +{ + class MyDictionary + { + int count; + TKey[] keys; + TValue[] values; + + + public int Count + { + get { return count; } + } + public MyDictionary() + { + keys = new TKey[0]; + values = new TValue[0]; + count = 0; + } + + public void Add(TKey enteredKey, TValue enteredValue) + { + TKey[] temporaryKeys = new TKey[count + 1]; + TValue[] temporaryValues = new TValue[count + 1]; + for (int i = 0; i < count; i++) + { + temporaryKeys[i] = keys[i]; + temporaryValues[i] = values[i]; + } + temporaryKeys[count] = enteredKey; + temporaryValues[count] = enteredValue; + keys = temporaryKeys; + values = temporaryValues; + count++; + } + + public TValue this[TKey index] + { + get + { + return FindValueByKey(index); + } + } + + TValue FindValueByKey(TKey index) + { + for (int i = 0; i < count; i++) + { + if(keys[i].Equals(index)) + { + return values[i]; + } + } + return default(TValue); + } + + + } +} diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/Program.cs b/AlexandrTkachuk/8.Generics/Task3MyDictionary/Program.cs new file mode 100644 index 0000000..557ee62 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task3MyDictionary/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3MyDictionary +{ + class Program + { + static void Main(string[] args) + { + MyDictionary cities = new MyDictionary(); + cities.Add(2,"Barcelona"); + cities.Add(5, "London"); + cities.Add(7, "Paris"); + + Console.WriteLine(cities[7]); + } + } +} diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/Properties/AssemblyInfo.cs b/AlexandrTkachuk/8.Generics/Task3MyDictionary/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0b8cd29 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task3MyDictionary/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task3MyDictionary")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task3MyDictionary")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("6deab28c-c0db-49e2-94d3-f0a3fe1a8419")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/Task3MyDictionary.csproj b/AlexandrTkachuk/8.Generics/Task3MyDictionary/Task3MyDictionary.csproj new file mode 100644 index 0000000..99cb826 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task3MyDictionary/Task3MyDictionary.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {998862DD-CD37-4911-9A7A-4AEB67BAFBF1} + Exe + Properties + Task3MyDictionary + Task3MyDictionary + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe new file mode 100644 index 0000000..993daa5 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe.config b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.pdb b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.pdb new file mode 100644 index 0000000..5e2f782 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.config b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.manifest b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..cd75027 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.csproj.FileListAbsolute.txt b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e0c92a8 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task3MyDictionary\bin\Debug\Task3MyDictionary.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task3MyDictionary\bin\Debug\Task3MyDictionary.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task3MyDictionary\bin\Debug\Task3MyDictionary.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task3MyDictionary\obj\Debug\Task3MyDictionary.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task3MyDictionary\obj\Debug\Task3MyDictionary.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task3MyDictionary\obj\Debug\Task3MyDictionary.pdb diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.exe b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.exe new file mode 100644 index 0000000..993daa5 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.pdb b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.pdb new file mode 100644 index 0000000..5e2f782 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/Task3MyDictionary.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/8.Generics/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/App.config b/AlexandrTkachuk/8.Generics/Task4MyListExtension/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task4MyListExtension/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/MyList.cs b/AlexandrTkachuk/8.Generics/Task4MyListExtension/MyList.cs new file mode 100644 index 0000000..623427e --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task4MyListExtension/MyList.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4MyListExtension +{ + class MyList + { + int count; + T[] items; + + public int Count + { + get { return count; } + } + + public MyList() + { + items = new T[0]; + count = 0; + } + public MyList(int size) + { + + count = size; + items = new T[count]; + for (int i = 0; i < size - 1; i++) + { + items[i] = default(T); + } + } + + public void Add(T enteredItem) + { + T[] temporaryArray = new T[count + 1]; + for (int i = 0; i < count; i++) + { + temporaryArray[i] = items[i]; + } + temporaryArray[count] = enteredItem; + items = temporaryArray; + count++; + } + + public T this[int index] + { + get + { + return items[index]; + } + } + } +} diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/MyListExtension.cs b/AlexandrTkachuk/8.Generics/Task4MyListExtension/MyListExtension.cs new file mode 100644 index 0000000..2c040a2 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task4MyListExtension/MyListExtension.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4MyListExtension +{ + static class MyListExtension + { + public static T[] GetArray(this MyList list) + { + T[] result = new T[list.Count]; + for (int i = 0; i < list.Count; i++) + { + result[i] = list[i]; + } + return result; + } + } +} diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/Program.cs b/AlexandrTkachuk/8.Generics/Task4MyListExtension/Program.cs new file mode 100644 index 0000000..4181b44 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task4MyListExtension/Program.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4MyListExtension +{ + class Program + { + static void Main(string[] args) + { + MyList countries = new MyList(); + countries.Add("Ukraine"); + countries.Add("Poland"); + countries.Add("Spain"); + countries.Add("Mexico"); + + string [] result = countries.GetArray(); + for (int i = 0; i + + + + Debug + AnyCPU + {55EB0E42-419F-436A-A04B-9E9D95ABB118} + Exe + Properties + Task4MyListExtension + Task4MyListExtension + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.exe b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.exe new file mode 100644 index 0000000..e8f2a88 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.exe.config b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.pdb b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.pdb new file mode 100644 index 0000000..a1ec369 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.vshost.exe b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.vshost.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.vshost.exe.config b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.vshost.exe.manifest b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task4MyListExtension/bin/Debug/Task4MyListExtension.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3bace75 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.csproj.FileListAbsolute.txt b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..943cafa --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task4MyListExtension\bin\Debug\Task4MyListExtension.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task4MyListExtension\bin\Debug\Task4MyListExtension.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task4MyListExtension\bin\Debug\Task4MyListExtension.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task4MyListExtension\obj\Debug\Task4MyListExtension.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task4MyListExtension\obj\Debug\Task4MyListExtension.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task4MyListExtension\obj\Debug\Task4MyListExtension.csprojResolveAssemblyReference.cache diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.exe b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.exe new file mode 100644 index 0000000..e8f2a88 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.pdb b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.pdb new file mode 100644 index 0000000..a1ec369 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/Task4MyListExtension.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/8.Generics/Task4MyListExtension/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/App.config b/AlexandrTkachuk/8.Generics/Task5CarCollection/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/Car.cs b/AlexandrTkachuk/8.Generics/Task5CarCollection/Car.cs new file mode 100644 index 0000000..fcdb0c0 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/Car.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5CarCollection +{ + class Car + { + string name; + int yearOfCreating; + + public string Name + { + get { return name; } + } + + public int YearOfCreating + { + get { return yearOfCreating; } + } + + public Car(string name, int yearOfCreating) + { + this.name = name; + this.yearOfCreating = yearOfCreating; + } + + } +} diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/CarCollection.cs b/AlexandrTkachuk/8.Generics/Task5CarCollection/CarCollection.cs new file mode 100644 index 0000000..b7bdbcf --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/CarCollection.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5CarCollection +{ + class CarCollection + { + List cars; + int count; + + public int Count + { + get { return count; } + } + + public CarCollection() + { + cars = new List(); + count = cars.Count; + } + + public void Add(T car) + { + cars.Add(car); + count++; + } + + public void Clear() + { + cars.Clear(); + count = 0; + } + + public T this[int index] + { + get { return cars[index]; } + } + + } +} diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/Program.cs b/AlexandrTkachuk/8.Generics/Task5CarCollection/Program.cs new file mode 100644 index 0000000..3d231f5 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/Program.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task5CarCollection +{ + class Program + { + static void Main(string[] args) + { + CarCollection AutoPark = new CarCollection(); + AutoPark.Add(new Car("Toyota Corolla",2010)); + AutoPark.Add(new Car("Mazda 3", 2011)); + AutoPark.Add(new Car("Toyota RAV4", 2012)); + + for (int i = 0; i < AutoPark.Count; i++) + { + Console.WriteLine("{0} {1}",AutoPark[i].Name, AutoPark[i].YearOfCreating); + } + + AutoPark.Clear(); + } + } +} diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/Properties/AssemblyInfo.cs b/AlexandrTkachuk/8.Generics/Task5CarCollection/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5fcddb0 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task5CarCollection")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task5CarCollection")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ea51f007-6cb8-4153-8ed4-baffc9918156")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/Task5CarCollection.csproj b/AlexandrTkachuk/8.Generics/Task5CarCollection/Task5CarCollection.csproj new file mode 100644 index 0000000..4db266f --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/Task5CarCollection.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {6CBDD276-A907-4950-987A-3092B9929B68} + Exe + Properties + Task5CarCollection + Task5CarCollection + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.exe b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.exe new file mode 100644 index 0000000..d897716 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.exe.config b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.pdb b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.pdb new file mode 100644 index 0000000..c038364 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.vshost.exe b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.vshost.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.vshost.exe.config b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.vshost.exe.manifest b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/bin/Debug/Task5CarCollection.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..cb37d7c Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.csproj.FileListAbsolute.txt b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..b071ea8 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task5CarCollection\bin\Debug\Task5CarCollection.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task5CarCollection\bin\Debug\Task5CarCollection.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task5CarCollection\bin\Debug\Task5CarCollection.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task5CarCollection\obj\Debug\Task5CarCollection.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task5CarCollection\obj\Debug\Task5CarCollection.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task5CarCollection\obj\Debug\Task5CarCollection.pdb diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.exe b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.exe new file mode 100644 index 0000000..d897716 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.pdb b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.pdb new file mode 100644 index 0000000..c038364 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/Task5CarCollection.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/8.Generics/Task5CarCollection/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/App.config b/AlexandrTkachuk/8.Generics/Task7ArrayList/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task7ArrayList/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/ArrayList.cs b/AlexandrTkachuk/8.Generics/Task7ArrayList/ArrayList.cs new file mode 100644 index 0000000..06d874e --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task7ArrayList/ArrayList.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task7ArrayList +{ + class ArrayList + { + object[] values; + int count; + + public int Count + { + get { return count; } + } + + public ArrayList() + { + values = new object[0]; + count = 0; + } + + public ArrayList(int count) + { + values = new object[count]; + this.count = count; + } + + public object this[int index] + { + get { return values[index]; } + set { values[index] = value; } + } + + + public void Add(object AddedValue) + { + object [] temoraryArray = new object[count+1]; + for (int i = 0; i < count; i++) + { + temoraryArray[i] = values[i]; + } + temoraryArray[count] = AddedValue; + values = temoraryArray; + count++; + } + + } +} diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/Program.cs b/AlexandrTkachuk/8.Generics/Task7ArrayList/Program.cs new file mode 100644 index 0000000..117b217 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task7ArrayList/Program.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task7ArrayList +{ + class Program + { + static void Main(string[] args) + { + ArrayList myList = new ArrayList(); + myList.Add(12); + myList.Add("Text"); + myList.Add('!'); + + for (int i = 0; i < myList.Count; i++) + { + Console.WriteLine(myList[i]); + } + } + } +} diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/Properties/AssemblyInfo.cs b/AlexandrTkachuk/8.Generics/Task7ArrayList/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..56ff254 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task7ArrayList/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task7ArrayList")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task7ArrayList")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("277740dd-1818-4e5e-9886-bbc096b6e418")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/Task7ArrayList.csproj b/AlexandrTkachuk/8.Generics/Task7ArrayList/Task7ArrayList.csproj new file mode 100644 index 0000000..f378cc9 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task7ArrayList/Task7ArrayList.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {025AD373-EA3C-4C53-85B5-CF05A24AD652} + Exe + Properties + Task7ArrayList + Task7ArrayList + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.exe b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.exe new file mode 100644 index 0000000..63c9088 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.exe.config b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.pdb b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.pdb new file mode 100644 index 0000000..73563fb Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.vshost.exe b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.vshost.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.vshost.exe.config b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.vshost.exe.manifest b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task7ArrayList/bin/Debug/Task7ArrayList.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..8851ed4 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/Task7ArrayList.csproj.FileListAbsolute.txt b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/Task7ArrayList.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e99f912 --- /dev/null +++ b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/Task7ArrayList.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task7ArrayList\bin\Debug\Task7ArrayList.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task7ArrayList\bin\Debug\Task7ArrayList.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task7ArrayList\bin\Debug\Task7ArrayList.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task7ArrayList\obj\Debug\Task7ArrayList.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\8.Generics\Task7ArrayList\obj\Debug\Task7ArrayList.pdb diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/Task7ArrayList.exe b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/Task7ArrayList.exe new file mode 100644 index 0000000..63c9088 Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/Task7ArrayList.exe differ diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/Task7ArrayList.pdb b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/Task7ArrayList.pdb new file mode 100644 index 0000000..73563fb Binary files /dev/null and b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/Task7ArrayList.pdb differ diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/8.Generics/Task7ArrayList/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/9.Collections.sln b/AlexandrTkachuk/9.Collections/9.Collections.sln new file mode 100644 index 0000000..f1ce6d9 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/9.Collections.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task1Yield", "Task1Yield\Task1Yield.csproj", "{4366A179-425A-4A86-A2C3-F7B5AE52D97A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task2MyList", "Task2MyList\Task2MyList.csproj", "{12989274-3F3D-4540-9369-BAB27D5E2ED7}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task3MyDictionary", "Task3MyDictionary\Task3MyDictionary.csproj", "{BA6E1BD6-2164-442A-AA5C-D2D5E04C94A7}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Task4GetArray", "Task4GetArray\Task4GetArray.csproj", "{09A19C99-F9AA-4008-A09C-85F78B25C4DE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4366A179-425A-4A86-A2C3-F7B5AE52D97A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4366A179-425A-4A86-A2C3-F7B5AE52D97A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4366A179-425A-4A86-A2C3-F7B5AE52D97A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4366A179-425A-4A86-A2C3-F7B5AE52D97A}.Release|Any CPU.Build.0 = Release|Any CPU + {12989274-3F3D-4540-9369-BAB27D5E2ED7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {12989274-3F3D-4540-9369-BAB27D5E2ED7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {12989274-3F3D-4540-9369-BAB27D5E2ED7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {12989274-3F3D-4540-9369-BAB27D5E2ED7}.Release|Any CPU.Build.0 = Release|Any CPU + {BA6E1BD6-2164-442A-AA5C-D2D5E04C94A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BA6E1BD6-2164-442A-AA5C-D2D5E04C94A7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BA6E1BD6-2164-442A-AA5C-D2D5E04C94A7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BA6E1BD6-2164-442A-AA5C-D2D5E04C94A7}.Release|Any CPU.Build.0 = Release|Any CPU + {09A19C99-F9AA-4008-A09C-85F78B25C4DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {09A19C99-F9AA-4008-A09C-85F78B25C4DE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {09A19C99-F9AA-4008-A09C-85F78B25C4DE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {09A19C99-F9AA-4008-A09C-85F78B25C4DE}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/AlexandrTkachuk/9.Collections/9.Collections.v12.suo b/AlexandrTkachuk/9.Collections/9.Collections.v12.suo new file mode 100644 index 0000000..507dc27 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/9.Collections.v12.suo differ diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/App.config b/AlexandrTkachuk/9.Collections/Task1Yield/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task1Yield/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/MyClass.cs b/AlexandrTkachuk/9.Collections/Task1Yield/MyClass.cs new file mode 100644 index 0000000..dea1510 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task1Yield/MyClass.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Yield +{ + class MyClass + { + + public IEnumerable GetEvenNumbers(int[] numbers) + { + foreach (int num in numbers) + { + if (num % 2 == 0) + { + yield return num; + } + } + } + + } +} diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/Program.cs b/AlexandrTkachuk/9.Collections/Task1Yield/Program.cs new file mode 100644 index 0000000..a7cec07 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task1Yield/Program.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task1Yield +{ + class Program + { + static void Main(string[] args) + { + MyClass myClass = new MyClass(); + foreach (int num in myClass.GetEvenNumbers(new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 })) + { + Console.WriteLine(num); + } + } + } +} diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/Properties/AssemblyInfo.cs b/AlexandrTkachuk/9.Collections/Task1Yield/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..a7b69c9 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task1Yield/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task1Yield")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task1Yield")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("7b0458ee-b1cc-4063-b682-dc056f509ca2")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/Task1Yield.csproj b/AlexandrTkachuk/9.Collections/Task1Yield/Task1Yield.csproj new file mode 100644 index 0000000..58e2fb3 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task1Yield/Task1Yield.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {4366A179-425A-4A86-A2C3-F7B5AE52D97A} + Exe + Properties + Task1Yield + Task1Yield + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.exe b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.exe new file mode 100644 index 0000000..a526b69 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.exe.config b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.pdb b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.pdb new file mode 100644 index 0000000..e7a708b Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.pdb differ diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.vshost.exe b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.vshost.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.vshost.exe.config b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.vshost.exe.manifest b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task1Yield/bin/Debug/Task1Yield.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..9a9e930 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.csproj.FileListAbsolute.txt b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..7ae6caa --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task1Yield\bin\Debug\Task1Yield.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task1Yield\bin\Debug\Task1Yield.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task1Yield\bin\Debug\Task1Yield.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task1Yield\obj\Debug\Task1Yield.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task1Yield\obj\Debug\Task1Yield.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task1Yield\obj\Debug\Task1Yield.pdb diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.exe b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.exe new file mode 100644 index 0000000..a526b69 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.pdb b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.pdb new file mode 100644 index 0000000..e7a708b Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/Task1Yield.pdb differ diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/9.Collections/Task1Yield/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/App.config b/AlexandrTkachuk/9.Collections/Task2MyList/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task2MyList/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/MyList.cs b/AlexandrTkachuk/9.Collections/Task2MyList/MyList.cs new file mode 100644 index 0000000..00bcbf3 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task2MyList/MyList.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2MyList +{ + class MyList + { + int count; + T[] items; + + public int Count + { + get { return count; } + } + + public MyList() + { + items = new T[0]; + count = 0; + } + public MyList(int size) + { + + count = size; + items = new T[count]; + for (int i = 0; i < size - 1; i++) + { + items[i] = default(T); + } + } + + public void Add(T enteredItem) + { + T[] temporaryArray = new T[count + 1]; + for (int i = 0; i < count; i++) + { + temporaryArray[i] = items[i]; + } + temporaryArray[count] = enteredItem; + items = temporaryArray; + count++; + } + + public T this[int index] + { + get + { + return items[index]; + } + } + + public IEnumerator GetEnumerator() + { + foreach (T temp in items) + { + yield return temp; + } + } + } + +} diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/Program.cs b/AlexandrTkachuk/9.Collections/Task2MyList/Program.cs new file mode 100644 index 0000000..79d3a10 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task2MyList/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task2MyList +{ + class Program + { + static void Main(string[] args) + { + MyList stringList = new MyList(); + stringList.Add("First"); + stringList.Add("Second"); + stringList.Add("Third"); + foreach(string str in stringList) + { + Console.WriteLine(str); + } + } + } +} diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/Properties/AssemblyInfo.cs b/AlexandrTkachuk/9.Collections/Task2MyList/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..be59ad3 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task2MyList/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task2MyList")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task2MyList")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("eb0b7cd8-42ae-48d9-bc9f-1a88e766bff2")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/Task2MyList.csproj b/AlexandrTkachuk/9.Collections/Task2MyList/Task2MyList.csproj new file mode 100644 index 0000000..a5d0a99 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task2MyList/Task2MyList.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {12989274-3F3D-4540-9369-BAB27D5E2ED7} + Exe + Properties + Task2MyList + Task2MyList + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.exe b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.exe new file mode 100644 index 0000000..0fb02a0 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.exe.config b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.pdb b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.pdb new file mode 100644 index 0000000..e3a8f4f Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.pdb differ diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.vshost.exe b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.vshost.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.vshost.exe.config b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.vshost.exe.manifest b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task2MyList/bin/Debug/Task2MyList.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..b01dc15 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.csproj.FileListAbsolute.txt b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..9e31883 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task2MyList\bin\Debug\Task2MyList.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task2MyList\bin\Debug\Task2MyList.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task2MyList\bin\Debug\Task2MyList.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task2MyList\obj\Debug\Task2MyList.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task2MyList\obj\Debug\Task2MyList.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task2MyList\obj\Debug\Task2MyList.pdb diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.exe b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.exe new file mode 100644 index 0000000..0fb02a0 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.pdb b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.pdb new file mode 100644 index 0000000..e3a8f4f Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/Task2MyList.pdb differ diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/9.Collections/Task2MyList/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/App.config b/AlexandrTkachuk/9.Collections/Task3MyDictionary/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task3MyDictionary/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/MyDictionary.cs b/AlexandrTkachuk/9.Collections/Task3MyDictionary/MyDictionary.cs new file mode 100644 index 0000000..78e2ab8 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task3MyDictionary/MyDictionary.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3MyDictionary +{ + class MyDictionary + { + int count; + TKey[] keys; + TValue[] values; + + + public int Count + { + get { return count; } + } + public MyDictionary() + { + keys = new TKey[0]; + values = new TValue[0]; + count = 0; + } + + public void Add(TKey enteredKey, TValue enteredValue) + { + TKey[] temporaryKeys = new TKey[count + 1]; + TValue[] temporaryValues = new TValue[count + 1]; + for (int i = 0; i < count; i++) + { + temporaryKeys[i] = keys[i]; + temporaryValues[i] = values[i]; + } + temporaryKeys[count] = enteredKey; + temporaryValues[count] = enteredValue; + keys = temporaryKeys; + values = temporaryValues; + count++; + } + + public TValue this[TKey index] + { + get + { + return FindValueByKey(index); + } + } + + TValue FindValueByKey(TKey index) + { + for (int i = 0; i < count; i++) + { + if (keys[i].Equals(index)) + { + return values[i]; + } + } + return default(TValue); + } + + public IEnumerator GetEnumerator() + { + for (int i = 0; i < count; i++) + { + yield return new KeyValuePair(keys[i], values[i]); + } + } + + } +} diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/Program.cs b/AlexandrTkachuk/9.Collections/Task3MyDictionary/Program.cs new file mode 100644 index 0000000..0d733fb --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task3MyDictionary/Program.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task3MyDictionary +{ + class Program + { + static void Main(string[] args) + { + MyDictionary cities = new MyDictionary(); + cities.Add(2, "Barcelona"); + cities.Add(5, "London"); + cities.Add(7, "Paris"); + + foreach (KeyValuePair pair in cities) + { + Console.WriteLine(pair); + } + } + } +} diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/Properties/AssemblyInfo.cs b/AlexandrTkachuk/9.Collections/Task3MyDictionary/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e6911b5 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task3MyDictionary/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task3MyDictionary")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task3MyDictionary")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b2bd6e0a-479e-427b-a1b8-752af39c3422")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/Task3MyDictionary.csproj b/AlexandrTkachuk/9.Collections/Task3MyDictionary/Task3MyDictionary.csproj new file mode 100644 index 0000000..2be9098 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task3MyDictionary/Task3MyDictionary.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {BA6E1BD6-2164-442A-AA5C-D2D5E04C94A7} + Exe + Properties + Task3MyDictionary + Task3MyDictionary + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe new file mode 100644 index 0000000..2be24ee Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe.config b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.pdb b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.pdb new file mode 100644 index 0000000..df2bfd0 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.pdb differ diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.config b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.manifest b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task3MyDictionary/bin/Debug/Task3MyDictionary.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7134eb1 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/Task3MyDictionary.csproj.FileListAbsolute.txt b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/Task3MyDictionary.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..99e5ef7 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/Task3MyDictionary.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task3MyDictionary\bin\Debug\Task3MyDictionary.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task3MyDictionary\bin\Debug\Task3MyDictionary.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task3MyDictionary\bin\Debug\Task3MyDictionary.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task3MyDictionary\obj\Debug\Task3MyDictionary.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task3MyDictionary\obj\Debug\Task3MyDictionary.pdb diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/Task3MyDictionary.exe b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/Task3MyDictionary.exe new file mode 100644 index 0000000..2be24ee Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/Task3MyDictionary.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/Task3MyDictionary.pdb b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/Task3MyDictionary.pdb new file mode 100644 index 0000000..df2bfd0 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/Task3MyDictionary.pdb differ diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/9.Collections/Task3MyDictionary/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/App.config b/AlexandrTkachuk/9.Collections/Task4GetArray/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/MyList.cs b/AlexandrTkachuk/9.Collections/Task4GetArray/MyList.cs new file mode 100644 index 0000000..6a1b55e --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/MyList.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using System.Collections; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4GetArray +{ + class MyList: IEnumerable + { + int count; + T[] items; + + public int Count + { + get { return count; } + } + + public MyList() + { + items = new T[0]; + count = 0; + } + public MyList(int size) + { + + count = size; + items = new T[count]; + for (int i = 0; i < size - 1; i++) + { + items[i] = default(T); + } + } + + public void Add(T enteredItem) + { + T[] temporaryArray = new T[count + 1]; + for (int i = 0; i < count; i++) + { + temporaryArray[i] = items[i]; + } + temporaryArray[count] = enteredItem; + items = temporaryArray; + count++; + } + + public T this[int index] + { + get + { + return items[index]; + } + } + + //public IEnumerator GetEnumerator() + //{ + // return (IEnumerator)this; + //} + public IEnumerator GetEnumerator() + { + foreach (T temp in items) + { + yield return temp; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (T temp in items) + { + yield return temp; + } + } + + } +} diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/MyListExtension.cs b/AlexandrTkachuk/9.Collections/Task4GetArray/MyListExtension.cs new file mode 100644 index 0000000..8dee737 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/MyListExtension.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4GetArray +{ + static class MyListExtension + { + public static T[] GetArray(this IEnumerable list) + { + T[] result = new T[2]; + return result; + } + } +} diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/Program.cs b/AlexandrTkachuk/9.Collections/Task4GetArray/Program.cs new file mode 100644 index 0000000..45b9e8c --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Task4GetArray +{ + class Program + { + static void Main(string[] args) + { + MyList stringList = new MyList(); + stringList.Add("First"); + stringList.Add("Second"); + stringList.Add("Third"); + + string [] result = stringList.GetArray(); + foreach (string str in stringList) + { + Console.WriteLine(str); + } + } + } +} diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/Properties/AssemblyInfo.cs b/AlexandrTkachuk/9.Collections/Task4GetArray/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d95aa91 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Task4GetArray")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Task4GetArray")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("0b253684-7324-4eb7-a81f-884d290cd1ec")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/Task4GetArray.csproj b/AlexandrTkachuk/9.Collections/Task4GetArray/Task4GetArray.csproj new file mode 100644 index 0000000..8c611a9 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/Task4GetArray.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {09A19C99-F9AA-4008-A09C-85F78B25C4DE} + Exe + Properties + Task4GetArray + Task4GetArray + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.exe b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.exe new file mode 100644 index 0000000..88b1da6 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.exe.config b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.pdb b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.pdb new file mode 100644 index 0000000..cc3910e Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.pdb differ diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.vshost.exe b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.vshost.exe new file mode 100644 index 0000000..666c0af Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.vshost.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.vshost.exe.config b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.vshost.exe.manifest b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/bin/Debug/Task4GetArray.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..251ab87 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.csproj.FileListAbsolute.txt b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..3364e31 --- /dev/null +++ b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task4GetArray\bin\Debug\Task4GetArray.exe.config +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task4GetArray\obj\Debug\Task4GetArray.csprojResolveAssemblyReference.cache +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task4GetArray\bin\Debug\Task4GetArray.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task4GetArray\bin\Debug\Task4GetArray.pdb +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task4GetArray\obj\Debug\Task4GetArray.exe +C:\Users\Alexandr\Documents\Visual Studio 2013\Projects\C#\ISD\9.Collections\Task4GetArray\obj\Debug\Task4GetArray.pdb diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.csprojResolveAssemblyReference.cache b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..f84cd4a Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.csprojResolveAssemblyReference.cache differ diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.exe b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.exe new file mode 100644 index 0000000..88b1da6 Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.exe differ diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.pdb b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.pdb new file mode 100644 index 0000000..cc3910e Binary files /dev/null and b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/Task4GetArray.pdb differ diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AlexandrTkachuk/9.Collections/Task4GetArray/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29