add Programmyday form github
This commit is contained in:
29
Lohnabrechnung/Praktikant.cs
Normal file
29
Lohnabrechnung/Praktikant.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Lohnabrechnung
|
||||
{
|
||||
internal class Praktikant : Lohnsklaven
|
||||
{
|
||||
private string? abteilung;
|
||||
public Praktikant(string? abteilung, string? name, string? vorname)
|
||||
{
|
||||
this.abteilung = abteilung;
|
||||
this.name = name;
|
||||
this.vorname = vorname;
|
||||
fußabtreter();
|
||||
}
|
||||
public void fußabtreter()
|
||||
{
|
||||
if (this.abteilung == "Entwicklung")
|
||||
{ this.gehalt = 935; }
|
||||
else if (this.abteilung == "Vertreib")
|
||||
{ this.gehalt = 820; }
|
||||
else if (this.abteilung == "Procuktion")
|
||||
{ this.gehalt = 710; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user