Дополнение 1 урока

This commit is contained in:
328p
2026-09-03 17:28:40 +03:00
parent 5dc7b88661
commit 67a89c9312
5 changed files with 74 additions and 5 deletions
+4 -5
View File
@@ -1,7 +1,6 @@
# Студент: [ФИО]
* **Группа:** [Номер]
* **Курс:** [Название дисциплины]
# Студент: К0киевГригорий Робертович
* **Группа:** 328
* **Курс:** Разработка Программных Модулей
## Список работ
* [Лабораторная работа №1](./works/lab-01)
* [Лабораторная работа №2](./works/lab-02)
+16
View File
@@ -0,0 +1,16 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "stage1", "stage1\stage1.csproj", "{DE0CB194-B073-4AE3-97D0-1DF92131C4D8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DE0CB194-B073-4AE3-97D0-1DF92131C4D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DE0CB194-B073-4AE3-97D0-1DF92131C4D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DE0CB194-B073-4AE3-97D0-1DF92131C4D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DE0CB194-B073-4AE3-97D0-1DF92131C4D8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
+44
View File
@@ -0,0 +1,44 @@
namespace stage1;
class Program
{
static void Main(string[] args)
{
Console.Write("стадия развития: \n ");
string stage = Console.ReadLine();
Console.Write("имя покемона: \n ");
string name = Console.ReadLine();
Console.Write("вид покемона: \n ");
string category = Console.ReadLine();
Console.Write("название первой атаки: \n ");
string attack1Name = Console.ReadLine();
Console.Write("эффект первой атаки: \n ");
string attack1Desc = Console.ReadLine();
Console.Write("название второй атаки: \n ");
string attack2Name = Console.ReadLine();
Console.Write("эффект второй атаки: \n ");
string attack2Desc = Console.ReadLine();
Console.Write("уязвимость: \n ");
string wekness = Console.ReadLine();
Console.Write("устойчивость: \n ");
string resistsnce = Console.ReadLine();
int hp = 60;
int number = 25;
double height = 0.4;
double weight = 6.0;
int attack2Damage = 20;
int retreatCost = 1;
Console.Clear();
Console.WriteLine($"====================================================================== \n [{stage}] {name,-42} ОЖ: {hp} [⚡] \n " +
$"---------------------------------------------------------------------- \n" +
$" № {number} | Вид: {category} | Рост: {height} м | Вес: {weight} кг \n" +
$"---------------------------------------------------------------------- \n " +
$"[Атака 1] {attack1Name} \n Эффект: {attack1Desc} \n \n" +
$"[Атака 2] {attack2Name,-42} Урон: {attack2Damage} \n Эффект: {attack2Desc} \n " +
$"---------------------------------------------------------------------- \n" +
$"Слабость: {wekness} \n Устойчивость: {resistsnce} \n Отступление: {retreatCost} \n" +
$"======================================================================");
}
}
+10
View File
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>