diff --git a/1. Hra/1. Hra.csproj b/1. Hra/1. Hra.csproj new file mode 100644 index 00000000..650343e0 --- /dev/null +++ b/1. Hra/1. Hra.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + _1._Hra + enable + enable + + + diff --git a/1. Hra/Program.cs b/1. Hra/Program.cs new file mode 100644 index 00000000..3751555c --- /dev/null +++ b/1. Hra/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/AppsLab.CSharp.Exercises.sln b/AppsLab.CSharp.Exercises.sln index 58bbf6b5..a7445d10 100644 --- a/AppsLab.CSharp.Exercises.sln +++ b/AppsLab.CSharp.Exercises.sln @@ -5,98 +5,125 @@ VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{56555FB0-B513-49EF-9002-A5AF135EA090}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-001-StartHere", "src\AppsLab-001-StartHere\AppsLab-001-StartHere.csproj", "{57860CA2-0054-465E-BD1E-024FF8D81354}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-001-StartHere", "src\AppsLab-001-StartHere\AppsLab-001-StartHere.csproj", "{57860CA2-0054-465E-BD1E-024FF8D81354}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{FC89E9B9-1723-4328-B6F1-00EE62E6260F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-001-StartHere.Tests", "tests\AppsLab-001-StartHere.Tests\AppsLab-001-StartHere.Tests.csproj", "{FE64EA2A-841F-49D7-94C6-BB7E50FC972D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-001-StartHere.Tests", "tests\AppsLab-001-StartHere.Tests\AppsLab-001-StartHere.Tests.csproj", "{FE64EA2A-841F-49D7-94C6-BB7E50FC972D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-002-ConsoleWriteLine", "src\AppsLab-002-ConsoleWriteLine\AppsLab-002-ConsoleWriteLine.csproj", "{8CA6707B-A381-4131-909F-50D592953588}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-002-ConsoleWriteLine", "src\AppsLab-002-ConsoleWriteLine\AppsLab-002-ConsoleWriteLine.csproj", "{8CA6707B-A381-4131-909F-50D592953588}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-005-DataTypes", "src\AppsLab-005-DataTypes\AppsLab-005-DataTypes.csproj", "{AB306D1E-2942-4297-ACC3-2975FB8BF18F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-005-DataTypes", "src\AppsLab-005-DataTypes\AppsLab-005-DataTypes.csproj", "{AB306D1E-2942-4297-ACC3-2975FB8BF18F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-006-Constants", "src\AppsLab-006-Constants\AppsLab-006-Constants.csproj", "{F1E80A4A-241C-496D-92D6-B047A0EAF030}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-006-Constants", "src\AppsLab-006-Constants\AppsLab-006-Constants.csproj", "{F1E80A4A-241C-496D-92D6-B047A0EAF030}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-007-Casting", "src\AppsLab-007-Casting\AppsLab-007-Casting.csproj", "{AEEAB66C-8B62-4844-A721-1FA49E82FDEB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-007-Casting", "src\AppsLab-007-Casting\AppsLab-007-Casting.csproj", "{AEEAB66C-8B62-4844-A721-1FA49E82FDEB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-007-Casting.Tests", "tests\AppsLab-007-Casting.Tests\AppsLab-007-Casting.Tests.csproj", "{5B78F61E-B52C-4920-BE97-42AADFAA726F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-007-Casting.Tests", "tests\AppsLab-007-Casting.Tests\AppsLab-007-Casting.Tests.csproj", "{5B78F61E-B52C-4920-BE97-42AADFAA726F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-008-ConsoleReadLine", "src\AppsLab-008-ConsoleReadLine\AppsLab-008-ConsoleReadLine.csproj", "{5314C734-E722-4454-A772-D0F4641E1563}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-008-ConsoleReadLine", "src\AppsLab-008-ConsoleReadLine\AppsLab-008-ConsoleReadLine.csproj", "{5314C734-E722-4454-A772-D0F4641E1563}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-009-Operators", "src\AppsLab-009-Operators\AppsLab-009-Operators.csproj", "{B6030D54-19E2-40EF-8C93-17669CEC23E0}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-009-Operators", "src\AppsLab-009-Operators\AppsLab-009-Operators.csproj", "{B6030D54-19E2-40EF-8C93-17669CEC23E0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-009-Operators.Tests", "tests\AppsLab-009-Operators.Tests\AppsLab-009-Operators.Tests.csproj", "{A6659FD2-5F11-432B-91B7-C64EAEAF669C}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-009-Operators.Tests", "tests\AppsLab-009-Operators.Tests\AppsLab-009-Operators.Tests.csproj", "{A6659FD2-5F11-432B-91B7-C64EAEAF669C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-010-Math", "src\AppsLab-010-Math\AppsLab-010-Math.csproj", "{FD645D4C-9DC8-4603-A77B-8A4782F175F4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-010-Math", "src\AppsLab-010-Math\AppsLab-010-Math.csproj", "{FD645D4C-9DC8-4603-A77B-8A4782F175F4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-010-Math.Tests", "tests\AppsLab-010-Math.Tests\AppsLab-010-Math.Tests.csproj", "{A4527295-4BEE-4E42-8855-B0503A4515E4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-010-Math.Tests", "tests\AppsLab-010-Math.Tests\AppsLab-010-Math.Tests.csproj", "{A4527295-4BEE-4E42-8855-B0503A4515E4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-011-Strings", "src\AppsLab-011-Strings\AppsLab-011-Strings.csproj", "{E90B0337-37CA-401C-997C-05DD11E08FEF}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-011-Strings", "src\AppsLab-011-Strings\AppsLab-011-Strings.csproj", "{E90B0337-37CA-401C-997C-05DD11E08FEF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-011-Strings.Tests", "tests\AppsLab-011-Strings.Tests\AppsLab-011-Strings.Tests.csproj", "{22097A4D-261D-4F21-8080-10B4DAAC9E01}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-011-Strings.Tests", "tests\AppsLab-011-Strings.Tests\AppsLab-011-Strings.Tests.csproj", "{22097A4D-261D-4F21-8080-10B4DAAC9E01}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-012-Boolean", "src\AppsLab-012-Boolean\AppsLab-012-Boolean.csproj", "{EE7C6CDA-F919-4078-81DB-E4BA7F7DE34A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-012-Boolean", "src\AppsLab-012-Boolean\AppsLab-012-Boolean.csproj", "{EE7C6CDA-F919-4078-81DB-E4BA7F7DE34A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-012-Boolean.Tests", "tests\AppsLab-012-Boolean.Tests\AppsLab-012-Boolean.Tests.csproj", "{E41ECA72-68B0-4B1B-8A47-39C0E5DA9B94}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-012-Boolean.Tests", "tests\AppsLab-012-Boolean.Tests\AppsLab-012-Boolean.Tests.csproj", "{E41ECA72-68B0-4B1B-8A47-39C0E5DA9B94}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-013-Conditions", "src\AppsLab-013-Conditions\AppsLab-013-Conditions.csproj", "{AD575FD0-3F7B-4CA3-B802-9430C0F61A42}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-013-Conditions", "src\AppsLab-013-Conditions\AppsLab-013-Conditions.csproj", "{AD575FD0-3F7B-4CA3-B802-9430C0F61A42}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-013-Conditions.Tests", "tests\AppsLab-013-Conditions.Tests\AppsLab-013-Conditions.Tests.csproj", "{8B9BEF41-B5E2-4B56-AA43-F83249D4E639}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-013-Conditions.Tests", "tests\AppsLab-013-Conditions.Tests\AppsLab-013-Conditions.Tests.csproj", "{8B9BEF41-B5E2-4B56-AA43-F83249D4E639}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-014-Switch", "src\AppsLab-014-Switch\AppsLab-014-Switch.csproj", "{EBA30F52-B7DA-4B32-BE4F-6914145E2447}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-014-Switch", "src\AppsLab-014-Switch\AppsLab-014-Switch.csproj", "{EBA30F52-B7DA-4B32-BE4F-6914145E2447}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-014-Switch.Tests", "tests\AppsLab-014-Switch.Tests\AppsLab-014-Switch.Tests.csproj", "{6A95C2D3-3B32-4612-A909-2F2AC223416E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-014-Switch.Tests", "tests\AppsLab-014-Switch.Tests\AppsLab-014-Switch.Tests.csproj", "{6A95C2D3-3B32-4612-A909-2F2AC223416E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-015-Arrays", "src\AppsLab-015-Arrays\AppsLab-015-Arrays.csproj", "{DA216DFF-5EC8-4F02-9D0A-3D49212D6903}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-015-Arrays", "src\AppsLab-015-Arrays\AppsLab-015-Arrays.csproj", "{DA216DFF-5EC8-4F02-9D0A-3D49212D6903}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-015-Arrays.Tests", "tests\AppsLab-015-Arrays.Tests\AppsLab-015-Arrays.Tests.csproj", "{2BBC2988-4C3C-45B7-9EA6-F47A23260F32}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-015-Arrays.Tests", "tests\AppsLab-015-Arrays.Tests\AppsLab-015-Arrays.Tests.csproj", "{2BBC2988-4C3C-45B7-9EA6-F47A23260F32}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-016-Loops", "src\AppsLab-016-Loops\AppsLab-016-Loops.csproj", "{2A373E5B-4048-4E70-99EE-2676D2DA9952}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-016-Loops", "src\AppsLab-016-Loops\AppsLab-016-Loops.csproj", "{2A373E5B-4048-4E70-99EE-2676D2DA9952}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-016-Loops.Tests", "tests\AppsLab-016-Loops.Tests\AppsLab-016-Loops.Tests.csproj", "{DB34DF8E-3B5B-44CC-9245-AD79F3198BD3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-016-Loops.Tests", "tests\AppsLab-016-Loops.Tests\AppsLab-016-Loops.Tests.csproj", "{DB34DF8E-3B5B-44CC-9245-AD79F3198BD3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-017-List", "src\AppsLab-017-List\AppsLab-017-List.csproj", "{CEAA82FA-127F-47C2-B25F-5588FB63F7D1}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-017-List", "src\AppsLab-017-List\AppsLab-017-List.csproj", "{CEAA82FA-127F-47C2-B25F-5588FB63F7D1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-017-List.Tests", "tests\AppsLab-017-List.Tests\AppsLab-017-List.Tests.csproj", "{FCEEAC1F-D3CF-4C18-9CA3-2288B5DFAA14}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-017-List.Tests", "tests\AppsLab-017-List.Tests\AppsLab-017-List.Tests.csproj", "{FCEEAC1F-D3CF-4C18-9CA3-2288B5DFAA14}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-018-Methods", "src\AppsLab-018-Methods\AppsLab-018-Methods.csproj", "{571B250E-E17D-4CD6-8778-52B838EB9DA0}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-018-Methods", "src\AppsLab-018-Methods\AppsLab-018-Methods.csproj", "{571B250E-E17D-4CD6-8778-52B838EB9DA0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-018-Methods.Tests", "tests\AppsLab-018-Methods.Tests\AppsLab-018-Methods.Tests.csproj", "{526B06CA-4937-44F2-97FB-E85680DD7867}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-018-Methods.Tests", "tests\AppsLab-018-Methods.Tests\AppsLab-018-Methods.Tests.csproj", "{526B06CA-4937-44F2-97FB-E85680DD7867}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-019-MethodsOverloading", "src\AppsLab-019-MethodsOverloading\AppsLab-019-MethodsOverloading.csproj", "{24D704DB-AB81-4F18-899C-910E8D45FC8B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-019-MethodsOverloading", "src\AppsLab-019-MethodsOverloading\AppsLab-019-MethodsOverloading.csproj", "{24D704DB-AB81-4F18-899C-910E8D45FC8B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-019-MethodsOverloading.Tests", "tests\AppsLab-019-MethodsOverloading.Tests\AppsLab-019-MethodsOverloading.Tests.csproj", "{05E10AD6-94B3-4761-95E4-1F19E14F36D1}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-019-MethodsOverloading.Tests", "tests\AppsLab-019-MethodsOverloading.Tests\AppsLab-019-MethodsOverloading.Tests.csproj", "{05E10AD6-94B3-4761-95E4-1F19E14F36D1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-020-OOP", "src\AppsLab-020-OOP\AppsLab-020-OOP.csproj", "{8CB5085F-5996-490C-90EC-022AB4AD9CBC}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-020-OOP", "src\AppsLab-020-OOP\AppsLab-020-OOP.csproj", "{8CB5085F-5996-490C-90EC-022AB4AD9CBC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-021-Interfaces", "src\AppsLab-021-Interfaces\AppsLab-021-Interfaces.csproj", "{9E3CBBE1-9A1A-4C1C-817C-28D383D18384}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-021-Interfaces", "src\AppsLab-021-Interfaces\AppsLab-021-Interfaces.csproj", "{9E3CBBE1-9A1A-4C1C-817C-28D383D18384}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-022-Files", "src\AppsLab-022-Files\AppsLab-022-Files.csproj", "{D3BFAA25-E460-4EC1-A60C-C183775DE8CC}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-022-Files", "src\AppsLab-022-Files\AppsLab-022-Files.csproj", "{D3BFAA25-E460-4EC1-A60C-C183775DE8CC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-024-Events", "src\AppsLab-024-Events\AppsLab-024-Events.csproj", "{FC964C5F-0F80-4EDF-97E8-A4A20DE5492D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-024-Events", "src\AppsLab-024-Events\AppsLab-024-Events.csproj", "{FC964C5F-0F80-4EDF-97E8-A4A20DE5492D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-025-Lambda", "src\AppsLab-025-Lambda\AppsLab-025-Lambda.csproj", "{80DD908F-E015-4FD0-93AA-743A22E745EE}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-025-Lambda", "src\AppsLab-025-Lambda\AppsLab-025-Lambda.csproj", "{80DD908F-E015-4FD0-93AA-743A22E745EE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-026-LINQ", "src\AppsLab-026-LINQ\AppsLab-026-LINQ.csproj", "{AE78C877-CE90-425B-BDDE-4951C6C3B577}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-026-LINQ", "src\AppsLab-026-LINQ\AppsLab-026-LINQ.csproj", "{AE78C877-CE90-425B-BDDE-4951C6C3B577}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-027-Generics", "src\AppsLab-027-Generics\AppsLab-027-Generics.csproj", "{0333D249-02A9-47AD-BDA6-5FD7ABF7F066}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-027-Generics", "src\AppsLab-027-Generics\AppsLab-027-Generics.csproj", "{0333D249-02A9-47AD-BDA6-5FD7ABF7F066}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-028-Indexers", "src\AppsLab-028-Indexers\AppsLab-028-Indexers.csproj", "{FA0DDC17-5730-4310-A421-7668B21E1CDD}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-028-Indexers", "src\AppsLab-028-Indexers\AppsLab-028-Indexers.csproj", "{FA0DDC17-5730-4310-A421-7668B21E1CDD}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-029-Async", "src\AppsLab-029-Async\AppsLab-029-Async.csproj", "{EC3E5278-8120-4A67-A57B-B7DE5211E12A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-029-Async", "src\AppsLab-029-Async\AppsLab-029-Async.csproj", "{EC3E5278-8120-4A67-A57B-B7DE5211E12A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-030-JSON", "src\AppsLab-030-JSON\AppsLab-030-JSON.csproj", "{4D0AE262-0F9B-4E15-B5EA-6CCB0B81FE2C}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-030-JSON", "src\AppsLab-030-JSON\AppsLab-030-JSON.csproj", "{4D0AE262-0F9B-4E15-B5EA-6CCB0B81FE2C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-031-XML", "src\AppsLab-031-XML\AppsLab-031-XML.csproj", "{7BEA7878-B5BA-4480-BC56-2F7B836F64B9}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-031-XML", "src\AppsLab-031-XML\AppsLab-031-XML.csproj", "{7BEA7878-B5BA-4480-BC56-2F7B836F64B9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-033-NuGet", "src\AppsLab-033-NuGet\AppsLab-033-NuGet.csproj", "{38FFE1DF-4B49-40C1-9908-51860BCF2D3E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-033-NuGet", "src\AppsLab-033-NuGet\AppsLab-033-NuGet.csproj", "{38FFE1DF-4B49-40C1-9908-51860BCF2D3E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-034-Debug", "src\AppsLab-034-Debug\AppsLab-034-Debug.csproj", "{83C963FD-DC23-46E8-9545-F56197164810}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppsLab-034-Debug", "src\AppsLab-034-Debug\AppsLab-034-Debug.csproj", "{83C963FD-DC23-46E8-9545-F56197164810}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Projekt operacie", "Projekt random\Projekt operacie.csproj", "{03B4600D-B5FD-4A19-9E23-565F95D7AEA1}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Projekt bool", "Projekt bool\Projekt bool.csproj", "{57994BC9-8640-4079-9513-00A5DF03AF33}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Projekt if, else", "Projekt if, else\Projekt if, else.csproj", "{799DC1CB-8575-451B-AAE5-8B8D0046A678}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Kalkulacka", "Kalkulacka\Kalkulacka.csproj", "{FAF894EB-A533-4F0D-9C84-918261A01455}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Kalkulacka switch", "Kalkulacka switch\Kalkulacka switch.csproj", "{1C24154D-580D-4C70-B167-930EF4932B0B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Example switch", "Example switch\Example switch.csproj", "{6C1921DE-7BAD-4FDF-A9E4-B14677955159}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vypisovanie cisel", "IDK\Vypisovanie cisel.csproj", "{BAFB0BE1-2927-473C-9995-7DF9E8DE4082}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Random", "Random\Random.csproj", "{553309F6-CA3A-4C25-A207-C4E09E7FCEA8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tabulka", "Tabulka\Tabulka.csproj", "{E4478AEF-B119-4948-9797-EB60F90E9519}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Scitanie cisel", "Scitanie cisel\Scitanie cisel.csproj", "{2BA67598-10B8-47DF-AE2B-C67A2E1A840A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "random cislo z klavesnice a z toho citanie", "random cislo z klavesnice a z toho citanie\random cislo z klavesnice a z toho citanie.csproj", "{19BB9718-D31C-4B93-95DF-A449A12AC6FE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "continue", "continue\continue.csproj", "{EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Meno a vek tahsie", "ZATIALLLLL NEVIEM\Meno a vek tahsie.csproj", "{8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Name and age", "Name and age\Name and age.csproj", "{D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "1. Hra", "1. Hra\1. Hra.csproj", "{D5526379-D78C-4D77-82BA-82DEAA164F96}" EndProject Global - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Debug|x64 = Debug|x64 @@ -226,18 +253,6 @@ Global {A6659FD2-5F11-432B-91B7-C64EAEAF669C}.Release|x64.Build.0 = Release|Any CPU {A6659FD2-5F11-432B-91B7-C64EAEAF669C}.Release|x86.ActiveCfg = Release|Any CPU {A6659FD2-5F11-432B-91B7-C64EAEAF669C}.Release|x86.Build.0 = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|x64.ActiveCfg = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|x64.Build.0 = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|x86.ActiveCfg = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|x86.Build.0 = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|Any CPU.Build.0 = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|x64.ActiveCfg = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|x64.Build.0 = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|x86.ActiveCfg = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|x86.Build.0 = Release|Any CPU {FD645D4C-9DC8-4603-A77B-8A4782F175F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FD645D4C-9DC8-4603-A77B-8A4782F175F4}.Debug|Any CPU.Build.0 = Debug|Any CPU {FD645D4C-9DC8-4603-A77B-8A4782F175F4}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -634,6 +649,189 @@ Global {83C963FD-DC23-46E8-9545-F56197164810}.Release|x64.Build.0 = Release|Any CPU {83C963FD-DC23-46E8-9545-F56197164810}.Release|x86.ActiveCfg = Release|Any CPU {83C963FD-DC23-46E8-9545-F56197164810}.Release|x86.Build.0 = Release|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Debug|x64.ActiveCfg = Debug|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Debug|x64.Build.0 = Debug|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Debug|x86.ActiveCfg = Debug|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Debug|x86.Build.0 = Debug|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Release|Any CPU.Build.0 = Release|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Release|x64.ActiveCfg = Release|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Release|x64.Build.0 = Release|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Release|x86.ActiveCfg = Release|Any CPU + {03B4600D-B5FD-4A19-9E23-565F95D7AEA1}.Release|x86.Build.0 = Release|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Debug|Any CPU.Build.0 = Debug|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Debug|x64.ActiveCfg = Debug|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Debug|x64.Build.0 = Debug|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Debug|x86.ActiveCfg = Debug|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Debug|x86.Build.0 = Debug|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Release|Any CPU.ActiveCfg = Release|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Release|Any CPU.Build.0 = Release|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Release|x64.ActiveCfg = Release|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Release|x64.Build.0 = Release|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Release|x86.ActiveCfg = Release|Any CPU + {57994BC9-8640-4079-9513-00A5DF03AF33}.Release|x86.Build.0 = Release|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Debug|Any CPU.Build.0 = Debug|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Debug|x64.ActiveCfg = Debug|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Debug|x64.Build.0 = Debug|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Debug|x86.ActiveCfg = Debug|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Debug|x86.Build.0 = Debug|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Release|Any CPU.ActiveCfg = Release|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Release|Any CPU.Build.0 = Release|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Release|x64.ActiveCfg = Release|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Release|x64.Build.0 = Release|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Release|x86.ActiveCfg = Release|Any CPU + {799DC1CB-8575-451B-AAE5-8B8D0046A678}.Release|x86.Build.0 = Release|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Debug|x64.ActiveCfg = Debug|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Debug|x64.Build.0 = Debug|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Debug|x86.ActiveCfg = Debug|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Debug|x86.Build.0 = Debug|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Release|Any CPU.Build.0 = Release|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Release|x64.ActiveCfg = Release|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Release|x64.Build.0 = Release|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Release|x86.ActiveCfg = Release|Any CPU + {FAF894EB-A533-4F0D-9C84-918261A01455}.Release|x86.Build.0 = Release|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Debug|x64.ActiveCfg = Debug|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Debug|x64.Build.0 = Debug|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Debug|x86.ActiveCfg = Debug|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Debug|x86.Build.0 = Debug|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Release|Any CPU.Build.0 = Release|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Release|x64.ActiveCfg = Release|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Release|x64.Build.0 = Release|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Release|x86.ActiveCfg = Release|Any CPU + {1C24154D-580D-4C70-B167-930EF4932B0B}.Release|x86.Build.0 = Release|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Debug|x64.ActiveCfg = Debug|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Debug|x64.Build.0 = Debug|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Debug|x86.ActiveCfg = Debug|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Debug|x86.Build.0 = Debug|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Release|Any CPU.Build.0 = Release|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Release|x64.ActiveCfg = Release|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Release|x64.Build.0 = Release|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Release|x86.ActiveCfg = Release|Any CPU + {6C1921DE-7BAD-4FDF-A9E4-B14677955159}.Release|x86.Build.0 = Release|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Debug|x64.ActiveCfg = Debug|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Debug|x64.Build.0 = Debug|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Debug|x86.ActiveCfg = Debug|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Debug|x86.Build.0 = Debug|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Release|Any CPU.Build.0 = Release|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Release|x64.ActiveCfg = Release|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Release|x64.Build.0 = Release|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Release|x86.ActiveCfg = Release|Any CPU + {BAFB0BE1-2927-473C-9995-7DF9E8DE4082}.Release|x86.Build.0 = Release|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Debug|x64.ActiveCfg = Debug|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Debug|x64.Build.0 = Debug|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Debug|x86.ActiveCfg = Debug|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Debug|x86.Build.0 = Debug|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Release|Any CPU.Build.0 = Release|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Release|x64.ActiveCfg = Release|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Release|x64.Build.0 = Release|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Release|x86.ActiveCfg = Release|Any CPU + {553309F6-CA3A-4C25-A207-C4E09E7FCEA8}.Release|x86.Build.0 = Release|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Debug|x64.ActiveCfg = Debug|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Debug|x64.Build.0 = Debug|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Debug|x86.ActiveCfg = Debug|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Debug|x86.Build.0 = Debug|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Release|Any CPU.Build.0 = Release|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Release|x64.ActiveCfg = Release|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Release|x64.Build.0 = Release|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Release|x86.ActiveCfg = Release|Any CPU + {E4478AEF-B119-4948-9797-EB60F90E9519}.Release|x86.Build.0 = Release|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Debug|x64.ActiveCfg = Debug|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Debug|x64.Build.0 = Debug|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Debug|x86.ActiveCfg = Debug|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Debug|x86.Build.0 = Debug|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Release|Any CPU.Build.0 = Release|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Release|x64.ActiveCfg = Release|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Release|x64.Build.0 = Release|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Release|x86.ActiveCfg = Release|Any CPU + {2BA67598-10B8-47DF-AE2B-C67A2E1A840A}.Release|x86.Build.0 = Release|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Debug|x64.ActiveCfg = Debug|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Debug|x64.Build.0 = Debug|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Debug|x86.ActiveCfg = Debug|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Debug|x86.Build.0 = Debug|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Release|Any CPU.Build.0 = Release|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Release|x64.ActiveCfg = Release|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Release|x64.Build.0 = Release|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Release|x86.ActiveCfg = Release|Any CPU + {19BB9718-D31C-4B93-95DF-A449A12AC6FE}.Release|x86.Build.0 = Release|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Debug|x64.ActiveCfg = Debug|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Debug|x64.Build.0 = Debug|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Debug|x86.ActiveCfg = Debug|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Debug|x86.Build.0 = Debug|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Release|Any CPU.Build.0 = Release|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Release|x64.ActiveCfg = Release|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Release|x64.Build.0 = Release|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Release|x86.ActiveCfg = Release|Any CPU + {EECD0F6C-0DDC-4F55-A803-7C1C884B1E28}.Release|x86.Build.0 = Release|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Debug|x64.ActiveCfg = Debug|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Debug|x64.Build.0 = Debug|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Debug|x86.ActiveCfg = Debug|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Debug|x86.Build.0 = Debug|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Release|Any CPU.Build.0 = Release|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Release|x64.ActiveCfg = Release|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Release|x64.Build.0 = Release|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Release|x86.ActiveCfg = Release|Any CPU + {8DDFF2E1-83DF-4EF3-BAD3-24C82B7AD2D2}.Release|x86.Build.0 = Release|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Debug|x64.ActiveCfg = Debug|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Debug|x64.Build.0 = Debug|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Debug|x86.ActiveCfg = Debug|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Debug|x86.Build.0 = Debug|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Release|Any CPU.Build.0 = Release|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Release|x64.ActiveCfg = Release|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Release|x64.Build.0 = Release|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Release|x86.ActiveCfg = Release|Any CPU + {D9C0DE85-C100-453B-9CF4-6F04C0FB8E61}.Release|x86.Build.0 = Release|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Debug|x64.ActiveCfg = Debug|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Debug|x64.Build.0 = Debug|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Debug|x86.ActiveCfg = Debug|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Debug|x86.Build.0 = Debug|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Release|Any CPU.Build.0 = Release|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Release|x64.ActiveCfg = Release|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Release|x64.Build.0 = Release|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Release|x86.ActiveCfg = Release|Any CPU + {D5526379-D78C-4D77-82BA-82DEAA164F96}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {57860CA2-0054-465E-BD1E-024FF8D81354} = {56555FB0-B513-49EF-9002-A5AF135EA090} @@ -680,4 +878,7 @@ Global {38FFE1DF-4B49-40C1-9908-51860BCF2D3E} = {56555FB0-B513-49EF-9002-A5AF135EA090} {83C963FD-DC23-46E8-9545-F56197164810} = {56555FB0-B513-49EF-9002-A5AF135EA090} EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3017922A-DE5D-41EB-A6A0-50634843C263} + EndGlobalSection EndGlobal diff --git a/Example switch/Example switch.csproj b/Example switch/Example switch.csproj new file mode 100644 index 00000000..1239c7f5 --- /dev/null +++ b/Example switch/Example switch.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + Example_switch + enable + enable + + + diff --git a/Example switch/Program.cs b/Example switch/Program.cs new file mode 100644 index 00000000..b68d3c9a --- /dev/null +++ b/Example switch/Program.cs @@ -0,0 +1,14 @@ +// See https://aka.ms/new-console-template for more information + + + +int number = 3; + +string numberDescription = number switch +{ + 1 => "jeden", + 2 => "dva", + 3 => "tri", + _ => "nezname cislo", +}; +Console.WriteLine(numberDescription); // vypise: tri \ No newline at end of file diff --git a/Foreach/Foreach.csproj b/Foreach/Foreach.csproj new file mode 100644 index 00000000..f02677bf --- /dev/null +++ b/Foreach/Foreach.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0 + enable + enable + + + diff --git a/Foreach/Program.cs b/Foreach/Program.cs new file mode 100644 index 00000000..3751555c --- /dev/null +++ b/Foreach/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/IDK/Program.cs b/IDK/Program.cs new file mode 100644 index 00000000..2094e67a --- /dev/null +++ b/IDK/Program.cs @@ -0,0 +1,25 @@ +// See https://aka.ms/new-console-template for more information +using System.Runtime.ExceptionServices; +using System.Security.Cryptography; + + + +for (int i = 1; i <= 1000; i++) +{ + int modulo = i % 2; + if (modulo == 0) + { + Console.WriteLine(i); + } +} + + +/* +int u = 1; + +while (u <= 1000) +{ + Console.WriteLine(u); + u++; +} +*/ \ No newline at end of file diff --git a/IDK/Vypisovanie cisel.csproj b/IDK/Vypisovanie cisel.csproj new file mode 100644 index 00000000..f02677bf --- /dev/null +++ b/IDK/Vypisovanie cisel.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0 + enable + enable + + + diff --git a/Kalkulacka switch/Kalkulacka switch.csproj b/Kalkulacka switch/Kalkulacka switch.csproj new file mode 100644 index 00000000..da034c23 --- /dev/null +++ b/Kalkulacka switch/Kalkulacka switch.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + Kalkulacka_switch + enable + enable + + + diff --git a/Kalkulacka switch/Program.cs b/Kalkulacka switch/Program.cs new file mode 100644 index 00000000..f22cc71c --- /dev/null +++ b/Kalkulacka switch/Program.cs @@ -0,0 +1,38 @@ +// See https://aka.ms/new-console-template for more information + +Console.WriteLine("vyber si prve cislo"); +string? number1Text = Console.ReadLine(); +decimal number1 = decimal.Parse(number1Text); + +Console.WriteLine("+, -, /, *, %"); +string? znamienko = Console.ReadLine(); + +Console.WriteLine("vyber si druhe cislo"); +string? number2Text = Console.ReadLine(); +decimal number2 = decimal.Parse(number2Text); + + + +switch (znamienko) +{ + case "+": + Console.WriteLine(number1 + number2); + break; + case "-": + Console.WriteLine(number1 - number2); + break; + case "*": + Console.WriteLine(number1 * number2); + break; + case "/": + if (number2 == 0) + { + Console.WriteLine("Chyba: nemozes delit nulou"); + break; + } + Console.WriteLine(number1 / number2); + break; + case "%": + Console.WriteLine(number1 % number2); + break; +} diff --git a/Kalkulacka/Kalkulacka.csproj b/Kalkulacka/Kalkulacka.csproj new file mode 100644 index 00000000..f02677bf --- /dev/null +++ b/Kalkulacka/Kalkulacka.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0 + enable + enable + + + diff --git a/Kalkulacka/Program.cs b/Kalkulacka/Program.cs new file mode 100644 index 00000000..c0417f25 --- /dev/null +++ b/Kalkulacka/Program.cs @@ -0,0 +1,40 @@ +// See https://aka.ms/new-console-template for more information + + +Console.WriteLine("vyber si prve cislo"); +string? number1Text = Console.ReadLine(); +decimal number1 = decimal.Parse(number1Text); + +Console.WriteLine("+, -, /, *, %"); +string? znamienko = Console.ReadLine(); + +Console.WriteLine("vyber si druhe cislo"); +string? number2Text = Console.ReadLine(); +decimal number2 = decimal.Parse(number2Text); + + +if (znamienko == "+") +{ + decimal sucet = number1 + number2; + Console.WriteLine("Je to " + sucet); +} +else if (znamienko == "-") +{ + decimal rozdiel = number1 - number2; + Console.WriteLine("Je to " + rozdiel); +} +else if (znamienko == "*") +{ + decimal sucin = number1 * number2; + Console.WriteLine("Je to " + sucin); +} +else if (znamienko == "/") +{ + decimal podiel = number1 / number2; + Console.WriteLine("Je to " + podiel); +} +else if (znamienko == "%") +{ + decimal idk = number1 % number2; + Console.WriteLine("Je to " + idk); +} diff --git a/Name and age/Name and age.csproj b/Name and age/Name and age.csproj new file mode 100644 index 00000000..26ccb3aa --- /dev/null +++ b/Name and age/Name and age.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + Name_and_age + enable + enable + + + diff --git a/Name and age/Program.cs b/Name and age/Program.cs new file mode 100644 index 00000000..8b94e6e1 --- /dev/null +++ b/Name and age/Program.cs @@ -0,0 +1,9 @@ +// See https://aka.ms/new-console-template for more information + +Console.WriteLine("Name?"); +string? name = Console.ReadLine(); + +Console.WriteLine("Age?"); +string? age = Console.ReadLine(); + +Console.WriteLine($"Ahoj {name}. Tvoj vek je {age}"); diff --git a/Projekt bool/Program.cs b/Projekt bool/Program.cs new file mode 100644 index 00000000..55b3fa98 --- /dev/null +++ b/Projekt bool/Program.cs @@ -0,0 +1,30 @@ +// See https://aka.ms/new-console-template for more information +/*bool a = true; +int b = 74; +int c = 42; + +bool andBool1 = a && (b > c); +bool andBool2 = a && (b == c); +bool andBool3 = a && (b == c) || (c < b); */ + +/*bool a = true; +int b = 11; +int c = 9; +bool d = true; +int e = 11; + + +bool vysledok = ((c <= b) || !a) && (a == (e == b)); +int o = 5; */ + + + +bool a = false; +int b = 8; +int c = 10; +bool d = false; +int e = 11; + +bool vzsledok = (!(a && d) || (!(b < e) && !vysledok)); + +int x = 5; \ No newline at end of file diff --git a/Projekt bool/Projekt bool.csproj b/Projekt bool/Projekt bool.csproj new file mode 100644 index 00000000..59f01aac --- /dev/null +++ b/Projekt bool/Projekt bool.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + Projekt_bool + enable + enable + + + diff --git a/Projekt if, else/Program.cs b/Projekt if, else/Program.cs new file mode 100644 index 00000000..45f74fc1 --- /dev/null +++ b/Projekt if, else/Program.cs @@ -0,0 +1,61 @@ +// See https://aka.ms/new-console-template for more information +/* +Console.WriteLine("Type a number 1-6"); +string s = Console.ReadLine(); +int number = int.Parse(s); + +if (number >= 1 && number <= 5) +{ + Console.WriteLine("hura mas kocku"); +} +else if( number == 6 ) +{ + Console.WriteLine("ides este raz"); +} +else +{ + Console.WriteLine("Nemas kocku :("); +} */ + + + + +//nacitam prve cislo +//nacitam operaciu(+, -, /, *) +//nacitam druhe cislo +//vykonam operaciu +//vypisem vysledok + + +Console.WriteLine("vyber si prve cislo"); +string? number1Text = Console.ReadLine(); +decimal number1 = decimal.Parse(number1Text); + +Console.WriteLine("+, -, /, *"); +string? znamienko = Console.ReadLine(); + +Console.WriteLine("vyber si druhe cislo"); +string? number2Text = Console.ReadLine(); +decimal number2 = decimal.Parse(number2Text); + + +if (znamienko == "+") +{ + decimal sucet = number1 + number2; + Console.WriteLine("Je to " + sucet); +} +else if (znamienko == "-") +{ + decimal rozdiel = number1 - number2; + Console.WriteLine("Je to " + rozdiel); +} +else if (znamienko == "*") +{ + decimal sucin = number1 * number2; + Console.WriteLine("Je to " + sucin); +} +else if (znamienko == "/") +{ + decimal podiel = number1 / number2; + Console.WriteLine("Je to " + podiel); +} diff --git a/Projekt if, else/Projekt if, else.csproj b/Projekt if, else/Projekt if, else.csproj new file mode 100644 index 00000000..3735effe --- /dev/null +++ b/Projekt if, else/Projekt if, else.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + Projekt_if__else + enable + enable + + + diff --git a/Projekt random/Program.cs b/Projekt random/Program.cs new file mode 100644 index 00000000..baea6621 --- /dev/null +++ b/Projekt random/Program.cs @@ -0,0 +1,16 @@ +// See https://aka.ms/new-console-template for more information +int a = 5; +int b = 3; + +int sum = a + b; // 8 +int difference = a - b; // 2 +int product = a * b; // 15 +decimal division = a / (decimal)b; // 1.66666666666667 +int remainder = a % b; // 2 + +bool equality = a == b; // false +bool inequality = a != b; // true +bool greater = a > b; // true +bool lesser = a < b; // false +bool greaterEqual = a >= b; // true +bool lesserEqual = a <= b; // false diff --git a/Projekt random/Projekt operacie.csproj b/Projekt random/Projekt operacie.csproj new file mode 100644 index 00000000..a7c7e6dc --- /dev/null +++ b/Projekt random/Projekt operacie.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + Projekt_random + enable + enable + + + diff --git a/Random/Program.cs b/Random/Program.cs new file mode 100644 index 00000000..6fddc773 --- /dev/null +++ b/Random/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information + diff --git a/Random/Random.csproj b/Random/Random.csproj new file mode 100644 index 00000000..f02677bf --- /dev/null +++ b/Random/Random.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0 + enable + enable + + + diff --git a/Scitanie cisel/Program.cs b/Scitanie cisel/Program.cs new file mode 100644 index 00000000..57144fce --- /dev/null +++ b/Scitanie cisel/Program.cs @@ -0,0 +1,10 @@ +// See https://aka.ms/new-console-template for more information + +int[] numbers = new int[10] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 54 }; +int vysledok = 0; + +for (int i = 0; i < numbers.Length; i++) +{ + vysledok += numbers[i]; +} +Console.WriteLine(vysledok); \ No newline at end of file diff --git a/Scitanie cisel/Scitanie cisel.csproj b/Scitanie cisel/Scitanie cisel.csproj new file mode 100644 index 00000000..bf17020b --- /dev/null +++ b/Scitanie cisel/Scitanie cisel.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + Scitanie_cisel + enable + enable + + + diff --git a/Tabulka/Program.cs b/Tabulka/Program.cs new file mode 100644 index 00000000..905a27ec --- /dev/null +++ b/Tabulka/Program.cs @@ -0,0 +1,28 @@ +// See https://aka.ms/new-console-template for more information + + + +int[] numbers = new int[] { 10, 300, 20, 40, 50 }; +string[] names = new string[] { "Jano", "Feri", "Jozo", "Miro", "Laco" }; + +foreach (string name in names) +{ + Console.WriteLine("Ahoj " + name); +} + + + +/*string[,] matrix = new string[30, 5]; +matrix[0, 2] = "Jano"; +matrix[1, 2] = "Feri"; +matrix[25, 4] = "Miro"; + +for (int i = 0; i < 30; i++) +{ + for (int j = 0; j < 5; j++) + { + Console.Write(matrix[i, j] + ","); + } + Console.WriteLine(); +} +*/ \ No newline at end of file diff --git a/Tabulka/Tabulka.csproj b/Tabulka/Tabulka.csproj new file mode 100644 index 00000000..f02677bf --- /dev/null +++ b/Tabulka/Tabulka.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0 + enable + enable + + + diff --git a/ZATIALLLLL NEVIEM/Meno a vek tahsie.csproj b/ZATIALLLLL NEVIEM/Meno a vek tahsie.csproj new file mode 100644 index 00000000..6e8bbd41 --- /dev/null +++ b/ZATIALLLLL NEVIEM/Meno a vek tahsie.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + ZATIALLLLL_NEVIEM + enable + enable + + + diff --git a/ZATIALLLLL NEVIEM/Program.cs b/ZATIALLLLL NEVIEM/Program.cs new file mode 100644 index 00000000..510045b6 --- /dev/null +++ b/ZATIALLLLL NEVIEM/Program.cs @@ -0,0 +1,24 @@ +// See https://aka.ms/new-console-template for more information + +string meno = ZiskajMeno(); +string vek = ZiskajVek(); + +Console.WriteLine($"Ahoj {meno}. Tvoj vek je {vek}"); + +string ZiskajMeno() +{ + Console.WriteLine("Zadaj Meno"); + string meno = Console.ReadLine(); + return meno; +} +string ZiskajVek() +{ + Console.WriteLine("Zadaj vek"); + string vek = Console.ReadLine(); + return vek; +} + +void VypisUdaje(string meno, string vek) +{ + Console.WriteLine($"Ahoj {meno}. Tvoj vek je {vek} "); +} \ No newline at end of file diff --git a/continue/Program.cs b/continue/Program.cs new file mode 100644 index 00000000..275efb95 --- /dev/null +++ b/continue/Program.cs @@ -0,0 +1,10 @@ +// See https://aka.ms/new-console-template for more information + +for (int i = 0; i < 10; i++) +{ + if (i == 5) + { + continue; + } + Console.WriteLine(i); +} diff --git a/continue/continue.csproj b/continue/continue.csproj new file mode 100644 index 00000000..f02677bf --- /dev/null +++ b/continue/continue.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0 + enable + enable + + + diff --git a/random cislo z klavesnice a z toho citanie/Program.cs b/random cislo z klavesnice a z toho citanie/Program.cs new file mode 100644 index 00000000..5a7d22c6 --- /dev/null +++ b/random cislo z klavesnice a z toho citanie/Program.cs @@ -0,0 +1,20 @@ +// See https://aka.ms/new-console-template for more information + +List numbers = new List(); +Console.WriteLine("Type numbers"); +string vstup =Console.ReadLine(); + +while (vstup != "+") +{ + numbers.Add(int.Parse(vstup)); + vstup = Console.ReadLine(); +} +Console.WriteLine("Vysledok scitania:"); +int sucet = 0; +foreach (int i in numbers) + { + sucet += i; + } +Console.WriteLine(sucet); + + diff --git a/random cislo z klavesnice a z toho citanie/random cislo z klavesnice a z toho citanie.csproj b/random cislo z klavesnice a z toho citanie/random cislo z klavesnice a z toho citanie.csproj new file mode 100644 index 00000000..2a0c64ea --- /dev/null +++ b/random cislo z klavesnice a z toho citanie/random cislo z klavesnice a z toho citanie.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + random_cislo_z_klavesnice_a_z_toho_citanie + enable + enable + + + diff --git a/src/AppsLab-001-StartHere/Greetings.cs b/src/AppsLab-001-StartHere/Greetings.cs index fbe10953..f02fdb12 100644 --- a/src/AppsLab-001-StartHere/Greetings.cs +++ b/src/AppsLab-001-StartHere/Greetings.cs @@ -11,6 +11,6 @@ public class Greetings /// A string containing the greeting message. public string Hello() { - return "Hello World!"; + return "Hello AppsLab!"; } } diff --git a/src/AppsLab-002-ConsoleWriteLine/Program.cs b/src/AppsLab-002-ConsoleWriteLine/Program.cs index 837131c2..fd86bf0f 100644 --- a/src/AppsLab-002-ConsoleWriteLine/Program.cs +++ b/src/AppsLab-002-ConsoleWriteLine/Program.cs @@ -1 +1,3 @@ -Console.WriteLine("Hello, World!"); \ No newline at end of file +int age = 21; +string name = "Johny"; +Console.WriteLine($" My name is { name } and im { age }"); \ No newline at end of file diff --git a/src/AppsLab-008-ConsoleReadLine/Program.cs b/src/AppsLab-008-ConsoleReadLine/Program.cs index 6f7376c9..e0455b98 100644 --- a/src/AppsLab-008-ConsoleReadLine/Program.cs +++ b/src/AppsLab-008-ConsoleReadLine/Program.cs @@ -6,3 +6,17 @@ string vstup = Console.ReadLine() ?? "0"; int vek = int.Parse(vstup); Console.WriteLine("Máš " + vek + " rokov."); + +Console.WriteLine("Ahoj"); +string? prveCislo = Console.ReadLine(); +string? druheCislo = Console.ReadLine(); +int sucet = int.Parse(prveCislo) + int.Parse(druheCislo); +Console.WriteLine($"Sucet: {sucet}"); + + + + +int rok = 10; +int rok1 = 20; +rok = 30; +rok *= 5; \ No newline at end of file diff --git a/src/AppsLab-011-Strings/StringManipulator.cs b/src/AppsLab-011-Strings/StringManipulator.cs index f226d70d..39b0d8aa 100644 --- a/src/AppsLab-011-Strings/StringManipulator.cs +++ b/src/AppsLab-011-Strings/StringManipulator.cs @@ -13,9 +13,10 @@ public class StringManipulator /// The concatenated string. public string AppendStrings(string first, string second) { - throw new NotImplementedException(); + return first+ second; } + /// /// Converts a string to uppercase. /// @@ -23,7 +24,7 @@ public string AppendStrings(string first, string second) /// The uppercase string. public string ConvertToUpper(string input) { - throw new NotImplementedException(); + return input.ToUpper(); } /// @@ -33,7 +34,7 @@ public string ConvertToUpper(string input) /// The lowercase string. public string ConvertToLower(string input) { - throw new NotImplementedException(); + return input.ToLower(); } /// @@ -44,7 +45,7 @@ public string ConvertToLower(string input) /// True if the substring is found, false otherwise. public bool ContainsSubstring(string input, string substring) { - throw new NotImplementedException(); + return input.Contains(substring); } /// @@ -55,6 +56,6 @@ public bool ContainsSubstring(string input, string substring) /// True if the string starts with the substring, false otherwise. public bool StartsWithSubstring(string input, string substring) { - throw new NotImplementedException(); + return input.StartsWith(substring); } } \ No newline at end of file diff --git a/src/AppsLab-014-Switch/MovieRating.cs b/src/AppsLab-014-Switch/MovieRating.cs index ab689d49..fc00d359 100644 --- a/src/AppsLab-014-Switch/MovieRating.cs +++ b/src/AppsLab-014-Switch/MovieRating.cs @@ -12,6 +12,20 @@ public class MovieRating /// A string describing the specified movie rating. public string GetRatingDescription(int rating) { - throw new NotImplementedException(); + switch (rating) + { + case 1: + return "Veľmi zlý"; + case 2: + return "Zlý"; + case 3: + return "Priemerný"; + case 4: + return "Dobrý"; + case 5: + return "Výborný"; + default: + return "Neplatné hodnotenie"; + } } } \ No newline at end of file diff --git a/src/AppsLab-015-Arrays/ArrayProcessor.cs b/src/AppsLab-015-Arrays/ArrayProcessor.cs index 59f8d1c7..8fecf6cb 100644 --- a/src/AppsLab-015-Arrays/ArrayProcessor.cs +++ b/src/AppsLab-015-Arrays/ArrayProcessor.cs @@ -13,7 +13,13 @@ public class ArrayProcessor /// First element of the array, or 0 if array is empty. public int GetFirstElement(int[] numbers) { - throw new NotImplementedException(); + if (numbers is null || numbers.Length == 0) + { + return 0; + + } + + return numbers[0]; } /// @@ -24,7 +30,13 @@ public int GetFirstElement(int[] numbers) /// Last element of the array, or 0 if array is empty. public int GetLastElement(int[] numbers) { - throw new NotImplementedException(); + if (numbers is null || numbers.Length == 0) + { + return 0; + + } + + return numbers[numbers.Length - 1]; } /// @@ -36,7 +48,13 @@ public int GetLastElement(int[] numbers) /// Element at the specified position, or 0 if position is out of range. public int GetElementAtPosition(int[] numbers, int position) { - throw new NotImplementedException(); + if (numbers is null || numbers.Length == 0 || position >= numbers.Length) + { + return 0; + + } + + return numbers[position]; } /// @@ -46,6 +64,12 @@ public int GetElementAtPosition(int[] numbers, int position) /// Length of the array. public int GetLength(int[] numbers) { - throw new NotImplementedException(); + if (numbers is null) + { + return 0; + + } + + return numbers.Length; } } diff --git a/src/AppsLab-016-Loops/WeatherStats.cs b/src/AppsLab-016-Loops/WeatherStats.cs index 8bca9659..8367ded6 100644 --- a/src/AppsLab-016-Loops/WeatherStats.cs +++ b/src/AppsLab-016-Loops/WeatherStats.cs @@ -12,7 +12,13 @@ public class WeatherStats /// Average temperature. public double AverageTemperature(double[] temperatures) { - throw new NotImplementedException(); + double avarage = 0; + foreach (var temperature in temperatures) + { + avarage += temperature; + } + avarage /= temperatures.Length; + return avarage; } /// @@ -20,9 +26,18 @@ public double AverageTemperature(double[] temperatures) /// /// Array of temperatures. /// Maximum temperature. - public double MaxTemperature(double[] temperatures) + public static MaxTemperature(double[] temperatures) { - throw new NotImplementedException(); + { + double maximum = double.MinValue; + foreach (double temperature in temperatures) + { + if (temperature > maximum) + { + maximum = temperature; + } + } + } } /// @@ -32,6 +47,14 @@ public double MaxTemperature(double[] temperatures) /// Minimum temperature. public double MinTemperature(double[] temperatures) { - throw new NotImplementedException(); + double Maximum = double.MaxValue; + foreach (double temperature in temperatures) + { + if (temperature < Maximum) + { + Maximum = temperature; + } + } + return Maximum; } }