backup
This commit is contained in:
2
14/.gitingore
Normal file
2
14/.gitingore
Normal file
@@ -0,0 +1,2 @@
|
||||
*.class
|
||||
*.~ava
|
||||
2
14/12/.gitingore
Normal file
2
14/12/.gitingore
Normal file
@@ -0,0 +1,2 @@
|
||||
*.class
|
||||
*.~ava
|
||||
BIN
14/12/Arbeit.class
Normal file
BIN
14/12/Arbeit.class
Normal file
Binary file not shown.
31
14/12/Arbeit.java
Normal file
31
14/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
14/12/Bank.class
Normal file
BIN
14/12/Bank.class
Normal file
Binary file not shown.
107
14/12/Bank.java
Normal file
107
14/12/Bank.java
Normal file
@@ -0,0 +1,107 @@
|
||||
import java.util.Scanner;
|
||||
import java.util.ArrayList;
|
||||
public class Bank {
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
showBar();
|
||||
|
||||
Kunde kunde = new Kunde("Meier", 23);
|
||||
// ArrayList<Girokonto> konten = new ArrayList();
|
||||
//
|
||||
// konten.add( new Girokonto(0,1000.0));
|
||||
// konten.add( new Girokonto(1,100430.0));
|
||||
// konten.add( new Girokonto(2,53.3));
|
||||
|
||||
kunde.setKundeKonto(new Girokonto(0,1000.0),0);
|
||||
kunde.setKundeKonto(new Girokonto(1,10340.0),1);
|
||||
kunde.setKundeKonto(new Girokonto(2,15.0),2);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Scanner input = new Scanner(System.in);
|
||||
String nl = System.lineSeparator();
|
||||
|
||||
|
||||
boolean end = false;
|
||||
int index = 0;
|
||||
while(!end) {
|
||||
System.out.println("Was wollen Sie?");
|
||||
System.out.println("1. Übersicht \n2. Anzahl\n3. Konto wählen\n0. Beenden");
|
||||
|
||||
System.out.println();
|
||||
System.out.print("Wahl: ");
|
||||
String wahl = input.next();
|
||||
System.out.println();
|
||||
switch (wahl) {
|
||||
case "1":
|
||||
kunde.uebersichtKonten();
|
||||
break;
|
||||
case "2":
|
||||
kunde.anzahlKonten();
|
||||
break;
|
||||
case "3":
|
||||
System.out.println("Wählen Sie Konto!");
|
||||
System.out.print("Index: ");
|
||||
index = input.nextInt();
|
||||
KontoMenu(kunde.getKundeKonto(index));
|
||||
break;
|
||||
case "0":
|
||||
end = true;
|
||||
break;
|
||||
}
|
||||
System.out.println("----------------------------");
|
||||
|
||||
}
|
||||
System.out.println("Auf Wiedersehen!");
|
||||
|
||||
}
|
||||
public static void KontoMenu(Konto konto) {
|
||||
Scanner input = new Scanner(System.in);
|
||||
String nl = System.lineSeparator();
|
||||
|
||||
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: " + konto.getKontostand() );
|
||||
break;
|
||||
case "2":
|
||||
System.out.println("Einzahlung!");
|
||||
System.out.print("Tragen Sie die Summe: ");
|
||||
summe = input.nextDouble();
|
||||
konto.einzahlen(summe);
|
||||
break;
|
||||
case "3":
|
||||
System.out.println("Auszahlung!");
|
||||
System.out.print("Tragen Sie die Summe: ");
|
||||
summe = input.nextDouble();
|
||||
konto.auszahlen(summe);
|
||||
break;
|
||||
case "0":
|
||||
end = true;
|
||||
break;
|
||||
}
|
||||
showBar();
|
||||
|
||||
}
|
||||
System.out.println("Auf Wiedersehen!");
|
||||
showBar();
|
||||
showBar();
|
||||
showBar();
|
||||
}
|
||||
public static void showBar() {
|
||||
System.out.println("----------------------------");
|
||||
}
|
||||
|
||||
}
|
||||
114
14/12/Bank.~ava
Normal file
114
14/12/Bank.~ava
Normal file
@@ -0,0 +1,114 @@
|
||||
import java.util.Scanner;
|
||||
import java.util.ArrayList;
|
||||
public class Bank {
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
showBar();
|
||||
|
||||
Kunde kunde = new Kunde("Meier", 23);
|
||||
// ArrayList<Girokonto> konten = new ArrayList();
|
||||
//
|
||||
// konten.add( new Girokonto(0,1000.0));
|
||||
// konten.add( new Girokonto(1,100430.0));
|
||||
// konten.add( new Girokonto(2,53.3));
|
||||
|
||||
kunde.setKundeKonto(new Girokonto(0,1000.0),0);
|
||||
kunde.setKundeKonto(new Girokonto(1,10340.0),1);
|
||||
kunde.setKundeKonto(new Girokonto(2,15.0),2);
|
||||
|
||||
for (int i = 0; i < kunde.getKundeKonto().size(); i++) {
|
||||
System.out.println(kunde.getKundeKonto(i).getKontonr());
|
||||
System.out.println(kunde.getKundeKonto(i).getKontostand());
|
||||
showBar();
|
||||
} // end of for
|
||||
|
||||
|
||||
|
||||
Scanner input = new Scanner(System.in);
|
||||
String nl = System.lineSeparator();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
boolean end = false;
|
||||
int index = 0;
|
||||
while(!end) {
|
||||
System.out.println("Was wollen Sie?");
|
||||
System.out.println("1. Übersicht \n2. Anzahl\n3. Konto wählen\n0. Beenden");
|
||||
|
||||
System.out.println();
|
||||
System.out.print("Wahl: ");
|
||||
String wahl = input.next();
|
||||
System.out.println();
|
||||
switch (wahl) {
|
||||
case "1":
|
||||
kunde.uebersichtKonten();
|
||||
break;
|
||||
case "2":
|
||||
kunde.anzahlKonten();
|
||||
break;
|
||||
case "3":
|
||||
System.out.println("Wählen Sie Konto!");
|
||||
System.out.print("Index: ");
|
||||
index = input.nextInt();
|
||||
KontoMenu(kunde.getKundeKonto(index));
|
||||
break;
|
||||
case "0":
|
||||
end = true;
|
||||
break;
|
||||
}
|
||||
System.out.println("----------------------------");
|
||||
|
||||
}
|
||||
System.out.println("Auf Wiedersehen!");
|
||||
|
||||
}
|
||||
public static void KontoMenu(Konto konto) {
|
||||
Scanner input = new Scanner(System.in);
|
||||
String nl = System.lineSeparator();
|
||||
|
||||
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: " + konto.getKontostand() );
|
||||
break;
|
||||
case "2":
|
||||
System.out.println("Einzahlung!");
|
||||
System.out.print("Tragen Sie die Summe: ");
|
||||
summe = input.nextDouble();
|
||||
konto.einzahlen(summe);
|
||||
break;
|
||||
case "3":
|
||||
System.out.println("Auszahlung!");
|
||||
System.out.print("Tragen Sie die Summe: ");
|
||||
summe = input.nextDouble();
|
||||
konto.auszahlen(summe);
|
||||
break;
|
||||
case "0":
|
||||
end = true;
|
||||
break;
|
||||
}
|
||||
showBar();
|
||||
|
||||
}
|
||||
System.out.println("Auf Wiedersehen!");
|
||||
showBar();
|
||||
showBar();
|
||||
showBar();
|
||||
}
|
||||
public static void showBar() {
|
||||
System.out.println("----------------------------");
|
||||
}
|
||||
|
||||
}
|
||||
BIN
14/12/Girokonto.class
Normal file
BIN
14/12/Girokonto.class
Normal file
Binary file not shown.
31
14/12/Girokonto.java
Normal file
31
14/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
14/12/Girokonto.uml
Normal file
27
14/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
14/12/Girokonto.~ava
Normal file
16
14/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
14/12/Konto.class
Normal file
BIN
14/12/Konto.class
Normal file
Binary file not shown.
73
14/12/Konto.java
Normal file
73
14/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
|
||||
135
14/12/Konto.uml
Normal file
135
14/12/Konto.uml
Normal file
@@ -0,0 +1,135 @@
|
||||
[Files]
|
||||
File0=Girokonto.java
|
||||
File1=Konto.java
|
||||
File2=Kunde.java
|
||||
File3=Lehrer.java
|
||||
File4=Person.java
|
||||
File5=Schuler.java
|
||||
File6=Sekretar.java
|
||||
File7=Sparkonto.java
|
||||
File8=Teilzeit.java
|
||||
File9=Vollzeit.java
|
||||
File10=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: - Kunde]
|
||||
X=461
|
||||
Y=580
|
||||
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=618
|
||||
Y=211
|
||||
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=Kunde#Konto#Aggregation####0#0#0###0#0
|
||||
V2=Lehrer#Person#Inheritends####0#0#0###0#0
|
||||
V3=Lehrer#Schuler#Aggregation####0#0#0###0#0
|
||||
V4=Person#Girokonto#AssociationDirected####0#0#0###0#0
|
||||
V5=Person#Sparkonto#AssociationDirected####0#0#0###0#0
|
||||
V6=Schuler#Person#Inheritends####0#0#0###0#0
|
||||
V7=Schuler#Zeitraum#AssociationDirected####0#0#0###0#0
|
||||
V8=Sekretar#Person#Inheritends####0#0#0###0#0
|
||||
V9=Sekretar#Schuler#Aggregation####0#0#0###0#0
|
||||
V10=Sekretar#Zeitraum#AssociationDirected####0#0#0###0#0
|
||||
V11=Sparkonto#Konto#Inheritends####0#0#0###0#0
|
||||
V12=Teilzeit#Schuler#Inheritends####0#0#0###0#0
|
||||
V13=Vollzeit#Schuler#Inheritends####0#0#0###0#0
|
||||
|
||||
[Interactive]
|
||||
I0=Person pers = new Person();
|
||||
I1=
|
||||
I2=
|
||||
|
||||
68
14/12/Konto.~ava
Normal file
68
14/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
14/12/Kunde.class
Normal file
BIN
14/12/Kunde.class
Normal file
Binary file not shown.
71
14/12/Kunde.java
Normal file
71
14/12/Kunde.java
Normal file
@@ -0,0 +1,71 @@
|
||||
import java.util.ArrayList;
|
||||
/**
|
||||
*
|
||||
* Beschreibung
|
||||
*
|
||||
* @version 1.0 vom 06.05.2025
|
||||
* @author
|
||||
*/
|
||||
|
||||
public class Kunde {
|
||||
|
||||
// Anfang Attribute
|
||||
private int kundenummer;
|
||||
private ArrayList<Konto> kundeKonten = new ArrayList();
|
||||
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 ArrayList<Konto> getKundeKonto() {
|
||||
return this.kundeKonten;
|
||||
}
|
||||
|
||||
public void setKundeKonten(ArrayList<Konto> kundeKontenNeu) {
|
||||
this.kundeKonten = kundeKontenNeu;
|
||||
}
|
||||
public void setKundeKonto(Konto neuKonto, int index ) {
|
||||
this.kundeKonten.add(index,neuKonto);
|
||||
|
||||
}
|
||||
public Konto getKundeKonto(int index ) {
|
||||
return this.kundeKonten.get(index);
|
||||
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String nameNeu) {
|
||||
name = nameNeu;
|
||||
}
|
||||
|
||||
public void uebersichtKonten() {
|
||||
System.out.println("----------------------------");
|
||||
for (int i = 0; i < this.getKundeKonto().size(); i++) {
|
||||
System.out.println(this.getKundeKonto(i).getKontonr());
|
||||
System.out.println(this.getKundeKonto(i).getKontostand());
|
||||
System.out.println("----------------------------");
|
||||
}
|
||||
|
||||
}
|
||||
public void anzahlKonten() {
|
||||
System.out.println("----------------------------");
|
||||
System.out.println("Sie haben: " + this.getKundeKonto().size() + " Konten");
|
||||
System.out.println("----------------------------");
|
||||
|
||||
}
|
||||
// Ende Methoden
|
||||
} // end of Kunde
|
||||
39
14/12/Kunde.uml
Normal file
39
14/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=
|
||||
|
||||
71
14/12/Kunde.~ava
Normal file
71
14/12/Kunde.~ava
Normal file
@@ -0,0 +1,71 @@
|
||||
import java.util.ArrayList;
|
||||
/**
|
||||
*
|
||||
* Beschreibung
|
||||
*
|
||||
* @version 1.0 vom 06.05.2025
|
||||
* @author
|
||||
*/
|
||||
|
||||
public class Kunde {
|
||||
|
||||
// Anfang Attribute
|
||||
private int kundenummer;
|
||||
private ArrayList<Konto> kundeKonten = new ArrayList();
|
||||
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 ArrayList<Konto> getKundeKonto() {
|
||||
return this.kundeKonten;
|
||||
}
|
||||
|
||||
public void setKundeKonten(ArrayList<Konto> kundeKontenNeu) {
|
||||
this.kundeKonten = kundeKontenNeu;
|
||||
}
|
||||
public void setKundeKonto(Konto neuKonto, int index ) {
|
||||
this.kundeKonten.add(index,neuKonto);
|
||||
|
||||
}
|
||||
public Konto getKundeKonto(int index ) {
|
||||
return this.kundeKonten.get(index);
|
||||
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String nameNeu) {
|
||||
name = nameNeu;
|
||||
}
|
||||
|
||||
public void uebersichtKonten() {
|
||||
System.out.println("----------------------------");
|
||||
for (int i = 0; i < this.getKundeKonto().size(); i++) {
|
||||
System.out.println(this.getKundeKonto(i).getKontonr());
|
||||
System.out.println(this.getKundeKonto(i).getKontostand());
|
||||
System.out.println("----------------------------");
|
||||
}
|
||||
|
||||
}
|
||||
public void anzahlKonten() {
|
||||
System.out.println("----------------------------");
|
||||
System.out.println("Sie haben: " + this.getKundeKonto().size() + "konten");
|
||||
System.out.println("----------------------------");
|
||||
|
||||
}
|
||||
// Ende Methoden
|
||||
} // end of Kunde
|
||||
40
14/12/Lehrer.java
Normal file
40
14/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
14/12/Lehrer.~ava
Normal file
30
14/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
14/12/Person.class
Normal file
BIN
14/12/Person.class
Normal file
Binary file not shown.
50
14/12/Person.java
Normal file
50
14/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
14/12/Schuler.java
Normal file
29
14/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
14/12/Sekretar.class
Normal file
BIN
14/12/Sekretar.class
Normal file
Binary file not shown.
36
14/12/Sekretar.java
Normal file
36
14/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
14/12/Sekretar.~ava
Normal file
21
14/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
14/12/Sparkonto.class
Normal file
BIN
14/12/Sparkonto.class
Normal file
Binary file not shown.
39
14/12/Sparkonto.java
Normal file
39
14/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
14/12/Sparkonto.~ava
Normal file
19
14/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
14/12/Teilzeit.class
Normal file
BIN
14/12/Teilzeit.class
Normal file
Binary file not shown.
34
14/12/Teilzeit.java
Normal file
34
14/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
14/12/Vollzeit.class
Normal file
BIN
14/12/Vollzeit.class
Normal file
Binary file not shown.
19
14/12/Vollzeit.java
Normal file
19
14/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
14/12/Zeitraum.class
Normal file
BIN
14/12/Zeitraum.class
Normal file
Binary file not shown.
26
14/12/Zeitraum.java
Normal file
26
14/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
14/12/lehrer.class
Normal file
BIN
14/12/lehrer.class
Normal file
Binary file not shown.
BIN
14/12/schuler.class
Normal file
BIN
14/12/schuler.class
Normal file
Binary file not shown.
152
14/12/t.svg
Normal file
152
14/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>
|
||||
BIN
14/Al.class
Normal file
BIN
14/Al.class
Normal file
Binary file not shown.
29
14/Al.java
Normal file
29
14/Al.java
Normal file
@@ -0,0 +1,29 @@
|
||||
import java.util.ArrayList;
|
||||
public class Al {
|
||||
public static void main(String args[]) {
|
||||
|
||||
ArrayList<Double> noten = new ArrayList();
|
||||
|
||||
noten.add(5.6);
|
||||
|
||||
if(noten.contains(5.6)) {
|
||||
System.out.println("Ture");
|
||||
|
||||
}
|
||||
else {
|
||||
System.out.println("False");
|
||||
} // end of if-else
|
||||
for (int i = 0; i<25 ;i++ ) {
|
||||
noten.add(Math.ceil((Math.random() * 10)));
|
||||
|
||||
} // end of for
|
||||
Math.
|
||||
System.out.println(noten.get(5));
|
||||
System.out.println(noten);
|
||||
System.out.println(noten.size());
|
||||
System.out.println(noten.remove(0));
|
||||
System.out.println(noten);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
29
14/Al.~ava
Normal file
29
14/Al.~ava
Normal file
@@ -0,0 +1,29 @@
|
||||
import java.util.ArrayList;
|
||||
public class Al {
|
||||
public static void main(String args[]) {
|
||||
|
||||
ArrayList<Double> noten = new ArrayList();
|
||||
|
||||
noten.add(5.6);
|
||||
|
||||
if(noten.contains(5.6)) {
|
||||
System.out.println("Ture");
|
||||
|
||||
}
|
||||
else {
|
||||
System.out.println("False");
|
||||
} // end of if-else
|
||||
for (int i = 0; i<25 ;i++ ) {
|
||||
noten.add(Math.ceil((Math.random() * 10)));
|
||||
|
||||
} // end of for
|
||||
|
||||
System.out.println(noten.get(5));
|
||||
System.out.println(noten);
|
||||
System.out.println(noten.size());
|
||||
System.out.println(noten.remove(0));
|
||||
System.out.println(noten);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user