add Programmyday form github

This commit is contained in:
Ruben Kallinich
2024-07-25 15:47:46 +02:00
parent 09c8eab938
commit 7362c3d7ce
132 changed files with 3669 additions and 0 deletions

32
Parkplatz2/Program.cs Normal file
View File

@@ -0,0 +1,32 @@
using System;
namespace Parkplatz2
{
class Program
{
static void Main(string[] args)
{
Auto a1 = new Auto("UN-IT 4666");
Auto a2 = new Auto("UN-IT 92");
Auto a3 = new Auto("UN-IT 91");
Auto a4 = new Auto("UN-IT 7666");
Auto a5 = new Auto("UN-IT 6666");
Auto a6 = new Auto("UN-IT 5666");
Parkplatz p1 = new Parkplatz(1, 5);
Console.WriteLine("Freie Plätze: " + p1.FreiePlätze());
Parkschein ps1 = p1.Einparken(a1);
Console.WriteLine(ps1.GetParkplatzId());
Console.WriteLine(ps1.GetParboxId());
Console.WriteLine(ps1.GetKennzeichen());
Console.WriteLine();
a1 = null;
a1 = p1.Ausparken(ps1);
Console.WriteLine(a1.GetKennzeichen());
}
}
}