From 8321a25ffcc31509a36f95087f06507c248189d9 Mon Sep 17 00:00:00 2001 From: sebi Date: Mon, 5 Feb 2024 17:19:58 +0100 Subject: [PATCH] Program.cs --- E23_ChatGPT/Exercise_1.cs | 26 ++ markingSave => E23_ChatGPT/dummy.txt | 0 Program.cs | 478 ++++++++++++++++++--------- lastPoint | 2 - 4 files changed, 341 insertions(+), 165 deletions(-) create mode 100644 E23_ChatGPT/Exercise_1.cs rename markingSave => E23_ChatGPT/dummy.txt (100%) delete mode 100644 lastPoint diff --git a/E23_ChatGPT/Exercise_1.cs b/E23_ChatGPT/Exercise_1.cs new file mode 100644 index 0000000..976360b --- /dev/null +++ b/E23_ChatGPT/Exercise_1.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; +using Microsoft.VisualBasic; + +namespace Exercises_C_Sharp.E323_ChatGPT +{ + class Exercise_1 + { + //Lassen Sie ChatGPT den Inhalt der Methode Make erstellen. Die Methode soll einen String mit zufälligen Buchstaben zurück geben. Die Anzahl wird dabei übergeben. Der erste Buchstabe muss groß geschrieben sein. + public static void Start() + { + Console.WriteLine(Make(12)); + Console.WriteLine(Make(2)); + Console.WriteLine(Make(1)); + Console.WriteLine(Make(-3)); + Console.WriteLine(Make(99)); + } + + public static string Make(int i) + { + //Code START + return string.Empty; + //Code ENDE + } + } +} \ No newline at end of file diff --git a/markingSave b/E23_ChatGPT/dummy.txt similarity index 100% rename from markingSave rename to E23_ChatGPT/dummy.txt diff --git a/Program.cs b/Program.cs index 1f91a35..eebde21 100644 --- a/Program.cs +++ b/Program.cs @@ -170,7 +170,7 @@ namespace Exercises_C_Sharp } }; //************************ - //*******Flowchart******* + //*******Flowchart******* TODO //************************ ExerciseGroup flowchartElements = new() { @@ -180,10 +180,94 @@ namespace Exercises_C_Sharp new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} } }; - - - - + //************************ + //*******SwitchCase******* TODO + //************************ + ExerciseGroup switchcaseElements = new() + { + Name = "10. switch/case", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + //************************ + //***********FOR********** TODO + //************************ + ExerciseGroup forElements = new() + { + Name = "11. for", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + //************************ + //******Resize Array****** TODO + //************************ + ExerciseGroup resizeArrayElements = new() + { + Name = "12. Resize Array", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + //************************ + //*******FOREACH******* TODO + //************************ + ExerciseGroup foreachElements = new() + { + Name = "13. foreach", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + //************************ + //**********WHILE********* TODO + //************************ + ExerciseGroup whileElements = new() + { + Name = "14. while", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + //************************ + //*********DoWhile********* TODO + //************************ + ExerciseGroup dowhileElements = new() + { + Name = "15. switch/case", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + //************************ + //*******breakcontinue******* TODO + //************************ + ExerciseGroup breakcontinueElements = new() + { + Name = "16. break / continue", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + //************************ + //*******StructureDiagram******* TODO + //************************ + ExerciseGroup structurediagramElements = new() + { + Name = "17. Strukturdiagramm", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; //************************ //*******Methoden******* //************************ @@ -204,7 +288,7 @@ namespace Exercises_C_Sharp //************************ //*******Überladung******* //************************ - ExerciseGroup ueberladungElements = new ExerciseGroup() + ExerciseGroup ueberladungElements = new() { Name = "19. Überladung", ElementList = new List() @@ -219,7 +303,7 @@ namespace Exercises_C_Sharp //************************ //********LISTEN********** //************************ - ExerciseGroup listElements = new ExerciseGroup() + ExerciseGroup listElements = new() { Name = "20. Listen", ElementList = new List() @@ -242,7 +326,7 @@ namespace Exercises_C_Sharp //************************ //*********Sorting********** //************************ - ExerciseGroup sortingElements = new ExerciseGroup() + ExerciseGroup sortingElements = new() { Name = "21. Sortieren", ElementList = new List() @@ -258,260 +342,313 @@ namespace Exercises_C_Sharp } }; //************************ - //*********Enums********** + //******Dictionary******** //************************ - ExerciseGroup enumElements = new ExerciseGroup() + ExerciseGroup dictionaryElements = new() { - Name = "Enums", + Name = "22. Dictionary", ElementList = new List() { - new ExerciseElement(){Name = "Übung 1", Method = E24_Enumns.Exercise_1.Start}, - new ExerciseElement(){Name = "Übung 2", Method = E24_Enumns.Exercise_2.Start}, - new ExerciseElement(){Name = "Übung 3", Method = E24_Enumns.Exercise_3.Start}, - new ExerciseElement(){Name = "Übung 4", Method = E24_Enumns.Exercise_4.Start}, - new ExerciseElement(){Name = "Übung 5", Method = E24_Enumns.Exercise_5.Start}, - new ExerciseElement(){Name = "Übung 6", Method = E24_Enumns.Exercise_6.Start}, - new ExerciseElement(){Name = "Übung 7", Method = E24_Enumns.Exercise_7.Start}, - new ExerciseElement(){Name = "Übung 8", Method = E24_Enumns.Exercise_8.Start}, - new ExerciseElement(){Name = "Übung 9", Method = E24_Enumns.Exercise_9.Start}, - new ExerciseElement(){Name = "Übung 10", Method = E24_Enumns.Exercise_10.Start}, - new ExerciseElement(){Name = "Übung 11", Method = E24_Enumns.Exercise_11.Start}, - new ExerciseElement(){Name = "Übung 12", Method = E24_Enumns.Exercise_12.Start}, - new ExerciseElement(){Name = "Übung 13", Method = E24_Enumns.Exercise_13.Start} + new(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_1.Start}, + new(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_2.Start}, + new(){Name = "Aufgabe 3", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_3.Start}, + new(){Name = "Aufgabe 4", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_4.Start}, + new(){Name = "Aufgabe 5", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_5.Start} + } + }; + //************************ + //*******ChatGPT******* TODO + //************************ + ExerciseGroup chatgptElements = new() + { + Name = "23. ChatGPT", + ElementList = new() + { + new(){Name = "Übung 1", Method = E323_ChatGPT.Exercise_1.Start} + } + }; + //************************ + //*********Enums********** + //************************ + ExerciseGroup enumElements = new() + { + Name = "24. Enums", + ElementList = new List() + { + new(){Name = "Übung 1", Method = E24_Enumns.Exercise_1.Start}, + new(){Name = "Übung 2", Method = E24_Enumns.Exercise_2.Start}, + new(){Name = "Übung 3", Method = E24_Enumns.Exercise_3.Start}, + new(){Name = "Übung 4", Method = E24_Enumns.Exercise_4.Start}, + new(){Name = "Übung 5", Method = E24_Enumns.Exercise_5.Start}, + new(){Name = "Übung 6", Method = E24_Enumns.Exercise_6.Start}, + new(){Name = "Übung 7", Method = E24_Enumns.Exercise_7.Start}, + new(){Name = "Übung 8", Method = E24_Enumns.Exercise_8.Start}, + new(){Name = "Übung 9", Method = E24_Enumns.Exercise_9.Start}, + new(){Name = "Übung 10", Method = E24_Enumns.Exercise_10.Start}, + new(){Name = "Übung 11", Method = E24_Enumns.Exercise_11.Start}, + new(){Name = "Übung 12", Method = E24_Enumns.Exercise_12.Start}, + new(){Name = "Übung 13", Method = E24_Enumns.Exercise_13.Start} } }; //************************ //*********Tuple********** //************************ - ExerciseGroup tupleElements = new ExerciseGroup() + ExerciseGroup tupleElements = new() { - Name = "Tuple", + Name = "25. Tuple", ElementList = new List() { - new ExerciseElement(){Name = "Übung 1", Method = E25_Tuple.Exercise_1.Start}, - new ExerciseElement(){Name = "Übung 2", Method = E25_Tuple.Exercise_2.Start}, - new ExerciseElement(){Name = "Übung 3", Method = E25_Tuple.Exercise_3.Start}, - new ExerciseElement(){Name = "Übung 4", Method = E25_Tuple.Exercise_4.Start}, - new ExerciseElement(){Name = "Übung 5", Method = E25_Tuple.Exercise_5.Start}, - new ExerciseElement(){Name = "Übung 6", Method = E25_Tuple.Exercise_6.Start}, - new ExerciseElement(){Name = "Übung 7", Method = E25_Tuple.Exercise_7.Start}, - new ExerciseElement(){Name = "Übung 8", Method = E25_Tuple.Exercise_8.Start}, - new ExerciseElement(){Name = "Übung 9", Method = E25_Tuple.Exercise_9.Start} + new(){Name = "Übung 1", Method = E25_Tuple.Exercise_1.Start}, + new(){Name = "Übung 2", Method = E25_Tuple.Exercise_2.Start}, + new(){Name = "Übung 3", Method = E25_Tuple.Exercise_3.Start}, + new(){Name = "Übung 4", Method = E25_Tuple.Exercise_4.Start}, + new(){Name = "Übung 5", Method = E25_Tuple.Exercise_5.Start}, + new(){Name = "Übung 6", Method = E25_Tuple.Exercise_6.Start}, + new(){Name = "Übung 7", Method = E25_Tuple.Exercise_7.Start}, + new(){Name = "Übung 8", Method = E25_Tuple.Exercise_8.Start}, + new(){Name = "Übung 9", Method = E25_Tuple.Exercise_9.Start} } }; //************************ //*Mehrdimensinale Arrays* //************************ - ExerciseGroup moredimensionalArrayElements = new ExerciseGroup() + ExerciseGroup moredimensionalArrayElements = new() { - Name = "Mehrdimensinale Arrays", + Name = "26. Mehrdimensinale Arrays", ElementList = new List() { - new ExerciseElement(){Name = "Übung 1", Method = E26_Mehrdimensionale_Arrays.Exercise_1.Start}, - new ExerciseElement(){Name = "Übung 2", Method = E26_Mehrdimensionale_Arrays.Exercise_2.Start}, - new ExerciseElement(){Name = "Übung 3", Method = E26_Mehrdimensionale_Arrays.Exercise_3.Start}, - new ExerciseElement(){Name = "Übung 4", Method = E26_Mehrdimensionale_Arrays.Exercise_4.Start}, - new ExerciseElement(){Name = "Übung 5", Method = E26_Mehrdimensionale_Arrays.Exercise_5.Start}, - new ExerciseElement(){Name = "Übung 6", Method = E26_Mehrdimensionale_Arrays.Exercise_6.Start}, - new ExerciseElement(){Name = "Übung 7", Method = E26_Mehrdimensionale_Arrays.Exercise_7.Start} + new(){Name = "Übung 1", Method = E26_Mehrdimensionale_Arrays.Exercise_1.Start}, + new(){Name = "Übung 2", Method = E26_Mehrdimensionale_Arrays.Exercise_2.Start}, + new(){Name = "Übung 3", Method = E26_Mehrdimensionale_Arrays.Exercise_3.Start}, + new(){Name = "Übung 4", Method = E26_Mehrdimensionale_Arrays.Exercise_4.Start}, + new(){Name = "Übung 5", Method = E26_Mehrdimensionale_Arrays.Exercise_5.Start}, + new(){Name = "Übung 6", Method = E26_Mehrdimensionale_Arrays.Exercise_6.Start}, + new(){Name = "Übung 7", Method = E26_Mehrdimensionale_Arrays.Exercise_7.Start} } }; //************************ //******Jagged Arrays***** //************************ - ExerciseGroup jaggedArrayElements = new ExerciseGroup() + ExerciseGroup jaggedArrayElements = new() { - Name = "Jagged Arrays", + Name = "27. Jagged Arrays", ElementList = new List() { - new ExerciseElement(){Name = "Übung 1", Method = E27_Jagged_Arrays.Exercise_1.Start}, - new ExerciseElement(){Name = "Übung 2", Method = E27_Jagged_Arrays.Exercise_2.Start}, - new ExerciseElement(){Name = "Übung 3", Method = E27_Jagged_Arrays.Exercise_3.Start}, - new ExerciseElement(){Name = "Übung 4", Method = E27_Jagged_Arrays.Exercise_4.Start} + new(){Name = "Übung 1", Method = E27_Jagged_Arrays.Exercise_1.Start}, + new(){Name = "Übung 2", Method = E27_Jagged_Arrays.Exercise_2.Start}, + new(){Name = "Übung 3", Method = E27_Jagged_Arrays.Exercise_3.Start}, + new(){Name = "Übung 4", Method = E27_Jagged_Arrays.Exercise_4.Start} } }; //************************ //********Klassen********* //************************ - ExerciseGroup classElements = new ExerciseGroup() + ExerciseGroup classElements = new() { - Name = "Klassen", + Name = "28. Klassen", ElementList = new List() { - new ExerciseElement(){Name = "Übung 1", Method = Exercises_C_Sharp.E28_Classes.Exercise_1.Start}, - new ExerciseElement(){Name = "Übung 2", Method = Exercises_C_Sharp.E28_Classes.Exercise_2.Start}, - new ExerciseElement(){Name = "Übung 3", Method = Exercises_C_Sharp.E28_Classes.Exercise_3.Start}, - new ExerciseElement(){Name = "Übung 4", Method = Exercises_C_Sharp.E28_Classes.Exercise_4.Start}, - new ExerciseElement(){Name = "Übung 5", Method = Exercises_C_Sharp.E28_Classes.Exercise_5.Start}, - new ExerciseElement(){Name = "Übung 6", Method = Exercises_C_Sharp.E28_Classes.Exercise_6.Start}, - new ExerciseElement(){Name = "Übung 7", Method = Exercises_C_Sharp.E28_Classes.Exercise_7.Start} + new(){Name = "Übung 1", Method = Exercises_C_Sharp.E28_Classes.Exercise_1.Start}, + new(){Name = "Übung 2", Method = Exercises_C_Sharp.E28_Classes.Exercise_2.Start}, + new(){Name = "Übung 3", Method = Exercises_C_Sharp.E28_Classes.Exercise_3.Start}, + new(){Name = "Übung 4", Method = Exercises_C_Sharp.E28_Classes.Exercise_4.Start}, + new(){Name = "Übung 5", Method = Exercises_C_Sharp.E28_Classes.Exercise_5.Start}, + new(){Name = "Übung 6", Method = Exercises_C_Sharp.E28_Classes.Exercise_6.Start}, + new(){Name = "Übung 7", Method = Exercises_C_Sharp.E28_Classes.Exercise_7.Start} } }; //************************ //****Konstruktoren******* //************************ - ExerciseGroup constructorElements = new ExerciseGroup() + ExerciseGroup constructorElements = new() { - Name = "Konstruktoren", + Name = "29. Konstruktoren", ElementList = new List() { - new ExerciseElement(){Name = "Übung 1", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_1.Start}, - new ExerciseElement(){Name = "Übung 2", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_2.Start}, - new ExerciseElement(){Name = "Übung 3", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_3.Start}, - new ExerciseElement(){Name = "Übung 4", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_4.Start}, - new ExerciseElement(){Name = "Übung 5", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_5.Start}, - new ExerciseElement(){Name = "Übung 6", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_6.Start}, - new ExerciseElement(){Name = "Übung 7", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_7.Start} + new(){Name = "Übung 1", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_1.Start}, + new(){Name = "Übung 2", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_2.Start}, + new(){Name = "Übung 3", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_3.Start}, + new(){Name = "Übung 4", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_4.Start}, + new(){Name = "Übung 5", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_5.Start}, + new(){Name = "Übung 6", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_6.Start}, + new(){Name = "Übung 7", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_7.Start} + } + }; + + //************************ + //*******Klassendiagram******* TODO + //************************ + ExerciseGroup classdiagramElements = new() + { + Name = "30. Klassendiagram", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + //************************ + //*******RAM******* TODO + //************************ + ExerciseGroup ramElements = new() + { + Name = "31. RAM", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} } }; //************************ //******Exceptions******** //************************ - ExerciseGroup exceptionElements = new ExerciseGroup() + ExerciseGroup exceptionElements = new() { - Name = "Exceptions", + Name = "32. Exceptions", ElementList = new List() { - new ExerciseElement(){Name = "Übung 1", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_1.Start}, - new ExerciseElement(){Name = "Übung 2", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_2.Start}, - new ExerciseElement(){Name = "Übung 3", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_3.Start}, - new ExerciseElement(){Name = "Übung 4", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_4.Start}, - new ExerciseElement(){Name = "Übung 5", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_5.Start}, - new ExerciseElement(){Name = "Übung 6", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_6.Start}, - new ExerciseElement(){Name = "Übung 7", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_7.Start}, - new ExerciseElement(){Name = "Übung 8", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_8.Start}, - new ExerciseElement(){Name = "Übung 9", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_9.Start} + new(){Name = "Übung 1", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_1.Start}, + new(){Name = "Übung 2", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_2.Start}, + new(){Name = "Übung 3", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_3.Start}, + new(){Name = "Übung 4", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_4.Start}, + new(){Name = "Übung 5", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_5.Start}, + new(){Name = "Übung 6", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_6.Start}, + new(){Name = "Übung 7", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_7.Start}, + new(){Name = "Übung 8", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_8.Start}, + new(){Name = "Übung 9", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_9.Start} } }; + //************************ + //*******Methodeninformationen******* TODO + //************************ + ExerciseGroup methodinformationElements = new() + { + Name = "33. Methodeninformationen", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + //************************ + //*******UseCaseDiagram******* TODO + //************************ + ExerciseGroup usecasediagramElements = new() + { + Name = "34. Use Case Diagram", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; //************************ //***Dateizugriffe******** //************************ - ExerciseGroup filesystemElements = new ExerciseGroup() + ExerciseGroup filesystemElements = new() { - Name = "Dateizugriffe", + Name = "35. Dateizugriffe", ElementList = new List() { - new ExerciseElement(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_1.Start}, - new ExerciseElement(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_2.Start}, - new ExerciseElement(){Name = "Aufgabe 3", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_3.Start}, - new ExerciseElement(){Name = "Aufgabe 4", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_4.Start}, - new ExerciseElement(){Name = "Aufgabe 5", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_5.Start}, - new ExerciseElement(){Name = "Aufgabe 6", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_6.Start}, - new ExerciseElement(){Name = "Aufgabe 7", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_7.Start}, - new ExerciseElement(){Name = "Aufgabe 8", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_8.Start}, - new ExerciseElement(){Name = "Aufgabe 8b", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_8b.Start} + new(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_1.Start}, + new(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_2.Start}, + new(){Name = "Aufgabe 3", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_3.Start}, + new(){Name = "Aufgabe 4", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_4.Start}, + new(){Name = "Aufgabe 5", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_5.Start}, + new(){Name = "Aufgabe 6", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_6.Start}, + new(){Name = "Aufgabe 7", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_7.Start}, + new(){Name = "Aufgabe 8", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_8.Start}, + new(){Name = "Aufgabe 8b", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_8b.Start} + } + }; + + //************************ + //*******Dateiformate******* TODO + //************************ + ExerciseGroup fileformatsElements = new() + { + Name = "36. Dateiformate", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } + }; + + //************************ + //*****Serialisierung***** + //************************ + ExerciseGroup serializeElements = new() + { + Name = "37. Serialisierung", + ElementList = new List() + { + new(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E37_Serialisierung.Exercise_1.Start}, + new(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E37_Serialisierung.Exercise_2.Start} } }; //************************ //***********MySQL******** //************************ - ExerciseGroup mysqlElements = new ExerciseGroup() + ExerciseGroup mysqlElements = new() { - Name = "MySQL", + Name = "38. MySQL", ElementList = new List() { - new ExerciseElement(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E38_MySQL.Exercise_1.Start}, - new ExerciseElement(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E38_MySQL.Exercise_2.Start} - } - }; - - //************************ - //*****Serialisierung***** - //************************ - ExerciseGroup serializeElements = new ExerciseGroup() - { - Name = "Serialisierung", - ElementList = new List() - { - new ExerciseElement(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E37_Serialisierung.Exercise_1.Start}, - new ExerciseElement(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E37_Serialisierung.Exercise_2.Start} + new(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E38_MySQL.Exercise_1.Start}, + new(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E38_MySQL.Exercise_2.Start} } }; + //************************ //****Sonderaufgaben****** //************************ - ExerciseGroup specialElements = new ExerciseGroup() + ExerciseGroup specialElements = new() { Name = "Sonderaufgaben", ElementList = new List() { - new ExerciseElement(){Name = "Schere Stein Papier Echse Spock", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_1.Start}, - new ExerciseElement(){Name = "Schiffe versenken", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_2.Start}, - new ExerciseElement(){Name = "Memory", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_3.Start} + new(){Name = "Schere Stein Papier Echse Spock", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_1.Start}, + new(){Name = "Schiffe versenken", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_2.Start}, + new(){Name = "Memory", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_3.Start} } }; //************************ //*Entwicklungsaufgaben*** //************************ - ExerciseGroup developElements = new ExerciseGroup() + ExerciseGroup developElements = new() { Name = "Entwicklungsaufgaben", ElementList = new List() { - new ExerciseElement(){Name = "Dynamische Eingaben in Echtzeit", Method = Exercises_C_Sharp.Entwicklungsaufgaben.Minispiele.Step_1.Start} + new(){Name = "Dynamische Eingaben in Echtzeit", Method = Exercises_C_Sharp.Entwicklungsaufgaben.Minispiele.Step_1.Start} } }; //************************ //****Schulaufgaben******* //************************ - ExerciseGroup examElements = new ExerciseGroup() + ExerciseGroup examElements = new() { Name = "Schulaufgaben", - ElementList = new List() + ElementList = new() { - new ExerciseElement(){Name = "001 Klassen", Method = Exercises_C_Sharp.Schulaufgaben.S001_Class.Start}, - new ExerciseElement(){Name = "002 Klassen", Method = Exercises_C_Sharp.Schulaufgaben.S002_Class.Start}, - new ExerciseElement(){Name = "003 Tuple", Method = Exercises_C_Sharp.Schulaufgaben.S003_Tuple.Start}, - new ExerciseElement(){Name = "004 Enum", Method = Exercises_C_Sharp.Schulaufgaben.S004_Enum.Start}, - new ExerciseElement(){Name = "005 Tuple", Method = Exercises_C_Sharp.Schulaufgaben.S005_Tuple.Start}, - new ExerciseElement(){Name = "006 Multidimensionale Arrays", Method = Exercises_C_Sharp.Schulaufgaben.S006_Multidimensionale_Arrays.Start}, - new ExerciseElement(){Name = "007 Enum", Method = Exercises_C_Sharp.Schulaufgaben.S007_Enum.Start}, - new ExerciseElement(){Name = "008 Enum", Method = Exercises_C_Sharp.Schulaufgaben.S008_Enum.Start} + new(){Name = "001 Klassen", Method = Exercises_C_Sharp.Schulaufgaben.S001_Class.Start}, + new(){Name = "002 Klassen", Method = Exercises_C_Sharp.Schulaufgaben.S002_Class.Start}, + new(){Name = "003 Tuple", Method = Exercises_C_Sharp.Schulaufgaben.S003_Tuple.Start}, + new(){Name = "004 Enum", Method = Exercises_C_Sharp.Schulaufgaben.S004_Enum.Start}, + new(){Name = "005 Tuple", Method = Exercises_C_Sharp.Schulaufgaben.S005_Tuple.Start}, + new(){Name = "006 Multidimensionale Arrays", Method = Exercises_C_Sharp.Schulaufgaben.S006_Multidimensionale_Arrays.Start}, + new(){Name = "007 Enum", Method = Exercises_C_Sharp.Schulaufgaben.S007_Enum.Start}, + new(){Name = "008 Enum", Method = Exercises_C_Sharp.Schulaufgaben.S008_Enum.Start} } }; - //************************ - //******Dictionary******** - //************************ - ExerciseGroup dictionaryElements = new ExerciseGroup() - { - Name = "Schulaufgaben", - ElementList = new List() - { - new ExerciseElement(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_1.Start}, - new ExerciseElement(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_2.Start}, - new ExerciseElement(){Name = "Aufgabe 3", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_3.Start}, - new ExerciseElement(){Name = "Aufgabe 4", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_4.Start}, - new ExerciseElement(){Name = "Aufgabe 5", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_5.Start} - } - }; - - //************************ - //****Sortieren******* - //************************ - ExerciseGroup sortElements = new ExerciseGroup() - { - Name = "Sortieralgorithmen", - ElementList = new List() - { - new ExerciseElement(){Name = "Bubble Sort", Method = Exercises_C_Sharp.E21_Sorting.Exercise_1.Start}, - new ExerciseElement(){Name = "Selection Sort", Method = Exercises_C_Sharp.E21_Sorting.Exercise_2.Start}, - new ExerciseElement(){Name = "Insert Sort", Method = Exercises_C_Sharp.E21_Sorting.Exercise_3.Start}, - new ExerciseElement(){Name = "Heap Sort", Method = Exercises_C_Sharp.E21_Sorting.Exercise_4.Start}, - new ExerciseElement(){Name = "Quick Sort", Method = Exercises_C_Sharp.E21_Sorting.Exercise_5.Start}, - new ExerciseElement(){Name = "Count Sort", Method = Exercises_C_Sharp.E21_Sorting.Exercise_6.Start}, - new ExerciseElement(){Name = "Bogo Sort", Method = Exercises_C_Sharp.E21_Sorting.Exercise_7.Start} - } - }; + + @@ -526,24 +663,39 @@ namespace Exercises_C_Sharp datetimeElements, ifElements, flowchartElements, + switchcaseElements, + forElements, + resizeArrayElements, + foreachElements, + whileElements, + dowhileElements, + breakcontinueElements, + structurediagramElements, methodsElements, - + ueberladungElements, listElements, sortingElements, + dictionaryElements, + chatgptElements, enumElements, - ueberladungElements, + tupleElements, moredimensionalArrayElements, jaggedArrayElements, - tupleElements, - specialElements, - developElements, classElements, constructorElements, + classdiagramElements, + ramElements, exceptionElements, + methodinformationElements, + usecasediagramElements, filesystemElements, + fileformatsElements, + serializeElements, mysqlElements, - sortElements, - dictionaryElements, + + + specialElements, + developElements, examElements }; diff --git a/lastPoint b/lastPoint deleted file mode 100644 index 254753a..0000000 --- a/lastPoint +++ /dev/null @@ -1,2 +0,0 @@ -6 -22