commit 82481ebaec866e42d66c34aeb7497f522b0647fa Author: ArtemSimonov Date: Wed Sep 9 09:27:12 2026 +0300 Add main Kotlin code diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a68e765 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "dotnet.defaultSolution": "ClassLibrary1.sln" +} \ No newline at end of file diff --git a/ClassLibrary1.sln b/ClassLibrary1.sln new file mode 100644 index 0000000..50ac736 --- /dev/null +++ b/ClassLibrary1.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary1", "ClassLibrary1\ClassLibrary1.csproj", "{65F0C187-7590-4F90-9367-5E3CE3F2E6DD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Debug|x64.ActiveCfg = Debug|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Debug|x64.Build.0 = Debug|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Debug|x86.ActiveCfg = Debug|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Debug|x86.Build.0 = Debug|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Release|Any CPU.Build.0 = Release|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Release|x64.ActiveCfg = Release|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Release|x64.Build.0 = Release|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Release|x86.ActiveCfg = Release|Any CPU + {65F0C187-7590-4F90-9367-5E3CE3F2E6DD}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ClassLibrary1/Class1.cs b/ClassLibrary1/Class1.cs new file mode 100644 index 0000000..bbf769f --- /dev/null +++ b/ClassLibrary1/Class1.cs @@ -0,0 +1,40 @@ +using System; +namespace Lab01 +{ + internal class Program + { + static void Main(string[] args) + { + // === ЗАДАНИЕ 1. Объявление переменных и статический вывод данных === + string pokemonName = "Чармандер"; + string elementType = "Огонь"; + int level = 1; + int hp = 95; + + Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ==="); + Console.WriteLine($"Покемон: {pokemonName}"); + Console.WriteLine($"Стихия: {elementType}"); + Console.WriteLine($"Уровень: {level} | HP: {hp}\n"); + + // === ЗАДАНИЕ 2. Интерактивный ввод и динамическое формирование документов === + Console.Write("Введите имя тренера: "); + string trainerName = Console.ReadLine(); + + Console.Write("Введите имя покемона: "); + pokemonName = Console.ReadLine(); + + Console.Write("Введите стихию: "); + elementType = Console.ReadLine(); + + Console.Write("Введите регион: "); + string regionName = Console.ReadLine(); + + Console.WriteLine(); + Console.WriteLine("****************************************"); + Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); + Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); + Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]"); + Console.WriteLine("****************************************"); + } + } +} \ No newline at end of file diff --git a/ClassLibrary1/ClassLibrary1.csproj b/ClassLibrary1/ClassLibrary1.csproj new file mode 100644 index 0000000..b760144 --- /dev/null +++ b/ClassLibrary1/ClassLibrary1.csproj @@ -0,0 +1,9 @@ + + + + net10.0 + enable + enable + + + diff --git a/ClassLibrary1/bin/Debug/net10.0/ClassLibrary1.deps.json b/ClassLibrary1/bin/Debug/net10.0/ClassLibrary1.deps.json new file mode 100644 index 0000000..a2c14d9 --- /dev/null +++ b/ClassLibrary1/bin/Debug/net10.0/ClassLibrary1.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v10.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v10.0": { + "ClassLibrary1/1.0.0": { + "runtime": { + "ClassLibrary1.dll": {} + } + } + } + }, + "libraries": { + "ClassLibrary1/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/ClassLibrary1/bin/Debug/net10.0/ClassLibrary1.dll b/ClassLibrary1/bin/Debug/net10.0/ClassLibrary1.dll new file mode 100644 index 0000000..6b7ea69 Binary files /dev/null and b/ClassLibrary1/bin/Debug/net10.0/ClassLibrary1.dll differ diff --git a/ClassLibrary1/bin/Debug/net10.0/ClassLibrary1.pdb b/ClassLibrary1/bin/Debug/net10.0/ClassLibrary1.pdb new file mode 100644 index 0000000..f782e31 Binary files /dev/null and b/ClassLibrary1/bin/Debug/net10.0/ClassLibrary1.pdb differ diff --git a/ClassLibrary1/obj/ClassLibrary1.csproj.nuget.dgspec.json b/ClassLibrary1/obj/ClassLibrary1.csproj.nuget.dgspec.json new file mode 100644 index 0000000..d04cc19 --- /dev/null +++ b/ClassLibrary1/obj/ClassLibrary1.csproj.nuget.dgspec.json @@ -0,0 +1,343 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\hp\\Desktop\\College\\ClassLibrary1\\ClassLibrary1.csproj": {} + }, + "projects": { + "C:\\Users\\hp\\Desktop\\College\\ClassLibrary1\\ClassLibrary1.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\hp\\Desktop\\College\\ClassLibrary1\\ClassLibrary1.csproj", + "projectName": "ClassLibrary1", + "projectPath": "C:\\Users\\hp\\Desktop\\College\\ClassLibrary1\\ClassLibrary1.csproj", + "packagesPath": "C:\\Users\\hp\\.nuget\\packages\\", + "outputPath": "C:\\Users\\hp\\Desktop\\College\\ClassLibrary1\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\hp\\AppData\\Roaming\\NuGet\\NuGet.Config" + ], + "originalTargetFrameworks": [ + "net10.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net10.0": { + "framework": "net10.0", + "targetAlias": "net10.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "10.0.400" + }, + "frameworks": { + "net10.0": { + "framework": "net10.0", + "targetAlias": "net10.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.400/PortableRuntimeIdentifierGraph.json", + "packagesToPrune": { + "Microsoft.CSharp": "(,4.7.32767]", + "Microsoft.VisualBasic": "(,10.4.32767]", + "Microsoft.Win32.Primitives": "(,4.3.32767]", + "Microsoft.Win32.Registry": "(,5.0.32767]", + "runtime.any.System.Collections": "(,4.3.32767]", + "runtime.any.System.Diagnostics.Tools": "(,4.3.32767]", + "runtime.any.System.Diagnostics.Tracing": "(,4.3.32767]", + "runtime.any.System.Globalization": "(,4.3.32767]", + "runtime.any.System.Globalization.Calendars": "(,4.3.32767]", + "runtime.any.System.IO": "(,4.3.32767]", + "runtime.any.System.Reflection": "(,4.3.32767]", + "runtime.any.System.Reflection.Extensions": "(,4.3.32767]", + "runtime.any.System.Reflection.Primitives": "(,4.3.32767]", + "runtime.any.System.Resources.ResourceManager": "(,4.3.32767]", + "runtime.any.System.Runtime": "(,4.3.32767]", + "runtime.any.System.Runtime.Handles": "(,4.3.32767]", + "runtime.any.System.Runtime.InteropServices": "(,4.3.32767]", + "runtime.any.System.Text.Encoding": "(,4.3.32767]", + "runtime.any.System.Text.Encoding.Extensions": "(,4.3.32767]", + "runtime.any.System.Threading.Tasks": "(,4.3.32767]", + "runtime.any.System.Threading.Timer": "(,4.3.32767]", + "runtime.aot.System.Collections": "(,4.3.32767]", + "runtime.aot.System.Diagnostics.Tools": "(,4.3.32767]", + "runtime.aot.System.Diagnostics.Tracing": "(,4.3.32767]", + "runtime.aot.System.Globalization": "(,4.3.32767]", + "runtime.aot.System.Globalization.Calendars": "(,4.3.32767]", + "runtime.aot.System.IO": "(,4.3.32767]", + "runtime.aot.System.Reflection": "(,4.3.32767]", + "runtime.aot.System.Reflection.Extensions": "(,4.3.32767]", + "runtime.aot.System.Reflection.Primitives": "(,4.3.32767]", + "runtime.aot.System.Resources.ResourceManager": "(,4.3.32767]", + "runtime.aot.System.Runtime": "(,4.3.32767]", + "runtime.aot.System.Runtime.Handles": "(,4.3.32767]", + "runtime.aot.System.Runtime.InteropServices": "(,4.3.32767]", + "runtime.aot.System.Text.Encoding": "(,4.3.32767]", + "runtime.aot.System.Text.Encoding.Extensions": "(,4.3.32767]", + "runtime.aot.System.Threading.Tasks": "(,4.3.32767]", + "runtime.aot.System.Threading.Timer": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.debian.9-x64.runtime.native.System": "(,4.3.32767]", + "runtime.debian.9-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.debian.9-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.debian.9-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.fedora.27-x64.runtime.native.System": "(,4.3.32767]", + "runtime.fedora.27-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.fedora.27-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.fedora.27-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.fedora.28-x64.runtime.native.System": "(,4.3.32767]", + "runtime.fedora.28-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.fedora.28-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.fedora.28-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.opensuse.42.3-x64.runtime.native.System": "(,4.3.32767]", + "runtime.opensuse.42.3-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.opensuse.42.3-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.opensuse.42.3-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.ubuntu.18.04-x64.runtime.native.System": "(,4.3.32767]", + "runtime.ubuntu.18.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.ubuntu.18.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.ubuntu.18.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.unix.Microsoft.Win32.Primitives": "(,4.3.32767]", + "runtime.unix.System.Console": "(,4.3.32767]", + "runtime.unix.System.Diagnostics.Debug": "(,4.3.32767]", + "runtime.unix.System.IO.FileSystem": "(,4.3.32767]", + "runtime.unix.System.Net.Primitives": "(,4.3.32767]", + "runtime.unix.System.Net.Sockets": "(,4.3.32767]", + "runtime.unix.System.Private.Uri": "(,4.3.32767]", + "runtime.unix.System.Runtime.Extensions": "(,4.3.32767]", + "runtime.win.Microsoft.Win32.Primitives": "(,4.3.32767]", + "runtime.win.System.Console": "(,4.3.32767]", + "runtime.win.System.Diagnostics.Debug": "(,4.3.32767]", + "runtime.win.System.IO.FileSystem": "(,4.3.32767]", + "runtime.win.System.Net.Primitives": "(,4.3.32767]", + "runtime.win.System.Net.Sockets": "(,4.3.32767]", + "runtime.win.System.Runtime.Extensions": "(,4.3.32767]", + "runtime.win10-arm-aot.runtime.native.System.IO.Compression": "(,4.0.32767]", + "runtime.win10-arm64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.win10-x64-aot.runtime.native.System.IO.Compression": "(,4.0.32767]", + "runtime.win10-x86-aot.runtime.native.System.IO.Compression": "(,4.0.32767]", + "runtime.win7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.win7-x86.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.win7.System.Private.Uri": "(,4.3.32767]", + "runtime.win8-arm.runtime.native.System.IO.Compression": "(,4.3.32767]", + "System.AppContext": "(,4.3.32767]", + "System.Buffers": "(,5.0.32767]", + "System.Collections": "(,4.3.32767]", + "System.Collections.Concurrent": "(,4.3.32767]", + "System.Collections.Immutable": "(,10.0.32767]", + "System.Collections.NonGeneric": "(,4.3.32767]", + "System.Collections.Specialized": "(,4.3.32767]", + "System.ComponentModel": "(,4.3.32767]", + "System.ComponentModel.Annotations": "(,4.3.32767]", + "System.ComponentModel.EventBasedAsync": "(,4.3.32767]", + "System.ComponentModel.Primitives": "(,4.3.32767]", + "System.ComponentModel.TypeConverter": "(,4.3.32767]", + "System.Console": "(,4.3.32767]", + "System.Data.Common": "(,4.3.32767]", + "System.Data.DataSetExtensions": "(,4.4.32767]", + "System.Diagnostics.Contracts": "(,4.3.32767]", + "System.Diagnostics.Debug": "(,4.3.32767]", + "System.Diagnostics.DiagnosticSource": "(,10.0.32767]", + "System.Diagnostics.FileVersionInfo": "(,4.3.32767]", + "System.Diagnostics.Process": "(,4.3.32767]", + "System.Diagnostics.StackTrace": "(,4.3.32767]", + "System.Diagnostics.TextWriterTraceListener": "(,4.3.32767]", + "System.Diagnostics.Tools": "(,4.3.32767]", + "System.Diagnostics.TraceSource": "(,4.3.32767]", + "System.Diagnostics.Tracing": "(,4.3.32767]", + "System.Drawing.Primitives": "(,4.3.32767]", + "System.Dynamic.Runtime": "(,4.3.32767]", + "System.Formats.Asn1": "(,10.0.32767]", + "System.Formats.Tar": "(,10.0.32767]", + "System.Globalization": "(,4.3.32767]", + "System.Globalization.Calendars": "(,4.3.32767]", + "System.Globalization.Extensions": "(,4.3.32767]", + "System.IO": "(,4.3.32767]", + "System.IO.Compression": "(,4.3.32767]", + "System.IO.Compression.ZipFile": "(,4.3.32767]", + "System.IO.FileSystem": "(,4.3.32767]", + "System.IO.FileSystem.AccessControl": "(,4.4.32767]", + "System.IO.FileSystem.DriveInfo": "(,4.3.32767]", + "System.IO.FileSystem.Primitives": "(,4.3.32767]", + "System.IO.FileSystem.Watcher": "(,4.3.32767]", + "System.IO.IsolatedStorage": "(,4.3.32767]", + "System.IO.MemoryMappedFiles": "(,4.3.32767]", + "System.IO.Pipelines": "(,10.0.32767]", + "System.IO.Pipes": "(,4.3.32767]", + "System.IO.Pipes.AccessControl": "(,5.0.32767]", + "System.IO.UnmanagedMemoryStream": "(,4.3.32767]", + "System.Linq": "(,4.3.32767]", + "System.Linq.AsyncEnumerable": "(,10.0.32767]", + "System.Linq.Expressions": "(,4.3.32767]", + "System.Linq.Parallel": "(,4.3.32767]", + "System.Linq.Queryable": "(,4.3.32767]", + "System.Memory": "(,5.0.32767]", + "System.Net.Http": "(,4.3.32767]", + "System.Net.Http.Json": "(,10.0.32767]", + "System.Net.NameResolution": "(,4.3.32767]", + "System.Net.NetworkInformation": "(,4.3.32767]", + "System.Net.Ping": "(,4.3.32767]", + "System.Net.Primitives": "(,4.3.32767]", + "System.Net.Requests": "(,4.3.32767]", + "System.Net.Security": "(,4.3.32767]", + "System.Net.ServerSentEvents": "(,10.0.32767]", + "System.Net.Sockets": "(,4.3.32767]", + "System.Net.WebHeaderCollection": "(,4.3.32767]", + "System.Net.WebSockets": "(,4.3.32767]", + "System.Net.WebSockets.Client": "(,4.3.32767]", + "System.Numerics.Vectors": "(,5.0.32767]", + "System.ObjectModel": "(,4.3.32767]", + "System.Private.DataContractSerialization": "(,4.3.32767]", + "System.Private.Uri": "(,4.3.32767]", + "System.Reflection": "(,4.3.32767]", + "System.Reflection.DispatchProxy": "(,6.0.32767]", + "System.Reflection.Emit": "(,4.7.32767]", + "System.Reflection.Emit.ILGeneration": "(,4.7.32767]", + "System.Reflection.Emit.Lightweight": "(,4.7.32767]", + "System.Reflection.Extensions": "(,4.3.32767]", + "System.Reflection.Metadata": "(,10.0.32767]", + "System.Reflection.Primitives": "(,4.3.32767]", + "System.Reflection.TypeExtensions": "(,4.3.32767]", + "System.Resources.Reader": "(,4.3.32767]", + "System.Resources.ResourceManager": "(,4.3.32767]", + "System.Resources.Writer": "(,4.3.32767]", + "System.Runtime": "(,4.3.32767]", + "System.Runtime.CompilerServices.Unsafe": "(,7.0.32767]", + "System.Runtime.CompilerServices.VisualC": "(,4.3.32767]", + "System.Runtime.Extensions": "(,4.3.32767]", + "System.Runtime.Handles": "(,4.3.32767]", + "System.Runtime.InteropServices": "(,4.3.32767]", + "System.Runtime.InteropServices.RuntimeInformation": "(,4.3.32767]", + "System.Runtime.Loader": "(,4.3.32767]", + "System.Runtime.Numerics": "(,4.3.32767]", + "System.Runtime.Serialization.Formatters": "(,4.3.32767]", + "System.Runtime.Serialization.Json": "(,4.3.32767]", + "System.Runtime.Serialization.Primitives": "(,4.3.32767]", + "System.Runtime.Serialization.Xml": "(,4.3.32767]", + "System.Security.AccessControl": "(,6.0.32767]", + "System.Security.Claims": "(,4.3.32767]", + "System.Security.Cryptography.Algorithms": "(,4.3.32767]", + "System.Security.Cryptography.Cng": "(,5.0.32767]", + "System.Security.Cryptography.Csp": "(,4.3.32767]", + "System.Security.Cryptography.Encoding": "(,4.3.32767]", + "System.Security.Cryptography.OpenSsl": "(,5.0.32767]", + "System.Security.Cryptography.Primitives": "(,4.3.32767]", + "System.Security.Cryptography.X509Certificates": "(,4.3.32767]", + "System.Security.Principal": "(,4.3.32767]", + "System.Security.Principal.Windows": "(,5.0.32767]", + "System.Security.SecureString": "(,4.3.32767]", + "System.Text.Encoding": "(,4.3.32767]", + "System.Text.Encoding.CodePages": "(,10.0.32767]", + "System.Text.Encoding.Extensions": "(,4.3.32767]", + "System.Text.Encodings.Web": "(,10.0.32767]", + "System.Text.Json": "(,10.0.32767]", + "System.Text.RegularExpressions": "(,4.3.32767]", + "System.Threading": "(,4.3.32767]", + "System.Threading.AccessControl": "(,10.0.32767]", + "System.Threading.Channels": "(,10.0.32767]", + "System.Threading.Overlapped": "(,4.3.32767]", + "System.Threading.Tasks": "(,4.3.32767]", + "System.Threading.Tasks.Dataflow": "(,10.0.32767]", + "System.Threading.Tasks.Extensions": "(,5.0.32767]", + "System.Threading.Tasks.Parallel": "(,4.3.32767]", + "System.Threading.Thread": "(,4.3.32767]", + "System.Threading.ThreadPool": "(,4.3.32767]", + "System.Threading.Timer": "(,4.3.32767]", + "System.ValueTuple": "(,4.5.32767]", + "System.Xml.ReaderWriter": "(,4.3.32767]", + "System.Xml.XDocument": "(,4.3.32767]", + "System.Xml.XmlDocument": "(,4.3.32767]", + "System.Xml.XmlSerializer": "(,4.3.32767]", + "System.Xml.XPath": "(,4.3.32767]", + "System.Xml.XPath.XDocument": "(,5.0.32767]" + } + } + } + } + } +} \ No newline at end of file diff --git a/ClassLibrary1/obj/ClassLibrary1.csproj.nuget.g.props b/ClassLibrary1/obj/ClassLibrary1.csproj.nuget.g.props new file mode 100644 index 0000000..d0f9227 --- /dev/null +++ b/ClassLibrary1/obj/ClassLibrary1.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\hp\.nuget\packages\ + PackageReference + 7.0.0 + + + + + \ No newline at end of file diff --git a/ClassLibrary1/obj/ClassLibrary1.csproj.nuget.g.targets b/ClassLibrary1/obj/ClassLibrary1.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/ClassLibrary1/obj/ClassLibrary1.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/ClassLibrary1/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs b/ClassLibrary1/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs new file mode 100644 index 0000000..925b135 --- /dev/null +++ b/ClassLibrary1/obj/Debug/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")] diff --git a/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.AssemblyInfo.cs b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.AssemblyInfo.cs new file mode 100644 index 0000000..b038a17 --- /dev/null +++ b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("ClassLibrary1")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("ClassLibrary1")] +[assembly: System.Reflection.AssemblyTitleAttribute("ClassLibrary1")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.AssemblyInfoInputs.cache b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.AssemblyInfoInputs.cache new file mode 100644 index 0000000..02b3267 --- /dev/null +++ b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +9c591e48ff0bec0ff75c80e1e30a20afefb4de4fb7194f7c919c7d1e8f047352 diff --git a/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.GeneratedMSBuildEditorConfig.editorconfig b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..485174c --- /dev/null +++ b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,18 @@ +is_global = true +build_property.TargetFramework = net10.0 +build_property.TargetFrameworkIdentifier = .NETCoreApp +build_property.TargetFrameworkVersion = v10.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property.EntryPointFilePath = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = ClassLibrary1 +build_property.ProjectDir = C:\Users\hp\Desktop\College\ClassLibrary1\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 10.0 +build_property.EnableCodeStyleSeverity = diff --git a/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.GlobalUsings.g.cs b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.GlobalUsings.g.cs new file mode 100644 index 0000000..d12bcbc --- /dev/null +++ b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using System; +global using System.Collections.Generic; +global using System.IO; +global using System.Linq; +global using System.Net.Http; +global using System.Threading; +global using System.Threading.Tasks; diff --git a/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.assets.cache b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.assets.cache new file mode 100644 index 0000000..e0721e2 Binary files /dev/null and b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.assets.cache differ diff --git a/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.csproj.CoreCompileInputs.cache b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..88996e8 --- /dev/null +++ b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +6c524e6a7794e277ed2351d27b0141e2a10feda73704b4133f62d3f789ffb54c diff --git a/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.csproj.FileListAbsolute.txt b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..0c185ce --- /dev/null +++ b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +C:\Users\hp\Desktop\College\ClassLibrary1\bin\Debug\net10.0\ClassLibrary1.deps.json +C:\Users\hp\Desktop\College\ClassLibrary1\bin\Debug\net10.0\ClassLibrary1.dll +C:\Users\hp\Desktop\College\ClassLibrary1\bin\Debug\net10.0\ClassLibrary1.pdb +C:\Users\hp\Desktop\College\ClassLibrary1\obj\Debug\net10.0\ClassLibrary1.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\hp\Desktop\College\ClassLibrary1\obj\Debug\net10.0\ClassLibrary1.AssemblyInfoInputs.cache +C:\Users\hp\Desktop\College\ClassLibrary1\obj\Debug\net10.0\ClassLibrary1.AssemblyInfo.cs +C:\Users\hp\Desktop\College\ClassLibrary1\obj\Debug\net10.0\ClassLibrary1.csproj.CoreCompileInputs.cache +C:\Users\hp\Desktop\College\ClassLibrary1\obj\Debug\net10.0\ClassLibrary1.dll +C:\Users\hp\Desktop\College\ClassLibrary1\obj\Debug\net10.0\refint\ClassLibrary1.dll +C:\Users\hp\Desktop\College\ClassLibrary1\obj\Debug\net10.0\ClassLibrary1.pdb +C:\Users\hp\Desktop\College\ClassLibrary1\obj\Debug\net10.0\ref\ClassLibrary1.dll diff --git a/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.dll b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.dll new file mode 100644 index 0000000..6b7ea69 Binary files /dev/null and b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.dll differ diff --git a/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.pdb b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.pdb new file mode 100644 index 0000000..f782e31 Binary files /dev/null and b/ClassLibrary1/obj/Debug/net10.0/ClassLibrary1.pdb differ diff --git a/ClassLibrary1/obj/Debug/net10.0/ref/ClassLibrary1.dll b/ClassLibrary1/obj/Debug/net10.0/ref/ClassLibrary1.dll new file mode 100644 index 0000000..a3d58c9 Binary files /dev/null and b/ClassLibrary1/obj/Debug/net10.0/ref/ClassLibrary1.dll differ diff --git a/ClassLibrary1/obj/Debug/net10.0/refint/ClassLibrary1.dll b/ClassLibrary1/obj/Debug/net10.0/refint/ClassLibrary1.dll new file mode 100644 index 0000000..a3d58c9 Binary files /dev/null and b/ClassLibrary1/obj/Debug/net10.0/refint/ClassLibrary1.dll differ diff --git a/ClassLibrary1/obj/project.assets.json b/ClassLibrary1/obj/project.assets.json new file mode 100644 index 0000000..16a3668 --- /dev/null +++ b/ClassLibrary1/obj/project.assets.json @@ -0,0 +1,348 @@ +{ + "version": 4, + "targets": { + "net10.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net10.0": [] + }, + "packageFolders": { + "C:\\Users\\hp\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\hp\\Desktop\\College\\ClassLibrary1\\ClassLibrary1.csproj", + "projectName": "ClassLibrary1", + "projectPath": "C:\\Users\\hp\\Desktop\\College\\ClassLibrary1\\ClassLibrary1.csproj", + "packagesPath": "C:\\Users\\hp\\.nuget\\packages\\", + "outputPath": "C:\\Users\\hp\\Desktop\\College\\ClassLibrary1\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\hp\\AppData\\Roaming\\NuGet\\NuGet.Config" + ], + "originalTargetFrameworks": [ + "net10.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net10.0": { + "framework": "net10.0", + "targetAlias": "net10.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "10.0.400" + }, + "frameworks": { + "net10.0": { + "framework": "net10.0", + "targetAlias": "net10.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.400/PortableRuntimeIdentifierGraph.json", + "packagesToPrune": { + "Microsoft.CSharp": "(,4.7.32767]", + "Microsoft.VisualBasic": "(,10.4.32767]", + "Microsoft.Win32.Primitives": "(,4.3.32767]", + "Microsoft.Win32.Registry": "(,5.0.32767]", + "runtime.any.System.Collections": "(,4.3.32767]", + "runtime.any.System.Diagnostics.Tools": "(,4.3.32767]", + "runtime.any.System.Diagnostics.Tracing": "(,4.3.32767]", + "runtime.any.System.Globalization": "(,4.3.32767]", + "runtime.any.System.Globalization.Calendars": "(,4.3.32767]", + "runtime.any.System.IO": "(,4.3.32767]", + "runtime.any.System.Reflection": "(,4.3.32767]", + "runtime.any.System.Reflection.Extensions": "(,4.3.32767]", + "runtime.any.System.Reflection.Primitives": "(,4.3.32767]", + "runtime.any.System.Resources.ResourceManager": "(,4.3.32767]", + "runtime.any.System.Runtime": "(,4.3.32767]", + "runtime.any.System.Runtime.Handles": "(,4.3.32767]", + "runtime.any.System.Runtime.InteropServices": "(,4.3.32767]", + "runtime.any.System.Text.Encoding": "(,4.3.32767]", + "runtime.any.System.Text.Encoding.Extensions": "(,4.3.32767]", + "runtime.any.System.Threading.Tasks": "(,4.3.32767]", + "runtime.any.System.Threading.Timer": "(,4.3.32767]", + "runtime.aot.System.Collections": "(,4.3.32767]", + "runtime.aot.System.Diagnostics.Tools": "(,4.3.32767]", + "runtime.aot.System.Diagnostics.Tracing": "(,4.3.32767]", + "runtime.aot.System.Globalization": "(,4.3.32767]", + "runtime.aot.System.Globalization.Calendars": "(,4.3.32767]", + "runtime.aot.System.IO": "(,4.3.32767]", + "runtime.aot.System.Reflection": "(,4.3.32767]", + "runtime.aot.System.Reflection.Extensions": "(,4.3.32767]", + "runtime.aot.System.Reflection.Primitives": "(,4.3.32767]", + "runtime.aot.System.Resources.ResourceManager": "(,4.3.32767]", + "runtime.aot.System.Runtime": "(,4.3.32767]", + "runtime.aot.System.Runtime.Handles": "(,4.3.32767]", + "runtime.aot.System.Runtime.InteropServices": "(,4.3.32767]", + "runtime.aot.System.Text.Encoding": "(,4.3.32767]", + "runtime.aot.System.Text.Encoding.Extensions": "(,4.3.32767]", + "runtime.aot.System.Threading.Tasks": "(,4.3.32767]", + "runtime.aot.System.Threading.Timer": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.debian.9-x64.runtime.native.System": "(,4.3.32767]", + "runtime.debian.9-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.debian.9-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.debian.9-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.fedora.27-x64.runtime.native.System": "(,4.3.32767]", + "runtime.fedora.27-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.fedora.27-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.fedora.27-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.fedora.28-x64.runtime.native.System": "(,4.3.32767]", + "runtime.fedora.28-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.fedora.28-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.fedora.28-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.opensuse.42.3-x64.runtime.native.System": "(,4.3.32767]", + "runtime.opensuse.42.3-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.opensuse.42.3-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.opensuse.42.3-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "(,4.3.32767]", + "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]", + "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]", + "runtime.ubuntu.18.04-x64.runtime.native.System": "(,4.3.32767]", + "runtime.ubuntu.18.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.ubuntu.18.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]", + "runtime.ubuntu.18.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]", + "runtime.unix.Microsoft.Win32.Primitives": "(,4.3.32767]", + "runtime.unix.System.Console": "(,4.3.32767]", + "runtime.unix.System.Diagnostics.Debug": "(,4.3.32767]", + "runtime.unix.System.IO.FileSystem": "(,4.3.32767]", + "runtime.unix.System.Net.Primitives": "(,4.3.32767]", + "runtime.unix.System.Net.Sockets": "(,4.3.32767]", + "runtime.unix.System.Private.Uri": "(,4.3.32767]", + "runtime.unix.System.Runtime.Extensions": "(,4.3.32767]", + "runtime.win.Microsoft.Win32.Primitives": "(,4.3.32767]", + "runtime.win.System.Console": "(,4.3.32767]", + "runtime.win.System.Diagnostics.Debug": "(,4.3.32767]", + "runtime.win.System.IO.FileSystem": "(,4.3.32767]", + "runtime.win.System.Net.Primitives": "(,4.3.32767]", + "runtime.win.System.Net.Sockets": "(,4.3.32767]", + "runtime.win.System.Runtime.Extensions": "(,4.3.32767]", + "runtime.win10-arm-aot.runtime.native.System.IO.Compression": "(,4.0.32767]", + "runtime.win10-arm64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.win10-x64-aot.runtime.native.System.IO.Compression": "(,4.0.32767]", + "runtime.win10-x86-aot.runtime.native.System.IO.Compression": "(,4.0.32767]", + "runtime.win7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.win7-x86.runtime.native.System.IO.Compression": "(,4.3.32767]", + "runtime.win7.System.Private.Uri": "(,4.3.32767]", + "runtime.win8-arm.runtime.native.System.IO.Compression": "(,4.3.32767]", + "System.AppContext": "(,4.3.32767]", + "System.Buffers": "(,5.0.32767]", + "System.Collections": "(,4.3.32767]", + "System.Collections.Concurrent": "(,4.3.32767]", + "System.Collections.Immutable": "(,10.0.32767]", + "System.Collections.NonGeneric": "(,4.3.32767]", + "System.Collections.Specialized": "(,4.3.32767]", + "System.ComponentModel": "(,4.3.32767]", + "System.ComponentModel.Annotations": "(,4.3.32767]", + "System.ComponentModel.EventBasedAsync": "(,4.3.32767]", + "System.ComponentModel.Primitives": "(,4.3.32767]", + "System.ComponentModel.TypeConverter": "(,4.3.32767]", + "System.Console": "(,4.3.32767]", + "System.Data.Common": "(,4.3.32767]", + "System.Data.DataSetExtensions": "(,4.4.32767]", + "System.Diagnostics.Contracts": "(,4.3.32767]", + "System.Diagnostics.Debug": "(,4.3.32767]", + "System.Diagnostics.DiagnosticSource": "(,10.0.32767]", + "System.Diagnostics.FileVersionInfo": "(,4.3.32767]", + "System.Diagnostics.Process": "(,4.3.32767]", + "System.Diagnostics.StackTrace": "(,4.3.32767]", + "System.Diagnostics.TextWriterTraceListener": "(,4.3.32767]", + "System.Diagnostics.Tools": "(,4.3.32767]", + "System.Diagnostics.TraceSource": "(,4.3.32767]", + "System.Diagnostics.Tracing": "(,4.3.32767]", + "System.Drawing.Primitives": "(,4.3.32767]", + "System.Dynamic.Runtime": "(,4.3.32767]", + "System.Formats.Asn1": "(,10.0.32767]", + "System.Formats.Tar": "(,10.0.32767]", + "System.Globalization": "(,4.3.32767]", + "System.Globalization.Calendars": "(,4.3.32767]", + "System.Globalization.Extensions": "(,4.3.32767]", + "System.IO": "(,4.3.32767]", + "System.IO.Compression": "(,4.3.32767]", + "System.IO.Compression.ZipFile": "(,4.3.32767]", + "System.IO.FileSystem": "(,4.3.32767]", + "System.IO.FileSystem.AccessControl": "(,4.4.32767]", + "System.IO.FileSystem.DriveInfo": "(,4.3.32767]", + "System.IO.FileSystem.Primitives": "(,4.3.32767]", + "System.IO.FileSystem.Watcher": "(,4.3.32767]", + "System.IO.IsolatedStorage": "(,4.3.32767]", + "System.IO.MemoryMappedFiles": "(,4.3.32767]", + "System.IO.Pipelines": "(,10.0.32767]", + "System.IO.Pipes": "(,4.3.32767]", + "System.IO.Pipes.AccessControl": "(,5.0.32767]", + "System.IO.UnmanagedMemoryStream": "(,4.3.32767]", + "System.Linq": "(,4.3.32767]", + "System.Linq.AsyncEnumerable": "(,10.0.32767]", + "System.Linq.Expressions": "(,4.3.32767]", + "System.Linq.Parallel": "(,4.3.32767]", + "System.Linq.Queryable": "(,4.3.32767]", + "System.Memory": "(,5.0.32767]", + "System.Net.Http": "(,4.3.32767]", + "System.Net.Http.Json": "(,10.0.32767]", + "System.Net.NameResolution": "(,4.3.32767]", + "System.Net.NetworkInformation": "(,4.3.32767]", + "System.Net.Ping": "(,4.3.32767]", + "System.Net.Primitives": "(,4.3.32767]", + "System.Net.Requests": "(,4.3.32767]", + "System.Net.Security": "(,4.3.32767]", + "System.Net.ServerSentEvents": "(,10.0.32767]", + "System.Net.Sockets": "(,4.3.32767]", + "System.Net.WebHeaderCollection": "(,4.3.32767]", + "System.Net.WebSockets": "(,4.3.32767]", + "System.Net.WebSockets.Client": "(,4.3.32767]", + "System.Numerics.Vectors": "(,5.0.32767]", + "System.ObjectModel": "(,4.3.32767]", + "System.Private.DataContractSerialization": "(,4.3.32767]", + "System.Private.Uri": "(,4.3.32767]", + "System.Reflection": "(,4.3.32767]", + "System.Reflection.DispatchProxy": "(,6.0.32767]", + "System.Reflection.Emit": "(,4.7.32767]", + "System.Reflection.Emit.ILGeneration": "(,4.7.32767]", + "System.Reflection.Emit.Lightweight": "(,4.7.32767]", + "System.Reflection.Extensions": "(,4.3.32767]", + "System.Reflection.Metadata": "(,10.0.32767]", + "System.Reflection.Primitives": "(,4.3.32767]", + "System.Reflection.TypeExtensions": "(,4.3.32767]", + "System.Resources.Reader": "(,4.3.32767]", + "System.Resources.ResourceManager": "(,4.3.32767]", + "System.Resources.Writer": "(,4.3.32767]", + "System.Runtime": "(,4.3.32767]", + "System.Runtime.CompilerServices.Unsafe": "(,7.0.32767]", + "System.Runtime.CompilerServices.VisualC": "(,4.3.32767]", + "System.Runtime.Extensions": "(,4.3.32767]", + "System.Runtime.Handles": "(,4.3.32767]", + "System.Runtime.InteropServices": "(,4.3.32767]", + "System.Runtime.InteropServices.RuntimeInformation": "(,4.3.32767]", + "System.Runtime.Loader": "(,4.3.32767]", + "System.Runtime.Numerics": "(,4.3.32767]", + "System.Runtime.Serialization.Formatters": "(,4.3.32767]", + "System.Runtime.Serialization.Json": "(,4.3.32767]", + "System.Runtime.Serialization.Primitives": "(,4.3.32767]", + "System.Runtime.Serialization.Xml": "(,4.3.32767]", + "System.Security.AccessControl": "(,6.0.32767]", + "System.Security.Claims": "(,4.3.32767]", + "System.Security.Cryptography.Algorithms": "(,4.3.32767]", + "System.Security.Cryptography.Cng": "(,5.0.32767]", + "System.Security.Cryptography.Csp": "(,4.3.32767]", + "System.Security.Cryptography.Encoding": "(,4.3.32767]", + "System.Security.Cryptography.OpenSsl": "(,5.0.32767]", + "System.Security.Cryptography.Primitives": "(,4.3.32767]", + "System.Security.Cryptography.X509Certificates": "(,4.3.32767]", + "System.Security.Principal": "(,4.3.32767]", + "System.Security.Principal.Windows": "(,5.0.32767]", + "System.Security.SecureString": "(,4.3.32767]", + "System.Text.Encoding": "(,4.3.32767]", + "System.Text.Encoding.CodePages": "(,10.0.32767]", + "System.Text.Encoding.Extensions": "(,4.3.32767]", + "System.Text.Encodings.Web": "(,10.0.32767]", + "System.Text.Json": "(,10.0.32767]", + "System.Text.RegularExpressions": "(,4.3.32767]", + "System.Threading": "(,4.3.32767]", + "System.Threading.AccessControl": "(,10.0.32767]", + "System.Threading.Channels": "(,10.0.32767]", + "System.Threading.Overlapped": "(,4.3.32767]", + "System.Threading.Tasks": "(,4.3.32767]", + "System.Threading.Tasks.Dataflow": "(,10.0.32767]", + "System.Threading.Tasks.Extensions": "(,5.0.32767]", + "System.Threading.Tasks.Parallel": "(,4.3.32767]", + "System.Threading.Thread": "(,4.3.32767]", + "System.Threading.ThreadPool": "(,4.3.32767]", + "System.Threading.Timer": "(,4.3.32767]", + "System.ValueTuple": "(,4.5.32767]", + "System.Xml.ReaderWriter": "(,4.3.32767]", + "System.Xml.XDocument": "(,4.3.32767]", + "System.Xml.XmlDocument": "(,4.3.32767]", + "System.Xml.XmlSerializer": "(,4.3.32767]", + "System.Xml.XPath": "(,4.3.32767]", + "System.Xml.XPath.XDocument": "(,5.0.32767]" + } + } + } + } +} \ No newline at end of file diff --git a/ClassLibrary1/obj/project.nuget.cache b/ClassLibrary1/obj/project.nuget.cache new file mode 100644 index 0000000..0b3114b --- /dev/null +++ b/ClassLibrary1/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "HVnEDjWxxS4=", + "success": true, + "projectFilePath": "C:\\Users\\hp\\Desktop\\College\\ClassLibrary1\\ClassLibrary1.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/lab-3.cs b/lab-3.cs new file mode 100644 index 0000000..54318db --- /dev/null +++ b/lab-3.cs @@ -0,0 +1,40 @@ +using System; +namespace Lab01 +{ + internal class Program + { + static void Main(string[] args) + { + // === ЗАДАНИЕ 1. Объявление переменных и статический вывод данных === + string pokemonName = "Чармандер"; + string elementType = "Огонь"; + int level = 1; + int hp = 95; + + Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ==="); + Console.WriteLine($"Покемон: {pokemonName}"); + Console.WriteLine($"Стихия: {elementType}"); + Console.WriteLine($"Уровень: {level} | HP: {hp}\n"); + + // === ЗАДАНИЕ 2. Интерактивный ввод и динамическое формирование документов === + Console.Write("Введите имя тренера: "); + string trainerName = Console.ReadLine(); + + Console.Write("Введите имя покемона: "); + pokemonName = Console.ReadLine(); + + Console.Write("Введите стихию: "); + elementType = Console.ReadLine(); + + Console.Write("Введите регион: "); + string regionName = Console.ReadLine(); + + Console.WriteLine(); + Console.WriteLine("****************************************"); + Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); + Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); + Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]"); + Console.WriteLine("****************************************"); + } + } +} \ No newline at end of file diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt new file mode 100644 index 0000000..58344c8 --- /dev/null +++ b/src/main/kotlin/Main.kt @@ -0,0 +1,90 @@ +fun main() { +// ЧАСТЬ 1. Проверка условий через if-else + println("=== ПРОВЕРКА СОСТОЯНИЯ ПОКЕМОНА ===") + + print("Введите текущее HP: ") + val currentHpInput = readln().toIntOrNull() ?: 0 + + print("Введите количество энергии: ") + val energyAttachedInput = readln().toIntOrNull() ?: 0 + + println() + + // 1.1 Классический if-else + if (currentHpInput <= 0) { + println("Покемон в нокауте.") + } else { + println("Покемон в строю и готов к бою.") + } + + // 1.2 if-else как выражение + val attackStatus = if (energyAttachedInput >= 3) { + "Доступна атака 'Giga Impact'" + } else { + "Недостаточно ресурсов: требуется минимум 3 карты энергии" + } + println("Статус атаки: $attackStatus") + + + // ЧАСТЬ 2. Обработка типов и состояний через when + println("\n=== РОЗЫГРЫШ КАРТЫ ТРЕНЕРА ===") + + print("Введите название карты Тренера: ") + val trainerCardInput = readln() + + // 2.1 Классический when + print("Эффект: ") + when (trainerCardInput) { + "Potion" -> println("Лечение +30 HP.") + "Professor's Research" -> println("Добор 7 карт из колоды.") + "Switch" -> println("Замена активного Покемона.") + else -> println("Неизвестная карта Тренера.") + } + + + println("\n=== РАСЧЕТ СТИХИЙНОГО МНОЖИТЕЛЯ ===") + + print("Введите стихию Покемона (Fire, Water, Grass): ") + val elementInput = readln() + + // 2.2 when как выражение с многострочными блоками { } + val weaknessMultiplier: Double = when (elementInput) { + "Water" -> { + println("[Слабость к Электричеству]") + 2.0 + } + "Fire" -> { + println("[Слабость к Воде]") + 1.5 + } + "Grass" -> { + println("[Слабость к Огню]") + 1.2 + } + else -> { + println("[Базовый коэффициент]") + 1.0 + } + } + + + println() + print("Введите текущий % HP (0-100): ") + val hpPercent = readln().toIntOrNull() ?: 0 + + // 3.1 Безаргументный when + val healthState: String = when { + hpPercent == 0 -> "Нокаут" + hpPercent in 1..20 -> "Критическое состояние" + hpPercent in 21..70 -> "Поврежден" + else -> "Отличное состояние" + } + + + + println("\n========================================") + println("ИТОГОВЫЙ СТАТУС БОЯ:") + println("Множитель урона: x$weaknessMultiplier") + println("Категория здоровья: $healthState") + println("========================================") +} diff --git a/works/csharp/lab-01/Program.cs b/works/csharp/lab-01/Program.cs new file mode 100644 index 0000000..54318db --- /dev/null +++ b/works/csharp/lab-01/Program.cs @@ -0,0 +1,40 @@ +using System; +namespace Lab01 +{ + internal class Program + { + static void Main(string[] args) + { + // === ЗАДАНИЕ 1. Объявление переменных и статический вывод данных === + string pokemonName = "Чармандер"; + string elementType = "Огонь"; + int level = 1; + int hp = 95; + + Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ==="); + Console.WriteLine($"Покемон: {pokemonName}"); + Console.WriteLine($"Стихия: {elementType}"); + Console.WriteLine($"Уровень: {level} | HP: {hp}\n"); + + // === ЗАДАНИЕ 2. Интерактивный ввод и динамическое формирование документов === + Console.Write("Введите имя тренера: "); + string trainerName = Console.ReadLine(); + + Console.Write("Введите имя покемона: "); + pokemonName = Console.ReadLine(); + + Console.Write("Введите стихию: "); + elementType = Console.ReadLine(); + + Console.Write("Введите регион: "); + string regionName = Console.ReadLine(); + + Console.WriteLine(); + Console.WriteLine("****************************************"); + Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); + Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); + Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]"); + Console.WriteLine("****************************************"); + } + } +} \ No newline at end of file diff --git a/works/csharp/lab-01/Readme.md b/works/csharp/lab-01/Readme.md new file mode 100644 index 0000000..13d1f10 --- /dev/null +++ b/works/csharp/lab-01/Readme.md @@ -0,0 +1,10 @@ +# Лабораторная работа C# №1 + +## 📌 Тема +Введение в язык C#. Структура программы, переменные, базовые типы данных и консольный ввод/вывод. + +## 📝 Описание +Основы работы с консольным вводом и выводом данных (`Console.WriteLine`, `Console.ReadLine`), объявление переменных различных типов. + +## 🚀 Код программы +Исходный код расположен в файле `Program.cs`. diff --git a/works/csharp/lab-02/Program.cs b/works/csharp/lab-02/Program.cs new file mode 100644 index 0000000..db441cf --- /dev/null +++ b/works/csharp/lab-02/Program.cs @@ -0,0 +1,89 @@ +using System; +namespace Lab02 +{ + internal class Program + { + static void Main(string[] args) + { + // === БЛОК 1. Ввод данных и преобразование типов === + + // Задание 1.1: Расчёт характеристик покемона + Console.WriteLine("=== Прокачка покемона ==="); + Console.Write("Введите базовое значение атаки: "); + int baseAttack = Convert.ToInt32(Console.ReadLine()); + + Console.Write("Введите количество полученных уровней: "); + int levels = Convert.ToInt32(Console.ReadLine()); + + int totalAttack = baseAttack + (levels * 5); + Console.WriteLine($"Итоговая атака: {totalAttack}\n"); + + // Задание 1.2: Расчёт стоимости зелий в магазине + int balance = 1500; + int potionPrice = 200; + + Console.WriteLine($"Текущий баланс: {balance} монет."); + Console.Write("Сколько зелий лечения вы хотите купить? "); + int potionCount = Convert.ToInt32(Console.ReadLine()); + + int totalPrice = potionCount * potionPrice; + balance -= totalPrice; + + Console.WriteLine($"Успешная покупка! Потрачено: {totalPrice} монет. Остаток баланса: {balance} монет.\n"); + + // === БЛОК 2. Условные операторы === + + // Задание 2.1: Проверка состояния покемона в бою + Console.Write("Введите текущее количество HP покемона: "); + int currentHp = Convert.ToInt32(Console.ReadLine()); + + if (currentHp <= 0) + { + Console.WriteLine("Покемон потерял сознание! Верните его в покебол."); + } + else if (currentHp >= 1 && currentHp <= 20) + { + Console.WriteLine("Критическое состояние! Срочно используйте зелье!"); + } + else if (currentHp >= 21 && currentHp <= 50) + { + Console.WriteLine("Покемон ранен, будьте осторожны."); + } + else + { + Console.WriteLine("Покемон полон сил и готов к бою!"); + } + + Console.WriteLine(); + + // Задание 2.2: Консольное меню боя (switch) + Console.WriteLine("=== МЕНЮ БОЯ ==="); + Console.WriteLine("1 — Атака"); + Console.WriteLine("2 — Инвентарь"); + Console.WriteLine("3 — Сменить покемона"); + Console.WriteLine("4 — Побег"); + Console.Write("Выберите действие (1-4): "); + + int action = Convert.ToInt32(Console.ReadLine()); + + switch (action) + { + case 1: + Console.WriteLine("Покемон наносит быстрый удар!"); + break; + case 2: + Console.WriteLine("Вы открыли сумку и применили Зелье Лечения."); + break; + case 3: + Console.WriteLine("Вы отозвали покемона и выпустили нового!"); + break; + case 4: + Console.WriteLine("Вы успешно сбежали из боя!"); + break; + default: + Console.WriteLine("Неизвестная команда! Вы пропустили ход."); + break; + } + } + } +} \ No newline at end of file diff --git a/works/csharp/lab-02/Readme.md b/works/csharp/lab-02/Readme.md new file mode 100644 index 0000000..f349072 --- /dev/null +++ b/works/csharp/lab-02/Readme.md @@ -0,0 +1,10 @@ +# Лабораторная работа C# №2 + +## 📌 Тема +Преобразование типов данных (`Convert`, `Parse`) и математические операции в C#. + +## 📝 Описание +Явное и неявное приведение типов, использование математических операторов, обработка чисел с плавающей точкой и форматированный вывод. + +## 🚀 Код программы +Исходный код расположен в файле `Program.cs`. diff --git a/works/kotlin/lab-01/Main.kt b/works/kotlin/lab-01/Main.kt new file mode 100644 index 0000000..97fa0b7 --- /dev/null +++ b/works/kotlin/lab-01/Main.kt @@ -0,0 +1,12 @@ +fun main() { + // Задание 2.1 + val trainerName = "Эш Кетчум" + val homeRegion = "Канто" + val bages = 8 + val pokedexCount = 150 + + println("=== БАЗА ДАННЫХ ТРЕНЕРОВ ===") + println("Тренер: $trainerName") + println("Родной регион: $homeRegion") + println("Значков: $bages | Покемонов в Покедексе: $pokedexCount") +} diff --git a/works/kotlin/lab-01/Readme.md b/works/kotlin/lab-01/Readme.md new file mode 100644 index 0000000..1e320ee --- /dev/null +++ b/works/kotlin/lab-01/Readme.md @@ -0,0 +1,10 @@ +# Лабораторная работа Kotlin №1 + +## 📌 Тема +Введение в язык Kotlin. Переменные, базовые типы данных и консольный ввод/вывод информации. + +## 📝 Задание 2.1 +Вывод карточки тренера покемонов с базовой информацией. + +## 🚀 Код программы +Файл с решением находится в `Main.kt`. diff --git a/works/kotlin/lab-02/Main.kt b/works/kotlin/lab-02/Main.kt new file mode 100644 index 0000000..ea12fee --- /dev/null +++ b/works/kotlin/lab-02/Main.kt @@ -0,0 +1,49 @@ +fun main() { + // --- ЗАДАНИЕ 1. Явное приведение типов (Casting) --- + print("Введите номер текущего хода: ") + val currentTurnInput = readln() + + print("Введите количество энергии на столе: ") + val energyInput = readln() + + print("Введите коэффициент усиления атаки: ") + val multiplierInput = readln() + + val currentTurn: Int = currentTurnInput.toInt() + val energy: Int = energyInput.toInt() + val multiplier: Double = multiplierInput.toDouble() + + println("\n=== ИНИЦИАЛИЗАЦИЯ ПАРАМЕТРОВ ХОДА ===") + println("Текущий ход: $currentTurn (тип Int)") + println("Доступно энергии: $energy (тип Int)") + println("Множитель урона: $multiplier (тип Double)\n") + + // --- ЗАДАНИЕ 2. Математические операции --- + var cardsPlayed = 0 + + println("=== ХОД № $currentTurn ===") + println("Игрок выводит Покемона на активную позицию!") + cardsPlayed++ + + println() + print("Введите базовый урон покемона: ") + val baseDamage = readln().toInt() + println("Применена карта Тренера 'Леди из Центра Покемонов'!") + cardsPlayed += 1 + + println() + print("Сколько карт энергии прикрепить к Покемону? ") + val energyAttached = readln().toInt() + cardsPlayed += energyAttached + + val finalDamage = baseDamage * multiplier + val turnCheck = currentTurn % 2 + + println("\n****************************************") + println("ОТЧЕТ О БОЕВОЙ ЭФФЕКТИВНОСТИ") + println("Тип хода (остаток % 2): $turnCheck") + println("Всего сыграно карт за ход: $cardsPlayed") + println("Базовый урон: $baseDamage | Коэффициент: $multiplier") + println("Итоговый урон по противнику: $finalDamage") + println("****************************************") +} diff --git a/works/kotlin/lab-02/Readme.md b/works/kotlin/lab-02/Readme.md new file mode 100644 index 0000000..2cca455 --- /dev/null +++ b/works/kotlin/lab-02/Readme.md @@ -0,0 +1,11 @@ +# Лабораторная работа Kotlin №2 + +## 📌 Тема +Приведение типов данных (casting) и математические операции в языке Kotlin. + +## 📝 Задания +1. **Явное приведение типов:** считывание параметров (`readln()`) и их кастинг к `Int` и `Double` с помощью `.toInt()` и `.toDouble()`. +2. **Математические операции:** симуляция действий хода, инкремент (`++`), составное присваивание (`+=`), вычисление остатка от деления (`%`) и расчет итогового урона. + +## 🚀 Код программы +Файл с решением находится в `Main.kt`.