Program.cs
parent
8b62da8c23
commit
8321a25ffc
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
462
Program.cs
462
Program.cs
|
|
@ -170,7 +170,7 @@ namespace Exercises_C_Sharp
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//************************
|
//************************
|
||||||
//*******Flowchart*******
|
//*******Flowchart******* TODO
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup flowchartElements = new()
|
ExerciseGroup flowchartElements = new()
|
||||||
{
|
{
|
||||||
|
|
@ -180,10 +180,94 @@ namespace Exercises_C_Sharp
|
||||||
new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start}
|
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*******
|
//*******Methoden*******
|
||||||
//************************
|
//************************
|
||||||
|
|
@ -204,7 +288,7 @@ namespace Exercises_C_Sharp
|
||||||
//************************
|
//************************
|
||||||
//*******Überladung*******
|
//*******Überladung*******
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup ueberladungElements = new ExerciseGroup()
|
ExerciseGroup ueberladungElements = new()
|
||||||
{
|
{
|
||||||
Name = "19. Überladung",
|
Name = "19. Überladung",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
|
|
@ -219,7 +303,7 @@ namespace Exercises_C_Sharp
|
||||||
//************************
|
//************************
|
||||||
//********LISTEN**********
|
//********LISTEN**********
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup listElements = new ExerciseGroup()
|
ExerciseGroup listElements = new()
|
||||||
{
|
{
|
||||||
Name = "20. Listen",
|
Name = "20. Listen",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
|
|
@ -242,7 +326,7 @@ namespace Exercises_C_Sharp
|
||||||
//************************
|
//************************
|
||||||
//*********Sorting**********
|
//*********Sorting**********
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup sortingElements = new ExerciseGroup()
|
ExerciseGroup sortingElements = new()
|
||||||
{
|
{
|
||||||
Name = "21. Sortieren",
|
Name = "21. Sortieren",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
|
|
@ -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<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Übung 1", Method = E24_Enumns.Exercise_1.Start},
|
new(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_1.Start},
|
||||||
new ExerciseElement(){Name = "Übung 2", Method = E24_Enumns.Exercise_2.Start},
|
new(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_2.Start},
|
||||||
new ExerciseElement(){Name = "Übung 3", Method = E24_Enumns.Exercise_3.Start},
|
new(){Name = "Aufgabe 3", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_3.Start},
|
||||||
new ExerciseElement(){Name = "Übung 4", Method = E24_Enumns.Exercise_4.Start},
|
new(){Name = "Aufgabe 4", Method = Exercises_C_Sharp.E22_Dictionary.Exercise_4.Start},
|
||||||
new ExerciseElement(){Name = "Übung 5", Method = E24_Enumns.Exercise_5.Start},
|
new(){Name = "Aufgabe 5", Method = Exercises_C_Sharp.E22_Dictionary.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},
|
//*******ChatGPT******* TODO
|
||||||
new ExerciseElement(){Name = "Übung 10", Method = E24_Enumns.Exercise_10.Start},
|
//************************
|
||||||
new ExerciseElement(){Name = "Übung 11", Method = E24_Enumns.Exercise_11.Start},
|
ExerciseGroup chatgptElements = new()
|
||||||
new ExerciseElement(){Name = "Übung 12", Method = E24_Enumns.Exercise_12.Start},
|
{
|
||||||
new ExerciseElement(){Name = "Übung 13", Method = E24_Enumns.Exercise_13.Start}
|
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<ExerciseElement>()
|
||||||
|
{
|
||||||
|
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**********
|
//*********Tuple**********
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup tupleElements = new ExerciseGroup()
|
ExerciseGroup tupleElements = new()
|
||||||
{
|
{
|
||||||
Name = "Tuple",
|
Name = "25. Tuple",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Übung 1", Method = E25_Tuple.Exercise_1.Start},
|
new(){Name = "Übung 1", Method = E25_Tuple.Exercise_1.Start},
|
||||||
new ExerciseElement(){Name = "Übung 2", Method = E25_Tuple.Exercise_2.Start},
|
new(){Name = "Übung 2", Method = E25_Tuple.Exercise_2.Start},
|
||||||
new ExerciseElement(){Name = "Übung 3", Method = E25_Tuple.Exercise_3.Start},
|
new(){Name = "Übung 3", Method = E25_Tuple.Exercise_3.Start},
|
||||||
new ExerciseElement(){Name = "Übung 4", Method = E25_Tuple.Exercise_4.Start},
|
new(){Name = "Übung 4", Method = E25_Tuple.Exercise_4.Start},
|
||||||
new ExerciseElement(){Name = "Übung 5", Method = E25_Tuple.Exercise_5.Start},
|
new(){Name = "Übung 5", Method = E25_Tuple.Exercise_5.Start},
|
||||||
new ExerciseElement(){Name = "Übung 6", Method = E25_Tuple.Exercise_6.Start},
|
new(){Name = "Übung 6", Method = E25_Tuple.Exercise_6.Start},
|
||||||
new ExerciseElement(){Name = "Übung 7", Method = E25_Tuple.Exercise_7.Start},
|
new(){Name = "Übung 7", Method = E25_Tuple.Exercise_7.Start},
|
||||||
new ExerciseElement(){Name = "Übung 8", Method = E25_Tuple.Exercise_8.Start},
|
new(){Name = "Übung 8", Method = E25_Tuple.Exercise_8.Start},
|
||||||
new ExerciseElement(){Name = "Übung 9", Method = E25_Tuple.Exercise_9.Start}
|
new(){Name = "Übung 9", Method = E25_Tuple.Exercise_9.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//************************
|
//************************
|
||||||
//*Mehrdimensinale Arrays*
|
//*Mehrdimensinale Arrays*
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup moredimensionalArrayElements = new ExerciseGroup()
|
ExerciseGroup moredimensionalArrayElements = new()
|
||||||
{
|
{
|
||||||
Name = "Mehrdimensinale Arrays",
|
Name = "26. Mehrdimensinale Arrays",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Übung 1", Method = E26_Mehrdimensionale_Arrays.Exercise_1.Start},
|
new(){Name = "Übung 1", Method = E26_Mehrdimensionale_Arrays.Exercise_1.Start},
|
||||||
new ExerciseElement(){Name = "Übung 2", Method = E26_Mehrdimensionale_Arrays.Exercise_2.Start},
|
new(){Name = "Übung 2", Method = E26_Mehrdimensionale_Arrays.Exercise_2.Start},
|
||||||
new ExerciseElement(){Name = "Übung 3", Method = E26_Mehrdimensionale_Arrays.Exercise_3.Start},
|
new(){Name = "Übung 3", Method = E26_Mehrdimensionale_Arrays.Exercise_3.Start},
|
||||||
new ExerciseElement(){Name = "Übung 4", Method = E26_Mehrdimensionale_Arrays.Exercise_4.Start},
|
new(){Name = "Übung 4", Method = E26_Mehrdimensionale_Arrays.Exercise_4.Start},
|
||||||
new ExerciseElement(){Name = "Übung 5", Method = E26_Mehrdimensionale_Arrays.Exercise_5.Start},
|
new(){Name = "Übung 5", Method = E26_Mehrdimensionale_Arrays.Exercise_5.Start},
|
||||||
new ExerciseElement(){Name = "Übung 6", Method = E26_Mehrdimensionale_Arrays.Exercise_6.Start},
|
new(){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 7", Method = E26_Mehrdimensionale_Arrays.Exercise_7.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//************************
|
//************************
|
||||||
//******Jagged Arrays*****
|
//******Jagged Arrays*****
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup jaggedArrayElements = new ExerciseGroup()
|
ExerciseGroup jaggedArrayElements = new()
|
||||||
{
|
{
|
||||||
Name = "Jagged Arrays",
|
Name = "27. Jagged Arrays",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Übung 1", Method = E27_Jagged_Arrays.Exercise_1.Start},
|
new(){Name = "Übung 1", Method = E27_Jagged_Arrays.Exercise_1.Start},
|
||||||
new ExerciseElement(){Name = "Übung 2", Method = E27_Jagged_Arrays.Exercise_2.Start},
|
new(){Name = "Übung 2", Method = E27_Jagged_Arrays.Exercise_2.Start},
|
||||||
new ExerciseElement(){Name = "Übung 3", Method = E27_Jagged_Arrays.Exercise_3.Start},
|
new(){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 4", Method = E27_Jagged_Arrays.Exercise_4.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//************************
|
//************************
|
||||||
//********Klassen*********
|
//********Klassen*********
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup classElements = new ExerciseGroup()
|
ExerciseGroup classElements = new()
|
||||||
{
|
{
|
||||||
Name = "Klassen",
|
Name = "28. Klassen",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Übung 1", Method = Exercises_C_Sharp.E28_Classes.Exercise_1.Start},
|
new(){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(){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(){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(){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(){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(){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 7", Method = Exercises_C_Sharp.E28_Classes.Exercise_7.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//************************
|
//************************
|
||||||
//****Konstruktoren*******
|
//****Konstruktoren*******
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup constructorElements = new ExerciseGroup()
|
ExerciseGroup constructorElements = new()
|
||||||
{
|
{
|
||||||
Name = "Konstruktoren",
|
Name = "29. Konstruktoren",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Übung 1", Method = Exercises_C_Sharp.E29_Konstruktoren.Exercise_1.Start},
|
new(){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(){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(){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(){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(){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(){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 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********
|
//******Exceptions********
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup exceptionElements = new ExerciseGroup()
|
ExerciseGroup exceptionElements = new()
|
||||||
{
|
{
|
||||||
Name = "Exceptions",
|
Name = "32. Exceptions",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Übung 1", Method = Exercises_C_Sharp.E32_Exceptions.Exercise_1.Start},
|
new(){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(){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(){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(){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(){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(){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(){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(){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 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********
|
//***Dateizugriffe********
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup filesystemElements = new ExerciseGroup()
|
ExerciseGroup filesystemElements = new()
|
||||||
{
|
{
|
||||||
Name = "Dateizugriffe",
|
Name = "35. Dateizugriffe",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_1.Start},
|
new(){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(){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(){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(){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(){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(){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(){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(){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 8b", Method = Exercises_C_Sharp.E35_Dateizugriffe.Exercise_8b.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//************************
|
//************************
|
||||||
//***********MySQL********
|
//*******Dateiformate******* TODO
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup mysqlElements = new ExerciseGroup()
|
ExerciseGroup fileformatsElements = new()
|
||||||
{
|
{
|
||||||
Name = "MySQL",
|
Name = "36. Dateiformate",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E38_MySQL.Exercise_1.Start},
|
new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start}
|
||||||
new ExerciseElement(){Name = "Aufgabe 2", Method = Exercises_C_Sharp.E38_MySQL.Exercise_2.Start}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//************************
|
//************************
|
||||||
//*****Serialisierung*****
|
//*****Serialisierung*****
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup serializeElements = new ExerciseGroup()
|
ExerciseGroup serializeElements = new()
|
||||||
{
|
{
|
||||||
Name = "Serialisierung",
|
Name = "37. Serialisierung",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Aufgabe 1", Method = Exercises_C_Sharp.E37_Serialisierung.Exercise_1.Start},
|
new(){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 2", Method = Exercises_C_Sharp.E37_Serialisierung.Exercise_2.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//************************
|
||||||
|
//***********MySQL********
|
||||||
|
//************************
|
||||||
|
ExerciseGroup mysqlElements = new()
|
||||||
|
{
|
||||||
|
Name = "38. MySQL",
|
||||||
|
ElementList = new List<ExerciseElement>()
|
||||||
|
{
|
||||||
|
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******
|
//****Sonderaufgaben******
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup specialElements = new ExerciseGroup()
|
ExerciseGroup specialElements = new()
|
||||||
{
|
{
|
||||||
Name = "Sonderaufgaben",
|
Name = "Sonderaufgaben",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "Schere Stein Papier Echse Spock", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_1.Start},
|
new(){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(){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 = "Memory", Method = Exercises_C_Sharp.Sonderaufgaben.Exercise_3.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//************************
|
//************************
|
||||||
//*Entwicklungsaufgaben***
|
//*Entwicklungsaufgaben***
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup developElements = new ExerciseGroup()
|
ExerciseGroup developElements = new()
|
||||||
{
|
{
|
||||||
Name = "Entwicklungsaufgaben",
|
Name = "Entwicklungsaufgaben",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new List<ExerciseElement>()
|
||||||
{
|
{
|
||||||
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*******
|
//****Schulaufgaben*******
|
||||||
//************************
|
//************************
|
||||||
ExerciseGroup examElements = new ExerciseGroup()
|
ExerciseGroup examElements = new()
|
||||||
{
|
{
|
||||||
Name = "Schulaufgaben",
|
Name = "Schulaufgaben",
|
||||||
ElementList = new List<ExerciseElement>()
|
ElementList = new()
|
||||||
{
|
{
|
||||||
new ExerciseElement(){Name = "001 Klassen", Method = Exercises_C_Sharp.Schulaufgaben.S001_Class.Start},
|
new(){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(){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(){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(){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(){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(){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(){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 = "008 Enum", Method = Exercises_C_Sharp.Schulaufgaben.S008_Enum.Start}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//************************
|
|
||||||
//******Dictionary********
|
|
||||||
//************************
|
|
||||||
ExerciseGroup dictionaryElements = new ExerciseGroup()
|
|
||||||
{
|
|
||||||
Name = "Schulaufgaben",
|
|
||||||
ElementList = new List<ExerciseElement>()
|
|
||||||
{
|
|
||||||
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<ExerciseElement>()
|
|
||||||
{
|
|
||||||
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,
|
datetimeElements,
|
||||||
ifElements,
|
ifElements,
|
||||||
flowchartElements,
|
flowchartElements,
|
||||||
|
switchcaseElements,
|
||||||
|
forElements,
|
||||||
|
resizeArrayElements,
|
||||||
|
foreachElements,
|
||||||
|
whileElements,
|
||||||
|
dowhileElements,
|
||||||
|
breakcontinueElements,
|
||||||
|
structurediagramElements,
|
||||||
methodsElements,
|
methodsElements,
|
||||||
|
ueberladungElements,
|
||||||
listElements,
|
listElements,
|
||||||
sortingElements,
|
sortingElements,
|
||||||
|
dictionaryElements,
|
||||||
|
chatgptElements,
|
||||||
enumElements,
|
enumElements,
|
||||||
ueberladungElements,
|
tupleElements,
|
||||||
moredimensionalArrayElements,
|
moredimensionalArrayElements,
|
||||||
jaggedArrayElements,
|
jaggedArrayElements,
|
||||||
tupleElements,
|
|
||||||
specialElements,
|
|
||||||
developElements,
|
|
||||||
classElements,
|
classElements,
|
||||||
constructorElements,
|
constructorElements,
|
||||||
|
classdiagramElements,
|
||||||
|
ramElements,
|
||||||
exceptionElements,
|
exceptionElements,
|
||||||
|
methodinformationElements,
|
||||||
|
usecasediagramElements,
|
||||||
filesystemElements,
|
filesystemElements,
|
||||||
|
fileformatsElements,
|
||||||
|
serializeElements,
|
||||||
mysqlElements,
|
mysqlElements,
|
||||||
sortElements,
|
|
||||||
dictionaryElements,
|
|
||||||
|
specialElements,
|
||||||
|
developElements,
|
||||||
|
|
||||||
examElements
|
examElements
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue