From 87f7abd7f61e116c5c076c7db303779b956bd46e Mon Sep 17 00:00:00 2001 From: leonti123 Date: Wed, 16 Sep 2026 19:17:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B2=D1=83=D1=8E=20=D0=BB=D0=B0=D0=B1=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-01/exercises/.gitignore | 32 +++++++++++++++++++ works/lab-01/exercises/src/Main.kt | 30 +++++++++++++++++ works/lab-01/lesson1Exersice1/.gitignore | 32 +++++++++++++++++++ works/lab-01/lesson1Exersice1/src/Main.kt | 13 ++++++++ works/lab-01/lesson2Exercise2/.gitignore | 32 +++++++++++++++++++ works/lab-01/lesson2Exercise2/src/Main.kt | 19 +++++++++++ works/lab-01/Новый текстовый документ (2).txt | 0 works/lab-01/Новый текстовый документ.txt | 0 8 files changed, 158 insertions(+) create mode 100644 works/lab-01/exercises/.gitignore create mode 100644 works/lab-01/exercises/src/Main.kt create mode 100644 works/lab-01/lesson1Exersice1/.gitignore create mode 100644 works/lab-01/lesson1Exersice1/src/Main.kt create mode 100644 works/lab-01/lesson2Exercise2/.gitignore create mode 100644 works/lab-01/lesson2Exercise2/src/Main.kt delete mode 100644 works/lab-01/Новый текстовый документ (2).txt delete mode 100644 works/lab-01/Новый текстовый документ.txt diff --git a/works/lab-01/exercises/.gitignore b/works/lab-01/exercises/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/lab-01/exercises/.gitignore @@ -0,0 +1,32 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Kotlin ### +.kotlin + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/works/lab-01/exercises/src/Main.kt b/works/lab-01/exercises/src/Main.kt new file mode 100644 index 0000000..5b3843c --- /dev/null +++ b/works/lab-01/exercises/src/Main.kt @@ -0,0 +1,30 @@ +//TIP To Run code, press or +// click the icon in the gutter. +fun main() { +print("Введите тип карты: ") + val cardType: String = readln() +print("Введите подтип карты: ") + val cardSubtype: String = readln() +print("Введите название карты: ") + val cardName: String = readln() +print("Введите описание основного эффекта: ") + val effectText: String = readln() +print("Введите правило подтипа: ") + val ruleText: String = readln() +print("Введите имя художника: ") + val illustrator: String = readln() + + val healAmount: Int = 60 + val cardNumber: Int = 105 + val totalInSet: Int = 106 + + println("======================================================================") + println("[$cardType] $cardName [$cardSubtype]") + println("----------------------------------------------------------------------") + println("Эффект: $effectText") + + println("Правило: $ruleText") + println("----------------------------------------------------------------------") + println("Илл. $illustrator $cardNumber/$totalInSet ★") + println("======================================================================") +} \ No newline at end of file diff --git a/works/lab-01/lesson1Exersice1/.gitignore b/works/lab-01/lesson1Exersice1/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/lab-01/lesson1Exersice1/.gitignore @@ -0,0 +1,32 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Kotlin ### +.kotlin + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/works/lab-01/lesson1Exersice1/src/Main.kt b/works/lab-01/lesson1Exersice1/src/Main.kt new file mode 100644 index 0000000..eee93d5 --- /dev/null +++ b/works/lab-01/lesson1Exersice1/src/Main.kt @@ -0,0 +1,13 @@ +//TIP To Run code, press or +// click the icon in the gutter. +fun main() { + val trainerName:String = "Эш Кетчум" + val homeRegion:String = "Канто" + val badges:Int = 8 + val pokedexCount:Int = 150 + + println("=== БАЗА ДАННЫХ ТРЕНЕРОВ ===") + println("Тренер: $trainerName") + println("Родной регион: $homeRegion") + println("Значков: $badges | Покемонов в Покедексе: $pokedexCount") +} \ No newline at end of file diff --git a/works/lab-01/lesson2Exercise2/.gitignore b/works/lab-01/lesson2Exercise2/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/lab-01/lesson2Exercise2/.gitignore @@ -0,0 +1,32 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Kotlin ### +.kotlin + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/works/lab-01/lesson2Exercise2/src/Main.kt b/works/lab-01/lesson2Exercise2/src/Main.kt new file mode 100644 index 0000000..ac62c76 --- /dev/null +++ b/works/lab-01/lesson2Exercise2/src/Main.kt @@ -0,0 +1,19 @@ +//TIP To Run code, press or +// click the icon in the gutter. +fun main() { + print("Введите имя инспектора: ") + val inspectorName: String = readln() + print("Введите имя тренера: ") + val trainerName: String = readln() + print("Введите стартового покемона: ") + val starterPokemon: String = readln() + print("Введите целевой стадион: ") + val targetGym: String = readln() + + println("\n" + "****************************************") + println("ЛИЦЕНЗИЯ ТРЕНЕРА ") + println("Инспектор: $inspectorName") + println("Тренер: $trainerName [Стартер: $starterPokemon]") + println("Следующая цель: $targetGym") + println("****************************************") +} diff --git a/works/lab-01/Новый текстовый документ (2).txt b/works/lab-01/Новый текстовый документ (2).txt deleted file mode 100644 index e69de29..0000000 diff --git a/works/lab-01/Новый текстовый документ.txt b/works/lab-01/Новый текстовый документ.txt deleted file mode 100644 index e69de29..0000000