Skip to content

Instantly share code, notes, and snippets.

View Strelok78's full-sized avatar

Shota Strelok78

  • Saint-Petersburg, Russia
View GitHub Profile
@Strelok78
Strelok78 / iJunior_C#_Lesson_18
Created April 1, 2025 11:16
Замена значений в 2х переменных
namespace iJuniorPractice;
class Program
{
static void Main(string[] args)
{
string name = "Familievich";
string surname = "Valerii";
string tea = "coffee";
string coffee = "tea";
@Strelok78
Strelok78 / iJunior_Lesson_2
Last active July 24, 2024 20:47
iJunior_Lesson_2
namespace iJuniorPractice;
class Program
{
static void Main(string[] args)
{
string informationAssembled = "";
string[] questions = new string[]
{
"Напишите свое имя, пожалуйста: ",
namespace iJunior;
class Program
{
static void Main(string[] args)
{
int booksCountMax = 1;
int pensCountMin = 0;
double currentPositionX = 1.2;
double currentPositionY = 1.22;
@Strelok78
Strelok78 / Unification of troops
Last active May 17, 2023 08:13
All fighters from squad 1, whose last name begins with the letter "Б", need to be transferred to squad 2.
internal class Program
{
public static void Main()
{
SoldierBaseUI application = new SoldierBaseUI();
application.StartUI();
}
}
class SoldierBaseUI
@Strelok78
Strelok78 / Armament report
Last active May 17, 2023 08:12
Gets a data set consisting of a name and a rank.
internal class Program
{
public static void Main()
{
SoldierBaseUI application = new SoldierBaseUI();
application.StartUI();
}
}
class SoldierBaseUI
@Strelok78
Strelok78 / Check rotten food
Last active May 17, 2023 08:11
There is a set of stew. The stew has a name, a year of production and an expiration date. Displays all expired stews.
internal class Program
{
public static void Main()
{
RootenFoodDetectorUI application = new RootenFoodDetectorUI();
application.StartUI();
}
}
class RootenFoodDetectorUI
@Strelok78
Strelok78 / Top Players on Server
Last active May 17, 2023 08:10
Determines the top 3 players by level and the top 3 players by strength, then shows each top.
internal class Program
{
public static void Main()
{
TopPlayerTable table = new TopPlayerTable();
table.StartUI();
}
}
class TopPlayerTable
@Strelok78
Strelok78 / Anarchy in Hospital (using LINQ)
Last active May 17, 2023 08:09
Hospital's Patient Registration Program
internal class Program
{
public static void Main()
{
HospitalProgrammUI application = new HospitalProgrammUI();
application.StartUI();
}
}
enum Diseases
@Strelok78
Strelok78 / Amnesty (using LINQ)
Last active May 17, 2023 08:08
There has been an amnesty in our great country of Arstock! All people imprisoned for the crime of "Anti-Government" should be excluded from the list of prisoners.
internal class Program
{
public static void Main()
{
PoliceProgrammUI application = new PoliceProgrammUI();
application.StartUI();
}
}
class PoliceProgrammUI
@Strelok78
Strelok78 / Search for criminals (using LINQ)
Last active May 17, 2023 08:07
We have a list of all the criminals. There are: full name, whether he is in custody, height, weight, nationality. Detectives use the program. The detective displays all criminals who fit the specified parameters, except for prisoners in custody.
internal class Program
{
public static void Main()
{
DetectiveProgrammUI application = new DetectiveProgrammUI();
application.StartUI();
}
}
class DetectiveProgrammUI