diff --git a/prog-radzh/.gitignore b/prog-radzh/.gitignore new file mode 100644 index 0000000..d2833d2 --- /dev/null +++ b/prog-radzh/.gitignore @@ -0,0 +1,56 @@ +# ========================================== +# IDE & Editors (JetBrains: Rider, IDEA, Android Studio) +# ========================================== +.idea/ +*.iml +*.iws +*.ipr +.vscode/ +*.suo +*.user +*.userosscache +*.sln.docstates + +# ========================================== +# Database Tools (DBeaver) +# ========================================== +.dbeaver/ +.eclipse/ +*.dbeaver-data/ + +# ========================================== +# C# / .NET / Visual Studio / Rider builds +# ========================================== +bin/ +obj/ +out/ +[D-d]ebug/ +[R-r]elease/ +*.userprefs +*.pidb +*.versioncontrol +*.csproj.user + +# ========================================== +# Android Studio / Gradle / Kotlin +# ========================================== +.gradle/ +build/ +local.properties +.navigation/ +captures/ +.externalNativeBuild +.cxx/ +*.apk +*.aab +*.keystore +*.jks + +# ========================================== +# OS Generated Files & Logs +# ========================================== +.DS_Store +Thumbs.db +*.log +*.tmp +*.jar diff --git a/prog-radzh/Readme.md b/prog-radzh/Readme.md new file mode 100644 index 0000000..ec129b0 --- /dev/null +++ b/prog-radzh/Readme.md @@ -0,0 +1,15 @@ +# Студент: [Раджабов Амирхан Исламович] +* **Группа:** [228] +* **Курс:** [Основы алгоритмизации и программирования | Мобильная разработка] + +## C# 🟣 +| № | Наименование работы | Ссылка | Статус | +| :-: | :--- | :-: | :-: | +| 01 | Лабораторная работа C# №1 | [Перейти](./works/Сsharp/lab-01) | Завершено | +| 02 | Лабораторная работа C# №2 | [Перейти](./works/Сsharp/lab-02) | Завершено | + +## Kotlin 🔵 +| № | Наименование работы | Ссылка | Статус | +| :-: | :--- | :-: | :-: | +| 01 | Лабораторная работа Kotlin №1 | [Перейти](./works/Kotlin/lab-01) | Завершено | +| 02 | Лабораторная работа Kotlin №2 | [Перейти](./works/Kotlin/lab-02) | Завершено | diff --git a/prog-radzh/works/Kotlin/lab-01/Readme.md b/prog-radzh/works/Kotlin/lab-01/Readme.md new file mode 100644 index 0000000..743181d --- /dev/null +++ b/prog-radzh/works/Kotlin/lab-01/Readme.md @@ -0,0 +1,38 @@ +# Лабораторная работа №1 + +* **Студент:** [Раджабов Амирхан Исламович] +* **Вариант / Карточка:** [Тема: Введение в язык Kotlin. Переменные, базовые типы данных и консольный ввод/вывод информации] + +### task 1 +```kotlin + val tranerName = "Эш Кетчум" + val homeRegion = "Канто" + val badges = 8 + val pokedexCount = 150 + + println("=== БАЗА ДАННЫХ ТРЕНЕРОВ ===") + println("Тренер: $tranerName") + println("Родной регион: $homeRegion") + println("Значков: $badges | Покемонов в Покедексе: $pokedexCount") +``` +### task 2 +```kotlin + print("Введите имя инспектора: ") + val inspectorName = readln() + + print("Введите имя тренера: ") + val trainerName = readln() + + print("Введите стартового покемона: ") + val starterPokemon = readln() + + print("Введите целевой стадион: ") + val targetGym = readln() + + println("****************************************") + println("ЛИЦЕНЗИЯ ТРЕНЕРА") + println("Инспектор: $inspectorName") + println("Тренер: $trainerName [Стартер: $starterPokemon]") + println("Следующая цель: Стадион $targetGym") + println("****************************************") +``` diff --git a/prog-radzh/works/Kotlin/lab-01/lab-01.kt b/prog-radzh/works/Kotlin/lab-01/lab-01.kt new file mode 100644 index 0000000..054d999 --- /dev/null +++ b/prog-radzh/works/Kotlin/lab-01/lab-01.kt @@ -0,0 +1,31 @@ +fun main(){ + // val tranerName = "Эш Кетчум" + // val homeRegion = "Канто" + // val badges = 8 + // val pokedexCount = 150 + + // println("=== БАЗА ДАННЫХ ТРЕНЕРОВ ===") + // println("Тренер: $tranerName") + // println("Родной регион: $homeRegion") + // println("Значков: $badges | Покемонов в Покедексе: $pokedexCount") + + print("Введите имя инспектора: ") + val inspectorName = readln() + + print("Введите имя тренера: ") + val trainerName = readln() + + print("Введите стартового покемона: ") + val starterPokemon = readln() + + print("Введите целевой стадион: ") + val targetGym = readln() + + println("****************************************") + println("ЛИЦЕНЗИЯ ТРЕНЕРА") + println("Инспектор: $inspectorName") + println("Тренер: $trainerName [Стартер: $starterPokemon]") + println("Следующая цель: Стадион $targetGym") + println("****************************************") + +} \ No newline at end of file diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/ProjectEvaluation/lab-01.metadata.v9.bin b/prog-radzh/works/Сsharp/lab-01/.vs/ProjectEvaluation/lab-01.metadata.v9.bin new file mode 100644 index 0000000..c23c7cc Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-01/.vs/ProjectEvaluation/lab-01.metadata.v9.bin differ diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/ProjectEvaluation/lab-01.projects.v9.bin b/prog-radzh/works/Сsharp/lab-01/.vs/ProjectEvaluation/lab-01.projects.v9.bin new file mode 100644 index 0000000..5d88437 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-01/.vs/ProjectEvaluation/lab-01.projects.v9.bin differ diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/ProjectEvaluation/lab-01.strings.v9.bin b/prog-radzh/works/Сsharp/lab-01/.vs/ProjectEvaluation/lab-01.strings.v9.bin new file mode 100644 index 0000000..cfa6f08 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-01/.vs/ProjectEvaluation/lab-01.strings.v9.bin differ diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/CopilotIndices/17.14.1701.5382/CodeChunks.db b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/CopilotIndices/17.14.1701.5382/CodeChunks.db new file mode 100644 index 0000000..c09fa28 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/CopilotIndices/17.14.1701.5382/CodeChunks.db differ diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/CopilotIndices/17.14.1701.5382/SemanticSymbols.db b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/CopilotIndices/17.14.1701.5382/SemanticSymbols.db new file mode 100644 index 0000000..61ba8b2 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/CopilotIndices/17.14.1701.5382/SemanticSymbols.db differ diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/DesignTimeBuild/.dtbcache.v2 b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..84bb829 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/DesignTimeBuild/.dtbcache.v2 differ diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/FileContentIndex/0219af95-49d9-4253-a328-0f65702df73d.vsidx b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/FileContentIndex/0219af95-49d9-4253-a328-0f65702df73d.vsidx new file mode 100644 index 0000000..0802331 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/FileContentIndex/0219af95-49d9-4253-a328-0f65702df73d.vsidx differ diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/v17/.futdcache.v2 b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/v17/.futdcache.v2 new file mode 100644 index 0000000..75951a6 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/v17/.futdcache.v2 differ diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/v17/DocumentLayout.backup.json b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..c251e0f --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/v17/DocumentLayout.backup.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-01\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{38C86E38-EFCD-4B99-9271-15ED2E2D8CED}|lab-01\\lab-01.csproj|c:\\prog-radzh\\works\\\u0441#-lab\\lab-01\\lab-01\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{38C86E38-EFCD-4B99-9271-15ED2E2D8CED}|lab-01\\lab-01.csproj|solutionrelative:lab-01\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-01\\lab-01\\Program.cs", + "RelativeDocumentMoniker": "lab-01\\Program.cs", + "ToolTip": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-01\\lab-01\\Program.cs", + "RelativeToolTip": "lab-01\\Program.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAkAAAAIAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-09-05T18:08:25.89Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/v17/DocumentLayout.json b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/v17/DocumentLayout.json new file mode 100644 index 0000000..549111f --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-01/.vs/lab-01/v17/DocumentLayout.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-01\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{38C86E38-EFCD-4B99-9271-15ED2E2D8CED}|lab-01\\lab-01.csproj|c:\\prog-radzh\\works\\\u0441#-lab\\lab-01\\lab-01\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{38C86E38-EFCD-4B99-9271-15ED2E2D8CED}|lab-01\\lab-01.csproj|solutionrelative:lab-01\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-01\\lab-01\\Program.cs", + "RelativeDocumentMoniker": "lab-01\\Program.cs", + "ToolTip": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-01\\lab-01\\Program.cs", + "RelativeToolTip": "lab-01\\Program.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABYAAAAmAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-09-05T18:08:25.89Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/prog-radzh/works/Сsharp/lab-01/Readme.md b/prog-radzh/works/Сsharp/lab-01/Readme.md new file mode 100644 index 0000000..ff69304 --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-01/Readme.md @@ -0,0 +1,37 @@ +# Лабораторная работа №1 + +* **Студент:** [Раджабов Амирхан Исламович] +* **Вариант / Карточка:** [Введение в язык C#. Переменные, базовые типы данных и консольный ввод/вывод информации] + +--- + +### task 1 +```csharp +//task 1 +string pokemonName = "Чармандер"; +string elementType = "Огонь"; +int level = 1; +int hp = 95; + +Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}"); +``` + +### task 2 +```csharp +//task 2 +string trainerName = Console.ReadLine(); +string pokemonName = Console.ReadLine(); +string elementType = Console.ReadLine(); +string regionName = Console.ReadLine(); + +Console.WriteLine($"Введите имя тренера: {trainerName}"); +Console.WriteLine($"Введите имя покемона: {pokemonName}"); +Console.WriteLine($"Введите стихию: {elementType}"); +Console.WriteLine($"Введите регион: {regionName}"); +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/prog-radzh/works/Сsharp/lab-01/lab-01.sln b/prog-radzh/works/Сsharp/lab-01/lab-01.sln new file mode 100644 index 0000000..84c7b71 --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-01/lab-01.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.37531.7 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lab-01", "lab-01\lab-01.csproj", "{38C86E38-EFCD-4B99-9271-15ED2E2D8CED}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {38C86E38-EFCD-4B99-9271-15ED2E2D8CED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {38C86E38-EFCD-4B99-9271-15ED2E2D8CED}.Debug|Any CPU.Build.0 = Debug|Any CPU + {38C86E38-EFCD-4B99-9271-15ED2E2D8CED}.Release|Any CPU.ActiveCfg = Release|Any CPU + {38C86E38-EFCD-4B99-9271-15ED2E2D8CED}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {73EB97D7-71EE-459D-BED7-CB7CF04DD45E} + EndGlobalSection +EndGlobal diff --git a/prog-radzh/works/Сsharp/lab-01/lab-01/Program.cs b/prog-radzh/works/Сsharp/lab-01/lab-01/Program.cs new file mode 100644 index 0000000..ba75f1c --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-01/lab-01/Program.cs @@ -0,0 +1,27 @@ +//task 1 + +//string pokemonName = "Чармандер"; +//string elementType = "Огонь"; +//int level = 1; +//int hp = 95; + +//Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}"); + +//task 2 + +string trainerName = Console.ReadLine(); +string pokemonName = Console.ReadLine(); +string elementType = Console.ReadLine(); +string regionName = Console.ReadLine(); + +Console.WriteLine($"Введите имя тренера: {trainerName}"); +Console.WriteLine($"Введите имя покемона: {pokemonName}"); +Console.WriteLine($"Введите стихию: {elementType}"); +Console.WriteLine($"Введите регион: {regionName}"); +Console.WriteLine(""); +Console.WriteLine("****************************************"); +Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); +Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); +Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]"); +Console.WriteLine("****************************************"); + diff --git a/prog-radzh/works/Сsharp/lab-01/lab-01/lab-01.csproj b/prog-radzh/works/Сsharp/lab-01/lab-01/lab-01.csproj new file mode 100644 index 0000000..7db55ee --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-01/lab-01/lab-01.csproj @@ -0,0 +1,11 @@ + + + + Exe + net8.0 + lab_01 + enable + enable + + + diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/ProjectEvaluation/lab-02.metadata.v9.bin b/prog-radzh/works/Сsharp/lab-02/.vs/ProjectEvaluation/lab-02.metadata.v9.bin new file mode 100644 index 0000000..aa091b4 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-02/.vs/ProjectEvaluation/lab-02.metadata.v9.bin differ diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/ProjectEvaluation/lab-02.projects.v9.bin b/prog-radzh/works/Сsharp/lab-02/.vs/ProjectEvaluation/lab-02.projects.v9.bin new file mode 100644 index 0000000..a7ebd72 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-02/.vs/ProjectEvaluation/lab-02.projects.v9.bin differ diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/ProjectEvaluation/lab-02.strings.v9.bin b/prog-radzh/works/Сsharp/lab-02/.vs/ProjectEvaluation/lab-02.strings.v9.bin new file mode 100644 index 0000000..27915c7 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-02/.vs/ProjectEvaluation/lab-02.strings.v9.bin differ diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/CopilotIndices/17.14.1701.5382/CodeChunks.db b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/CopilotIndices/17.14.1701.5382/CodeChunks.db new file mode 100644 index 0000000..fc69d17 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/CopilotIndices/17.14.1701.5382/CodeChunks.db differ diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/CopilotIndices/17.14.1701.5382/SemanticSymbols.db b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/CopilotIndices/17.14.1701.5382/SemanticSymbols.db new file mode 100644 index 0000000..e0c1c09 Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/CopilotIndices/17.14.1701.5382/SemanticSymbols.db differ diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/DesignTimeBuild/.dtbcache.v2 b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..436484e Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/DesignTimeBuild/.dtbcache.v2 differ diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/FileContentIndex/9320ad5d-2b2d-41e2-9306-0088a6b712f9.vsidx b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/FileContentIndex/9320ad5d-2b2d-41e2-9306-0088a6b712f9.vsidx new file mode 100644 index 0000000..573a84b Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/FileContentIndex/9320ad5d-2b2d-41e2-9306-0088a6b712f9.vsidx differ diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/v17/.futdcache.v2 b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/v17/.futdcache.v2 new file mode 100644 index 0000000..b701a7b Binary files /dev/null and b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/v17/.futdcache.v2 differ diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/v17/DocumentLayout.backup.json b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..48a1e0a --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/v17/DocumentLayout.backup.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{1618B996-07F0-4089-B793-2F90075E414D}|lab-02\\lab-02.csproj|c:\\prog-radzh\\works\\\u0441#-lab\\lab-02\\lab-02\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{1618B996-07F0-4089-B793-2F90075E414D}|lab-02\\lab-02.csproj|solutionrelative:lab-02\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\lab-02\\Program.cs", + "RelativeDocumentMoniker": "lab-02\\Program.cs", + "ToolTip": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\lab-02\\Program.cs", + "RelativeToolTip": "lab-02\\Program.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAEUAAAABAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-09-05T19:03:29.802Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/v17/DocumentLayout.json b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/v17/DocumentLayout.json new file mode 100644 index 0000000..fd61563 --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-02/.vs/lab-02/v17/DocumentLayout.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{1618B996-07F0-4089-B793-2F90075E414D}|lab-02\\lab-02.csproj|c:\\prog-radzh\\works\\\u0441#-lab\\lab-02\\lab-02\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{1618B996-07F0-4089-B793-2F90075E414D}|lab-02\\lab-02.csproj|solutionrelative:lab-02\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\lab-02\\Program.cs", + "RelativeDocumentMoniker": "lab-02\\Program.cs", + "ToolTip": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\lab-02\\Program.cs*", + "RelativeToolTip": "lab-02\\Program.cs*", + "ViewState": "AgIAACsAAAAAAAAAAAAwwEUAAAABAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-09-05T19:03:29.802Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/prog-radzh/works/Сsharp/lab-02/Readme.md b/prog-radzh/works/Сsharp/lab-02/Readme.md new file mode 100644 index 0000000..81c84f6 --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-02/Readme.md @@ -0,0 +1,83 @@ +# Лабораторная работа №2 + +* **Студент:** [Раджабов Амирхан Исламович] +* **Вариант / Карточка:** [БЛОК 1: Ввод данных и преобразование типов (int.Parse)] + +--- +### task 1.1 +```csharp +// task 1.1 +Console.WriteLine("=== Прокачка покемона ==="); + +Console.Write("Базовая атака: "); +int damage = int.Parse(Console.ReadLine()); + +Console.Write("Уровень: "); +int lvl = int.Parse(Console.ReadLine()); + +int totalDamage = damage + (lvl * 5); + +Console.WriteLine($"----- Итоговая атака -----\n----- {totalDamage} -----"); +``` +### task 1.2 +```csharp +// task 1.2 +int balanceTrainer = 1500; +int potionCost = 200; +Console.WriteLine($"Баланс тренера: {balanceTrainer}"); + +Console.Write("Кол-во зелей: "); +int amountPotion = int.Parse(Console.ReadLine()); +balanceTrainer -= amountPotion * potionCost; +Console.WriteLine(balanceTrainer); +``` +### task 2.1 +```csharp +// task 2.1 +int hp = int.Parse(Console.ReadLine()); + +if (hp <= 0) +{ + Console.WriteLine("Покемон потерял сознание! Верните его в покебол."); +} + +else if (1 <= hp && hp <= 20) +{ + Console.WriteLine("Критическое состояние! Срочно используйте зелье!"); +} +else if (21 <= hp && hp <= 50) +{ + Console.WriteLine("Покемон ранен, будьте осторожны"); +} +else +{ + Console.WriteLine("Покемон полон сил и готов к бою!"); +} +``` +### task 2.2 +```csharp +// task 2.2 +Console.WriteLine("1:— Атака \n2:— Инвентарь \n3:— Сменить покемона \n4:— Побег"); + +Console.Write("Выбор действий:"); +int num = int.Parse(Console.ReadLine()); + +switch (num) +{ + 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/prog-radzh/works/Сsharp/lab-02/lab-02.sln b/prog-radzh/works/Сsharp/lab-02/lab-02.sln new file mode 100644 index 0000000..5c4ecaf --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-02/lab-02.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.37531.7 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lab-02", "lab-02\lab-02.csproj", "{1618B996-07F0-4089-B793-2F90075E414D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1618B996-07F0-4089-B793-2F90075E414D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1618B996-07F0-4089-B793-2F90075E414D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1618B996-07F0-4089-B793-2F90075E414D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1618B996-07F0-4089-B793-2F90075E414D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {58730CCD-9E8F-4FE4-8515-0B652CA00D3C} + EndGlobalSection +EndGlobal diff --git a/prog-radzh/works/Сsharp/lab-02/lab-02/Program.cs b/prog-radzh/works/Сsharp/lab-02/lab-02/Program.cs new file mode 100644 index 0000000..84037de --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-02/lab-02/Program.cs @@ -0,0 +1,70 @@ +//// task 1.1 +//Console.WriteLine("=== Прокачка покемона ==="); + +//Console.Write("Базовая атака: "); +//int damage = int.Parse(Console.ReadLine()); + +//Console.Write("Уровень: "); +//int lvl = int.Parse(Console.ReadLine()); + +//int totalDamage = damage + (lvl * 5); + +//Console.WriteLine($"----- Итоговая атака -----\n----- {totalDamage} -----"); + + +//// task 1.2 +//int balanceTrainer = 1500; +//int potionCost = 200; +//Console.WriteLine($"Баланс тренера: {balanceTrainer}"); + +//Console.Write("Кол-во зелей: "); +//int amountPotion = int.Parse(Console.ReadLine()); +//balanceTrainer -= amountPotion * potionCost; +//Console.WriteLine(balanceTrainer); + + +//// task 2.1 +//int hp = int.Parse(Console.ReadLine()); + +//if (hp <= 0) +//{ +// Console.WriteLine("Покемон потерял сознание! Верните его в покебол."); +//} + +//else if (1 <= hp && hp <= 20) +//{ +// Console.WriteLine("Критическое состояние! Срочно используйте зелье!"); +//} +//else if (21 <= hp && hp <= 50) +//{ +// Console.WriteLine("Покемон ранен, будьте осторожны"); +//} +//else +//{ +// Console.WriteLine("Покемон полон сил и готов к бою!"); +//} + +//// task 2.2 +//Console.WriteLine("1:— Атака \n2:— Инвентарь \n3:— Сменить покемона \n4:— Побег"); + +//Console.Write("Выбор действий:"); +//int num = int.Parse(Console.ReadLine()); + +//switch (num) +//{ +// 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/prog-radzh/works/Сsharp/lab-02/lab-02/lab-02.csproj b/prog-radzh/works/Сsharp/lab-02/lab-02/lab-02.csproj new file mode 100644 index 0000000..3da7e3a --- /dev/null +++ b/prog-radzh/works/Сsharp/lab-02/lab-02/lab-02.csproj @@ -0,0 +1,11 @@ + + + + Exe + net9.0 + lab_02 + enable + enable + + +