backup
This commit is contained in:
2
1/.gitingore
Normal file
2
1/.gitingore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.class
|
||||||
|
*.~ava
|
||||||
BIN
1/MeinErstesProgramm.class
Normal file
BIN
1/MeinErstesProgramm.class
Normal file
Binary file not shown.
5
1/MeinErstesProgramm.java
Normal file
5
1/MeinErstesProgramm.java
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
public class MeinErstesProgramm {
|
||||||
|
public static void main(String args[]) {
|
||||||
|
System.out.println("Hello World!");
|
||||||
|
}
|
||||||
|
}
|
||||||
6
1/MeinErstesProgramm.~ava
Normal file
6
1/MeinErstesProgramm.~ava
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
public class MeinErstesProgramm {
|
||||||
|
public static void main(String args[]) {
|
||||||
|
int a = System.in.read();
|
||||||
|
System.out.println("Hello World!" + (a * 4));
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
1/ProgExpr.class
Normal file
BIN
1/ProgExpr.class
Normal file
Binary file not shown.
10
1/ProgExpr.java
Normal file
10
1/ProgExpr.java
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
public class ProgExpr {
|
||||||
|
public static void main (String args[]) {
|
||||||
|
int guthaben = 1000; // VAriable Guthaben deklarieren
|
||||||
|
System.out.println("Guthaben = " + guthaben); // schreiben
|
||||||
|
int einzahlung = 500; // VAriable einzahlung deklarieren
|
||||||
|
System.out.println("Einzahlung = " + einzahlung);
|
||||||
|
guthaben = guthaben + einzahlung; // guthaben + einzahlung
|
||||||
|
System.out.println("Guthaben = " + guthaben); // Ausgabe
|
||||||
|
}
|
||||||
|
}
|
||||||
10
1/ProgExpr.~ava
Normal file
10
1/ProgExpr.~ava
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
public class ProgExpr {
|
||||||
|
public static void main (String args[]) {
|
||||||
|
int guthaben = 1000; // VAriable Guthaben deklarieren
|
||||||
|
System.out.println("Guthaben = " + guthaben); // schreiben
|
||||||
|
int einzahlung = 500; // VAriable einzahlung deklarieren
|
||||||
|
System.out.println("Einzahlung = " + einzahlung);
|
||||||
|
guthaben = guthaben + einzahlung; // guthaben + einzahlung
|
||||||
|
System.out.println("Guthaben = " + guthaben); // ausgabe
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
1/ProgFor.class
Normal file
BIN
1/ProgFor.class
Normal file
Binary file not shown.
13
1/ProgFor.java
Normal file
13
1/ProgFor.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
public class ProgFor {
|
||||||
|
public static void main (String args[]) {
|
||||||
|
int guthaben = 1000;
|
||||||
|
int einzahlung = 500; // variables deklaration
|
||||||
|
System.out.println("Guthaben = " + guthaben);
|
||||||
|
System.out.println("Einzahlung = " + einzahlung + " pro Monat"); // schreiben text
|
||||||
|
for ( int monat=1; monat<=6; monat = monat + 1 ) { // for-schleife, ausführt scih 6 Mal
|
||||||
|
guthaben += einzahlung; // math-oper, guthaben + einzahlung
|
||||||
|
System.out.println(monat + ". Monat:");
|
||||||
|
System.out.println(" Guthaben = " + guthaben);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
13
1/ProgFor.~ava
Normal file
13
1/ProgFor.~ava
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
public class ProgFor {
|
||||||
|
public static void main (String args[]) {
|
||||||
|
int guthaben = 1000;
|
||||||
|
int einzahlung = 500; // variables deklaration
|
||||||
|
System.out.println("Guthaben = " + guthaben);
|
||||||
|
System.out.println("Einzahlung = " + einzahlung + " pro Monat"); // schreiben text
|
||||||
|
for ( int monat=1; monat<=6; monat = monat + 1 ) { // for-schleife, ausführt scih 6 Mal
|
||||||
|
guthaben = guthaben + einzahlung; // math-oper, guthaben + einzahlung
|
||||||
|
System.out.println(monat + ". Monat:");
|
||||||
|
System.out.println(" Guthaben = " + guthaben);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
1/ProgIf.class
Normal file
BIN
1/ProgIf.class
Normal file
Binary file not shown.
9
1/ProgIf.java
Normal file
9
1/ProgIf.java
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
public class ProgIf {
|
||||||
|
public static void main (String args[]) {
|
||||||
|
int guthaben = 2000000; // Variable guthaben deklarieren
|
||||||
|
System.out.println("Guthaben = " + guthaben);
|
||||||
|
if ( guthaben >= 1000000 ) { // wenn guthaben mehr als 1000000
|
||||||
|
System.out.println("Gratuliere, Du bist Millionaer!"); // dann schreiben
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
1/ProgIf.~ava
Normal file
9
1/ProgIf.~ava
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
public class ProgIf {
|
||||||
|
public static void main (String args[]) {
|
||||||
|
int guthaben = 2000000; // Variable guthaben deklarieren
|
||||||
|
System.out.println("Guthaben = " + guthaben);
|
||||||
|
if ( guthaben >= 1000000 ) {
|
||||||
|
System.out.println("Gratuliere, Du bist Millionaer!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
1/ProgWhile.class
Normal file
BIN
1/ProgWhile.class
Normal file
Binary file not shown.
14
1/ProgWhile.java
Normal file
14
1/ProgWhile.java
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
public class ProgWhile {
|
||||||
|
public static void main (String args[]) {
|
||||||
|
int guthaben = 1000;
|
||||||
|
int sparziel = 8000;
|
||||||
|
int einzahlung = 600; // variables deklaration
|
||||||
|
System.out.println ("Guthaben = " + guthaben);
|
||||||
|
System.out.println ("Sparziel = " + sparziel); // schreiben
|
||||||
|
while ( guthaben < sparziel ) { // while-schleife , ausführt sich bis guthaben > sparziel
|
||||||
|
guthaben += einzahlung; // math-oper, guthaben + einzahlung
|
||||||
|
System.out.println ("neues Guthaben = " + guthaben);
|
||||||
|
}
|
||||||
|
System.out.println( "Sparziel erreicht.");
|
||||||
|
}
|
||||||
|
}
|
||||||
14
1/ProgWhile.~ava
Normal file
14
1/ProgWhile.~ava
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
public class ProgWhile {
|
||||||
|
public static void main (String args[]) {
|
||||||
|
int guthaben = 1000;
|
||||||
|
int sparziel = 8000;
|
||||||
|
int einzahlung = 600; // variables deklaration
|
||||||
|
System.out.println ("Guthaben = " + guthaben);
|
||||||
|
System.out.println ("Sparziel = " + sparziel); // schreiben
|
||||||
|
while ( guthaben < sparziel ) { // while-schleife , ausführt sich bis guthaben > sparziel
|
||||||
|
guthaben = guthaben + einzahlung;
|
||||||
|
System.out.println ("neues Guthaben = " + guthaben);
|
||||||
|
}
|
||||||
|
System.out.println( "Sparziel erreicht.");
|
||||||
|
}
|
||||||
|
}
|
||||||
2
10/.gitingore
Normal file
2
10/.gitingore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.class
|
||||||
|
*.~ava
|
||||||
BIN
10/Aufgabe.class
Normal file
BIN
10/Aufgabe.class
Normal file
Binary file not shown.
38
10/Aufgabe.java
Normal file
38
10/Aufgabe.java
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import java.text.DecimalFormat;
|
||||||
|
public class Aufgabe {
|
||||||
|
public static void main(String args[]) {
|
||||||
|
DecimalFormat d = new DecimalFormat("0.00");
|
||||||
|
|
||||||
|
System.out.println("-------------------------------");
|
||||||
|
Raum raum = new Raum("Wohnzimmer",4.5,8,2.5,3,2);
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println(raum.name + " - Decke : " + d.format(raum.berFlaecheDecke()));
|
||||||
|
System.out.println(raum.name + " - Waende : " + d.format(raum.berFlaecheWaende()));
|
||||||
|
System.out.println(raum.name + " - Malen : " + d.format(raum.berFlaecheMalen()));
|
||||||
|
|
||||||
|
System.out.println("-------------------------------");
|
||||||
|
Raum raum2 = new Raum("Badezimmer",5.6,5,2.5,2,1);
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println(raum2.name + " - Decke : " + d.format(raum2.berFlaecheDecke()));
|
||||||
|
System.out.println(raum2.name + " - Waende : " + d.format(raum2.berFlaecheWaende()));
|
||||||
|
System.out.println(raum2.name + " - Malen : " + d.format(raum2.berFlaecheMalen()));
|
||||||
|
|
||||||
|
System.out.println("-------------------------------");
|
||||||
|
Raum raum3 = new Raum("Küche",5,6,2.5,1,1);
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println(raum3.name + " - Decke : " + d.format(raum3.berFlaecheDecke()));
|
||||||
|
System.out.println(raum3.name + " - Waende : " + d.format(raum3.berFlaecheWaende()));
|
||||||
|
System.out.println(raum3.name + " - Malen : " + d.format(raum3.berFlaecheMalen()));
|
||||||
|
|
||||||
|
System.out.println("-------------------------------");
|
||||||
|
Raum raum4 = new Raum("Wohnzimmer 2",10,5,2.5,3,1);
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println(raum4.name + " - Decke : " + d.format(raum4.berFlaecheDecke()));
|
||||||
|
System.out.println(raum4.name + " - Waende : " + d.format(raum4.berFlaecheWaende()));
|
||||||
|
System.out.println(raum4.name + " - Malen : " + d.format(raum4.berFlaecheMalen()));
|
||||||
|
}
|
||||||
|
}
|
||||||
36
10/Aufgabe.~ava
Normal file
36
10/Aufgabe.~ava
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
import java.text.DecimalFormat;
|
||||||
|
public class Aufgabe {
|
||||||
|
public static void main(String args[]) {
|
||||||
|
DecimalFormat d = new DecimalFormat("0.00");
|
||||||
|
|
||||||
|
Raum raum = new Raum("Wohnzimmer",4.5,8,2.5,3,2);
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println(raum.name + " - Decke : " + d.format(raum.berFlaecheDecke()));
|
||||||
|
System.out.println(raum.name + " - Waende : " + d.format(raum.berFlaecheWaende()));
|
||||||
|
System.out.println(raum.name + " - Malen : " + d.format(raum.berFlaecheMalen()));
|
||||||
|
|
||||||
|
|
||||||
|
Raum raum2 = new Raum("Badezimmer",5.6,5,2.5,2,1);
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println(raum2.name + " - Decke : " + d.format(raum2.berFlaecheDecke()));
|
||||||
|
System.out.println(raum2.name + " - Waende : " + d.format(raum2.berFlaecheWaende()));
|
||||||
|
System.out.println(raum2.name + " - Malen : " + d.format(raum2.berFlaecheMalen()));
|
||||||
|
|
||||||
|
|
||||||
|
Raum raum3 = new Raum("Küche",5,6,2.5,1,1);
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println(raum3.name + " - Decke : " + d.format(raum3.berFlaecheDecke()));
|
||||||
|
System.out.println(raum3.name + " - Waende : " + d.format(raum3.berFlaecheWaende()));
|
||||||
|
System.out.println(raum3.name + " - Malen : " + d.format(raum3.berFlaecheMalen()));
|
||||||
|
|
||||||
|
Raum raum4 = new Raum("Wohnzimmer 2",10,5,2.5,3,1);
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println(raum4.name + " - Decke : " + d.format(raum4.berFlaecheDecke()));
|
||||||
|
System.out.println(raum4.name + " - Waende : " + d.format(raum4.berFlaecheWaende()));
|
||||||
|
System.out.println(raum4.name + " - Malen : " + d.format(raum4.berFlaecheMalen()));
|
||||||
|
}
|
||||||
|
}
|
||||||
0
10/Datei1.java
Normal file
0
10/Datei1.java
Normal file
BIN
10/Raum.class
Normal file
BIN
10/Raum.class
Normal file
Binary file not shown.
53
10/Raum.java
Normal file
53
10/Raum.java
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 02.04.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Raum {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
public String name;
|
||||||
|
public double laenge;
|
||||||
|
public double breite;
|
||||||
|
public double hoehe;
|
||||||
|
public int anzFenster;
|
||||||
|
public int anzTueren;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Raum(String name, double laenge, double breite, double hoehe, int anzFenster, int anzTueren) {
|
||||||
|
this.name = name;
|
||||||
|
this.laenge = laenge;
|
||||||
|
this.breite = breite;
|
||||||
|
this.hoehe = hoehe;
|
||||||
|
this.anzFenster = anzFenster;
|
||||||
|
this.anzTueren = anzTueren;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public double berFlaecheDecke() {
|
||||||
|
|
||||||
|
return laenge*breite;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double berFlaecheWaende() {
|
||||||
|
double ergebniss = 0;
|
||||||
|
ergebniss += 2*(hoehe*laenge);
|
||||||
|
ergebniss += 2*(hoehe*breite);
|
||||||
|
for (int i = 0; i < anzFenster; i++) {
|
||||||
|
ergebniss -= (1 * 1.2);
|
||||||
|
}
|
||||||
|
for (int i = 0; i < anzTueren; i++) {
|
||||||
|
ergebniss -= (0.9 * 2.1);
|
||||||
|
}
|
||||||
|
return ergebniss;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double berFlaecheMalen() {
|
||||||
|
return (berFlaecheWaende() + berFlaecheDecke());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Raum
|
||||||
27
10/Raum.uml
Normal file
27
10/Raum.uml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
[Files]
|
||||||
|
File0=Raum.java
|
||||||
|
|
||||||
|
[Box: - Raum]
|
||||||
|
X=20
|
||||||
|
Y=40
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Diagram]
|
||||||
|
comments=0
|
||||||
|
OffsetX=0
|
||||||
|
OffsetY=0
|
||||||
|
Visibility=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
ShowConnections=0
|
||||||
|
Fontname=Segoe UI
|
||||||
|
Fontsize=12
|
||||||
|
ShowObjectDiagram=0
|
||||||
|
|
||||||
|
[Interactive]
|
||||||
|
I0=
|
||||||
|
|
||||||
55
10/Raum.~ava
Normal file
55
10/Raum.~ava
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 02.04.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Raum {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
public String name;
|
||||||
|
public double laenge;
|
||||||
|
public double breite;
|
||||||
|
public double hoehe;
|
||||||
|
public int anzFenster;
|
||||||
|
public int anzTueren;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Raum(String name, double laenge, double breite, double hoehe, int anzFenster, int anzTueren) {
|
||||||
|
this.name = name;
|
||||||
|
this.laenge = laenge;
|
||||||
|
this.breite = breite;
|
||||||
|
this.hoehe = hoehe;
|
||||||
|
this.anzFenster = anzFenster;
|
||||||
|
this.anzTueren = anzTueren;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public double berFlaecheDecke() {
|
||||||
|
|
||||||
|
return laenge*breite;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double berFlaecheWaende() {
|
||||||
|
double ergebniss = 0;
|
||||||
|
ergebniss += 2*(hoehe*laenge);
|
||||||
|
for (int i = 0; i < 2; i++) {
|
||||||
|
ergebniss += hoehe*breite;
|
||||||
|
}
|
||||||
|
for (int i = 0; i < anzFenster; i++) {
|
||||||
|
ergebniss -= (1 * 1.2);
|
||||||
|
}
|
||||||
|
for (int i = 0; i < anzTueren; i++) {
|
||||||
|
ergebniss -= (0.9 * 2.1);
|
||||||
|
}
|
||||||
|
return ergebniss;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double berFlaecheMalen() {
|
||||||
|
return (berFlaecheWaende() + berFlaecheDecke());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Raum
|
||||||
2
11/.gitingore
Normal file
2
11/.gitingore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.class
|
||||||
|
*.~ava
|
||||||
BIN
11/Bank.class
Normal file
BIN
11/Bank.class
Normal file
Binary file not shown.
47
11/Bank.java
Normal file
47
11/Bank.java
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import java.util.Scanner;
|
||||||
|
public class Bank {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Scanner input = new Scanner(System.in);
|
||||||
|
String nl = System.lineSeparator();
|
||||||
|
|
||||||
|
Kunde k1 = new Kunde("Meier",0);
|
||||||
|
Konto ko1 = new Konto(1,2567.89);
|
||||||
|
|
||||||
|
k1.setKundeKonto(ko1);
|
||||||
|
|
||||||
|
boolean end = false;
|
||||||
|
double summe = 0;
|
||||||
|
while(!end) {
|
||||||
|
System.out.println("Was wollen Sie?");
|
||||||
|
System.out.println("1. Kontostand anzeigen \n2. Einzahlen\n3. Auszahlen\n0. Beenden");
|
||||||
|
|
||||||
|
System.out.println();
|
||||||
|
System.out.print("Wahl: ");
|
||||||
|
String wahl = input.next();
|
||||||
|
System.out.println();
|
||||||
|
switch (wahl) {
|
||||||
|
case "1":
|
||||||
|
System.out.println("Ihre Kontostand: " +k1.getKundeKonto().getKontostand());
|
||||||
|
break;
|
||||||
|
case "2":
|
||||||
|
System.out.println("Einzahlung!");
|
||||||
|
System.out.print("Tragen Sie die Summe: ");
|
||||||
|
summe = input.nextDouble();
|
||||||
|
k1.getKundeKonto().einzahlen(summe);
|
||||||
|
break;
|
||||||
|
case "3":
|
||||||
|
System.out.println("Auszahlung!");
|
||||||
|
System.out.print("Tragen Sie die Summe: ");
|
||||||
|
summe = input.nextDouble();
|
||||||
|
k1.getKundeKonto().auszahlen(summe);
|
||||||
|
break;
|
||||||
|
case "0":
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
System.out.println("----------------------------");
|
||||||
|
|
||||||
|
}
|
||||||
|
System.out.println("Auf Wiedersehen!");
|
||||||
|
}
|
||||||
|
}
|
||||||
47
11/Bank.~ava
Normal file
47
11/Bank.~ava
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import java.util.Scanner;
|
||||||
|
public class Bank {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Scanner input = new Scanner(System.in);
|
||||||
|
String nl = System.lineSeparator();
|
||||||
|
|
||||||
|
Kunde k1 = new Kunde("Meier",0);
|
||||||
|
Konto ko1 = new Konto(1,2567.89);
|
||||||
|
|
||||||
|
k1.setKundeKonto(ko1);
|
||||||
|
|
||||||
|
boolean end = false;
|
||||||
|
double summe = 0;
|
||||||
|
while(!end) {
|
||||||
|
System.out.println("Was wollen Sie?");
|
||||||
|
System.out.println("1. Kontostand anzeigen \n2. Einzahlen\n3. Auszahlen\n0. Beenden");
|
||||||
|
|
||||||
|
System.out.println();
|
||||||
|
System.out.print("Wahl: ");
|
||||||
|
String wahl = input.next();
|
||||||
|
System.out.println();
|
||||||
|
switch (wahl) {
|
||||||
|
case "1":
|
||||||
|
System.out.println("Ihre Kontostand: " +k1.getKundeKonto().getKontostand());
|
||||||
|
break;
|
||||||
|
case "2":
|
||||||
|
System.out.println("Einzahlung!");
|
||||||
|
System.out.print("Tragen Sie die Summe: ");
|
||||||
|
summe = input.nextDouble();
|
||||||
|
k1.getKundeKonto().einzahlen(summe);
|
||||||
|
break;
|
||||||
|
case "3":
|
||||||
|
System.out.println("Auszahlung!");
|
||||||
|
System.out.print("Tragen Sie die Summe: ");
|
||||||
|
summe = input.nextDouble();
|
||||||
|
k1.getKundeKonto().auszahlen(summe);
|
||||||
|
break;
|
||||||
|
case "0":
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
System.out.println("----------------------------");
|
||||||
|
|
||||||
|
}
|
||||||
|
System.out.println("Auf Wiedersehen!");
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
11/Girokonto.class
Normal file
BIN
11/Girokonto.class
Normal file
Binary file not shown.
20
11/Girokonto.java
Normal file
20
11/Girokonto.java
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Girokonto extends Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Girokonto(int kontonr, double kontostand) {
|
||||||
|
super(kontonr, kontostand);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Girokonto
|
||||||
27
11/Girokonto.uml
Normal file
27
11/Girokonto.uml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
[Files]
|
||||||
|
File0=Girokonto.java
|
||||||
|
|
||||||
|
[Box: - Girokonto]
|
||||||
|
X=20
|
||||||
|
Y=40
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Diagram]
|
||||||
|
comments=0
|
||||||
|
OffsetX=0
|
||||||
|
OffsetY=0
|
||||||
|
Visibility=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
ShowConnections=0
|
||||||
|
Fontname=Segoe UI
|
||||||
|
Fontsize=12
|
||||||
|
ShowObjectDiagram=0
|
||||||
|
|
||||||
|
[Interactive]
|
||||||
|
I0=
|
||||||
|
|
||||||
16
11/Girokonto.~ava
Normal file
16
11/Girokonto.~ava
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Girokonto extends Konto{
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Girokonto
|
||||||
BIN
11/Konto.class
Normal file
BIN
11/Konto.class
Normal file
Binary file not shown.
60
11/Konto.java
Normal file
60
11/Konto.java
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private int kontonr;
|
||||||
|
private double kontostand;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
protected Konto(int kontonr, double kontostand) {
|
||||||
|
this.kontonr = kontonr;
|
||||||
|
this.kontostand = kontostand;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public int getKontonr() {
|
||||||
|
return kontonr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKontonr(int kontonrNeu) {
|
||||||
|
kontonr = kontonrNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getKontostand() {
|
||||||
|
return kontostand;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKontostand(double kontostandNeu) {
|
||||||
|
kontostand = kontostandNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void einzahlen(double summe) {
|
||||||
|
if (summe >= 0) {
|
||||||
|
this.kontostand+=summe;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
System.out.println("Es ist ein Fehler aufgetreten!");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void auszahlen(double summe) {
|
||||||
|
if (summe >= 0 && this.kontostand >= summe) {
|
||||||
|
this.kontostand-=summe;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
System.out.println("Es ist ein Fehler aufgetreten!");
|
||||||
|
} // end of if-else
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Konto
|
||||||
49
11/Konto.uml
Normal file
49
11/Konto.uml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
[Files]
|
||||||
|
File0=Girokonto.java
|
||||||
|
File1=Konto.java
|
||||||
|
File2=Sparkonto.java
|
||||||
|
|
||||||
|
[Box: - Girokonto]
|
||||||
|
X=459
|
||||||
|
Y=66
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Konto]
|
||||||
|
X=21
|
||||||
|
Y=40
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Sparkonto]
|
||||||
|
X=478
|
||||||
|
Y=191
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Diagram]
|
||||||
|
comments=0
|
||||||
|
OffsetX=0
|
||||||
|
OffsetY=0
|
||||||
|
Visibility=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
ShowConnections=0
|
||||||
|
Fontname=Segoe UI
|
||||||
|
Fontsize=12
|
||||||
|
ShowObjectDiagram=0
|
||||||
|
|
||||||
|
[Connections]
|
||||||
|
V0=Girokonto#Konto#Inheritends####0#0#0###0#0
|
||||||
|
V1=Sparkonto#Konto#Inheritends####0#0#0###0#0
|
||||||
|
|
||||||
|
[Interactive]
|
||||||
|
I0=
|
||||||
|
|
||||||
60
11/Konto.~ava
Normal file
60
11/Konto.~ava
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private int kontonr;
|
||||||
|
private double kontostand;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Konto(int kontonr, double kontostand) {
|
||||||
|
this.kontonr = kontonr;
|
||||||
|
this.kontostand = kontostand;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public int getKontonr() {
|
||||||
|
return kontonr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKontonr(int kontonrNeu) {
|
||||||
|
kontonr = kontonrNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getKontostand() {
|
||||||
|
return kontostand;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKontostand(double kontostandNeu) {
|
||||||
|
kontostand = kontostandNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void einzahlen(double summe) {
|
||||||
|
if (summe >= 0) {
|
||||||
|
this.kontostand+=summe;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
System.out.println("Es ist ein Fehler aufgetreten!");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void auszahlen(double summe) {
|
||||||
|
if (summe >= 0 && this.kontostand >= summe) {
|
||||||
|
this.kontostand-=summe;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
System.out.println("Es ist ein Fehler aufgetreten!");
|
||||||
|
} // end of if-else
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Konto
|
||||||
BIN
11/Kunde.class
Normal file
BIN
11/Kunde.class
Normal file
Binary file not shown.
48
11/Kunde.java
Normal file
48
11/Kunde.java
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Kunde {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private int kundenummer;
|
||||||
|
private Konto kundeKonto;
|
||||||
|
private String name;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Kunde(String name, int kundenummer) {
|
||||||
|
this.kundenummer = kundenummer;
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public int getKundenummer() {
|
||||||
|
return kundenummer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKundenummer(int kundenummerNeu) {
|
||||||
|
kundenummer = kundenummerNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Konto getKundeKonto() {
|
||||||
|
return kundeKonto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKundeKonto(Konto kundeKontoNeu) {
|
||||||
|
kundeKonto = kundeKontoNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String nameNeu) {
|
||||||
|
name = nameNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Kunde
|
||||||
39
11/Kunde.uml
Normal file
39
11/Kunde.uml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
[Files]
|
||||||
|
File0=Konto.java
|
||||||
|
File1=Kunde.java
|
||||||
|
|
||||||
|
[Box: - Konto]
|
||||||
|
X=20
|
||||||
|
Y=40
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Kunde]
|
||||||
|
X=562
|
||||||
|
Y=27
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Diagram]
|
||||||
|
comments=0
|
||||||
|
OffsetX=0
|
||||||
|
OffsetY=0
|
||||||
|
Visibility=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
ShowConnections=0
|
||||||
|
Fontname=Segoe UI
|
||||||
|
Fontsize=12
|
||||||
|
ShowObjectDiagram=0
|
||||||
|
|
||||||
|
[Connections]
|
||||||
|
V0=Kunde#Konto#AssociationDirected####0#0#0###0#0
|
||||||
|
|
||||||
|
[Interactive]
|
||||||
|
I0=
|
||||||
|
|
||||||
49
11/Kunde.~ava
Normal file
49
11/Kunde.~ava
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Kunde {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private int kundenummer;
|
||||||
|
private Konto kundeKonto;
|
||||||
|
private String name;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Kunde(Konto kundeKonto, String name, int kundenummer) {
|
||||||
|
this.kundenummer = kundenummer;
|
||||||
|
this.kundeKonto = kundeKonto;
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public int getKundenummer() {
|
||||||
|
return kundenummer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKundenummer(int kundenummerNeu) {
|
||||||
|
kundenummer = kundenummerNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Konto getKundeKonto() {
|
||||||
|
return kundeKonto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKundeKonto(Konto kundeKontoNeu) {
|
||||||
|
kundeKonto = kundeKontoNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String nameNeu) {
|
||||||
|
name = nameNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Kunde
|
||||||
BIN
11/Sparkonto.class
Normal file
BIN
11/Sparkonto.class
Normal file
Binary file not shown.
20
11/Sparkonto.java
Normal file
20
11/Sparkonto.java
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Sparkonto extends Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Sparkonto(int kontonr, double kontostand) {
|
||||||
|
super(kontonr,kontostand);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Sparkonto
|
||||||
19
11/Sparkonto.~ava
Normal file
19
11/Sparkonto.~ava
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Sparkonto extends Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Sparkonto(int kontonr, double kontostand) {
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Sparkonto
|
||||||
2
12/.gitingore
Normal file
2
12/.gitingore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.class
|
||||||
|
*.~ava
|
||||||
BIN
12/Arbeit.class
Normal file
BIN
12/Arbeit.class
Normal file
Binary file not shown.
31
12/Arbeit.java
Normal file
31
12/Arbeit.java
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 07.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Arbeit {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private boolean vollzeit;
|
||||||
|
private double gehalt;
|
||||||
|
private String firma;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public boolean getVollzeit() {
|
||||||
|
return vollzeit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getGehalt() {
|
||||||
|
return gehalt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFirma() {
|
||||||
|
return firma;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Arbeit
|
||||||
BIN
12/Bank.class
Normal file
BIN
12/Bank.class
Normal file
Binary file not shown.
47
12/Bank.java
Normal file
47
12/Bank.java
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import java.util.Scanner;
|
||||||
|
public class Bank {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Scanner input = new Scanner(System.in);
|
||||||
|
String nl = System.lineSeparator();
|
||||||
|
|
||||||
|
Kunde k1 = new Kunde("Meier",0);
|
||||||
|
Konto ko1 = new Konto(1,2567.89);
|
||||||
|
|
||||||
|
k1.setKundeKonto(ko1);
|
||||||
|
|
||||||
|
boolean end = false;
|
||||||
|
double summe = 0;
|
||||||
|
while(!end) {
|
||||||
|
System.out.println("Was wollen Sie?");
|
||||||
|
System.out.println("1. Kontostand anzeigen \n2. Einzahlen\n3. Auszahlen\n0. Beenden");
|
||||||
|
|
||||||
|
System.out.println();
|
||||||
|
System.out.print("Wahl: ");
|
||||||
|
String wahl = input.next();
|
||||||
|
System.out.println();
|
||||||
|
switch (wahl) {
|
||||||
|
case "1":
|
||||||
|
System.out.println("Ihre Kontostand: " +k1.getKundeKonto().getKontostand());
|
||||||
|
break;
|
||||||
|
case "2":
|
||||||
|
System.out.println("Einzahlung!");
|
||||||
|
System.out.print("Tragen Sie die Summe: ");
|
||||||
|
summe = input.nextDouble();
|
||||||
|
k1.getKundeKonto().einzahlen(summe);
|
||||||
|
break;
|
||||||
|
case "3":
|
||||||
|
System.out.println("Auszahlung!");
|
||||||
|
System.out.print("Tragen Sie die Summe: ");
|
||||||
|
summe = input.nextDouble();
|
||||||
|
k1.getKundeKonto().auszahlen(summe);
|
||||||
|
break;
|
||||||
|
case "0":
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
System.out.println("----------------------------");
|
||||||
|
|
||||||
|
}
|
||||||
|
System.out.println("Auf Wiedersehen!");
|
||||||
|
}
|
||||||
|
}
|
||||||
47
12/Bank.~ava
Normal file
47
12/Bank.~ava
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import java.util.Scanner;
|
||||||
|
public class Bank {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Scanner input = new Scanner(System.in);
|
||||||
|
String nl = System.lineSeparator();
|
||||||
|
|
||||||
|
Kunde k1 = new Kunde("Meier",0);
|
||||||
|
Konto ko1 = new Konto(1,2567.89);
|
||||||
|
|
||||||
|
k1.setKundeKonto(ko1);
|
||||||
|
|
||||||
|
boolean end = false;
|
||||||
|
double summe = 0;
|
||||||
|
while(!end) {
|
||||||
|
System.out.println("Was wollen Sie?");
|
||||||
|
System.out.println("1. Kontostand anzeigen \n2. Einzahlen\n3. Auszahlen\n0. Beenden");
|
||||||
|
|
||||||
|
System.out.println();
|
||||||
|
System.out.print("Wahl: ");
|
||||||
|
String wahl = input.next();
|
||||||
|
System.out.println();
|
||||||
|
switch (wahl) {
|
||||||
|
case "1":
|
||||||
|
System.out.println("Ihre Kontostand: " +k1.getKundeKonto().getKontostand());
|
||||||
|
break;
|
||||||
|
case "2":
|
||||||
|
System.out.println("Einzahlung!");
|
||||||
|
System.out.print("Tragen Sie die Summe: ");
|
||||||
|
summe = input.nextDouble();
|
||||||
|
k1.getKundeKonto().einzahlen(summe);
|
||||||
|
break;
|
||||||
|
case "3":
|
||||||
|
System.out.println("Auszahlung!");
|
||||||
|
System.out.print("Tragen Sie die Summe: ");
|
||||||
|
summe = input.nextDouble();
|
||||||
|
k1.getKundeKonto().auszahlen(summe);
|
||||||
|
break;
|
||||||
|
case "0":
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
System.out.println("----------------------------");
|
||||||
|
|
||||||
|
}
|
||||||
|
System.out.println("Auf Wiedersehen!");
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
12/Girokonto.class
Normal file
BIN
12/Girokonto.class
Normal file
Binary file not shown.
31
12/Girokonto.java
Normal file
31
12/Girokonto.java
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Girokonto extends Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private double dispoBetrag;
|
||||||
|
private double dispoZins;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Girokonto(int kontonr, double kontostand) {
|
||||||
|
super(kontonr, kontostand);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
|
||||||
|
public double getDispoBetrag() {
|
||||||
|
return dispoBetrag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getDispoZins() {
|
||||||
|
return dispoZins;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Girokonto
|
||||||
27
12/Girokonto.uml
Normal file
27
12/Girokonto.uml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
[Files]
|
||||||
|
File0=Girokonto.java
|
||||||
|
|
||||||
|
[Box: - Girokonto]
|
||||||
|
X=20
|
||||||
|
Y=40
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Diagram]
|
||||||
|
comments=0
|
||||||
|
OffsetX=0
|
||||||
|
OffsetY=0
|
||||||
|
Visibility=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
ShowConnections=0
|
||||||
|
Fontname=Segoe UI
|
||||||
|
Fontsize=12
|
||||||
|
ShowObjectDiagram=0
|
||||||
|
|
||||||
|
[Interactive]
|
||||||
|
I0=
|
||||||
|
|
||||||
16
12/Girokonto.~ava
Normal file
16
12/Girokonto.~ava
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Girokonto extends Konto{
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Girokonto
|
||||||
BIN
12/Konto.class
Normal file
BIN
12/Konto.class
Normal file
Binary file not shown.
73
12/Konto.java
Normal file
73
12/Konto.java
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private int kontonr;
|
||||||
|
private double kontostand;
|
||||||
|
private String IBAN;
|
||||||
|
private boolean begrenzteÜberweisung;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
protected Konto(int kontonr, double kontostand) {
|
||||||
|
this.kontonr = kontonr;
|
||||||
|
this.kontostand = kontostand;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public int getKontonr() {
|
||||||
|
return kontonr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKontonr(int kontonrNeu) {
|
||||||
|
kontonr = kontonrNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getKontostand() {
|
||||||
|
return kontostand;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKontostand(double kontostandNeu) {
|
||||||
|
kontostand = kontostandNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void einzahlen(double summe) {
|
||||||
|
if (summe >= 0) {
|
||||||
|
this.kontostand+=summe;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
System.out.println("Es ist ein Fehler aufgetreten!");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public void überweisen(double summe, String IBAN) {
|
||||||
|
// TODO hier Quelltext einfügen
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIBAN() {
|
||||||
|
return IBAN;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean getBegrenzteÜberweisung() {
|
||||||
|
return begrenzteÜberweisung;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void auszahlen(double summe) {
|
||||||
|
if (summe >= 0 && kontostand >= summe) {
|
||||||
|
this.kontostand-=summe;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
System.out.println("Es ist ein Fehler aufgetreten!");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Konto
|
||||||
125
12/Konto.uml
Normal file
125
12/Konto.uml
Normal file
@@ -0,0 +1,125 @@
|
|||||||
|
[Files]
|
||||||
|
File0=Girokonto.java
|
||||||
|
File1=Konto.java
|
||||||
|
File2=Lehrer.java
|
||||||
|
File3=Person.java
|
||||||
|
File4=Schuler.java
|
||||||
|
File5=Sekretar.java
|
||||||
|
File6=Sparkonto.java
|
||||||
|
File7=Teilzeit.java
|
||||||
|
File8=Vollzeit.java
|
||||||
|
File9=Zeitraum.java
|
||||||
|
|
||||||
|
[Box: - Girokonto]
|
||||||
|
X=576
|
||||||
|
Y=19
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Konto]
|
||||||
|
X=66
|
||||||
|
Y=29
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Lehrer]
|
||||||
|
X=994
|
||||||
|
Y=639
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Person]
|
||||||
|
X=463
|
||||||
|
Y=221
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Schuler]
|
||||||
|
X=1051
|
||||||
|
Y=122
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Sekretar]
|
||||||
|
X=1333
|
||||||
|
Y=244
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Sparkonto]
|
||||||
|
X=13
|
||||||
|
Y=437
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Teilzeit]
|
||||||
|
X=1657
|
||||||
|
Y=25
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Vollzeit]
|
||||||
|
X=1621
|
||||||
|
Y=360
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Zeitraum]
|
||||||
|
X=1229
|
||||||
|
Y=534
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Diagram]
|
||||||
|
comments=0
|
||||||
|
OffsetX=0
|
||||||
|
OffsetY=0
|
||||||
|
Visibility=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
ShowConnections=0
|
||||||
|
Fontname=Segoe UI
|
||||||
|
Fontsize=11
|
||||||
|
ShowObjectDiagram=0
|
||||||
|
|
||||||
|
[Connections]
|
||||||
|
V0=Girokonto#Konto#Inheritends####0#0#0###0#0
|
||||||
|
V1=Lehrer#Person#Inheritends####0#0#0###0#0
|
||||||
|
V2=Lehrer#Schuler#Aggregation####0#0#0###0#0
|
||||||
|
V3=Person#Girokonto#AssociationDirected####0#0#0###0#0
|
||||||
|
V4=Person#Sparkonto#AssociationDirected####0#0#0###0#0
|
||||||
|
V5=Schuler#Person#Inheritends####0#0#0###0#0
|
||||||
|
V6=Schuler#Zeitraum#AssociationDirected####0#0#0###0#0
|
||||||
|
V7=Sekretar#Person#Inheritends####0#0#0###0#0
|
||||||
|
V8=Sekretar#Schuler#Aggregation####0#0#0###0#0
|
||||||
|
V9=Sekretar#Zeitraum#AssociationDirected####0#0#0###0#0
|
||||||
|
V10=Sparkonto#Konto#Inheritends####0#0#0###0#0
|
||||||
|
V11=Teilzeit#Schuler#Inheritends####0#0#0###0#0
|
||||||
|
V12=Vollzeit#Schuler#Inheritends####0#0#0###0#0
|
||||||
|
|
||||||
|
[Interactive]
|
||||||
|
I0=Person pers = new Person();
|
||||||
|
I1=
|
||||||
|
I2=
|
||||||
|
|
||||||
68
12/Konto.~ava
Normal file
68
12/Konto.~ava
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private int kontonr;
|
||||||
|
private double kontostand;
|
||||||
|
private String IBAN;
|
||||||
|
private boolean begrenzteÜberweisung;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
protected Konto(int kontonr, double kontostand) {
|
||||||
|
this.kontonr = kontonr;
|
||||||
|
this.kontostand = kontostand;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public int getKontonr() {
|
||||||
|
return kontonr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKontonr(int kontonrNeu) {
|
||||||
|
kontonr = kontonrNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getKontostand() {
|
||||||
|
return kontostand;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKontostand(double kontostandNeu) {
|
||||||
|
kontostand = kontostandNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void einzahlen(double summe) {
|
||||||
|
if (summe >= 0) {
|
||||||
|
this.kontostand+=summe;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
System.out.println("Es ist ein Fehler aufgetreten!");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public void überweisen(double summe, String IBAN) {
|
||||||
|
// TODO hier Quelltext einfügen
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIBAN() {
|
||||||
|
return IBAN;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean getBegrenzteÜberweisung() {
|
||||||
|
return begrenzteÜberweisung;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void auszahlen(double summe) {
|
||||||
|
// TODO hier Quelltext einfügen
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Konto
|
||||||
BIN
12/Kunde.class
Normal file
BIN
12/Kunde.class
Normal file
Binary file not shown.
48
12/Kunde.java
Normal file
48
12/Kunde.java
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Kunde {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private int kundenummer;
|
||||||
|
private Konto kundeKonto;
|
||||||
|
private String name;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Kunde(String name, int kundenummer) {
|
||||||
|
this.kundenummer = kundenummer;
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public int getKundenummer() {
|
||||||
|
return kundenummer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKundenummer(int kundenummerNeu) {
|
||||||
|
kundenummer = kundenummerNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Konto getKundeKonto() {
|
||||||
|
return kundeKonto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKundeKonto(Konto kundeKontoNeu) {
|
||||||
|
kundeKonto = kundeKontoNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String nameNeu) {
|
||||||
|
name = nameNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Kunde
|
||||||
39
12/Kunde.uml
Normal file
39
12/Kunde.uml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
[Files]
|
||||||
|
File0=Konto.java
|
||||||
|
File1=Kunde.java
|
||||||
|
|
||||||
|
[Box: - Konto]
|
||||||
|
X=20
|
||||||
|
Y=40
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Kunde]
|
||||||
|
X=562
|
||||||
|
Y=27
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Diagram]
|
||||||
|
comments=0
|
||||||
|
OffsetX=0
|
||||||
|
OffsetY=0
|
||||||
|
Visibility=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
ShowConnections=0
|
||||||
|
Fontname=Segoe UI
|
||||||
|
Fontsize=12
|
||||||
|
ShowObjectDiagram=0
|
||||||
|
|
||||||
|
[Connections]
|
||||||
|
V0=Kunde#Konto#AssociationDirected####0#0#0###0#0
|
||||||
|
|
||||||
|
[Interactive]
|
||||||
|
I0=
|
||||||
|
|
||||||
49
12/Kunde.~ava
Normal file
49
12/Kunde.~ava
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Kunde {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private int kundenummer;
|
||||||
|
private Konto kundeKonto;
|
||||||
|
private String name;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Kunde(Konto kundeKonto, String name, int kundenummer) {
|
||||||
|
this.kundenummer = kundenummer;
|
||||||
|
this.kundeKonto = kundeKonto;
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public int getKundenummer() {
|
||||||
|
return kundenummer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKundenummer(int kundenummerNeu) {
|
||||||
|
kundenummer = kundenummerNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Konto getKundeKonto() {
|
||||||
|
return kundeKonto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKundeKonto(Konto kundeKontoNeu) {
|
||||||
|
kundeKonto = kundeKontoNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String nameNeu) {
|
||||||
|
name = nameNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Kunde
|
||||||
40
12/Lehrer.java
Normal file
40
12/Lehrer.java
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 07.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Lehrer extends Person {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private Schuler[] schuler;
|
||||||
|
private String[] klassen;
|
||||||
|
private String fach;
|
||||||
|
private double gehalt;
|
||||||
|
private double deputat;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public Schuler[] getSchuler() {
|
||||||
|
return schuler;
|
||||||
|
}
|
||||||
|
public String[] getKlassen() {
|
||||||
|
return klassen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFach() {
|
||||||
|
return fach;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getGehalt() {
|
||||||
|
return gehalt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getDeputat() {
|
||||||
|
return deputat;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Lehrer
|
||||||
30
12/Lehrer.~ava
Normal file
30
12/Lehrer.~ava
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 07.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Lehrer extends Person {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private Schuler[] schuler;
|
||||||
|
private String klassen;
|
||||||
|
private String fach;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public Schuler[] getSchuler() {
|
||||||
|
return schuler;
|
||||||
|
}
|
||||||
|
public String getKlassen() {
|
||||||
|
return klassen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFach() {
|
||||||
|
return fach;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Lehrer
|
||||||
BIN
12/Person.class
Normal file
BIN
12/Person.class
Normal file
Binary file not shown.
50
12/Person.java
Normal file
50
12/Person.java
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 07.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Person {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private String name;
|
||||||
|
private int alter;
|
||||||
|
public Girokonto meinGiroKonto;
|
||||||
|
public Sparkonto meinSparKonto;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAlter() {
|
||||||
|
return alter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAlter(int alterNeu) {
|
||||||
|
alter = alterNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String nameNeu) {
|
||||||
|
name = nameNeu;
|
||||||
|
}
|
||||||
|
public Girokonto getMeinGiroKonto() {
|
||||||
|
return meinGiroKonto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMeinGiroKonto(Girokonto meinGiroKontoNeu) {
|
||||||
|
meinGiroKonto = meinGiroKontoNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Sparkonto getMeinSparKonto() {
|
||||||
|
return meinSparKonto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMeinSparKonto(Sparkonto meinSparKontoNeu) {
|
||||||
|
meinSparKonto = meinSparKontoNeu;
|
||||||
|
}
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Person
|
||||||
29
12/Schuler.java
Normal file
29
12/Schuler.java
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 07.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Schuler extends Person {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private String klasse;
|
||||||
|
private Zeitraum zeitraum;
|
||||||
|
// Ende Attribute
|
||||||
|
// Anfang Methoden
|
||||||
|
public String getKlasse() {
|
||||||
|
return klasse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKlasse(String klasseNeu) {
|
||||||
|
klasse = klasseNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Zeitraum getZeitraum() {
|
||||||
|
return zeitraum;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Schuler
|
||||||
BIN
12/Sekretar.class
Normal file
BIN
12/Sekretar.class
Normal file
Binary file not shown.
36
12/Sekretar.java
Normal file
36
12/Sekretar.java
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 07.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Sekretar extends Person {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private Schuler[] schuler;
|
||||||
|
private double gehalt;
|
||||||
|
private String aufgabengebiet;
|
||||||
|
private Zeitraum zeitraum;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public Schuler[] getSchuler() {
|
||||||
|
return schuler;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getGehalt() {
|
||||||
|
return gehalt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAufgabengebiet() {
|
||||||
|
return aufgabengebiet;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Zeitraum getZeitraum() {
|
||||||
|
return zeitraum;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Sekretar
|
||||||
21
12/Sekretar.~ava
Normal file
21
12/Sekretar.~ava
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 07.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Sekretar extends Person {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private Schuler schuler;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public Schuler getSchuler() {
|
||||||
|
return schuler;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Sekretar
|
||||||
BIN
12/Sparkonto.class
Normal file
BIN
12/Sparkonto.class
Normal file
Binary file not shown.
39
12/Sparkonto.java
Normal file
39
12/Sparkonto.java
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Sparkonto extends Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private double zins;
|
||||||
|
private double monatlichLimit;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Sparkonto(int kontonr, double kontostand) {
|
||||||
|
super(kontonr,kontostand);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public double getZins() {
|
||||||
|
return zins;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZins(double zinsNeu) {
|
||||||
|
zins = zinsNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void zinsBerechnen() {
|
||||||
|
// TODO hier Quelltext einfügen
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getMonatlichLimit() {
|
||||||
|
return monatlichLimit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Sparkonto
|
||||||
19
12/Sparkonto.~ava
Normal file
19
12/Sparkonto.~ava
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 06.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Sparkonto extends Konto {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Sparkonto(int kontonr, double kontostand) {
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Sparkonto
|
||||||
BIN
12/Teilzeit.class
Normal file
BIN
12/Teilzeit.class
Normal file
Binary file not shown.
34
12/Teilzeit.java
Normal file
34
12/Teilzeit.java
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 01.07.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Teilzeit extends Schuler {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private boolean lockUnterricht;
|
||||||
|
private String ausbildingBetrieb;
|
||||||
|
private String beruf;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Teilzeit(String klasse, Zeitraum zeitraum) {
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public boolean getLockUnterricht() {
|
||||||
|
return lockUnterricht;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAusbildingBetrieb() {
|
||||||
|
return ausbildingBetrieb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBeruf() {
|
||||||
|
return beruf;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Teilzeit
|
||||||
BIN
12/Vollzeit.class
Normal file
BIN
12/Vollzeit.class
Normal file
Binary file not shown.
19
12/Vollzeit.java
Normal file
19
12/Vollzeit.java
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 01.07.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Vollzeit extends Schuler {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Vollzeit(String klasse, Zeitraum zeitraum) {
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Vollzeit
|
||||||
BIN
12/Zeitraum.class
Normal file
BIN
12/Zeitraum.class
Normal file
Binary file not shown.
26
12/Zeitraum.java
Normal file
26
12/Zeitraum.java
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 07.05.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Zeitraum {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private boolean vollzeit;
|
||||||
|
private int anzStundenProWoche;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public boolean getVollzeit() {
|
||||||
|
return vollzeit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAnzStundenProWoche() {
|
||||||
|
return anzStundenProWoche;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Zeitraum
|
||||||
BIN
12/lehrer.class
Normal file
BIN
12/lehrer.class
Normal file
Binary file not shown.
BIN
12/schuler.class
Normal file
BIN
12/schuler.class
Normal file
Binary file not shown.
152
12/t.svg
Normal file
152
12/t.svg
Normal file
@@ -0,0 +1,152 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<svg width="1416" height="719" font-family="Segoe UI" font-size="14">
|
||||||
|
<defs>
|
||||||
|
<filter style="color-interpolation-filters:sRGB;" id="Shadow">
|
||||||
|
<feFlood flood-opacity="1" flood-color="rgb(0,0,0)" result="flood" />
|
||||||
|
<feComposite in="flood" in2="SourceGraphic" operator="in" result="composite1"/>
|
||||||
|
<feGaussianBlur in="composite1" stdDeviation="1.2" result="blur" />
|
||||||
|
<feOffset dx="1.5" dy="1.5" result="offset" />
|
||||||
|
<feComposite in="SourceGraphic" in2="offset" operator="over" result="composite2" />
|
||||||
|
</filter>
|
||||||
|
</defs>
|
||||||
|
<g>
|
||||||
|
<line x1="470" y1="175" x2="334" y2="175" stroke="black" stroke-linecap="square" stroke-width="3" />
|
||||||
|
<polygon points="329,175 339,185 339,165" fill="white" stroke="black" />
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<line x1="900" y1="543" x2="765.5" y2="407.5" stroke="black" stroke-linecap="square" stroke-width="3" />
|
||||||
|
<polygon points="762,404 762,418 776,404" fill="white" stroke="black" />
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<line x1="1001" y1="543" x2="1037" y2="392" stroke="black" stroke-linecap="square" />
|
||||||
|
<polygon points="1001,543 993,531 1006,524 1013,535" fill="white" stroke="black" />
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<line x1="946" y1="320" x2="791" y2="320" stroke="black" stroke-linecap="square" stroke-width="3" />
|
||||||
|
<polygon points="786,320 796,330 796,310" fill="white" stroke="black" />
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<line x1="1126" y1="392" x2="1226" y2="492" stroke="black" stroke-linecap="square" />
|
||||||
|
<polyline points="1226,478 1226,492 1212,492" fill="none" stroke="black" />
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<line x1="680" y1="526" x2="680" y2="409" stroke="black" stroke-linecap="square" stroke-width="3" />
|
||||||
|
<polygon points="680,404 670,414 690,414" fill="white" stroke="black" />
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<line x1="744" y1="526" x2="946" y2="391" stroke="black" stroke-linecap="square" />
|
||||||
|
<polygon points="744,526 746,512 761,515 758,528" fill="white" stroke="black" />
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<line x1="173" y1="375" x2="173" y2="334" stroke="black" stroke-linecap="square" stroke-width="3" />
|
||||||
|
<polygon points="173,329 163,339 183,339" fill="white" stroke="black" />
|
||||||
|
</g>
|
||||||
|
<g id="Girokonto" transform="translate(471, 135)" font-family="Segoe UI" font-size="14" style="filter:url(#Shadow)">
|
||||||
|
<rect x="0" y="0" width="316" height="75" fill="white" stroke="black" />
|
||||||
|
<rect x="0" y="0" width="316" height="27" fill="rgb(255,255,255)" stroke="black" />
|
||||||
|
<text x="158" y="18" font-weight="bold" text-anchor="middle">Girokonto</text>
|
||||||
|
<line x1="0" y1="27" x2="316" y2="27" stroke="black" />
|
||||||
|
<text x="4" y="45">+<tspan x="19">Girokonto(kontonr: int, kontostand: double)</tspan></text>
|
||||||
|
<text x="4" y="65">+<tspan x="19">auszahlen()</tspan></text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g id="Konto" transform="translate(22, 24)" font-family="Segoe UI" font-size="14" style="filter:url(#Shadow)">
|
||||||
|
<rect x="0" y="0" width="304" height="302" fill="white" stroke="black" />
|
||||||
|
<rect x="0" y="0" width="304" height="27" fill="rgb(255,255,255)" stroke="black" />
|
||||||
|
<text x="152" y="18" font-weight="bold" text-anchor="middle">Konto</text>
|
||||||
|
<line x1="0" y1="27" x2="304" y2="27" stroke="black" />
|
||||||
|
<text x="5" y="45">-<tspan x="19">kontonr: int</tspan></text>
|
||||||
|
<text x="5" y="65">-<tspan x="19">kontostand: double</tspan></text>
|
||||||
|
<text x="5" y="85">-<tspan x="19">IBAN: String</tspan></text>
|
||||||
|
<text x="5" y="105">-<tspan x="19">begrenzteÜberweisung: boolean</tspan></text>
|
||||||
|
<line x1="0" y1="114" x2="304" y2="114" stroke="black" />
|
||||||
|
<text x="4" y="132">#<tspan x="19">Konto(kontonr: int, kontostand: double)</tspan></text>
|
||||||
|
<text x="4" y="152">+<tspan x="19">getKontonr(): int</tspan></text>
|
||||||
|
<text x="4" y="172">+<tspan x="19">setKontonr(kontonrNeu: int)</tspan></text>
|
||||||
|
<text x="4" y="192">+<tspan x="19">getKontostand(): double</tspan></text>
|
||||||
|
<text x="4" y="212">+<tspan x="19">setKontostand(kontostandNeu: double)</tspan></text>
|
||||||
|
<text x="4" y="232">+<tspan x="19">einzahlen(summe: double)</tspan></text>
|
||||||
|
<text x="4" y="252">+<tspan x="19">überweisen(summe: double, IBAN: String)</tspan></text>
|
||||||
|
<text x="4" y="272">+<tspan x="19">getIBAN(): String</tspan></text>
|
||||||
|
<text x="4" y="292">+<tspan x="19">getBegrenzteÜberweisung(): boolean</tspan></text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g id="Lehrer" transform="translate(893, 544)" font-family="Segoe UI" font-size="14" style="filter:url(#Shadow)">
|
||||||
|
<rect x="0" y="0" width="175" height="162" fill="white" stroke="black" />
|
||||||
|
<rect x="0" y="0" width="175" height="27" fill="rgb(255,255,255)" stroke="black" />
|
||||||
|
<text x="87" y="18" font-weight="bold" text-anchor="middle">Lehrer</text>
|
||||||
|
<line x1="0" y1="27" x2="175" y2="27" stroke="black" />
|
||||||
|
<text x="5" y="45">-<tspan x="19" font-weight="bold">schuler: Schuler[ ]</tspan></text>
|
||||||
|
<text x="5" y="65">-<tspan x="19">klassen: String[ ]</tspan></text>
|
||||||
|
<text x="5" y="85">-<tspan x="19">fach: String</tspan></text>
|
||||||
|
<line x1="0" y1="94" x2="175" y2="94" stroke="black" />
|
||||||
|
<text x="4" y="112">+<tspan x="19">getSchuler(): Schuler[ ]</tspan></text>
|
||||||
|
<text x="4" y="132">+<tspan x="19">getKlassen(): String[ ]</tspan></text>
|
||||||
|
<text x="4" y="152">+<tspan x="19">getFach(): String</tspan></text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g id="Person" transform="translate(574, 239)" font-family="Segoe UI" font-size="14" style="filter:url(#Shadow)">
|
||||||
|
<rect x="0" y="0" width="209" height="162" fill="white" stroke="black" />
|
||||||
|
<rect x="0" y="0" width="209" height="27" fill="rgb(255,255,255)" stroke="black" />
|
||||||
|
<text x="104" y="18" font-weight="bold" text-anchor="middle">Person</text>
|
||||||
|
<line x1="0" y1="27" x2="209" y2="27" stroke="black" />
|
||||||
|
<text x="5" y="45">-<tspan x="19">name: String</tspan></text>
|
||||||
|
<text x="5" y="65">-<tspan x="19">alter: int</tspan></text>
|
||||||
|
<line x1="0" y1="74" x2="209" y2="74" stroke="black" />
|
||||||
|
<text x="4" y="92">+<tspan x="19">getName(): String</tspan></text>
|
||||||
|
<text x="4" y="112">+<tspan x="19">getAlter(): int</tspan></text>
|
||||||
|
<text x="4" y="132">+<tspan x="19">setAlter(alterNeu: int)</tspan></text>
|
||||||
|
<text x="4" y="152">+<tspan x="19">setName(nameNeu: String)</tspan></text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g id="Schuler" transform="translate(947, 247)" font-family="Segoe UI" font-size="14" style="filter:url(#Shadow)">
|
||||||
|
<rect x="0" y="0" width="212" height="142" fill="white" stroke="black" />
|
||||||
|
<rect x="0" y="0" width="212" height="27" fill="rgb(255,255,255)" stroke="black" />
|
||||||
|
<text x="106" y="18" font-weight="bold" text-anchor="middle">Schuler</text>
|
||||||
|
<line x1="0" y1="27" x2="212" y2="27" stroke="black" />
|
||||||
|
<text x="5" y="45">-<tspan x="19">klasse: String</tspan></text>
|
||||||
|
<text x="5" y="65">-<tspan x="19" font-weight="bold">zeitraum: Zeitraum</tspan></text>
|
||||||
|
<line x1="0" y1="74" x2="212" y2="74" stroke="black" />
|
||||||
|
<text x="4" y="92">+<tspan x="19">getKlasse(): String</tspan></text>
|
||||||
|
<text x="4" y="112">+<tspan x="19">setKlasse(klasseNeu: String)</tspan></text>
|
||||||
|
<text x="4" y="132">+<tspan x="19">getZeitraum(): Zeitraum</tspan></text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g id="Sekretar" transform="translate(591, 527)" font-family="Segoe UI" font-size="14" style="filter:url(#Shadow)">
|
||||||
|
<rect x="0" y="0" width="175" height="82" fill="white" stroke="black" />
|
||||||
|
<rect x="0" y="0" width="175" height="27" fill="rgb(255,255,255)" stroke="black" />
|
||||||
|
<text x="87" y="18" font-weight="bold" text-anchor="middle">Sekretar</text>
|
||||||
|
<line x1="0" y1="27" x2="175" y2="27" stroke="black" />
|
||||||
|
<text x="5" y="45">-<tspan x="19" font-weight="bold">schuler: Schuler[ ]</tspan></text>
|
||||||
|
<line x1="0" y1="54" x2="175" y2="54" stroke="black" />
|
||||||
|
<text x="4" y="72">+<tspan x="19">getSchuler(): Schuler[ ]</tspan></text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g id="Sparkonto" transform="translate(12, 376)" font-family="Segoe UI" font-size="14" style="filter:url(#Shadow)">
|
||||||
|
<rect x="0" y="0" width="318" height="182" fill="white" stroke="black" />
|
||||||
|
<rect x="0" y="0" width="318" height="27" fill="rgb(255,255,255)" stroke="black" />
|
||||||
|
<text x="159" y="18" font-weight="bold" text-anchor="middle">Sparkonto</text>
|
||||||
|
<line x1="0" y1="27" x2="318" y2="27" stroke="black" />
|
||||||
|
<text x="5" y="45">-<tspan x="19">zins: double</tspan></text>
|
||||||
|
<text x="5" y="65">-<tspan x="19">monatlichLimit: double</tspan></text>
|
||||||
|
<line x1="0" y1="74" x2="318" y2="74" stroke="black" />
|
||||||
|
<text x="4" y="92">+<tspan x="19">Sparkonto(kontonr: int, kontostand: double)</tspan></text>
|
||||||
|
<text x="4" y="112">+<tspan x="19">getZins(): double</tspan></text>
|
||||||
|
<text x="4" y="132">+<tspan x="19">setZins(zinsNeu: double)</tspan></text>
|
||||||
|
<text x="4" y="152">+<tspan x="19">zinsBerechnen()</tspan></text>
|
||||||
|
<text x="4" y="172">+<tspan x="19">getMonatlichLimit(): double</tspan></text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<g id="Zeitraum" transform="translate(1171, 493)" font-family="Segoe UI" font-size="14" style="filter:url(#Shadow)">
|
||||||
|
<rect x="0" y="0" width="232" height="122" fill="white" stroke="black" />
|
||||||
|
<rect x="0" y="0" width="232" height="27" fill="rgb(255,255,255)" stroke="black" />
|
||||||
|
<text x="116" y="18" font-weight="bold" text-anchor="middle">Zeitraum</text>
|
||||||
|
<line x1="0" y1="27" x2="232" y2="27" stroke="black" />
|
||||||
|
<text x="5" y="45">-<tspan x="19">vollzeit: boolean</tspan></text>
|
||||||
|
<text x="5" y="65">-<tspan x="19">anzStundenProWoche: int</tspan></text>
|
||||||
|
<line x1="0" y1="74" x2="232" y2="74" stroke="black" />
|
||||||
|
<text x="4" y="92">+<tspan x="19">getVollzeit(): boolean</tspan></text>
|
||||||
|
<text x="4" y="112">+<tspan x="19">getAnzStundenProWoche(): int</tspan></text>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
</svg>
|
||||||
2
13/.gitingore
Normal file
2
13/.gitingore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.class
|
||||||
|
*.~ava
|
||||||
BIN
13/Angestellter.class
Normal file
BIN
13/Angestellter.class
Normal file
Binary file not shown.
34
13/Angestellter.java
Normal file
34
13/Angestellter.java
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 25.06.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Angestellter extends Mitarbeiter {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private double gehalt;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Angestellter(String vorname, String name) {
|
||||||
|
super(vorname, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public double getGehalt() {
|
||||||
|
return gehalt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGehalt(double gehaltNeu) {
|
||||||
|
gehalt = gehaltNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void gehalt_erhoehen(double prozent) {
|
||||||
|
gehalt += (gehalt * prozent);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Angestellter
|
||||||
34
13/Angestellter.~ava
Normal file
34
13/Angestellter.~ava
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 25.06.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Angestellter extends Mitarbeiter {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private double gehalt;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Angestellter(String vorname, String name) {
|
||||||
|
super(vorname, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public double getGehalt() {
|
||||||
|
return gehalt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGehalt(double gehaltNeu) {
|
||||||
|
gehalt = gehaltNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void gehalt_erhoehen(double prozent) {
|
||||||
|
gehalt += (gehalt * prozent);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Angestellter
|
||||||
BIN
13/Arbeiter.class
Normal file
BIN
13/Arbeiter.class
Normal file
Binary file not shown.
35
13/Arbeiter.java
Normal file
35
13/Arbeiter.java
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 25.06.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Arbeiter extends Mitarbeiter {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private double lohnsatz;
|
||||||
|
private int arbeitstunden;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Arbeiter(String vorname, String name) {
|
||||||
|
super(vorname,name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public double getLohn() {
|
||||||
|
// TODO hier Quelltext einfügen
|
||||||
|
return lohnsatz * arbeitstunden;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getLohnsatz() {
|
||||||
|
return lohnsatz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getArbeitstunden() {
|
||||||
|
return arbeitstunden;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Arbeiter
|
||||||
35
13/Arbeiter.~ava
Normal file
35
13/Arbeiter.~ava
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 25.06.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Arbeiter extends Mitarbeiter {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private double lohnsatz;
|
||||||
|
private int arbeitstunden;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Arbeiter(String vorname, String name) {
|
||||||
|
super(vorname,name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public double getLohn() {
|
||||||
|
// TODO hier Quelltext einfügen
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getLohnsatz() {
|
||||||
|
return lohnsatz;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getArbeitstunden() {
|
||||||
|
return arbeitstunden;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Arbeiter
|
||||||
BIN
13/Aufgabe1.class
Normal file
BIN
13/Aufgabe1.class
Normal file
Binary file not shown.
16
13/Aufgabe1.java
Normal file
16
13/Aufgabe1.java
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 25.06.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Aufgabe1 {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Aufgabe1
|
||||||
78
13/Aufgabe1.uml
Normal file
78
13/Aufgabe1.uml
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
[Files]
|
||||||
|
File0=Angestellter.java
|
||||||
|
File1=Arbeiter.java
|
||||||
|
File2=Aufgabe1.java
|
||||||
|
File3=Auszubildender.java
|
||||||
|
File4=Mitarbeiter.java
|
||||||
|
File5=Vorgesetze.java
|
||||||
|
|
||||||
|
[Box: - Angestellter]
|
||||||
|
X=90
|
||||||
|
Y=387
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Arbeiter]
|
||||||
|
X=947
|
||||||
|
Y=464
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Aufgabe1]
|
||||||
|
X=277
|
||||||
|
Y=106
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Auszubildender]
|
||||||
|
X=549
|
||||||
|
Y=446
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Mitarbeiter]
|
||||||
|
X=601
|
||||||
|
Y=66
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Box: - Vorgesetze]
|
||||||
|
X=53
|
||||||
|
Y=673
|
||||||
|
MinVis=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
|
||||||
|
[Diagram]
|
||||||
|
comments=0
|
||||||
|
OffsetX=190
|
||||||
|
OffsetY=0
|
||||||
|
Visibility=0
|
||||||
|
ShowParameter=4
|
||||||
|
SortOrder=0
|
||||||
|
ShowIcons=1
|
||||||
|
ShowConnections=0
|
||||||
|
Fontname=Segoe UI
|
||||||
|
Fontsize=11
|
||||||
|
ShowObjectDiagram=0
|
||||||
|
|
||||||
|
[Connections]
|
||||||
|
V0=Angestellter#Mitarbeiter#Inheritends####0#0#0###0#0
|
||||||
|
V1=Arbeiter#Mitarbeiter#Inheritends####0#0#0###0#0
|
||||||
|
V2=Auszubildender#Mitarbeiter#Inheritends####0#0#0###0#0
|
||||||
|
V3=Vorgesetze#Angestellter#Inheritends####0#0#0###0#0
|
||||||
|
|
||||||
|
[Interactive]
|
||||||
|
I0=
|
||||||
|
|
||||||
BIN
13/Auszubildender.class
Normal file
BIN
13/Auszubildender.class
Normal file
Binary file not shown.
38
13/Auszubildender.java
Normal file
38
13/Auszubildender.java
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 25.06.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Auszubildender extends Mitarbeiter {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private double verguetung;
|
||||||
|
private int auZeit;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Auszubildender(String vorname, String name) {
|
||||||
|
super(vorname, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public double getVerguetung() {
|
||||||
|
return verguetung;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAuZeit() {
|
||||||
|
return auZeit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVerguetung(double verguetungNeu) {
|
||||||
|
verguetung = verguetungNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAuZeit(int auZeitNeu) {
|
||||||
|
auZeit = auZeitNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Auszubildender
|
||||||
BIN
13/Mitarbeiter.class
Normal file
BIN
13/Mitarbeiter.class
Normal file
Binary file not shown.
58
13/Mitarbeiter.java
Normal file
58
13/Mitarbeiter.java
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 25.06.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Mitarbeiter {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private String vorname;
|
||||||
|
private String name;
|
||||||
|
private String beruf;
|
||||||
|
private int mitarbeiternummer;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Mitarbeiter(String vorname, String name) {
|
||||||
|
this.vorname = vorname;
|
||||||
|
this.name = name;
|
||||||
|
this.beruf = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Anfang Methoden
|
||||||
|
public String getVorname() {
|
||||||
|
return vorname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVorname(String vornameNeu) {
|
||||||
|
vorname = vornameNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String nameNeu) {
|
||||||
|
name = nameNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBeruf() {
|
||||||
|
return beruf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBeruf(String berufNeu) {
|
||||||
|
beruf = berufNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getMitarbeiternummer() {
|
||||||
|
return mitarbeiternummer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMitarbeiternummer(int mitarbeiternummerNeu) {
|
||||||
|
mitarbeiternummer = mitarbeiternummerNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Mitarbeiter
|
||||||
BIN
13/Vorgesetze.class
Normal file
BIN
13/Vorgesetze.class
Normal file
Binary file not shown.
40
13/Vorgesetze.java
Normal file
40
13/Vorgesetze.java
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 25.06.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Vorgesetze extends Angestellter {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private double zuschlag;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Vorgesetze(String vorname, String name) {
|
||||||
|
super(vorname, name);
|
||||||
|
}
|
||||||
|
public void gehalt_erhoehen(double prozent) {
|
||||||
|
double gehalt = getGehalt();
|
||||||
|
if (gehalt > 10000) {
|
||||||
|
setGehalt( prozentBerechnen(gehalt,0.01));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGehalt( prozentBerechnen(gehalt,0.02));
|
||||||
|
} // end of if-else
|
||||||
|
}
|
||||||
|
public double prozentBerechnen(double summe, double prozent) {
|
||||||
|
return summe+(summe + prozent);
|
||||||
|
}
|
||||||
|
// Anfang Methoden
|
||||||
|
public double getZuschlag() {
|
||||||
|
return zuschlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZuschlag(double zuschlagNeu) {
|
||||||
|
zuschlag = zuschlagNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Vorgesetze
|
||||||
40
13/Vorgesetze.~ava
Normal file
40
13/Vorgesetze.~ava
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
*
|
||||||
|
* @version 1.0 vom 25.06.2025
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Vorgesetze extends Angestellter {
|
||||||
|
|
||||||
|
// Anfang Attribute
|
||||||
|
private double zuschlag;
|
||||||
|
// Ende Attribute
|
||||||
|
|
||||||
|
public Vorgesetze(String vorname, String name) {
|
||||||
|
super(vorname, name);
|
||||||
|
}
|
||||||
|
public void gehalt_erhoehen(double prozent) {
|
||||||
|
double gehalt = getGehalt();
|
||||||
|
if (gehalt > 10000) {
|
||||||
|
setGehalt( prozentBerechnen(gehalt,0.01));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGehalt( prozentBerechnen(gehalt,0.02));
|
||||||
|
} // end of if-else
|
||||||
|
}
|
||||||
|
public double prozentBerechnen(double summe, double prozent) {
|
||||||
|
return summe+(summe + prozent);
|
||||||
|
}
|
||||||
|
// Anfang Methoden
|
||||||
|
public double getZuschlag() {
|
||||||
|
return zuschlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZuschlag(double zuschlagNeu) {
|
||||||
|
zuschlag = zuschlagNeu;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ende Methoden
|
||||||
|
} // end of Vorgesetze
|
||||||
2
14/.gitingore
Normal file
2
14/.gitingore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.class
|
||||||
|
*.~ava
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user