From 899a05907b9051c121aca5ff64786e55b2b94425 Mon Sep 17 00:00:00 2001 From: Mykola Fesenko Date: Tue, 29 Jul 2025 08:08:23 +0200 Subject: [PATCH] backup --- 1/.gitingore | 2 + 1/MeinErstesProgramm.class | Bin 0 -> 558 bytes 1/MeinErstesProgramm.java | 5 + 1/MeinErstesProgramm.~ava | 6 + 1/ProgExpr.class | Bin 0 -> 1090 bytes 1/ProgExpr.java | 10 + 1/ProgExpr.~ava | 10 + 1/ProgFor.class | Bin 0 -> 1243 bytes 1/ProgFor.java | 13 + 1/ProgFor.~ava | 13 + 1/ProgIf.class | Bin 0 -> 1078 bytes 1/ProgIf.java | 9 + 1/ProgIf.~ava | 9 + 1/ProgWhile.class | Bin 0 -> 1234 bytes 1/ProgWhile.java | 14 ++ 1/ProgWhile.~ava | 14 ++ 10/.gitingore | 2 + 10/Aufgabe.class | Bin 0 -> 2181 bytes 10/Aufgabe.java | 38 +++ 10/Aufgabe.~ava | 36 +++ 10/Datei1.java | 0 10/Raum.class | Bin 0 -> 1080 bytes 10/Raum.java | 53 ++++ 10/Raum.uml | 27 ++ 10/Raum.~ava | 55 +++++ 11/.gitingore | 2 + 11/Bank.class | Bin 0 -> 2469 bytes 11/Bank.java | 47 ++++ 11/Bank.~ava | 47 ++++ 11/Girokonto.class | Bin 0 -> 300 bytes 11/Girokonto.java | 20 ++ 11/Girokonto.uml | 27 ++ 11/Girokonto.~ava | 16 ++ 11/Konto.class | Bin 0 -> 1200 bytes 11/Konto.java | 60 +++++ 11/Konto.uml | 49 ++++ 11/Konto.~ava | 60 +++++ 11/Kunde.class | Bin 0 -> 1055 bytes 11/Kunde.java | 48 ++++ 11/Kunde.uml | 39 +++ 11/Kunde.~ava | 49 ++++ 11/Sparkonto.class | Bin 0 -> 300 bytes 11/Sparkonto.java | 20 ++ 11/Sparkonto.~ava | 19 ++ 12/.gitingore | 2 + 12/Arbeit.class | Bin 0 -> 609 bytes 12/Arbeit.java | 31 +++ 12/Bank.class | Bin 0 -> 2469 bytes 12/Bank.java | 47 ++++ 12/Bank.~ava | 47 ++++ 12/Girokonto.class | Bin 0 -> 522 bytes 12/Girokonto.java | 31 +++ 12/Girokonto.uml | 27 ++ 12/Girokonto.~ava | 16 ++ 12/Konto.class | Bin 0 -> 1596 bytes 12/Konto.java | 73 ++++++ 12/Konto.uml | 125 ++++++++++ 12/Konto.~ava | 68 +++++ 12/Kunde.class | Bin 0 -> 1055 bytes 12/Kunde.java | 48 ++++ 12/Kunde.uml | 39 +++ 12/Kunde.~ava | 49 ++++ 12/Lehrer.java | 40 +++ 12/Lehrer.~ava | 30 +++ 12/Person.class | Bin 0 -> 1266 bytes 12/Person.java | 50 ++++ 12/Schuler.java | 29 +++ 12/Sekretar.class | Bin 0 -> 771 bytes 12/Sekretar.java | 36 +++ 12/Sekretar.~ava | 21 ++ 12/Sparkonto.class | Bin 0 -> 700 bytes 12/Sparkonto.java | 39 +++ 12/Sparkonto.~ava | 19 ++ 12/Teilzeit.class | Bin 0 -> 721 bytes 12/Teilzeit.java | 34 +++ 12/Vollzeit.class | Bin 0 -> 352 bytes 12/Vollzeit.java | 19 ++ 12/Zeitraum.class | Bin 0 -> 497 bytes 12/Zeitraum.java | 26 ++ 12/lehrer.class | Bin 0 -> 863 bytes 12/schuler.class | Bin 0 -> 636 bytes 12/t.svg | 152 ++++++++++++ 13/.gitingore | 2 + 13/Angestellter.class | Bin 0 -> 687 bytes 13/Angestellter.java | 34 +++ 13/Angestellter.~ava | 34 +++ 13/Arbeiter.class | Bin 0 -> 659 bytes 13/Arbeiter.java | 35 +++ 13/Arbeiter.~ava | 35 +++ 13/Aufgabe1.class | Bin 0 -> 249 bytes 13/Aufgabe1.java | 16 ++ 13/Aufgabe1.uml | 78 ++++++ 13/Auszubildender.class | Bin 0 -> 812 bytes 13/Auszubildender.java | 38 +++ 13/Mitarbeiter.class | Bin 0 -> 1279 bytes 13/Mitarbeiter.java | 58 +++++ 13/Vorgesetze.class | Bin 0 -> 973 bytes 13/Vorgesetze.java | 40 +++ 13/Vorgesetze.~ava | 40 +++ 14/.gitingore | 2 + 14/12/.gitingore | 2 + 14/12/Arbeit.class | Bin 0 -> 609 bytes 14/12/Arbeit.java | 31 +++ 14/12/Bank.class | Bin 0 -> 3580 bytes 14/12/Bank.java | 107 ++++++++ 14/12/Bank.~ava | 114 +++++++++ 14/12/Girokonto.class | Bin 0 -> 522 bytes 14/12/Girokonto.java | 31 +++ 14/12/Girokonto.uml | 27 ++ 14/12/Girokonto.~ava | 16 ++ 14/12/Konto.class | Bin 0 -> 1596 bytes 14/12/Konto.java | 73 ++++++ 14/12/Konto.uml | 135 ++++++++++ 14/12/Konto.~ava | 68 +++++ 14/12/Kunde.class | Bin 0 -> 2694 bytes 14/12/Kunde.java | 71 ++++++ 14/12/Kunde.uml | 39 +++ 14/12/Kunde.~ava | 71 ++++++ 14/12/Lehrer.java | 40 +++ 14/12/Lehrer.~ava | 30 +++ 14/12/Person.class | Bin 0 -> 1266 bytes 14/12/Person.java | 50 ++++ 14/12/Schuler.java | 29 +++ 14/12/Sekretar.class | Bin 0 -> 771 bytes 14/12/Sekretar.java | 36 +++ 14/12/Sekretar.~ava | 21 ++ 14/12/Sparkonto.class | Bin 0 -> 700 bytes 14/12/Sparkonto.java | 39 +++ 14/12/Sparkonto.~ava | 19 ++ 14/12/Teilzeit.class | Bin 0 -> 721 bytes 14/12/Teilzeit.java | 34 +++ 14/12/Vollzeit.class | Bin 0 -> 352 bytes 14/12/Vollzeit.java | 19 ++ 14/12/Zeitraum.class | Bin 0 -> 497 bytes 14/12/Zeitraum.java | 26 ++ 14/12/lehrer.class | Bin 0 -> 863 bytes 14/12/schuler.class | Bin 0 -> 636 bytes 14/12/t.svg | 152 ++++++++++++ 14/Al.class | Bin 0 -> 1244 bytes 14/Al.java | 29 +++ 14/Al.~ava | 29 +++ 2/.gitingore | 2 + 2/BMI.class | Bin 0 -> 1016 bytes 2/BMI.java | 8 + 2/BMI.~ava | 8 + 2/BMI2.class | Bin 0 -> 1383 bytes 2/BMI2.java | 20 ++ 2/BMI2.~ava | 20 ++ 2/BruttoNetto.class | Bin 0 -> 1144 bytes 2/BruttoNetto.java | 11 + 2/BruttoNetto.~ava | 11 + 2/Eingabe/BruttoNetto.class | Bin 0 -> 1522 bytes 2/Eingabe/BruttoNetto.java | 27 ++ 2/Eingabe/BruttoNetto.~ava | 28 +++ 2/Eingabe/Kraftstoffverbrauch.class | Bin 0 -> 1469 bytes 2/Eingabe/Kraftstoffverbrauch.java | 17 ++ 2/Eingabe/Kraftstoffverbrauch.~ava | 16 ++ 2/Eingabe/Sparbuch.class | Bin 0 -> 1566 bytes 2/Eingabe/Sparbuch.java | 23 ++ 2/Eingabe/Sparbuch.~ava | 24 ++ 2/Eingabe/Steigung.class | Bin 0 -> 1559 bytes 2/Eingabe/Steigung.java | 37 +++ 2/Eingabe/Steigung.~ava | 36 +++ 2/Eingabe/error.txt | 0 2/Kraftstoffverbrauch.class | Bin 0 -> 1103 bytes 2/Kraftstoffverbrauch.java | 15 ++ 2/Kraftstoffverbrauch.~ava | 8 + 2/Lenj/BruttoNetto.class | Bin 0 -> 4284 bytes 2/Lenj/BruttoNetto.java | 96 +++++++ 2/Lenj/BruttoNetto.jfm | 210 ++++++++++++++++ 2/Lenj/BruttoNetto.~ava | 96 +++++++ 2/Lenj/BruttoNetto.~fm | 210 ++++++++++++++++ 2/Lenj/Kraftstoffverbrauch.class | Bin 0 -> 4083 bytes 2/Lenj/Kraftstoffverbrauch.java | 88 +++++++ 2/Lenj/Kraftstoffverbrauch.jfm | 177 +++++++++++++ 2/Lenj/Kraftstoffverbrauch.~ava | 88 +++++++ 2/Lenj/Kraftstoffverbrauch.~fm | 174 +++++++++++++ 2/Lenj/Quadratzahlen.class | Bin 0 -> 3941 bytes 2/Lenj/Quadratzahlen.java | 72 ++++++ 2/Lenj/Quadratzahlen.jfm | 113 +++++++++ 2/Lenj/Quadratzahlen.~ava | 72 ++++++ 2/Lenj/Quadratzahlen.~fm | 113 +++++++++ 2/Lenj/Steigung.java | 133 ++++++++++ 2/Lenj/Steigung.jfm | 371 ++++++++++++++++++++++++++++ 2/Lenj/Steigung.~ava | 133 ++++++++++ 2/Lenj/Steigung.~fm | 368 +++++++++++++++++++++++++++ 2/Lenj/error.txt | 0 2/Lenj/game$TimerMethod.class | Bin 0 -> 568 bytes 2/Lenj/game.class | Bin 0 -> 4061 bytes 2/Lenj/game.java | 96 +++++++ 2/Lenj/game.jfm | 67 +++++ 2/Lenj/game.~ava | 96 +++++++ 2/Lenj/game.~fm | 67 +++++ 2/Lenj/test.class | Bin 0 -> 4527 bytes 2/Lenj/test.java | 95 +++++++ 2/Lenj/test.jfm | 179 ++++++++++++++ 2/Lenj/test.~ava | 95 +++++++ 2/Lenj/test.~fm | 176 +++++++++++++ 2/Quadratzahlen.class | Bin 0 -> 1100 bytes 2/Quadratzahlen.java | 8 + 2/Quadratzahlen.~ava | 8 + 2/Sparbuch.class | Bin 0 -> 1165 bytes 2/Sparbuch.java | 11 + 2/Sparbuch.~ava | 11 + 2/Steigung.class | Bin 0 -> 1096 bytes 2/Steigung.java | 12 + 2/Steigung.~ava | 12 + 2/error.txt | 0 3/.gitingore | 2 + 3/3 - Verknüpfung.lnk | Bin 0 -> 743 bytes 3/A1.class | Bin 0 -> 685 bytes 3/A1.java | 18 ++ 3/A1.~ava | 18 ++ 3/Alter.class | Bin 0 -> 700 bytes 3/Alter.java | 12 + 3/Alter.~ava | 12 + 3/BMI.class | Bin 0 -> 1791 bytes 3/BMI.java | 48 ++++ 3/BMI.txt | 30 +++ 3/BMI.~ava | 48 ++++ 3/BMI.~xt | 1 + 3/Monat.class | Bin 0 -> 1281 bytes 3/Monat.java | 50 ++++ 3/Monat.~ava | 50 ++++ 3/SwitchT.class | Bin 0 -> 832 bytes 3/SwitchT.java | 28 +++ 3/SwitchT.~ava | 28 +++ 3/Verweigung.java | 6 + 3/Verzweigung.class | Bin 0 -> 838 bytes 3/Verzweigung.java | 25 ++ 3/Verzweigung.~ava | 25 ++ 3/error.txt | 0 4/.gitingore | 2 + 4/A2.class | Bin 0 -> 903 bytes 4/A2.java | 19 ++ 4/A2.~ava | 18 ++ 4/A4.class | Bin 0 -> 1661 bytes 4/A4.java | 25 ++ 4/A4.~ava | 25 ++ 4/Array1.class | Bin 0 -> 1254 bytes 4/Array1.java | 10 + 4/Array1.~ava | 21 ++ 4/KG1.class | Bin 0 -> 1195 bytes 4/KG1.java | 14 ++ 4/KG1.~ava | 13 + 4/KG2.class | Bin 0 -> 1368 bytes 4/KG2.java | 28 +++ 4/KG2.~ava | 28 +++ 4/error.txt | 0 4/o.class | Bin 0 -> 352 bytes 4/o.java | 26 ++ 4/o.uml | 27 ++ 5/.gitingore | 2 + 5/Artikel.class | Bin 0 -> 1364 bytes 5/Artikel.java | 64 +++++ 5/Artikel.uml | 27 ++ 5/Aufgabe3.class | Bin 0 -> 1210 bytes 5/Aufgabe3.java | 16 ++ 5/Aufgabe3.uml | 27 ++ 5/Aufgabe3.~ava | 16 ++ 5/Aufgabe4.class | Bin 0 -> 1314 bytes 5/Aufgabe4.java | 20 ++ 5/Aufgabe4.~ava | 19 ++ 5/Kreisflaeche.class | Bin 0 -> 911 bytes 5/Kreisflaeche.java | 14 ++ 5/Kreisflaeche.~ava | 14 ++ 5/Kreisflaeche2.class | Bin 0 -> 2529 bytes 5/Kreisflaeche2.java | 51 ++++ 5/Kreisflaeche2.~ava | 51 ++++ 5/error.txt | 0 6/.gitingore | 2 + 6/Aufgabe.class | Bin 0 -> 1646 bytes 6/Aufgabe.java | 29 +++ 6/Aufgabe.uml | 13 + 6/Aufgabe.~ava | 30 +++ 6/Aufgabe2.class | Bin 0 -> 950 bytes 6/Aufgabe2.java | 20 ++ 6/Aufgabe2.uml | 13 + 6/Aufgabe2.~ava | 20 ++ 6/Dividieren.class | Bin 0 -> 1340 bytes 6/Dividieren.java | 18 ++ 6/Dividieren.uml | 13 + 6/Dividieren.~ava | 18 ++ 6/error.txt | 4 + 7/.gitingore | 2 + 7/BMI_BR.class | Bin 0 -> 2504 bytes 7/BMI_BR.java | 52 ++++ 7/BMI_BR.~ava | 52 ++++ 7/BR.class | Bin 0 -> 1684 bytes 7/BR.java | 23 ++ 7/BR.~ava | 23 ++ 8/.gitingore | 2 + 8/Aufgabe1.class | Bin 0 -> 2006 bytes 8/Aufgabe1.java | 33 +++ 8/Aufgabe1.~ava | 33 +++ 8/Aufgabe3.class | Bin 0 -> 2080 bytes 8/Aufgabe3.java | 28 +++ 8/Aufgabe3.~ava | 30 +++ 8/Test.class | Bin 0 -> 959 bytes 8/Test.java | 28 +++ 8/Test.~ava | 28 +++ 8/speicher.txt | 10 + 9/.gitingore | 2 + 9/Artikel.class | Bin 0 -> 1373 bytes 9/Artikel.java | 64 +++++ 9/Artikel.uml | 27 ++ 9/Artikel.~ava | 64 +++++ 9/Aufgabe1A.class | Bin 0 -> 1395 bytes 9/Aufgabe1A.java | 33 +++ 9/Aufgabe1A.uml | 27 ++ 9/Aufgabe1A.~ava | 33 +++ 9/Aufgabe2A.class | Bin 0 -> 1631 bytes 9/Aufgabe2A.java | 31 +++ 9/Aufgabe2A.uml | 27 ++ 9/Aufgabe2A.~ava | 31 +++ 9/Auto.class | Bin 0 -> 2364 bytes 9/Auto.java | 85 +++++++ 9/Auto.uml | 27 ++ 9/Auto.~ava | 79 ++++++ 9/AutoAufruf.class | Bin 0 -> 1897 bytes 9/AutoAufruf.java | 32 +++ 9/AutoAufruf.uml | 27 ++ 9/AutoAufruf.~ava | 28 +++ 9/Kreis.class | Bin 0 -> 1123 bytes 9/Kreis.java | 26 ++ 9/Kreis.uml | 27 ++ 9/Kreis.~ava | 26 ++ 9/Rechteck.class | Bin 0 -> 980 bytes 9/Rechteck.java | 24 ++ 9/Rechteck.uml | 27 ++ 9/Rechteck.~ava | 24 ++ Auto.uml | 27 ++ fx/.gitingore | 2 + fx/error.txt | 0 fx/sed.class | Bin 0 -> 3528 bytes fx/sed.java | 90 +++++++ fx/sed.jfm | 149 +++++++++++ fx/sed.~ava | 89 +++++++ fx/sed.~fm | 149 +++++++++++ fx/wiederTesten.class | Bin 0 -> 6908 bytes fx/wiederTesten.java | 171 +++++++++++++ fx/wiederTesten.jfm | 143 +++++++++++ fx/wiederTesten.~ava | 171 +++++++++++++ fx/wiederTesten.~fm | 143 +++++++++++ projekt/.gitingore | 2 + projekt/Game.class | Bin 0 -> 802 bytes projekt/Game.java | 30 +++ projekt/Game.~ava | 30 +++ projekt/Helper.class | Bin 0 -> 671 bytes projekt/Helper.java | 10 + projekt/Helper.~ava | 7 + projekt/Menu.class | Bin 0 -> 1155 bytes projekt/Menu.java | 39 +++ projekt/Menu.~ava | 39 +++ projekt/error.txt | 13 + 355 files changed, 11002 insertions(+) create mode 100644 1/.gitingore create mode 100644 1/MeinErstesProgramm.class create mode 100644 1/MeinErstesProgramm.java create mode 100644 1/MeinErstesProgramm.~ava create mode 100644 1/ProgExpr.class create mode 100644 1/ProgExpr.java create mode 100644 1/ProgExpr.~ava create mode 100644 1/ProgFor.class create mode 100644 1/ProgFor.java create mode 100644 1/ProgFor.~ava create mode 100644 1/ProgIf.class create mode 100644 1/ProgIf.java create mode 100644 1/ProgIf.~ava create mode 100644 1/ProgWhile.class create mode 100644 1/ProgWhile.java create mode 100644 1/ProgWhile.~ava create mode 100644 10/.gitingore create mode 100644 10/Aufgabe.class create mode 100644 10/Aufgabe.java create mode 100644 10/Aufgabe.~ava create mode 100644 10/Datei1.java create mode 100644 10/Raum.class create mode 100644 10/Raum.java create mode 100644 10/Raum.uml create mode 100644 10/Raum.~ava create mode 100644 11/.gitingore create mode 100644 11/Bank.class create mode 100644 11/Bank.java create mode 100644 11/Bank.~ava create mode 100644 11/Girokonto.class create mode 100644 11/Girokonto.java create mode 100644 11/Girokonto.uml create mode 100644 11/Girokonto.~ava create mode 100644 11/Konto.class create mode 100644 11/Konto.java create mode 100644 11/Konto.uml create mode 100644 11/Konto.~ava create mode 100644 11/Kunde.class create mode 100644 11/Kunde.java create mode 100644 11/Kunde.uml create mode 100644 11/Kunde.~ava create mode 100644 11/Sparkonto.class create mode 100644 11/Sparkonto.java create mode 100644 11/Sparkonto.~ava create mode 100644 12/.gitingore create mode 100644 12/Arbeit.class create mode 100644 12/Arbeit.java create mode 100644 12/Bank.class create mode 100644 12/Bank.java create mode 100644 12/Bank.~ava create mode 100644 12/Girokonto.class create mode 100644 12/Girokonto.java create mode 100644 12/Girokonto.uml create mode 100644 12/Girokonto.~ava create mode 100644 12/Konto.class create mode 100644 12/Konto.java create mode 100644 12/Konto.uml create mode 100644 12/Konto.~ava create mode 100644 12/Kunde.class create mode 100644 12/Kunde.java create mode 100644 12/Kunde.uml create mode 100644 12/Kunde.~ava create mode 100644 12/Lehrer.java create mode 100644 12/Lehrer.~ava create mode 100644 12/Person.class create mode 100644 12/Person.java create mode 100644 12/Schuler.java create mode 100644 12/Sekretar.class create mode 100644 12/Sekretar.java create mode 100644 12/Sekretar.~ava create mode 100644 12/Sparkonto.class create mode 100644 12/Sparkonto.java create mode 100644 12/Sparkonto.~ava create mode 100644 12/Teilzeit.class create mode 100644 12/Teilzeit.java create mode 100644 12/Vollzeit.class create mode 100644 12/Vollzeit.java create mode 100644 12/Zeitraum.class create mode 100644 12/Zeitraum.java create mode 100644 12/lehrer.class create mode 100644 12/schuler.class create mode 100644 12/t.svg create mode 100644 13/.gitingore create mode 100644 13/Angestellter.class create mode 100644 13/Angestellter.java create mode 100644 13/Angestellter.~ava create mode 100644 13/Arbeiter.class create mode 100644 13/Arbeiter.java create mode 100644 13/Arbeiter.~ava create mode 100644 13/Aufgabe1.class create mode 100644 13/Aufgabe1.java create mode 100644 13/Aufgabe1.uml create mode 100644 13/Auszubildender.class create mode 100644 13/Auszubildender.java create mode 100644 13/Mitarbeiter.class create mode 100644 13/Mitarbeiter.java create mode 100644 13/Vorgesetze.class create mode 100644 13/Vorgesetze.java create mode 100644 13/Vorgesetze.~ava create mode 100644 14/.gitingore create mode 100644 14/12/.gitingore create mode 100644 14/12/Arbeit.class create mode 100644 14/12/Arbeit.java create mode 100644 14/12/Bank.class create mode 100644 14/12/Bank.java create mode 100644 14/12/Bank.~ava create mode 100644 14/12/Girokonto.class create mode 100644 14/12/Girokonto.java create mode 100644 14/12/Girokonto.uml create mode 100644 14/12/Girokonto.~ava create mode 100644 14/12/Konto.class create mode 100644 14/12/Konto.java create mode 100644 14/12/Konto.uml create mode 100644 14/12/Konto.~ava create mode 100644 14/12/Kunde.class create mode 100644 14/12/Kunde.java create mode 100644 14/12/Kunde.uml create mode 100644 14/12/Kunde.~ava create mode 100644 14/12/Lehrer.java create mode 100644 14/12/Lehrer.~ava create mode 100644 14/12/Person.class create mode 100644 14/12/Person.java create mode 100644 14/12/Schuler.java create mode 100644 14/12/Sekretar.class create mode 100644 14/12/Sekretar.java create mode 100644 14/12/Sekretar.~ava create mode 100644 14/12/Sparkonto.class create mode 100644 14/12/Sparkonto.java create mode 100644 14/12/Sparkonto.~ava create mode 100644 14/12/Teilzeit.class create mode 100644 14/12/Teilzeit.java create mode 100644 14/12/Vollzeit.class create mode 100644 14/12/Vollzeit.java create mode 100644 14/12/Zeitraum.class create mode 100644 14/12/Zeitraum.java create mode 100644 14/12/lehrer.class create mode 100644 14/12/schuler.class create mode 100644 14/12/t.svg create mode 100644 14/Al.class create mode 100644 14/Al.java create mode 100644 14/Al.~ava create mode 100644 2/.gitingore create mode 100644 2/BMI.class create mode 100644 2/BMI.java create mode 100644 2/BMI.~ava create mode 100644 2/BMI2.class create mode 100644 2/BMI2.java create mode 100644 2/BMI2.~ava create mode 100644 2/BruttoNetto.class create mode 100644 2/BruttoNetto.java create mode 100644 2/BruttoNetto.~ava create mode 100644 2/Eingabe/BruttoNetto.class create mode 100644 2/Eingabe/BruttoNetto.java create mode 100644 2/Eingabe/BruttoNetto.~ava create mode 100644 2/Eingabe/Kraftstoffverbrauch.class create mode 100644 2/Eingabe/Kraftstoffverbrauch.java create mode 100644 2/Eingabe/Kraftstoffverbrauch.~ava create mode 100644 2/Eingabe/Sparbuch.class create mode 100644 2/Eingabe/Sparbuch.java create mode 100644 2/Eingabe/Sparbuch.~ava create mode 100644 2/Eingabe/Steigung.class create mode 100644 2/Eingabe/Steigung.java create mode 100644 2/Eingabe/Steigung.~ava create mode 100644 2/Eingabe/error.txt create mode 100644 2/Kraftstoffverbrauch.class create mode 100644 2/Kraftstoffverbrauch.java create mode 100644 2/Kraftstoffverbrauch.~ava create mode 100644 2/Lenj/BruttoNetto.class create mode 100644 2/Lenj/BruttoNetto.java create mode 100644 2/Lenj/BruttoNetto.jfm create mode 100644 2/Lenj/BruttoNetto.~ava create mode 100644 2/Lenj/BruttoNetto.~fm create mode 100644 2/Lenj/Kraftstoffverbrauch.class create mode 100644 2/Lenj/Kraftstoffverbrauch.java create mode 100644 2/Lenj/Kraftstoffverbrauch.jfm create mode 100644 2/Lenj/Kraftstoffverbrauch.~ava create mode 100644 2/Lenj/Kraftstoffverbrauch.~fm create mode 100644 2/Lenj/Quadratzahlen.class create mode 100644 2/Lenj/Quadratzahlen.java create mode 100644 2/Lenj/Quadratzahlen.jfm create mode 100644 2/Lenj/Quadratzahlen.~ava create mode 100644 2/Lenj/Quadratzahlen.~fm create mode 100644 2/Lenj/Steigung.java create mode 100644 2/Lenj/Steigung.jfm create mode 100644 2/Lenj/Steigung.~ava create mode 100644 2/Lenj/Steigung.~fm create mode 100644 2/Lenj/error.txt create mode 100644 2/Lenj/game$TimerMethod.class create mode 100644 2/Lenj/game.class create mode 100644 2/Lenj/game.java create mode 100644 2/Lenj/game.jfm create mode 100644 2/Lenj/game.~ava create mode 100644 2/Lenj/game.~fm create mode 100644 2/Lenj/test.class create mode 100644 2/Lenj/test.java create mode 100644 2/Lenj/test.jfm create mode 100644 2/Lenj/test.~ava create mode 100644 2/Lenj/test.~fm create mode 100644 2/Quadratzahlen.class create mode 100644 2/Quadratzahlen.java create mode 100644 2/Quadratzahlen.~ava create mode 100644 2/Sparbuch.class create mode 100644 2/Sparbuch.java create mode 100644 2/Sparbuch.~ava create mode 100644 2/Steigung.class create mode 100644 2/Steigung.java create mode 100644 2/Steigung.~ava create mode 100644 2/error.txt create mode 100644 3/.gitingore create mode 100644 3/3 - Verknüpfung.lnk create mode 100644 3/A1.class create mode 100644 3/A1.java create mode 100644 3/A1.~ava create mode 100644 3/Alter.class create mode 100644 3/Alter.java create mode 100644 3/Alter.~ava create mode 100644 3/BMI.class create mode 100644 3/BMI.java create mode 100644 3/BMI.txt create mode 100644 3/BMI.~ava create mode 100644 3/BMI.~xt create mode 100644 3/Monat.class create mode 100644 3/Monat.java create mode 100644 3/Monat.~ava create mode 100644 3/SwitchT.class create mode 100644 3/SwitchT.java create mode 100644 3/SwitchT.~ava create mode 100644 3/Verweigung.java create mode 100644 3/Verzweigung.class create mode 100644 3/Verzweigung.java create mode 100644 3/Verzweigung.~ava create mode 100644 3/error.txt create mode 100644 4/.gitingore create mode 100644 4/A2.class create mode 100644 4/A2.java create mode 100644 4/A2.~ava create mode 100644 4/A4.class create mode 100644 4/A4.java create mode 100644 4/A4.~ava create mode 100644 4/Array1.class create mode 100644 4/Array1.java create mode 100644 4/Array1.~ava create mode 100644 4/KG1.class create mode 100644 4/KG1.java create mode 100644 4/KG1.~ava create mode 100644 4/KG2.class create mode 100644 4/KG2.java create mode 100644 4/KG2.~ava create mode 100644 4/error.txt create mode 100644 4/o.class create mode 100644 4/o.java create mode 100644 4/o.uml create mode 100644 5/.gitingore create mode 100644 5/Artikel.class create mode 100644 5/Artikel.java create mode 100644 5/Artikel.uml create mode 100644 5/Aufgabe3.class create mode 100644 5/Aufgabe3.java create mode 100644 5/Aufgabe3.uml create mode 100644 5/Aufgabe3.~ava create mode 100644 5/Aufgabe4.class create mode 100644 5/Aufgabe4.java create mode 100644 5/Aufgabe4.~ava create mode 100644 5/Kreisflaeche.class create mode 100644 5/Kreisflaeche.java create mode 100644 5/Kreisflaeche.~ava create mode 100644 5/Kreisflaeche2.class create mode 100644 5/Kreisflaeche2.java create mode 100644 5/Kreisflaeche2.~ava create mode 100644 5/error.txt create mode 100644 6/.gitingore create mode 100644 6/Aufgabe.class create mode 100644 6/Aufgabe.java create mode 100644 6/Aufgabe.uml create mode 100644 6/Aufgabe.~ava create mode 100644 6/Aufgabe2.class create mode 100644 6/Aufgabe2.java create mode 100644 6/Aufgabe2.uml create mode 100644 6/Aufgabe2.~ava create mode 100644 6/Dividieren.class create mode 100644 6/Dividieren.java create mode 100644 6/Dividieren.uml create mode 100644 6/Dividieren.~ava create mode 100644 6/error.txt create mode 100644 7/.gitingore create mode 100644 7/BMI_BR.class create mode 100644 7/BMI_BR.java create mode 100644 7/BMI_BR.~ava create mode 100644 7/BR.class create mode 100644 7/BR.java create mode 100644 7/BR.~ava create mode 100644 8/.gitingore create mode 100644 8/Aufgabe1.class create mode 100644 8/Aufgabe1.java create mode 100644 8/Aufgabe1.~ava create mode 100644 8/Aufgabe3.class create mode 100644 8/Aufgabe3.java create mode 100644 8/Aufgabe3.~ava create mode 100644 8/Test.class create mode 100644 8/Test.java create mode 100644 8/Test.~ava create mode 100644 8/speicher.txt create mode 100644 9/.gitingore create mode 100644 9/Artikel.class create mode 100644 9/Artikel.java create mode 100644 9/Artikel.uml create mode 100644 9/Artikel.~ava create mode 100644 9/Aufgabe1A.class create mode 100644 9/Aufgabe1A.java create mode 100644 9/Aufgabe1A.uml create mode 100644 9/Aufgabe1A.~ava create mode 100644 9/Aufgabe2A.class create mode 100644 9/Aufgabe2A.java create mode 100644 9/Aufgabe2A.uml create mode 100644 9/Aufgabe2A.~ava create mode 100644 9/Auto.class create mode 100644 9/Auto.java create mode 100644 9/Auto.uml create mode 100644 9/Auto.~ava create mode 100644 9/AutoAufruf.class create mode 100644 9/AutoAufruf.java create mode 100644 9/AutoAufruf.uml create mode 100644 9/AutoAufruf.~ava create mode 100644 9/Kreis.class create mode 100644 9/Kreis.java create mode 100644 9/Kreis.uml create mode 100644 9/Kreis.~ava create mode 100644 9/Rechteck.class create mode 100644 9/Rechteck.java create mode 100644 9/Rechteck.uml create mode 100644 9/Rechteck.~ava create mode 100644 Auto.uml create mode 100644 fx/.gitingore create mode 100644 fx/error.txt create mode 100644 fx/sed.class create mode 100644 fx/sed.java create mode 100644 fx/sed.jfm create mode 100644 fx/sed.~ava create mode 100644 fx/sed.~fm create mode 100644 fx/wiederTesten.class create mode 100644 fx/wiederTesten.java create mode 100644 fx/wiederTesten.jfm create mode 100644 fx/wiederTesten.~ava create mode 100644 fx/wiederTesten.~fm create mode 100644 projekt/.gitingore create mode 100644 projekt/Game.class create mode 100644 projekt/Game.java create mode 100644 projekt/Game.~ava create mode 100644 projekt/Helper.class create mode 100644 projekt/Helper.java create mode 100644 projekt/Helper.~ava create mode 100644 projekt/Menu.class create mode 100644 projekt/Menu.java create mode 100644 projekt/Menu.~ava create mode 100644 projekt/error.txt diff --git a/1/.gitingore b/1/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/1/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/1/MeinErstesProgramm.class b/1/MeinErstesProgramm.class new file mode 100644 index 0000000000000000000000000000000000000000..9a66d93027a6be48f862082058eb0f7e931daa86 GIT binary patch literal 558 zcmZvZO;5r=5Qg7{LZMc{^5wVS2|U=N2aJg^8V^-TFnI8^zy_D}!z{(bpQQ&)Jop3r zQO4O~q6RkUZ04Prr|)JyzurFpoM6vF3TYFDjSR93#W8>6uFu1fd)*(4LClanlA(-` z8Pd&GFOMAZCM+9Eu>ZAppC+*gs4JS%P{m6?GIBdghH*Dmf(Pv!Rv7FH;rmhjHd6ku zVWEgs6ON4%$_%9iQw-*VX80jtn=@`=kf1UgwOc(CRR-r$$nZ>&iAhIABgF$UW1L1q z!BFsID6XbKU#J`2_epWQXu$m*S5oIcq7mQA2}9YNN41F+a7h-b&AUY&sLs`hrb`RT z3|2Rqs)0C{`scNI{(*it8mQ1Z^htr~g;1hQTPSuwLSr|bne+F3=bV}I^Uui-0MGCwfgwa3L|qIc#xQ=!k9gkW zs-AySJrp&=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-^HIHvtiejM>n<_E#FaV zuFQx@n^|!lmnk76`k~4DFe51p1d(0`kp>5mwg!77YNce*BjMYqFe_Lhl{`ir>~F0n^Sdev&q*?mIx`pQKf4ZTF1$gxWC zg|5B+^|ezS?NrDARCB^Z4;-=rW3yy6fg~r7bM_4KSYW(KE%*5dMaE5{g{wtAS$a56 zwK{H{WaQZ8A0l>v{%BYvK7sI0WOeO327f@4z=Nd|fu|N7A!{8W@BD4i{C_RF#?~QR F{|)!EsK@{S literal 0 HcmV?d00001 diff --git a/10/Raum.java b/10/Raum.java new file mode 100644 index 0000000..18d6186 --- /dev/null +++ b/10/Raum.java @@ -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 diff --git a/10/Raum.uml b/10/Raum.uml new file mode 100644 index 0000000..4cc66e8 --- /dev/null +++ b/10/Raum.uml @@ -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= + diff --git a/10/Raum.~ava b/10/Raum.~ava new file mode 100644 index 0000000..5cc50c8 --- /dev/null +++ b/10/Raum.~ava @@ -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 diff --git a/11/.gitingore b/11/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/11/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/11/Bank.class b/11/Bank.class new file mode 100644 index 0000000000000000000000000000000000000000..d4ca84ec9b491f776986fca8aab1645030639bd1 GIT binary patch literal 2469 zcmaJ@+jCPz82@c<=j8N2N^i74^7}5kn_nN?{TaY8 zzSZD@TY*Q17e0pSOMIS3GTfYtoSL~Lk~V|ykYO735Q94uPAE_rwm3pX+sH)XNp6}V z?}vse1-gz+*u2I{e4${AEQ8B18R}z>reQ^*X0B+*?Y!XGK@AG3rT;AqjiC)i!U>H$ z)as~1J;SDqVT!oO@jSP!JV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un%;9%?Bp)Px!r>ddlCLKIw8Q&+{aU>yjV}<%pPQ(KsF!GxXr8ci zmT;zo#9f>N2=Nk5NVv~cf_R|}d*+}|$~F2*5K9P23FChy(o67p`n^)flolWSE~hz~ z%6hmV>v01?`g$naUIgf(YleyrdK5dUI^Fbdp%0sJfOd|c8plyX8L35rp7{%?#|+)$ zf1nZf(S*OTjmcMg6Ixg;z0ljSlkG$+>%cA+p=WtN+Sm}<*)ToGW7xxD*vC%MqdG;o zmA!C={9eGHcoElVMwQ1)xK8U;Y#cA+73zxsi{e$>v)6kce4=Q z#9I_aA8W_kc!xUeUDEG`{tpGAD0oki-(dv}3Sp!QJiu9pA7+6-K;Kc<+WHq<_bGNa d-X~2LKEQ`Gs^t3!7uduqv`Ja~FHa;K`~W}7I9&~G zGM$+>eR=Qu=kx_&f~y1(DhhE6Rn!F4nX`ox)EVn3z@$UVv9zVKG zF6d;&=JUgDmHQXH+S2J|ZmqXV?M=}CW?a0Qy`Y($JKPIY*~)r>q=KYW`$F3djVXkN605>goGH@1Ud|M(ImS@g{aWN U1>eBhtV+qcxMZ5EP(|qf0ws_(nE(I) literal 0 HcmV?d00001 diff --git a/11/Girokonto.java b/11/Girokonto.java new file mode 100644 index 0000000..9daa073 --- /dev/null +++ b/11/Girokonto.java @@ -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 diff --git a/11/Girokonto.uml b/11/Girokonto.uml new file mode 100644 index 0000000..a8df35f --- /dev/null +++ b/11/Girokonto.uml @@ -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= + diff --git a/11/Girokonto.~ava b/11/Girokonto.~ava new file mode 100644 index 0000000..576c987 --- /dev/null +++ b/11/Girokonto.~ava @@ -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 diff --git a/11/Konto.class b/11/Konto.class new file mode 100644 index 0000000000000000000000000000000000000000..9179fd0270c4f1f23015690a72b09cb0707de180 GIT binary patch literal 1200 zcmaJ=-A)rh6#k}vOG_6D6%bpY2(@KZDkv8QLt;dd#)>92BwQ|KDGTi`*&h>q5ifiI zZ%m8^H1Wa*@S%*~Ot+;NG)+1)XU;j_&zb%8`^QfJPq3ar3~>#KERskGXCXDU0HhmEO3Z1zK|GyoV40;qFnh__*CX0P~vG1 zah`#3<2!^=IEQ9b&!K-|D8?q>z~yz0{}YhoA449u7%8!kWmv=#SGkigLhU3_jQcWf zM=&+6@-AtdLHoo_uX#!ZXH>&paWZNsP(d{+-ek7al2ZIGsL7`f6sV@CI!yPn29#1* zR+Iz`+=+VCnA0bsfBuWe{FOxR;@*HrT&YeOl}jG=h%A!G(m#l-&=KiCZP4qG+0wyc zW$gV2`Re#GckOia#v!>p7VADTi1DVma}m;zRYkctDzMch|NtE@~Q#&1<% tZGh=Um}P}I%US4^3-I>;!B;urH9Eack&lMJ%LDN8W$>Z|f1oUW_y= 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 diff --git a/11/Konto.uml b/11/Konto.uml new file mode 100644 index 0000000..27f50f6 --- /dev/null +++ b/11/Konto.uml @@ -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= + diff --git a/11/Konto.~ava b/11/Konto.~ava new file mode 100644 index 0000000..c7fd2ea --- /dev/null +++ b/11/Konto.~ava @@ -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 diff --git a/11/Kunde.class b/11/Kunde.class new file mode 100644 index 0000000000000000000000000000000000000000..5d330f381ffc2429479998f8ab206dc4cb389b07 GIT binary patch literal 1055 zcmZ{i-EPxB5QWd?$0n|wG@%WJ76{OS;}-G&MU@Z|Qq(A16h-3F3081P94WPVDlR~x zLgIo4;Gqy_)=m>8?#=$p&YbyXX8->C{RhAsoLDHJXrg4J3`1f2(*NprCVn*TydPc$ zqgcUs9Y$e%rciX-g9`4TV#2bq1zVwfopJ$*P;Xu6wW-S&X0Z)cLY)(fMcpG=3r{DVK7 z=sdHLKNl1D&Awn}ab23P*32bWXREH%*AEf}XAz$fSKRgu zv$GJ%-YhqJ5^iT%rxr3P)YlE#p~Oau$V|1=VK=82B56v4wU~7=OXj2CT_}yPbbYTx z5>MFa0ta5?%E9qekhbfcL*j0N)5I>Yna~gHJl$h;2zfoN?hw) z8>mpKO0hj!T4@;W;{k6JkUv0CIZ5II&-*yY(sa1XTiN>w^BWHZh`6DRds@&=9Wp_M zhj>JbFrLv{YBIci@-5NiM}sNK^cAFL>UD!;;4wiYaf^LPwN^pu-x;(D(#i#Sif0=j z>`{FkJtPHBmwx;ozn!0} literal 0 HcmV?d00001 diff --git a/11/Kunde.java b/11/Kunde.java new file mode 100644 index 0000000..b2d058f --- /dev/null +++ b/11/Kunde.java @@ -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 diff --git a/11/Kunde.uml b/11/Kunde.uml new file mode 100644 index 0000000..84fbd02 --- /dev/null +++ b/11/Kunde.uml @@ -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= + diff --git a/11/Kunde.~ava b/11/Kunde.~ava new file mode 100644 index 0000000..b8227e1 --- /dev/null +++ b/11/Kunde.~ava @@ -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 diff --git a/11/Sparkonto.class b/11/Sparkonto.class new file mode 100644 index 0000000000000000000000000000000000000000..e04aacd359457de3ee104eda3a93385e92f70fda GIT binary patch literal 300 zcmX|6!A=4(6r8s#6cz*&Zd~LB9Q*+diIJFW+<1X-FR+P4Y)x7GFHa;K`~W}7I9&~G zGM$+>eR=Qu=kx{O9{mInDhhE6Rn!F4Cua*MsNETBiYbjzIvXz)>Vn4nUHjL+di>xv zxuBC7n?E1kR=Hp3)sD_p=GJ<*)ZPUBZ^p%o*$bN4xx=kMm94B7NGeE5wJ)^Y(3sJf zyMtfnk0x|&pFiGg^@qj~igSm5ynXX#cIWN)&*v9_4$iVrkVr$-kwl82FyV9Fwz*@q@63r9`3$K`=}7;I zA<<|KG-RNqk=2odPP2|@3Q3~O+_mlJ@W_UNXj?}f1yWdI%xzMzZa^1xlu%|!K1y%O z8H&dG!M^WF$GTupuiXd1kT;|wZf8?dc=z12i76WHh}#41$)I17sy~)bl)#9xkUwV$ zf3V6!v4;#AaW~5-#B|9(OfO1NZZzX^Wc%*S8;PC_-p)nWp9gtSr&SdCzyu+E1f7&% z-LTSrR8`QDND=N**QUy-CR-n1@1bmuFcm>W@V|M1^a~9Ytj(oZ m^AV0$W+l3~wZPWvhPe`JK0$3|{)@f9&fA8$8f!icRrOy;-&xoI literal 0 HcmV?d00001 diff --git a/12/Arbeit.java b/12/Arbeit.java new file mode 100644 index 0000000..7055d04 --- /dev/null +++ b/12/Arbeit.java @@ -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 diff --git a/12/Bank.class b/12/Bank.class new file mode 100644 index 0000000000000000000000000000000000000000..d4ca84ec9b491f776986fca8aab1645030639bd1 GIT binary patch literal 2469 zcmaJ@+jCPz82@c<=j8N2N^i74^7}5kn_nN?{TaY8 zzSZD@TY*Q17e0pSOMIS3GTfYtoSL~Lk~V|ykYO735Q94uPAE_rwm3pX+sH)XNp6}V z?}vse1-gz+*u2I{e4${AEQ8B18R}z>reQ^*X0B+*?Y!XGK@AG3rT;AqjiC)i!U>H$ z)as~1J;SDqVT!oO@jSP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b{78%d7kYzZB^E}l}wH5lN8h7!20T+WdC7$YAq_~OLM_#(1z@s`i zq5=KlNB}5M!lj^in%Qc$sOGmzP5pksWshJ?BMkXjZAwvG)|3RU;A((XV$Kec)TaYP z#yb+3z_m7!ke)hP%Z<*iog_Z2Vi?GJ^7i)do7*RfCnv|#!QFe(+BsV+_8AJEnPE^ rE~lj%;Yy|QyBgO1ui*?gbru;c;0%`bXqan{o!hTrMrk;w=bQfvL#+L4 literal 0 HcmV?d00001 diff --git a/12/Konto.java b/12/Konto.java new file mode 100644 index 0000000..68ee710 --- /dev/null +++ b/12/Konto.java @@ -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 diff --git a/12/Konto.uml b/12/Konto.uml new file mode 100644 index 0000000..2e93c0d --- /dev/null +++ b/12/Konto.uml @@ -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= + diff --git a/12/Konto.~ava b/12/Konto.~ava new file mode 100644 index 0000000..284b5ce --- /dev/null +++ b/12/Konto.~ava @@ -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 diff --git a/12/Kunde.class b/12/Kunde.class new file mode 100644 index 0000000000000000000000000000000000000000..5d330f381ffc2429479998f8ab206dc4cb389b07 GIT binary patch literal 1055 zcmZ{i-EPxB5QWd?$0n|wG@%WJ76{OS;}-G&MU@Z|Qq(A16h-3F3081P94WPVDlR~x zLgIo4;Gqy_)=m>8?#=$p&YbyXX8->C{RhAsoLDHJXrg4J3`1f2(*NprCVn*TydPc$ zqgcUs9Y$e%rciX-g9`4TV#2bq1zVwfopJ$*P;Xu6wW-S&X0Z)cLY)(fMcpG=3r{DVK7 z=sdHLKNl1D&Awn}ab23P*32bWXREH%*AEf}XAz$fSKRgu zv$GJ%-YhqJ5^iT%rxr3P)YlE#p~Oau$V|1=VK=82B56v4wU~7=OXj2CT_}yPbbYTx z5>MFa0ta5?%E9qekhbfcL*j0N)5I>Yna~gHJl$h;2zfoN?hw) z8>mpKO0hj!T4@;W;{k6JkUv0CIZ5II&-*yY(sa1XTiN>w^BWHZh`6DRds@&=9Wp_M zhj>JbFrLv{YBIci@-5NiM}sNK^cAFL>UD!;;4wiYaf^LPwN^pu-x;(D(#i#Sif0=j z>`{FkJtPHBmwx;ozn!0} literal 0 HcmV?d00001 diff --git a/12/Kunde.java b/12/Kunde.java new file mode 100644 index 0000000..b2d058f --- /dev/null +++ b/12/Kunde.java @@ -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 diff --git a/12/Kunde.uml b/12/Kunde.uml new file mode 100644 index 0000000..84fbd02 --- /dev/null +++ b/12/Kunde.uml @@ -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= + diff --git a/12/Kunde.~ava b/12/Kunde.~ava new file mode 100644 index 0000000..b8227e1 --- /dev/null +++ b/12/Kunde.~ava @@ -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 diff --git a/12/Lehrer.java b/12/Lehrer.java new file mode 100644 index 0000000..3207984 --- /dev/null +++ b/12/Lehrer.java @@ -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 diff --git a/12/Lehrer.~ava b/12/Lehrer.~ava new file mode 100644 index 0000000..eee9773 --- /dev/null +++ b/12/Lehrer.~ava @@ -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 diff --git a/12/Person.class b/12/Person.class new file mode 100644 index 0000000000000000000000000000000000000000..e1916d19edcfe7ea6b9c60a8b420eeb859af834d GIT binary patch literal 1266 zcmZ`&U2hUm5IvUyTVQEvg<7p2tyQ~#miqBl)1)!c5D`rX~!H{3frxDf5-Q1XK*SV8#*>oQplJ? z-|`exQ>xoKuA!_@99g#W+V>o6xaD;dNZ6PA&v@Ox*w@v zvt>J0dot=--UqWc3^ciYbJ#UKTk>f!?SHbz3hS+KfKvr+VEOG}h_X>#9)nl{&O`ll zqRGN|R!AGoYL}H@zP2?X9WO(=im}WlU`;Fwuq86TUG$(x4RaT`7t+Nb8%6{ngrx-^ z7nmci33Jr9|I85xndgWZ^9&F$=R5Ai>szmEvA7Vrcr44u0au&i<4QB~k?<=e+vlld z-@(a!^31WqSI2mRS%atInW_DR`oWJBZZgWXK=&B+5P(~_%}n7A?lLYmUqbuN%V={s zv3Z|Lmz#^8< zSN#fFoNJ$42P?Ra0&f%yRHs~XJ1?;ncjPc}s2b`?Lbl>Ujwr-fA>;|4m2cm z|3Wlet`zKcQ@C~EE1ma?si37gdPDpG-e5X1=o2Sc<;u@92wCo(_W838$Ammr4hN_g z%a#A+38Oq3GmSR?=55y6q2H7zN^{M{bau4{SY@3I{+$$C)|(?kYZ-YKFY+u3`(cp& zHnww|RoRoS?!1CtqOp0lx(#Hpz}D&wU=d545tgyS_Aj`L^fNaN{D6yz;1V;9!A5WK oP8YeS0q|@hcn#~{;Fxw7`N7MJiQo-vCV-~~!KFm-R>W`n3k0-!NB{r; literal 0 HcmV?d00001 diff --git a/12/Sekretar.java b/12/Sekretar.java new file mode 100644 index 0000000..8b6ac32 --- /dev/null +++ b/12/Sekretar.java @@ -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 diff --git a/12/Sekretar.~ava b/12/Sekretar.~ava new file mode 100644 index 0000000..374bfa8 --- /dev/null +++ b/12/Sekretar.~ava @@ -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 diff --git a/12/Sparkonto.class b/12/Sparkonto.class new file mode 100644 index 0000000000000000000000000000000000000000..c5707224a21f34b7d1ee98d909d7158dd63c77fd GIT binary patch literal 700 zcmZut-7W(`6#izr-PKy9{;7W#suCW6NYF?c<%YO$w`!t8J1g6*3oj)SB5~mXJe2rm ztdd41nK|doIp5Fu_0KD#es{VLN_PZA)$|ks44Z~RJJMm&QjKO^wN)bE9z<7CV7RWdJn6PCWqcN1 zwpbahM~$#`9>&V#Y0*uZikO4-9?!ObZwYlwu9`sJW}PI|SNyt`$%U1XDX&+VcYboW zO!X`nkteb%Fl3^A8OugfOD(_w{uc>w+$TAI8g=7_JXA(zp{Hc?CcF=^OtTI*=5}gSQ5y~aNO1IjrMv?75G|p1q$|^ zyq9%XdcAs!HLuq&l!Aq2LrHd(AKnV=R;F=whfRGM4ja|BK;mq4qXcrc_S9uKB=1Ug zT~-SA$dPVa`r6#Ti;1AG#{yaVXZQw}9Jq2kCL?3EF~SD$+l2G?R6wym8`6-DK#?z} z)5{er)#%qDk5Q&M%n8sT6d6}| zyI_tpCu^?|&k?M|Xg(Fl6I{S5PkR#(*09bS;n<*B3fV@JB&uO&K$kfUXXrd qAqFFwii)L3(3$|g1^HKOF-=~0`bXZFNiNSM=l_#;W|H@#76)Gk!+dA} literal 0 HcmV?d00001 diff --git a/12/Teilzeit.java b/12/Teilzeit.java new file mode 100644 index 0000000..20e9c46 --- /dev/null +++ b/12/Teilzeit.java @@ -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 diff --git a/12/Vollzeit.class b/12/Vollzeit.class new file mode 100644 index 0000000000000000000000000000000000000000..f338863cc88756a8830d1aba84af720c62f5a053 GIT binary patch literal 352 zcmZWlJx{|x41LZ=Q$kCjzzl3H1N{N1kPs3qCzhZLY}asV53Y%HNf`K7Oh^p;0Dct0 z2Fij@vi;uKe!lzoe0v9Qfx{F5!UWL(F?xg~FISy2p3s}y%C_f(a560t^a=fZoUWF$y!EzPX6lZwyzbW7v>-&6^}QjCl&#E7w_X^3s~3)$v8qe$3hk}n zUovV}wjrcyBa!g}k4`tucgH_1UPcxXHR<|OW{}sNFU^$|t>I?enM}Y55`L{1@rkj; yK4o;xG2|GZzJgvj39!vxz6RJqgb@au9sd+z$edWr{4TdjwudoS6ZRPeIQRlLB1uXB literal 0 HcmV?d00001 diff --git a/12/Vollzeit.java b/12/Vollzeit.java new file mode 100644 index 0000000..c94ff5a --- /dev/null +++ b/12/Vollzeit.java @@ -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 diff --git a/12/Zeitraum.class b/12/Zeitraum.class new file mode 100644 index 0000000000000000000000000000000000000000..2fbc51b39bb825110c1d825dab5833e9d67aa3ad GIT binary patch literal 497 zcmZut%SyvQ6g@Xdn>I~tjkZ2F?$m|(07WQ*AOsaE6}p?ILpvp%Kuo&mH@Oi6!G#~- zM~OGlDoPl*&vWM7d*44^-vIQm@4$d*!*WqUmC&Avh43SxC;rW7Cc~6aJyTkx=LGZc zXi!HDbsLV023$gIC{>z>Y|h~#j-n-}1RCbBH5V0yxHA76wL4Bsh{tF{Cb}A9Oql4js=4j~GVEm8%TW$e74- z$w?p+ZClKv}PTX*6~R9)e@j(mO8hkE!>cS)l{2#js=xATk^3R3d$!=IxWdCZaJPj?>^i} z|5Dtzl*wD2rf{!>@2Gb#nFwtsU`SiBpaas;mSIl_120zwvf|oVUr$lh{wbnS=!1GB zWvX1!0Wt(Q?Wv&M*5ZF_eF51Wt4f}cPwu>fy+*L59tg-_nPMITu!0i37`0p@`p!kftf{AuWhCqhC!dOV5*L)CrYPrT!Cf6^Jmq4XzRMcTAc#uh{IS;#o#$&A5r@3Okf zpkD^}#4fwi7yV>565%Z$dFi}h%)KEGrRuXoJ)X*l!E`fy8emRDe4TlyIjvO}1c{cA zy0eOC4GA;fqc0MM5{+C~WUy)Iq9Z+P5G3JPTuEip&U~Dy-El(uYV@cYee_IeMaxsx z!PM(gtWejX%qZvEA7HO3tV&T`117d9+H(MEs8h$#zz)T~ literal 0 HcmV?d00001 diff --git a/12/t.svg b/12/t.svg new file mode 100644 index 0000000..c4f596a --- /dev/null +++ b/12/t.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Girokonto + + +Girokonto(kontonr: int, kontostand: double) + +auszahlen() + + + + + + Konto + + -kontonr: int + -kontostand: double + -IBAN: String + -begrenzteÜberweisung: boolean + + #Konto(kontonr: int, kontostand: double) + +getKontonr(): int + +setKontonr(kontonrNeu: int) + +getKontostand(): double + +setKontostand(kontostandNeu: double) + +einzahlen(summe: double) + +überweisen(summe: double, IBAN: String) + +getIBAN(): String + +getBegrenzteÜberweisung(): boolean + + + + + + Lehrer + + -schuler: Schuler[ ] + -klassen: String[ ] + -fach: String + + +getSchuler(): Schuler[ ] + +getKlassen(): String[ ] + +getFach(): String + + + + + + Person + + -name: String + -alter: int + + +getName(): String + +getAlter(): int + +setAlter(alterNeu: int) + +setName(nameNeu: String) + + + + + + Schuler + + -klasse: String + -zeitraum: Zeitraum + + +getKlasse(): String + +setKlasse(klasseNeu: String) + +getZeitraum(): Zeitraum + + + + + + Sekretar + + -schuler: Schuler[ ] + + +getSchuler(): Schuler[ ] + + + + + + Sparkonto + + -zins: double + -monatlichLimit: double + + +Sparkonto(kontonr: int, kontostand: double) + +getZins(): double + +setZins(zinsNeu: double) + +zinsBerechnen() + +getMonatlichLimit(): double + + + + + + Zeitraum + + -vollzeit: boolean + -anzStundenProWoche: int + + +getVollzeit(): boolean + +getAnzStundenProWoche(): int + + + diff --git a/13/.gitingore b/13/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/13/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/13/Angestellter.class b/13/Angestellter.class new file mode 100644 index 0000000000000000000000000000000000000000..66f843ecce9647a899a4e8c3eeb2e375bf6ed4d7 GIT binary patch literal 687 zcmZvZ-EPxB5QWbsj!hCbP1+JjX`sEz4~RTKQKgCqsFe1mC{nM`Caj!oT^ntjUhq-~ zsR*eTJOB@cIBT0UYLKPXnc10d&W?Zox%&m+7|$yxpyWe4Mn}QndZsrn;}OapDn6?41^nYEQ1e8EVTKFTOooYo7z#LV z|(da>E-!-#_0}wW2Q29XKF!Lnf|2AELJlWanKhNe^n99SI*;wnW}f%nr*E5 zd2JowfIBE~xq>IRK;=+#yF51-ouJ4M@cJ)b{e<{VSwM}a{S`o+g$-;{?Pq1oG#Ie~ zTi7PVsvW8V^>!PSQvVj-Hx^}3I~6RmKtI)`94PPvPxI!Z+>_hy{DAk+Qj6|) zQ$jPf=q@d}Xr)xa`+uwtv}fN}?_bb~bBbqR}sng5^pPBZiM{qYH)iE;)SVmjg`5=b%_x5DRM&lbMzF(faABm66dlZy4g z=e$1V&amF`J>d)+e|M_gG*U?G$e1u-GNhW3RBG&woGJI87+6cf)=cD(XUGP2Q-9_R zY==(U4DoAsU^C<_;n;VxNzeA~d2dWR1;JKZpgMY0pQ()=^c;-szwH~fDvVc2A49?PZDTi(Ah(mBwB p&GGahz8sLX!4y;sSi=YC&V~V(Rky(dP1aWRwzzssgf^=I{|nw{E^`0? literal 0 HcmV?d00001 diff --git a/13/Aufgabe1.java b/13/Aufgabe1.java new file mode 100644 index 0000000..2178d9e --- /dev/null +++ b/13/Aufgabe1.java @@ -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 diff --git a/13/Aufgabe1.uml b/13/Aufgabe1.uml new file mode 100644 index 0000000..12865a7 --- /dev/null +++ b/13/Aufgabe1.uml @@ -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= + diff --git a/13/Auszubildender.class b/13/Auszubildender.class new file mode 100644 index 0000000000000000000000000000000000000000..056456deb2d05300cb72b30a44d493291e50ffeb GIT binary patch literal 812 zcmZ`$T}vB56g{)q>^5=ZN3_;zYwJfbiPHQ4MFLk7Fs`$I?_E{;n2WPV1k+C*;R&`?>n<25qwK#kphadN7BkqX*JcM~Co=ePH z$ngXG+Wx^E#I*&Md74KBAs)(DX7q6k!wOzABLS;;LlG0LF>)Bc#d;=Nw>g{DZs1=L zO}E*9>|6Me=)WX5{0{kXPHgg+J?Olh!|2g;nd% ooA~iqHzNr;-I{2b^>OUl#w|*-THDmx`H$8%S8cR*?DV^T002;eV*mgE literal 0 HcmV?d00001 diff --git a/13/Auszubildender.java b/13/Auszubildender.java new file mode 100644 index 0000000..3aade30 --- /dev/null +++ b/13/Auszubildender.java @@ -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 diff --git a/13/Mitarbeiter.class b/13/Mitarbeiter.class new file mode 100644 index 0000000000000000000000000000000000000000..b626a3d6c93ae541e8de06740abdc1439eab1254 GIT binary patch literal 1279 zcmZ{jUvCmY6vfX_V1X_zr3-57-&PB3E2t0pP}4+BOqw7*)bPIG7Po;V*)IK5K4>B_ z@xc$^hccc!EV6;+WoGuyoqK|#>B_lrT0_Slv_AH( z+A#b2yViTsq<_9lyf}ZPzZlGY?j04{pxeDd>qRvGac>ds2 zPHvglmSbtj%3((V65cgoNjTGUgUO{tswQsXw!+S6QQx18M$$!{E7a<%4OSzKE?d1D zeja*BN5ORX#k*E0wqy4?RVWPHusgq-Rd1}eV$O9e zr;@-YG=)f^jys`TtlH6X89W=UL>axC=k?%_VaSV{x% z`EVr&DYkmRtXabrXW7fxKVW?0A_ZxX)xkYo(3~Yi1r_ghz=+VEFMZL&QWl2;S&^3nd9?KX&06N#pK!j^)%TJ(2wUryPwZw1Ll`ciWT6a8pwx_F;>n~h z1%_KP*_LgulL#0!+ch8jdP@?3xq00Gv;ArEjhY^}Fo8*d(Ze|E%P@H;W9hd;8446? zu4}uhY1+aS%n*{$r;z!YYd6i!cPZ2`yXGuh$GpH$zt{EK9j_%IT!H+f=q2e?8bK&` zdk6b6e&+3WcrxCIe6Q2=;y~5eVLoXGT^iFkld>*QJc{DbJJ3UyjNyv(uF}$SU&y!} z$+nVE%v90Z^iE)8FY)}>JKkZou+Z%tDBv>fdOjdtrqXlOsiIxkqsx0yFZSi*K#8cF z@my2Put+CzbXhRc4rT@B{M(E-SUrKk4=6e-tKT8MFwJ3sQ9TV{l#OEq0ncl#F=G{Fs*;Xc}i=Vl0co)Io$mZNw1_? literal 0 HcmV?d00001 diff --git a/13/Vorgesetze.java b/13/Vorgesetze.java new file mode 100644 index 0000000..8149741 --- /dev/null +++ b/13/Vorgesetze.java @@ -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 diff --git a/13/Vorgesetze.~ava b/13/Vorgesetze.~ava new file mode 100644 index 0000000..8149741 --- /dev/null +++ b/13/Vorgesetze.~ava @@ -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 diff --git a/14/.gitingore b/14/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/14/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/14/12/.gitingore b/14/12/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/14/12/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/14/12/Arbeit.class b/14/12/Arbeit.class new file mode 100644 index 0000000000000000000000000000000000000000..3fddb54221af4c1e65ea3eac08b498f1e00f47c7 GIT binary patch literal 609 zcmZutO;5r=6r3&Pqfi9_MMXtC0SEa38WSSHOQQ!22X0$j%aYP2wQ%q^nWzbgi3fjx zKg#&pB1F>5ynXX#cIWN)&*v9_4$iVrkVr$-kwl82FyV9Fwz*@q@63r9`3$K`=}7;I zA<<|KG-RNqk=2odPP2|@3Q3~O+_mlJ@W_UNXj?}f1yWdI%xzMzZa^1xlu%|!K1y%O z8H&dG!M^WF$GTupuiXd1kT;|wZf8?dc=z12i76WHh}#41$)I17sy~)bl)#9xkUwV$ zf3V6!v4;#AaW~5-#B|9(OfO1NZZzX^Wc%*S8;PC_-p)nWp9gtSr&SdCzyu+E1f7&% z-LTSrR8`QDND=N**QUy-CR-n1@1bmuFcm>W@V|M1^a~9Ytj(oZ m^AV0$W+l3~wZPWvhPe`JK0$3|{)@f9&fA8$8f!icRrOy;-&xoI literal 0 HcmV?d00001 diff --git a/14/12/Arbeit.java b/14/12/Arbeit.java new file mode 100644 index 0000000..7055d04 --- /dev/null +++ b/14/12/Arbeit.java @@ -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 diff --git a/14/12/Bank.class b/14/12/Bank.class new file mode 100644 index 0000000000000000000000000000000000000000..16482d6b9e920e92670ac178bba7d937ec4cdf25 GIT binary patch literal 3580 zcmb_fTXa-s75@Ir<;)DHa3ivembp#Mps5)+(G~yY<9*^%odfXg!6@u-SZMhu^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UBLmMrCEC-Vh9~xsHl=`Gy&m z@4u3k+dabgwLCAa6s6Vg>sY$Yzxsk&B21Ts^>nd93xvh;{cm9%W}0PP?c=V*#C)@fkq0f*wKe`C{fZ&rw^<`HS298|&GU&(C6=Jbv-^ zkH0dDfWL#?H+$n>;wFltRs5fq-Z@0M^G^QQ*hT5>rtp%i#~#%4eKSh&#h6($J1fC% zXvYJ5n>|Pw4B}6C5P!xn{)&h2H;mx#6zM;47}xO#>-VS%<1tli6hlcijZ zw2Hz~F&tM-d} mKi>d{oiN3MUE#a}KgG{@4bkHl99QuhS`p5Ei{Ih*Sov>?9Yje0 literal 0 HcmV?d00001 diff --git a/14/12/Bank.java b/14/12/Bank.java new file mode 100644 index 0000000..0443b91 --- /dev/null +++ b/14/12/Bank.java @@ -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 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("----------------------------"); + } + +} \ No newline at end of file diff --git a/14/12/Bank.~ava b/14/12/Bank.~ava new file mode 100644 index 0000000..b7b4254 --- /dev/null +++ b/14/12/Bank.~ava @@ -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 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("----------------------------"); + } + +} \ No newline at end of file diff --git a/14/12/Girokonto.class b/14/12/Girokonto.class new file mode 100644 index 0000000000000000000000000000000000000000..c7ab0913448672363bd0e50f80169bc546950112 GIT binary patch literal 522 zcmZut-AV#M6#i!2b#vV`?LQ0ZPQ9oHD1vG!B^@QaKP1k%5*%lr7G_-Ku0H;GXGzEKqK%B)%FycH{I$c8Ba# z+qx%*9hoXqPn&Lbr${QcXHJI#zO_tJ+Oz}$Ta7ZA^aV+fEZv6kUhjXlVfpB1pxe)=ulCUQpB`cS#x%O)w<-Hq>JsZKq~ts*xY@LEn8b z@emz1LoQt=<0q^WztQIV>d5g-{IPBqE3k^glOWnWegE z*Gl)-pUbKz5S_AY%bOMm8HKetx)F~dkwg!Y0+G8-+iMEMUZ~S{1Vlxp^d`}Veu0FJ zyPj!3;itto(in(gFo~lW+ShFLjqAw4DkCvTJ33 z$ZQhhI3*CS%+IX|qz~t*InN}K!&&02%bFwY4Nq>rUzg5nX}K-C#*rUWBcrldSR>Lx z^NAGbTefVu(rPg6p}AgXB)#0Mn)Nl)vDAAI413QkmsFRv!evUy8TDPMOe-o3xqCuk zqoTU_irdbLYzd@xY61sXw#evCSr82ynqO+yD_tC?#2Y3RrcM#J)o74vYSlBVFYcKy z1C~A8KZ9{q){wDySSCd(MjpP7gGS+Sioh@v<~vJB&J;0jw%i>uiPdJysmdiwiI>ot zTvR^Oux@TM5ayHX$y=9NLw(XrebO$T3FbtQhk(JiM+os9=qrAQD2{F+Ry4Md`l1U8 ze5Unh^&CJPgXrb{78%d7kYzZB^E}l}wH5lN8h7!20T+WdC7$YAq_~OLM_#(1z@s`i zq5=KlNB}5M!lj^in%Qc$sOGmzP5pksWshJ?BMkXjZAwvG)|3RU;A((XV$Kec)TaYP z#yb+3z_m7!ke)hP%Z<*iog_Z2Vi?GJ^7i)do7*RfCnv|#!QFe(+BsV+_8AJEnPE^ rE~lj%;Yy|QyBgO1ui*?gbru;c;0%`bXqan{o!hTrMrk;w=bQfvL#+L4 literal 0 HcmV?d00001 diff --git a/14/12/Konto.java b/14/12/Konto.java new file mode 100644 index 0000000..68ee710 --- /dev/null +++ b/14/12/Konto.java @@ -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 diff --git a/14/12/Konto.uml b/14/12/Konto.uml new file mode 100644 index 0000000..fd28921 --- /dev/null +++ b/14/12/Konto.uml @@ -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= + diff --git a/14/12/Konto.~ava b/14/12/Konto.~ava new file mode 100644 index 0000000..284b5ce --- /dev/null +++ b/14/12/Konto.~ava @@ -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 diff --git a/14/12/Kunde.class b/14/12/Kunde.class new file mode 100644 index 0000000000000000000000000000000000000000..76be74fb550d136c9d638d2d035bdc43fff781d2 GIT binary patch literal 2694 zcmaJ@TXz#x6#h=rCh2s5+8dOXnsPG@mwq*ppcw(Tql@QNMvVLQb;QdYokWsRP&eXb!)5W_1?`FeYvlRw5WeU?018IBxIE2F~95HbeZ*-_s+VTUtMj)>tKp~3bcnT*>oJ77Qa3_jFYEv+)B4IYhHVR+j8o+52Z{jV5U5rbsujwo7%|-!sW=)HB z*2LR5M`?ZMDWzqa7X|8qKwVTYL>vu6>kMX1yd&0zco1#ey0E__)aMC8Yck2;iirhW zjhKj?A6PDvLinq4;JO@mR}NgASs7w6E}D1`H%YZ-ZP*K*TegCGPEg@UP6qytG(~|c z^p~7<*9sbSvY!f-=?rr=;y+iAqS&b&DU-;8C&jv_=(zTBqqb_-?^>%>U29(1s;*dd zN9NIDZ%}baDOJ=e6L)t@@mAgL_M;TE7jzqhvt_%Xkm;V3INLUeNG;v7FQVTWAgh`T zVr{1J$BG@qw>Dekr@Mk|`xUfZE&5Rf4P+w`wODD_ZbTcDK+;PI`W&|T6N*A9mUWws zv?7c*Dh-Go8lFpTpyI9hX%KR_twQ9Q;Gb$6J>`7wNz!#{e;7bj% zj}LEOgO2;y+pzOtv4v%M-6{uOeM{k+cr8VSp|=~X^{VY3E_&WZW3#Zc{}OEY$<|Ru&ULP6WGj!x#+rfeW7akzU`;*rNWUNF?FMw0^^!`wJE<7!niQa zd!mQEo8XgIH%C2k^+Tbk$4i{^+U9tGYkgSe^A=|no=EV$KldCe_bXEOpQHa7jNIfi z4CanK!^lti{B1tRcn(DG)yTsb;b$D9xWm;zIp(b+^%*C=AK~1i5Nd}Ax>nv3z1OGdj$Cq_al(oe20Xnmm!1_I-HQu5fVE3KZG9W3_awD zFx(^_V2RkFmybC57@zPdREtrj3~FXf9&2LX%b{n{kDT@tX2WQQZs1dVMjXI^6=j28 zDG~B~#NQO;i6$n0N9JWMj>jS}+qkAi6G>N5j?m(gj=T(Ws*9uwYdQ~|x$P{yP|7ou z@@$MqvP~ojo5d|eKG#(wSl?1GNz44tI5?DTBA1w*$Te}Qi8J5f1Q&CR^?VbBCg!$h zmz%iOI`Fkp-~apPc0#B4dj&X;G%m30FY>2I0jDv`*#%tU=MHzJ>I|}6*R@9P5yuMm z`qA?@4D}bzkf_rpDs?2eIn?qiY(k 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 getKundeKonto() { + return this.kundeKonten; + } + + public void setKundeKonten(ArrayList 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 diff --git a/14/12/Kunde.uml b/14/12/Kunde.uml new file mode 100644 index 0000000..84fbd02 --- /dev/null +++ b/14/12/Kunde.uml @@ -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= + diff --git a/14/12/Kunde.~ava b/14/12/Kunde.~ava new file mode 100644 index 0000000..13794ec --- /dev/null +++ b/14/12/Kunde.~ava @@ -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 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 getKundeKonto() { + return this.kundeKonten; + } + + public void setKundeKonten(ArrayList 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 diff --git a/14/12/Lehrer.java b/14/12/Lehrer.java new file mode 100644 index 0000000..3207984 --- /dev/null +++ b/14/12/Lehrer.java @@ -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 diff --git a/14/12/Lehrer.~ava b/14/12/Lehrer.~ava new file mode 100644 index 0000000..eee9773 --- /dev/null +++ b/14/12/Lehrer.~ava @@ -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 diff --git a/14/12/Person.class b/14/12/Person.class new file mode 100644 index 0000000000000000000000000000000000000000..e1916d19edcfe7ea6b9c60a8b420eeb859af834d GIT binary patch literal 1266 zcmZ`&U2hUm5IvUyTVQEvg<7p2tyQ~#miqBl)1)!c5D`rX~!H{3frxDf5-Q1XK*SV8#*>oQplJ? z-|`exQ>xoKuA!_@99g#W+V>o6xaD;dNZ6PA&v@Ox*w@v zvt>J0dot=--UqWc3^ciYbJ#UKTk>f!?SHbz3hS+KfKvr+VEOG}h_X>#9)nl{&O`ll zqRGN|R!AGoYL}H@zP2?X9WO(=im}WlU`;Fwuq86TUG$(x4RaT`7t+Nb8%6{ngrx-^ z7nmci33Jr9|I85xndgWZ^9&F$=R5Ai>szmEvA7Vrcr44u0au&i<4QB~k?<=e+vlld z-@(a!^31WqSI2mRS%atInW_DR`oWJBZZgWXK=&B+5P(~_%}n7A?lLYmUqbuN%V={s zv3Z|Lmz#^8< zSN#fFoNJ$42P?Ra0&f%yRHs~XJ1?;ncjPc}s2b`?Lbl>Ujwr-fA>;|4m2cm z|3Wlet`zKcQ@C~EE1ma?si37gdPDpG-e5X1=o2Sc<;u@92wCo(_W838$Ammr4hN_g z%a#A+38Oq3GmSR?=55y6q2H7zN^{M{bau4{SY@3I{+$$C)|(?kYZ-YKFY+u3`(cp& zHnww|RoRoS?!1CtqOp0lx(#Hpz}D&wU=d545tgyS_Aj`L^fNaN{D6yz;1V;9!A5WK oP8YeS0q|@hcn#~{;Fxw7`N7MJiQo-vCV-~~!KFm-R>W`n3k0-!NB{r; literal 0 HcmV?d00001 diff --git a/14/12/Sekretar.java b/14/12/Sekretar.java new file mode 100644 index 0000000..8b6ac32 --- /dev/null +++ b/14/12/Sekretar.java @@ -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 diff --git a/14/12/Sekretar.~ava b/14/12/Sekretar.~ava new file mode 100644 index 0000000..374bfa8 --- /dev/null +++ b/14/12/Sekretar.~ava @@ -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 diff --git a/14/12/Sparkonto.class b/14/12/Sparkonto.class new file mode 100644 index 0000000000000000000000000000000000000000..c5707224a21f34b7d1ee98d909d7158dd63c77fd GIT binary patch literal 700 zcmZut-7W(`6#izr-PKy9{;7W#suCW6NYF?c<%YO$w`!t8J1g6*3oj)SB5~mXJe2rm ztdd41nK|doIp5Fu_0KD#es{VLN_PZA)$|ks44Z~RJJMm&QjKO^wN)bE9z<7CV7RWdJn6PCWqcN1 zwpbahM~$#`9>&V#Y0*uZikO4-9?!ObZwYlwu9`sJW}PI|SNyt`$%U1XDX&+VcYboW zO!X`nkteb%Fl3^A8OugfOD(_w{uc>w+$TAI8g=7_JXA(zp{Hc?CcF=^OtTI*=5}gSQ5y~aNO1IjrMv?75G|p1q$|^ zyq9%XdcAs!HLuq&l!Aq2LrHd(AKnV=R;F=whfRGM4ja|BK;mq4qXcrc_S9uKB=1Ug zT~-SA$dPVa`r6#Ti;1AG#{yaVXZQw}9Jq2kCL?3EF~SD$+l2G?R6wym8`6-DK#?z} z)5{er)#%qDk5Q&M%n8sT6d6}| zyI_tpCu^?|&k?M|Xg(Fl6I{S5PkR#(*09bS;n<*B3fV@JB&uO&K$kfUXXrd qAqFFwii)L3(3$|g1^HKOF-=~0`bXZFNiNSM=l_#;W|H@#76)Gk!+dA} literal 0 HcmV?d00001 diff --git a/14/12/Teilzeit.java b/14/12/Teilzeit.java new file mode 100644 index 0000000..20e9c46 --- /dev/null +++ b/14/12/Teilzeit.java @@ -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 diff --git a/14/12/Vollzeit.class b/14/12/Vollzeit.class new file mode 100644 index 0000000000000000000000000000000000000000..f338863cc88756a8830d1aba84af720c62f5a053 GIT binary patch literal 352 zcmZWlJx{|x41LZ=Q$kCjzzl3H1N{N1kPs3qCzhZLY}asV53Y%HNf`K7Oh^p;0Dct0 z2Fij@vi;uKe!lzoe0v9Qfx{F5!UWL(F?xg~FISy2p3s}y%C_f(a560t^a=fZoUWF$y!EzPX6lZwyzbW7v>-&6^}QjCl&#E7w_X^3s~3)$v8qe$3hk}n zUovV}wjrcyBa!g}k4`tucgH_1UPcxXHR<|OW{}sNFU^$|t>I?enM}Y55`L{1@rkj; yK4o;xG2|GZzJgvj39!vxz6RJqgb@au9sd+z$edWr{4TdjwudoS6ZRPeIQRlLB1uXB literal 0 HcmV?d00001 diff --git a/14/12/Vollzeit.java b/14/12/Vollzeit.java new file mode 100644 index 0000000..c94ff5a --- /dev/null +++ b/14/12/Vollzeit.java @@ -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 diff --git a/14/12/Zeitraum.class b/14/12/Zeitraum.class new file mode 100644 index 0000000000000000000000000000000000000000..2fbc51b39bb825110c1d825dab5833e9d67aa3ad GIT binary patch literal 497 zcmZut%SyvQ6g@Xdn>I~tjkZ2F?$m|(07WQ*AOsaE6}p?ILpvp%Kuo&mH@Oi6!G#~- zM~OGlDoPl*&vWM7d*44^-vIQm@4$d*!*WqUmC&Avh43SxC;rW7Cc~6aJyTkx=LGZc zXi!HDbsLV023$gIC{>z>Y|h~#j-n-}1RCbBH5V0yxHA76wL4Bsh{tF{Cb}A9Oql4js=4j~GVEm8%TW$e74- z$w?p+ZClKv}PTX*6~R9)e@j(mO8hkE!>cS)l{2#js=xATk^3R3d$!=IxWdCZaJPj?>^i} z|5Dtzl*wD2rf{!>@2Gb#nFwtsU`SiBpaas;mSIl_120zwvf|oVUr$lh{wbnS=!1GB zWvX1!0Wt(Q?Wv&M*5ZF_eF51Wt4f}cPwu>fy+*L59tg-_nPMITu!0i37`0p@`p!kftf{AuWhCqhC!dOV5*L)CrYPrT!Cf6^Jmq4XzRMcTAc#uh{IS;#o#$&A5r@3Okf zpkD^}#4fwi7yV>565%Z$dFi}h%)KEGrRuXoJ)X*l!E`fy8emRDe4TlyIjvO}1c{cA zy0eOC4GA;fqc0MM5{+C~WUy)Iq9Z+P5G3JPTuEip&U~Dy-El(uYV@cYee_IeMaxsx z!PM(gtWejX%qZvEA7HO3tV&T`117d9+H(MEs8h$#zz)T~ literal 0 HcmV?d00001 diff --git a/14/12/t.svg b/14/12/t.svg new file mode 100644 index 0000000..c4f596a --- /dev/null +++ b/14/12/t.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Girokonto + + +Girokonto(kontonr: int, kontostand: double) + +auszahlen() + + + + + + Konto + + -kontonr: int + -kontostand: double + -IBAN: String + -begrenzteÜberweisung: boolean + + #Konto(kontonr: int, kontostand: double) + +getKontonr(): int + +setKontonr(kontonrNeu: int) + +getKontostand(): double + +setKontostand(kontostandNeu: double) + +einzahlen(summe: double) + +überweisen(summe: double, IBAN: String) + +getIBAN(): String + +getBegrenzteÜberweisung(): boolean + + + + + + Lehrer + + -schuler: Schuler[ ] + -klassen: String[ ] + -fach: String + + +getSchuler(): Schuler[ ] + +getKlassen(): String[ ] + +getFach(): String + + + + + + Person + + -name: String + -alter: int + + +getName(): String + +getAlter(): int + +setAlter(alterNeu: int) + +setName(nameNeu: String) + + + + + + Schuler + + -klasse: String + -zeitraum: Zeitraum + + +getKlasse(): String + +setKlasse(klasseNeu: String) + +getZeitraum(): Zeitraum + + + + + + Sekretar + + -schuler: Schuler[ ] + + +getSchuler(): Schuler[ ] + + + + + + Sparkonto + + -zins: double + -monatlichLimit: double + + +Sparkonto(kontonr: int, kontostand: double) + +getZins(): double + +setZins(zinsNeu: double) + +zinsBerechnen() + +getMonatlichLimit(): double + + + + + + Zeitraum + + -vollzeit: boolean + -anzStundenProWoche: int + + +getVollzeit(): boolean + +getAnzStundenProWoche(): int + + + diff --git a/14/Al.class b/14/Al.class new file mode 100644 index 0000000000000000000000000000000000000000..fc604a2da3d3a14879877202b3cf97d8cbd82ea9 GIT binary patch literal 1244 zcmZuw+fEZv6kVscDRn62(jtNgirP}8QAC9TQmJUQT(nq36O%)GC(${yEBp%D zR0Po86g6p<*L1<4>~Os-7S|bq;bbIzdTk95m+?APbRkF=^L$?7&Y)`K;t}Gnpj*X7 ziSy=6!{(Y%YQZJ+D(F*j8U0PyXLd`rC{jqXOwxk2h?*H&vNXfa*p}eMxEBKquH~{N ze7K5h3Wii%$Bh%+&1h1xEq!(49777G8HIQx>qVHsJ;(JD#T!Oc!7UZHF~Z=vAi)Asp66X_W3OZIA+t4TYzoMt(N(F-lxFEMTY3rQo z3-o+OZ}bR}F2uHuaHsD1(ZLS>{vuq|TftZb<8s?rCM%ec24@Ac4db|E?t)}K0YA-d zcxAg1+W~s5QL>Fv;uS97r#dk0wI{_#vXO+2kKC%c7PO(p&yG_swQk7FY$`( oUP5KCOv+!=N#>+x$<+B{1JN!C?f?J) literal 0 HcmV?d00001 diff --git a/14/Al.java b/14/Al.java new file mode 100644 index 0000000..005af8a --- /dev/null +++ b/14/Al.java @@ -0,0 +1,29 @@ +import java.util.ArrayList; +public class Al { + public static void main(String args[]) { + + ArrayList 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); + + } + +} \ No newline at end of file diff --git a/14/Al.~ava b/14/Al.~ava new file mode 100644 index 0000000..ea73716 --- /dev/null +++ b/14/Al.~ava @@ -0,0 +1,29 @@ +import java.util.ArrayList; +public class Al { + public static void main(String args[]) { + + ArrayList 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); + + } + +} \ No newline at end of file diff --git a/2/.gitingore b/2/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/2/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/2/BMI.class b/2/BMI.class new file mode 100644 index 0000000000000000000000000000000000000000..3831443f8050f2b05766f1f0e55f176a09153034 GIT binary patch literal 1016 zcmaJ=T~8B16g@*rx71azd0 zp7iU5H(T4PY6VhHw6E<`fkZC9nR>qdlRzN#?9blY-yf&;2H@hfgEKA$F?5WevKv~} zBF=P3Gg>~N)~2u?Xx~L6yWy z3SJLP7_x4rVmd)pE$gU>H0vxxTcpNI#@NsXvc0Bk!_>kwZW6|X#c45^LLq}&xb5Ih zBPP=$=hh3gyz>VFu z>XF_pLVV4N-RFBqQIeil(No2^~BTm_4zlUadNKBrx^=R4Nzm3zu=8 ze?#>2fhUU;?M1E%90kYz`R@>44#HEkQ5gI#(YkR0rbz+};0mtN6M<`RNCixez*!l= zz^kt~HJ8sf&8K~w1-@bQh%t*KGZVB)q{%-)Y{WiI9~m%%S&m8G`)imZe;QfjI7{%& bGt!57T<4f(Y=Pem+~X?4*?m03V@&)5xj6PT literal 0 HcmV?d00001 diff --git a/2/BMI.java b/2/BMI.java new file mode 100644 index 0000000..262a338 --- /dev/null +++ b/2/BMI.java @@ -0,0 +1,8 @@ +public class BMI { + public static void main(String args[]) { + double gewicht = 67.0; + double grosse = 1.67; + + System.out.println("BMI: " + (gewicht/ (grosse*grosse))); + } + } \ No newline at end of file diff --git a/2/BMI.~ava b/2/BMI.~ava new file mode 100644 index 0000000..d1f47c8 --- /dev/null +++ b/2/BMI.~ava @@ -0,0 +1,8 @@ +public class BMI { + public static void main(String args[]) { + double gewicht = 67.0; + double grosse = 1.67; + + System.out.println("BMI: " + (int)(gewicht/ (grosse*grosse))); + } + } \ No newline at end of file diff --git a/2/BMI2.class b/2/BMI2.class new file mode 100644 index 0000000000000000000000000000000000000000..81bcb9cf8b92636a8f10c258290138eed707480e GIT binary patch literal 1383 zcmaJ>+j0^?5IqBA7jPp=P~$B|O%xIh-Zc`9224cBO(K^1G$B*4vg}a1Lo^@YKj@R+ zpbyc~D$6S0eDgc}10O7V7F1G6xm7!}+kLwG%;}l=_Uq$k0Jrflju65oA{P2!Fzk88 z*Ll|AZY{gG`b<<6gE3{hwz|m>PG>46q6~WjP+Qqfwp`_|E4&!u*k!`9(2w0)vXnP` zC7KK&+hy2S3LDP4I`IFQDzwWKUDWTSQn1tBHai234wYDgT~AB zm!+A}+&A_f>}}w_LZfzT=v5l64gl9MNq;e1M~*By_&c2jgXX1AFdx4|>^*JB6q3ah zQj?K)*q=PKi6i5iIPn@$nobq9ZS1ctrfmT*Js25`G~`E|0XA_?^9V!pn7}R?BQzRF zP_-1II6@pw(iM@WE9o3|6UPK@Ac;i`1boK`Pn+fEZv6kP{Or!D1H3J53`1)ZW&5U&&kDFK^QG%3LcpAPLwJ9IkJ%$$;-kDBlc zeuarXsNum6@GtxkO)5*jDz-e=#|zMa$Ge@}k_c!7-=deCbi6h|Mz0>g*$NM>y5 zR5Gs*4pm7Dgx4&`($58Y&GdeFV})`2!t0;j|JnJH{18PP0|o};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CO>y7H&2kn1(M9zhc>ze^nro%hxp|1X6)g-?uu2njvl5bjOjz zga%#5B#yn{rMBn!W>;X$vISHM-C`0Nrd9luz=_e3a8e+#X8NvdE@zXN$AX5JbezV^0y9G#BNhU&p0cOI z0f>MGg0$>rF<)0O&*(UdR|JwR>1~-``4y#3UUro5oQ_wqB%s+Nl1c)30b-uV1s$)c z;93x-V<&Kto^~wT^Q6D8Flu;1$D1m^AIq01uWk2u56nn$2O#Y$MRcTdA_uLPhc)rspLb}M-$fY z0r{)-q}%8lEqW|DyQaWY)w0d4ez#$|+mg@((pAThow{@_wI3Wt{gy@F$?DKSksi8I zHNjl&{^4l(x`43wSEwi5CT(YqP-BfO)j5=gK1Q36A>xgo-UPlspp`Dmq_gHrqrEA6 z19-`r({~MX-BJlm4l!O-UBT{Ma~$7e-}E+3zvb+D2@qXsL$=)ItjG>qN=(IZH;H@L z(Qsd}{HefV&{qMCmi^Fan}x7_LgLq@;XCf0z_+6fHc$*>-H`Tf$MhDfj??bYupt$^R^&%{wc&yfq0Fh5-ZgbM?F+P86R>tj&)q;35`V- z32FlSKSR6s1mjQHtf|N!D;cCWo*MVDF^J;!QlodkRTS`Bl z!R7V=-iut0&BmrreUHV3#|w{x)3))AvYw4CJVOznk4G`_!#}?%#1SaOYnbL3#RQX^ zBB~kQ;CbRZ%a>q@ITZL%zKdhHN@)oxY$1)i)H0EQ$Mqf`IF;=s+TTVFH&EeFi*Y0Pn36Hnu+2F^>pT2E Q!Drkhx%wPmqJfkD0*)bbFaQ7m literal 0 HcmV?d00001 diff --git a/2/Eingabe/Sparbuch.java b/2/Eingabe/Sparbuch.java new file mode 100644 index 0000000..80ed97d --- /dev/null +++ b/2/Eingabe/Sparbuch.java @@ -0,0 +1,23 @@ +import java.util.Scanner; +public class Sparbuch { + public static void main(String args[]) { + Scanner input = new Scanner(System.in); + int betrag = 1000; + double zinssatz = 1.5; + System.out.print("Betrag: "); + if(input.hasNextInt()) { + + betrag = input.nextInt(); + } + System.out.println(""); + System.out.print("Zinssatz: "); + if (input.hasNextDouble()) { + zinssatz = input.nextDouble(); + } // end of if + System.out.println(zinssatz * .01); + for (int i = 0;i < 26;i++ ) { + betrag += (double)betrag * (zinssatz * .01); + System.out.println("Jahr: " + i + " Betrag: " + betrag); + } + } +} \ No newline at end of file diff --git a/2/Eingabe/Sparbuch.~ava b/2/Eingabe/Sparbuch.~ava new file mode 100644 index 0000000..4f357e6 --- /dev/null +++ b/2/Eingabe/Sparbuch.~ava @@ -0,0 +1,24 @@ +import java.util.Scanner; +public class Sparbuch { + public static void main(String args[]) { + Scanner input = new Scanner(System.in); + int betrag = 1000; + double zinssatz = 1.5; + System.out.print("Betrag: "); + if(input.hasNextInt()) { + + betrag = input.nextInt(); + } + System.out.println(""); + System.out.print("Zinssatz: "); + if (input.hasNextDouble()) { + + zinssatz = input.nextDouble(); + } // end of if + System.out.println(zinssatz * .01); + for (int i = 0;i < 26;i++ ) { + betrag += (double)betrag * (zinssatz * .01); + System.out.println("Jahr: " + i + " Betrag: " + betrag); + } + } +} \ No newline at end of file diff --git a/2/Eingabe/Steigung.class b/2/Eingabe/Steigung.class new file mode 100644 index 0000000000000000000000000000000000000000..b79420c36680d15e3c3d9626b93a489b3621f0cb GIT binary patch literal 1559 zcmaJ>T~ixX7=BKY%_iw05JCvHMXazh;e+9OW~%4LL?=ZE<}QfA%WpAQBOH; zsos>HXLr-cV#Gww!YJ}5D%B4HWw!-ljwdi$3nLxBwCZ(ws;;`WY?m__L_uR57br}h z=~8Uy3g<0cz(s=fd&K@a+1;+=9VbiSEdk@f^~oEP8N7{4Cf>0yh06jX$F=+1>Dtl3 z%yv{bq= uT?HKG_{ciHg5Npo2BXvp0I}ZM(ZEL+II>-;{1cb{+kGq)ez?hvhQ0 z;{;`9XiGh}{Pd&K2#O8bWw*tcku%I3`97N#RSE|bV*9gN;$k>@_>78j_Man`9H=YV z+*_BO5SEEsgjDx?-KM?lXxeFy`kT@7@`0r29x+Y zg9h%Kc%a$d5||3lLdd7%J@NPKQZ({t0L!we{O*CkAN_~o$T6z2BE22g4yJ0pzt`)O zPqWjfIT5&d(6P^O?r+PXIs)_Fe zCjQ@*_d?Vc&sdpvh<;+=;E?2cgKs77g1d3;ImDl#d6BC&YuC@YT9E^mcoP9>+(d;M z28(r=$WZrt4(3V@>9rir%^5ii%$a{-aO)X{pJQx3{S0qrCk`<=o<78tr%3Dl+KSfB z{8ziCwI96JW zf-PO)+YH`d%rF+Ht+GZM2+OFGb)e7KP;Ryu@UEE^6J58KF`=Yw8n53 XUvW<{>n8vAhzCS1@Ce`HdyM}J4ijFx literal 0 HcmV?d00001 diff --git a/2/Eingabe/Steigung.java b/2/Eingabe/Steigung.java new file mode 100644 index 0000000..facb7d6 --- /dev/null +++ b/2/Eingabe/Steigung.java @@ -0,0 +1,37 @@ +import java.util.Scanner; +public class Steigung { + public static void main(String args[]) { + double x1 = 4; + double y1 = 2; + + double x2 = 6; + double y2 = 7; + + Scanner input = new Scanner(System.in); + + System.out.print("X1 = "); + if(input.hasNextDouble()) { + x1 = input.nextDouble(); + } + + System.out.print("Y1 = "); + if(input.hasNextDouble()) { + y1 = input.nextDouble(); + } + + System.out.print("X2 = "); + if(input.hasNextDouble()) { + x2 = input.nextDouble(); + } + + System.out.print("Y2 = "); + if(input.hasNextDouble()) { + y2 = input.nextDouble(); + } + + + + System.out.println("Steigung: " + ((y2 - y1)/(x2 - x1))); + + } +} \ No newline at end of file diff --git a/2/Eingabe/Steigung.~ava b/2/Eingabe/Steigung.~ava new file mode 100644 index 0000000..d9adf44 --- /dev/null +++ b/2/Eingabe/Steigung.~ava @@ -0,0 +1,36 @@ +import java.util.Scanner; +public class Steigung { + public static void main(String args[]) { + double x1 = 4; + double y1 = 2; + + double x2 = 6; + double y2 = 7; + + Scanner input = new Scanner(System.in); + System.out.print("X1 = "); + if(input.hasNextDouble()) { + x1 = input.nextDouble(); + } + + System.out.print("Y1 = "); + if(input.hasNextDouble()) { + y1 = input.nextDouble(); + } + + System.out.print("X2 = "); + if(input.hasNextDouble()) { + x2 = input.nextDouble(); + } + + System.out.print("Y2 = "); + if(input.hasNextDouble()) { + y2 = input.nextDouble(); + } + + + + System.out.println("Steigung: " + ((y2 - y1)/(x2 - x1))); + + } +} \ No newline at end of file diff --git a/2/Eingabe/error.txt b/2/Eingabe/error.txt new file mode 100644 index 0000000..e69de29 diff --git a/2/Kraftstoffverbrauch.class b/2/Kraftstoffverbrauch.class new file mode 100644 index 0000000000000000000000000000000000000000..9a9d2c5d2e56998c4f594e721ecda2fe408951d4 GIT binary patch literal 1103 zcmaJ=TTc@~6#k|y-BMOTD3psLC`gM+yN z7d{xNY{eSEJH_Porx0e6M8?H5W*D*^-WDaTYTSO5wnZ!7a%Fu2$?fDroB>4wk*Zlt zV-|A`=3Ok{D#KJnA_k`$r1ew)auFhb=wOjT_YH4Y-|9xAFHF_&UaiHDDCxRj7%xjD z-t{_FVGelJBh6%4*SL4cjSTju%7ksnfND7ct4LrSE{ViU?sF6ivUAg<@Tmwh!&p-^ zc*_VS_NlOJhe);mG42S}BvR>$?wOj{l>x)q2of7XeW+8fw5FpP-hC@MXJ7Ti$d6ruyMP*X0FoyCTAUxMJbuEe>CnQ-~7xyo$7fTH(G{N|=(zeP8$vo-wRmI8zi= z2b&Cw|97Q#6P^ppxJGX*_+nteE2H^3?Fu9r$&vM+VBZGjC7J^>Xe`t0h7P!ao3tCn z3RX!I1PcNhA-Rx&vzNi>o9`IQujve~v`;Vv{6O{$auNx0jnkY!iW1Dj8Ne@*jv#Og rYa|oMB8NOBND;z1t>X0GCQA%=aF=9?Z1-qv;0f*0w0er?C}Qp}4P6tq literal 0 HcmV?d00001 diff --git a/2/Kraftstoffverbrauch.java b/2/Kraftstoffverbrauch.java new file mode 100644 index 0000000..db4e78e --- /dev/null +++ b/2/Kraftstoffverbrauch.java @@ -0,0 +1,15 @@ +public class Kraftstoffverbrauch { + public static void main(String args[]) { + double gefahreneKm = 55.0; + double kraftstoffmenge = 5.0; + + System.out.println("Kraftstoffverbrauch: " + ((kraftstoffmenge/gefahreneKm)*100)); + } +}public class Kraftstoffverbrauch { + public static void main(String args[]) { + double gefahreneKm = 55.0; + double kraftstoffmenge = 5.0; + + System.out.println("Kraftstoffverbrauch: " + ((kraftstoffmenge/gefahreneKm)*100)); + } +} \ No newline at end of file diff --git a/2/Kraftstoffverbrauch.~ava b/2/Kraftstoffverbrauch.~ava new file mode 100644 index 0000000..10b3977 --- /dev/null +++ b/2/Kraftstoffverbrauch.~ava @@ -0,0 +1,8 @@ +public class Kraftstoffverbrauch { + public void main(String args[]) { + double gefahreneKm = 55.0; + double kraftstoffmenge = 5.0; + + System.out.println("Kraftstoffverbrauch: " + ((kraftstoffmenge/gefahreneKm)*100)); + } +} \ No newline at end of file diff --git a/2/Lenj/BruttoNetto.class b/2/Lenj/BruttoNetto.class new file mode 100644 index 0000000000000000000000000000000000000000..e7e7e3173de752365aa26f34812fdb771e6bafb2 GIT binary patch literal 4284 zcmcInd3Y3O8UKAbc9&%++a-iH5DXX~2e1Kbg)D`Igd^z!k;H_{*2(UW9Wt3ocPHUc zA8V~*wO*)L@2hxQdoj?^D%NVXMXg8GdROahz3-#?`(`FPyCn7TAD?}mnfLqVeSh!! zz2~W+}J?vjt{u&X3u)wNvARt066?8n(+V z5KEWKC#CGA3gWI{!Pdrn;4o?g>U{eO8O_uZ8OyZumXS!SgPIY=98d8)1()G+fvB;? z%x-ga2`orIy`-yhzJdi(Ds1$+I>T5fFn?O1&GIm26!o6IMG6+}-2vjw>Y;6JCItA_JY+{-P$;!@lDivMhmlsW z13Lw3%g%0VN9@E_Mw@0HbYCmHqb3a197^=sdEFdJb~cwEzbKWIN!g>|IoQnr(-aSC z{zdKz_?!D9=%bBZ_DJb|1p}a$yt7&(qjn!{5|}%U9a4H9EnU;r)+S{SD0rTfm71lL zjPSJzo)6V62D>At8(Bt5U`bQ)2pP*Tw2UmkLSoloLCcS;gNByY3wClQGRTIZDL9BB zfknQno?e30s%Enn8M|xn5b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iAISML_xTI_jeJqA|ISQ#3YY%}3dvKC literal 0 HcmV?d00001 diff --git a/2/Lenj/BruttoNetto.java b/2/Lenj/BruttoNetto.java new file mode 100644 index 0000000..db93bad --- /dev/null +++ b/2/Lenj/BruttoNetto.java @@ -0,0 +1,96 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.control.*; +import je.NumberField; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.event.*; + +/** + * + * Beschreibung + * + * @version 1.0 vom 06.11.2024 + * @author + */ + +public class BruttoNetto extends Application { + // Anfang Attribute + private NumberField gehaltField = new NumberField(); + private NumberField steuerField = new NumberField(); + private Label lEndGehalt = new Label(); + private Label lSteuer = new Label(); + private Button bRechnen = new Button(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 268, 224); + // Anfang Komponenten + + gehaltField.setLayoutX(8); + gehaltField.setLayoutY(16); + gehaltField.setPrefHeight(24); + gehaltField.setPrefWidth(80); + gehaltField.setFont(Font.font("Dialog", 11)); + gehaltField.setPromptText("Gehalt"); + gehaltField.setText("3000"); + root.getChildren().add(gehaltField); + steuerField.setLayoutX(8); + steuerField.setLayoutY(48); + steuerField.setPrefHeight(24); + steuerField.setPrefWidth(80); + steuerField.setFont(Font.font("Dialog", 11)); + steuerField.setText("19.0"); + root.getChildren().add(steuerField); + lEndGehalt.setLayoutX(120); + lEndGehalt.setLayoutY(16); + lEndGehalt.setPrefHeight(24); + lEndGehalt.setPrefWidth(112); + lEndGehalt.setText("End Gehalt: 0"); + lEndGehalt.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lEndGehalt); + lSteuer.setLayoutX(120); + lSteuer.setLayoutY(48); + lSteuer.setPrefHeight(24); + lSteuer.setPrefWidth(112); + lSteuer.setText("Steuer"); + lSteuer.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lSteuer); + bRechnen.setLayoutX(72); + bRechnen.setLayoutY(96); + bRechnen.setPrefHeight(24); + bRechnen.setPrefWidth(80); + bRechnen.setText("Rechnen"); + bRechnen.setOnAction( + (event) -> {bRechnen_Action(event);} + ); + bRechnen.setFont(Font.font("Dialog", 11)); + root.getChildren().add(bRechnen); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("BruttoNetto"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public BruttoNetto + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void bRechnen_Action(Event evt) { + int gehalt = gehaltField.getInt(); + double steuer = steuerField.getDouble(); + steuer = steuer + 1; + lEndGehalt.setText("End Gehalt: " + (gehalt/steuer))); + lSteuer.setText("Steuer: " + ((double)gehalt * steuer )); + + } // end of bRechnen_Action + + // Ende Methoden +} // end of class BruttoNetto diff --git a/2/Lenj/BruttoNetto.jfm b/2/Lenj/BruttoNetto.jfm new file mode 100644 index 0000000..1a4105b --- /dev/null +++ b/2/Lenj/BruttoNetto.jfm @@ -0,0 +1,210 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 915 + Top = 458 + BorderIcons = [biSystemMenu] + Caption = 'BruttoNetto' + ClientHeight = 223 + ClientWidth = 268 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'BruttoNetto' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object gehaltField: TFXNumberField + Tag = 103 + Left = 8 + Top = 16 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '3000' + Editable = True + PromptText = 'Gehalt' + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object steuerField: TFXNumberField + Tag = 103 + Left = 8 + Top = 48 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 48 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '19.0' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object lEndGehalt: TFXLabel + Tag = 101 + Left = 120 + Top = 16 + Width = 112 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 120 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 112 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'End Gehalt: 0' + TextAlignment = _TA_LEFT + WrapText = False + end + object lSteuer: TFXLabel + Tag = 101 + Left = 120 + Top = 48 + Width = 112 + Height = 24 + Hint = 'label2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 120 + LayoutY = 48 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 112 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Steuer' + TextAlignment = _TA_LEFT + WrapText = False + end + object bRechnen: TFXButton + Tag = 105 + Left = 72 + Top = 96 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 72 + LayoutY = 96 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Rechnen' + TextAlignment = _TA_LEFT + WrapText = False + action = 'bRechnen_Action' + CancelButton = False + DefaultButton = False + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/2/Lenj/BruttoNetto.~ava b/2/Lenj/BruttoNetto.~ava new file mode 100644 index 0000000..390225f --- /dev/null +++ b/2/Lenj/BruttoNetto.~ava @@ -0,0 +1,96 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.control.*; +import je.NumberField; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.event.*; + +/** + * + * Beschreibung + * + * @version 1.0 vom 06.11.2024 + * @author + */ + +public class BruttoNetto extends Application { + // Anfang Attribute + private NumberField gehaltField = new NumberField(); + private NumberField steuerField = new NumberField(); + private Label lEndGehalt = new Label(); + private Label lSteuer = new Label(); + private Button bRechnen = new Button(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 268, 224); + // Anfang Komponenten + + gehaltField.setLayoutX(8); + gehaltField.setLayoutY(16); + gehaltField.setPrefHeight(24); + gehaltField.setPrefWidth(80); + gehaltField.setFont(Font.font("Dialog", 11)); + gehaltField.setPromptText("Gehalt"); + gehaltField.setText("3000"); + root.getChildren().add(gehaltField); + steuerField.setLayoutX(8); + steuerField.setLayoutY(48); + steuerField.setPrefHeight(24); + steuerField.setPrefWidth(80); + steuerField.setFont(Font.font("Dialog", 11)); + steuerField.setText("19.0"); + root.getChildren().add(steuerField); + lEndGehalt.setLayoutX(120); + lEndGehalt.setLayoutY(16); + lEndGehalt.setPrefHeight(24); + lEndGehalt.setPrefWidth(112); + lEndGehalt.setText("End Gehalt: 0"); + lEndGehalt.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lEndGehalt); + lSteuer.setLayoutX(120); + lSteuer.setLayoutY(48); + lSteuer.setPrefHeight(24); + lSteuer.setPrefWidth(112); + lSteuer.setText("Steuer"); + lSteuer.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lSteuer); + bRechnen.setLayoutX(72); + bRechnen.setLayoutY(96); + bRechnen.setPrefHeight(24); + bRechnen.setPrefWidth(80); + bRechnen.setText("Rechnen"); + bRechnen.setOnAction( + (event) -> {bRechnen_Action(event);} + ); + bRechnen.setFont(Font.font("Dialog", 11)); + root.getChildren().add(bRechnen); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("BruttoNetto"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public BruttoNetto + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void bRechnen_Action(Event evt) { + int gehalt = gehaltField.getInt(); + double steuer = steuerField.getDouble(); + steuer = steuer * .01; + lEndGehalt.setText("End Gehalt: " + (gehalt - ((double)gehalt * steuer ))); + lSteuer.setText("Steuer: " + ((double)gehalt * steuer )); + + } // end of bRechnen_Action + + // Ende Methoden +} // end of class BruttoNetto diff --git a/2/Lenj/BruttoNetto.~fm b/2/Lenj/BruttoNetto.~fm new file mode 100644 index 0000000..1a4105b --- /dev/null +++ b/2/Lenj/BruttoNetto.~fm @@ -0,0 +1,210 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 915 + Top = 458 + BorderIcons = [biSystemMenu] + Caption = 'BruttoNetto' + ClientHeight = 223 + ClientWidth = 268 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'BruttoNetto' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object gehaltField: TFXNumberField + Tag = 103 + Left = 8 + Top = 16 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '3000' + Editable = True + PromptText = 'Gehalt' + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object steuerField: TFXNumberField + Tag = 103 + Left = 8 + Top = 48 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 48 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '19.0' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object lEndGehalt: TFXLabel + Tag = 101 + Left = 120 + Top = 16 + Width = 112 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 120 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 112 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'End Gehalt: 0' + TextAlignment = _TA_LEFT + WrapText = False + end + object lSteuer: TFXLabel + Tag = 101 + Left = 120 + Top = 48 + Width = 112 + Height = 24 + Hint = 'label2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 120 + LayoutY = 48 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 112 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Steuer' + TextAlignment = _TA_LEFT + WrapText = False + end + object bRechnen: TFXButton + Tag = 105 + Left = 72 + Top = 96 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 72 + LayoutY = 96 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Rechnen' + TextAlignment = _TA_LEFT + WrapText = False + action = 'bRechnen_Action' + CancelButton = False + DefaultButton = False + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/2/Lenj/Kraftstoffverbrauch.class b/2/Lenj/Kraftstoffverbrauch.class new file mode 100644 index 0000000000000000000000000000000000000000..5dd09e32c00e2581d4c0e0d88599d6b451b374b7 GIT binary patch literal 4083 zcmcInX>=P`75<(rONu;+6UiQOJ4)@KBG*T>j_`?s+yYK1V z@7?`AKlSgGCjcD4KLcn$qYoYlP4F^oIVCU1vx_k~pI4Q%Y%01IJK)j`-m4W&F$WnM zBRx|-_!-un;<2N}T#6f`3Rg1$_|Uip&5(RpD`6d47+S{+dDbkL`t0liH&TXNOlKK< z^Epd`A(*Vihzt4k5<)__WxgV8vHK8a*yQM0NOO(H(z<3Ex*9uJG)-L#pw-r3gM^K^ zjKQBe!P8ldYYd&q=Maqhu!*6gE=N*MaW#Mr8+nU_=b?*XjXGk?@sy?%7&h03wgd@z z8^gvLWK~|$i)L(G)_4G0MG&?#glbqOgmvCT{z-}z;7zF3iU7LND+0EYw2jnWJ1!es zGvmXPr#+&hC+~UJY2{KX)TOB9;cL}OUIg`0W z)nlnsgdgv@(VIAFJKv942B!K!1=!Hv=S`d_2c;FX8+UhPRx1X?XV4FWEOUxToJ@y^ zuP9*wrzyT!S<9%LVRs~1r_kdSbNK?LW^6=!4_P7xg{u`y5^lpw$W7$BW7+}BAJmB| zA*&kobe8xgxxK9}IDryXFRO;Lp zz*)S;hu2DYozS#WrKUW`DJSX6u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SD>x f-^KUv1Bdz{euCc-=TGrx;s_A+7yJ$Xz-9jdL2@2t literal 0 HcmV?d00001 diff --git a/2/Lenj/Kraftstoffverbrauch.java b/2/Lenj/Kraftstoffverbrauch.java new file mode 100644 index 0000000..5945ec6 --- /dev/null +++ b/2/Lenj/Kraftstoffverbrauch.java @@ -0,0 +1,88 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.control.*; +import je.NumberField; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.event.*; + +/** + * + * Beschreibung + * + * @version 1.0 vom 06.11.2024 + * @author + */ + +public class Kraftstoffverbrauch extends Application { + // Anfang Attribute + private NumberField kmField = new NumberField(); + private NumberField kraftstoffField = new NumberField(); + private Button bRechnen = new Button(); + private Label lErgebnis = new Label(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 268, 224); + // Anfang Komponenten + + kmField.setLayoutX(8); + kmField.setLayoutY(24); + kmField.setPrefHeight(24); + kmField.setPrefWidth(80); + kmField.setFont(Font.font("Dialog", 11)); + kmField.setPromptText("Km"); + kmField.setText("56"); + root.getChildren().add(kmField); + kraftstoffField.setLayoutX(128); + kraftstoffField.setLayoutY(24); + kraftstoffField.setPrefHeight(24); + kraftstoffField.setPrefWidth(80); + kraftstoffField.setFont(Font.font("Dialog", 11)); + kraftstoffField.setPromptText("l"); + kraftstoffField.setText("10"); + root.getChildren().add(kraftstoffField); + bRechnen.setLayoutX(72); + bRechnen.setLayoutY(64); + bRechnen.setPrefHeight(24); + bRechnen.setPrefWidth(80); + bRechnen.setText("Rechnen"); + bRechnen.setOnAction( + (event) -> {bRechnen_Action(event);} + ); + bRechnen.setFont(Font.font("Dialog", 11)); + root.getChildren().add(bRechnen); + lErgebnis.setLayoutX(16); + lErgebnis.setLayoutY(112); + lErgebnis.setPrefHeight(24); + lErgebnis.setPrefWidth(248); + lErgebnis.setText(""); + lErgebnis.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lErgebnis); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("Kraftstoffverbrauch"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public Kraftstoffverbrauch + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void bRechnen_Action(Event evt) { + double gefahreneKm = kmField.getDouble(); + double kraftstoffmenge = kraftstoffField.getDouble(); + + lErgebnis.setText("Ergebniss: " + ((kraftstoffmenge/gefahreneKm)*100)); + + } // end of bRechnen_Action + + // Ende Methoden +} // end of class Kraftstoffverbrauch diff --git a/2/Lenj/Kraftstoffverbrauch.jfm b/2/Lenj/Kraftstoffverbrauch.jfm new file mode 100644 index 0000000..a5bda91 --- /dev/null +++ b/2/Lenj/Kraftstoffverbrauch.jfm @@ -0,0 +1,177 @@ +object FGUIForm_1: TFXGuiForm + Tag = 180 + Left = 1077 + Top = 425 + BorderIcons = [biSystemMenu] + Caption = 'Kraftstoffverbrauch' + ClientHeight = 223 + ClientWidth = 268 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'Kraftstoffverbrauch' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object kmField: TFXNumberField + Tag = 103 + Left = 8 + Top = 24 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 24 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '56' + Editable = True + PromptText = 'Km' + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object kraftstoffField: TFXNumberField + Tag = 103 + Left = 128 + Top = 24 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 128 + LayoutY = 24 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '10' + Editable = True + PromptText = 'l' + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object bRechnen: TFXButton + Tag = 105 + Left = 72 + Top = 64 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 72 + LayoutY = 64 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Rechnen' + TextAlignment = _TA_LEFT + WrapText = False + action = 'bRechnen_Action' + CancelButton = False + DefaultButton = False + end + object lErgebnis: TFXLabel + Tag = 101 + Left = 16 + Top = 112 + Width = 248 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 16 + LayoutY = 112 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 248 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = '' + TextAlignment = _TA_LEFT + WrapText = False + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/2/Lenj/Kraftstoffverbrauch.~ava b/2/Lenj/Kraftstoffverbrauch.~ava new file mode 100644 index 0000000..33cc2fd --- /dev/null +++ b/2/Lenj/Kraftstoffverbrauch.~ava @@ -0,0 +1,88 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.control.*; +import je.NumberField; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.event.*; + +/** + * + * Beschreibung + * + * @version 1.0 vom 06.11.2024 + * @author + */ + +public class Kraftstoffverbrauch extends Application { + // Anfang Attribute + private NumberField kmField = new NumberField(); + private NumberField kraftstoffField = new NumberField(); + private Button bRechnen = new Button(); + private Label lErgebnis = new Label(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 268, 224); + // Anfang Komponenten + + kmField.setLayoutX(8); + kmField.setLayoutY(24); + kmField.setPrefHeight(24); + kmField.setPrefWidth(80); + kmField.setFont(Font.font("Dialog", 11)); + kmField.setPromptText("Km"); + kmField.setText("56"); + root.getChildren().add(kmField); + kraftstoffField.setLayoutX(128); + kraftstoffField.setLayoutY(24); + kraftstoffField.setPrefHeight(24); + kraftstoffField.setPrefWidth(80); + kraftstoffField.setFont(Font.font("Dialog", 11)); + kraftstoffField.setPromptText("l"); + kraftstoffField.setText("10"); + root.getChildren().add(kraftstoffField); + bRechnen.setLayoutX(72); + bRechnen.setLayoutY(64); + bRechnen.setPrefHeight(24); + bRechnen.setPrefWidth(80); + bRechnen.setText("Rechnen"); + bRechnen.setOnAction( + (event) -> {bRechnen_Action(event);} + ); + bRechnen.setFont(Font.font("Dialog", 11)); + root.getChildren().add(bRechnen); + lErgebnis.setLayoutX(16); + lErgebnis.setLayoutY(112); + lErgebnis.setPrefHeight(24); + lErgebnis.setPrefWidth(248); + lErgebnis.setText(""); + lErgebnis.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lErgebnis); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("Kraftstoffverbrauch"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public Kraftstoffverbrauch + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void bRechnen_Action(Event evt) { + double gefahreneKm = kmField.getDouble(); + double kraftstoffmenge = kraftstoffField.getDouble(); + + lErgebnis.setText("Kraftstoffverbrauch: " + ((kraftstoffmenge/gefahreneKm)*100)); + + } // end of bRechnen_Action + + // Ende Methoden +} // end of class Kraftstoffverbrauch diff --git a/2/Lenj/Kraftstoffverbrauch.~fm b/2/Lenj/Kraftstoffverbrauch.~fm new file mode 100644 index 0000000..c39bc03 --- /dev/null +++ b/2/Lenj/Kraftstoffverbrauch.~fm @@ -0,0 +1,174 @@ +object FGUIForm_1: TFXGuiForm + Tag = 180 + Left = 1077 + Top = 425 + BorderIcons = [biSystemMenu] + Caption = 'Kraftstoffverbrauch' + ClientHeight = 223 + ClientWidth = 268 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'Kraftstoffverbrauch' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object kmField: TFXNumberField + Tag = 103 + Left = 8 + Top = 24 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 24 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '56' + Editable = True + PromptText = 'Km' + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object kraftstoffField: TFXNumberField + Tag = 103 + Left = 128 + Top = 24 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 128 + LayoutY = 24 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '10' + Editable = True + PromptText = 'l' + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object bRechnen: TFXButton + Tag = 105 + Left = 72 + Top = 64 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 72 + LayoutY = 64 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Rechnen' + TextAlignment = _TA_LEFT + WrapText = False + action = 'bRechnen_Action' + CancelButton = False + DefaultButton = False + end + object lErgebnis: TFXLabel + Tag = 101 + Left = 16 + Top = 112 + Width = 248 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 16 + LayoutY = 112 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 248 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = '' + TextAlignment = _TA_LEFT + WrapText = False + end +end diff --git a/2/Lenj/Quadratzahlen.class b/2/Lenj/Quadratzahlen.class new file mode 100644 index 0000000000000000000000000000000000000000..0379d4c177eaaa7bda82424034aa5811ef41ff9f GIT binary patch literal 3941 zcmcIn`CA-k9sj)SvIEPcY=J;ZAcchFSr(F|CidDSE`eas&0(RCv}!Z#PS`2K44s`N zp+;@BR;$+gsMUJZquyFAOA1!2R;z8i@B0`33LhW!^UmxEBu{_whn@M(`+m>Q_juoZ z;XkY21u%?%gi(ipf}o0egamfntu1QjF2uEk1=C1tu3=m8;R-DfI%rsidsrY4?VnQ6 zAh5kCl1uBB9#7kr>)2-eNZxgAD+~pJMl?ZHutmi+XcpM=n!J{AH1}RDYw8v?&P=$P z;|g@AuA(WS;99b5%8@d1?v$aQ4o?b4l1+rM4c95?RIwdh z0zE}bY1=gQw8SA7A3Hr#`4VWgXL7o;sLh!Au;XY;QkB5&Xn)C4wd~0x1v#bIjl)UJ@ z5k?;dWGM^^bVf_o{mh=y9Nlsgqoe&(p=7eeuV6^U4S1PAIH$WQ&+=)3V3ce!`v+9K zymt3YD0y>5`W6+p%Ka^rKIQ1=j_Jm1)(s^mD=ddqyh5_5MV4t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%4=D9KZp4eY$-^|}<5t9! z2;z(Q5>aiybNDj8!Yp@S8DGWMn9oLh9S`}4QyYghy{cyxAFQ}4|KR}#sq|1)%IfhA ze3R=!9>PTh50fXrwIK;g;2FI0X}p_o1`l;bwmyz7x!Tp$m0e{N@PT@uPCW77e@a^c z$Z~0CxdBO*=P>Cb41O4K9QEw>kSD?deG=dDJQ^woD4}?YJ}gtV5q1AYMEnaoB4IgC zi>}4__F@ZM!iOrc$g04T3g1e55`$2TNqls@^d3*T-RCI#6k=+g up?m=Hk8&NphiCcj;`e3#zR#rns7U=7KgDmz`2zk#jxeb| listView1 = new ListView<>(); + private ObservableList listView1ObservableList = + FXCollections.observableArrayList(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 198, 448); + // Anfang Komponenten + + bStart.setLayoutX(32); + bStart.setLayoutY(32); + bStart.setPrefHeight(24); + bStart.setPrefWidth(80); + bStart.setText("Start"); + bStart.setOnAction( + (event) -> {bStart_Action(event);} + ); + bStart.setFont(Font.font("Dialog", 11)); + root.getChildren().add(bStart); + listView1.setLayoutX(16); + listView1.setLayoutY(80); + listView1.setPrefHeight(360); + listView1.setPrefWidth(128); + listView1.setItems(listView1ObservableList); + + root.getChildren().add(listView1); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("Quadratzahlen"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public Quadratzahlen + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void bStart_Action(Event evt) { + listView1ObservableList.removeAll(); + for (int i = 1; i < 21; i++) { + listView1ObservableList.add(i+". " + i*i); + } + + } // end of bStart_Action + + // Ende Methoden +} // end of class Quadratzahlen diff --git a/2/Lenj/Quadratzahlen.jfm b/2/Lenj/Quadratzahlen.jfm new file mode 100644 index 0000000..32c0081 --- /dev/null +++ b/2/Lenj/Quadratzahlen.jfm @@ -0,0 +1,113 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 852 + Top = 239 + BorderIcons = [biSystemMenu] + Caption = 'Quadratzahlen' + ClientHeight = 447 + ClientWidth = 198 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'Quadratzahlen' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object bStart: TFXButton + Tag = 105 + Left = 32 + Top = 32 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 32 + LayoutY = 32 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Start' + TextAlignment = _TA_LEFT + WrapText = False + action = 'bStart_Action' + CancelButton = False + DefaultButton = False + end + object listView1: TFXListView + Tag = 109 + Left = 16 + Top = 80 + Width = 128 + Height = 360 + Hint = 'listView1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = 13158600 + JavaType = 'ListView' + LayoutX = 16 + LayoutY = 80 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 360 + PrefWidth = 128 + SnapToPixel = False + Editable = False + FixedCellSize = -1 + Items.Strings = ( + 'Amerika' + 'Europa' + 'Asien') + Orientation = VERTICAL + SelectionMode = SINGLE + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/2/Lenj/Quadratzahlen.~ava b/2/Lenj/Quadratzahlen.~ava new file mode 100644 index 0000000..66406d7 --- /dev/null +++ b/2/Lenj/Quadratzahlen.~ava @@ -0,0 +1,72 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.control.*; +import javafx.event.*; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.collections.*; + +/** + * + * Beschreibung + * + * @version 1.0 vom 19.11.2024 + * @author + */ + +public class Quadratzahlen extends Application { + // Anfang Attribute + private Button bStart = new Button(); + private ListView listView1 = new ListView<>(); + private ObservableList listView1ObservableList = + FXCollections.observableArrayList(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 198, 448); + // Anfang Komponenten + + bStart.setLayoutX(32); + bStart.setLayoutY(32); + bStart.setPrefHeight(24); + bStart.setPrefWidth(80); + bStart.setText("Start"); + bStart.setOnAction( + (event) -> {bStart_Action(event);} + ); + bStart.setFont(Font.font("Dialog", 11)); + root.getChildren().add(bStart); + listView1.setLayoutX(16); + listView1.setLayoutY(80); + listView1.setPrefHeight(360); + listView1.setPrefWidth(128); + listView1.setItems(listView1ObservableList); + + root.getChildren().add(listView1); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("Quadratzahlen"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public Quadratzahlen + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void bStart_Action(Event evt) { + listView1ObservableList.remove(0,20); + for (int i = 1; i < 21; i++) { + listView1ObservableList.add(i+". " + i*i); + } + + } // end of bStart_Action + + // Ende Methoden +} // end of class Quadratzahlen diff --git a/2/Lenj/Quadratzahlen.~fm b/2/Lenj/Quadratzahlen.~fm new file mode 100644 index 0000000..32c0081 --- /dev/null +++ b/2/Lenj/Quadratzahlen.~fm @@ -0,0 +1,113 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 852 + Top = 239 + BorderIcons = [biSystemMenu] + Caption = 'Quadratzahlen' + ClientHeight = 447 + ClientWidth = 198 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'Quadratzahlen' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object bStart: TFXButton + Tag = 105 + Left = 32 + Top = 32 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 32 + LayoutY = 32 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Start' + TextAlignment = _TA_LEFT + WrapText = False + action = 'bStart_Action' + CancelButton = False + DefaultButton = False + end + object listView1: TFXListView + Tag = 109 + Left = 16 + Top = 80 + Width = 128 + Height = 360 + Hint = 'listView1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = 13158600 + JavaType = 'ListView' + LayoutX = 16 + LayoutY = 80 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 360 + PrefWidth = 128 + SnapToPixel = False + Editable = False + FixedCellSize = -1 + Items.Strings = ( + 'Amerika' + 'Europa' + 'Asien') + Orientation = VERTICAL + SelectionMode = SINGLE + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/2/Lenj/Steigung.java b/2/Lenj/Steigung.java new file mode 100644 index 0000000..fc0a37f --- /dev/null +++ b/2/Lenj/Steigung.java @@ -0,0 +1,133 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.control.*; +import je.NumberField; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.event.*; + +/** + * + * Beschreibung + * + * @version 1.0 vom 06.11.2024 + * @author + */ + +public class Steigung extends Application { + // Anfang Attribute + private NumberField numberField1 = new NumberField(); + private NumberField numberField2 = new NumberField(); + private NumberField numberField3 = new NumberField(); + private NumberField numberField4 = new NumberField(); + private Button bRechnen = new Button(); + private Label lergebnis = new Label(); + private Label lX = new Label(); + private Label lY = new Label(); + private Label lX21 = new Label(); + private Label lY21 = new Label(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 313, 242); + // Anfang Komponenten + + numberField1.setLayoutX(8); + numberField1.setLayoutY(40); + numberField1.setPrefHeight(24); + numberField1.setPrefWidth(80); + numberField1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(numberField1); + numberField2.setLayoutX(8); + numberField2.setLayoutY(88); + numberField2.setPrefHeight(24); + numberField2.setPrefWidth(80); + numberField2.setFont(Font.font("Dialog", 11)); + root.getChildren().add(numberField2); + numberField3.setLayoutX(184); + numberField3.setLayoutY(40); + numberField3.setPrefHeight(24); + numberField3.setPrefWidth(80); + numberField3.setFont(Font.font("Dialog", 11)); + root.getChildren().add(numberField3); + numberField4.setLayoutX(184); + numberField4.setLayoutY(88); + numberField4.setPrefHeight(24); + numberField4.setPrefWidth(80); + numberField4.setFont(Font.font("Dialog", 11)); + root.getChildren().add(numberField4); + bRechnen.setLayoutX(104); + bRechnen.setLayoutY(136); + bRechnen.setPrefHeight(24); + bRechnen.setPrefWidth(80); + bRechnen.setText("Rechnen"); + bRechnen.setOnAction( + (event) -> {bRechnen_Action(event);} + ); + bRechnen.setFont(Font.font("Dialog", 11)); + root.getChildren().add(bRechnen); + lergebnis.setLayoutX(16); + lergebnis.setLayoutY(184); + lergebnis.setPrefHeight(24); + lergebnis.setPrefWidth(168); + lergebnis.setText("ergebnis"); + lergebnis.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lergebnis); + lX.setLayoutX(8); + lX.setLayoutY(16); + lX.setPrefHeight(24); + lX.setPrefWidth(80); + lX.setText("X1"); + lX.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lX); + lY.setLayoutX(8); + lY.setLayoutY(64); + lY.setPrefHeight(24); + lY.setPrefWidth(80); + lY.setText("Y2"); + lY.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lY); + lX21.setLayoutX(184); + lX21.setLayoutY(16); + lX21.setPrefHeight(24); + lX21.setPrefWidth(80); + lX21.setText("X2"); + lX21.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lX21); + lY21.setLayoutX(184); + lY21.setLayoutY(64); + lY21.setPrefHeight(24); + lY21.setPrefWidth(80); + lY21.setText("Y2"); + lY21.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lY21); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("Steigung"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public Steigung + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void bRechnen_Action(Event evt) { + double x1 = 4; + double y1 = 2; + + double x2 = 6; + double y2 = 7; + + System.out.println("Steigung: " + ((y2 - y1)/(x2 - x1))); + + } // end of bRechnen_Action + + // Ende Methoden +} // end of class Steigung diff --git a/2/Lenj/Steigung.jfm b/2/Lenj/Steigung.jfm new file mode 100644 index 0000000..b64aa31 --- /dev/null +++ b/2/Lenj/Steigung.jfm @@ -0,0 +1,371 @@ +object FGUIForm_2: TFXGuiForm + Tag = 180 + Left = 664 + Top = 372 + BorderIcons = [biSystemMenu] + Caption = 'Steigung' + ClientHeight = 241 + ClientWidth = 313 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'Steigung' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object numberField1: TFXNumberField + Tag = 103 + Left = 8 + Top = 40 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 40 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object numberField2: TFXNumberField + Tag = 103 + Left = 8 + Top = 88 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 88 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object numberField3: TFXNumberField + Tag = 103 + Left = 184 + Top = 40 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField3' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 184 + LayoutY = 40 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object numberField4: TFXNumberField + Tag = 103 + Left = 184 + Top = 88 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField4' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 184 + LayoutY = 88 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object bRechnen: TFXButton + Tag = 105 + Left = 104 + Top = 136 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 104 + LayoutY = 136 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Rechnen' + TextAlignment = _TA_LEFT + WrapText = False + action = 'bRechnen_Action' + CancelButton = False + DefaultButton = False + end + object lergebnis: TFXLabel + Tag = 101 + Left = 16 + Top = 184 + Width = 168 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 16 + LayoutY = 184 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 168 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'ergebnis' + TextAlignment = _TA_LEFT + WrapText = False + end + object lX: TFXLabel + Tag = 101 + Left = 8 + Top = 16 + Width = 80 + Height = 24 + Hint = 'label2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 8 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'X1' + TextAlignment = _TA_LEFT + WrapText = False + end + object lY: TFXLabel + Tag = 101 + Left = 8 + Top = 64 + Width = 80 + Height = 24 + Hint = 'label3' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 8 + LayoutY = 64 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Y2' + TextAlignment = _TA_LEFT + WrapText = False + end + object lX21: TFXLabel + Tag = 101 + Left = 184 + Top = 16 + Width = 80 + Height = 24 + Hint = 'label4' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 184 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'X2' + TextAlignment = _TA_LEFT + WrapText = False + end + object lY21: TFXLabel + Tag = 101 + Left = 184 + Top = 64 + Width = 80 + Height = 24 + Hint = 'label5' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 184 + LayoutY = 64 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Y2' + TextAlignment = _TA_LEFT + WrapText = False + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/2/Lenj/Steigung.~ava b/2/Lenj/Steigung.~ava new file mode 100644 index 0000000..1dd79c7 --- /dev/null +++ b/2/Lenj/Steigung.~ava @@ -0,0 +1,133 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.control.*; +import je.NumberField; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.event.*; + +/** + * + * Beschreibung + * + * @version 1.0 vom 06.11.2024 + * @author + */ + +public class Steigung extends Application { + // Anfang Attribute + private NumberField numberField1 = new NumberField(); + private NumberField numberField2 = new NumberField(); + private NumberField numberField3 = new NumberField(); + private NumberField numberField4 = new NumberField(); + private Button bRechnen = new Button(); + private Label lergebnis = new Label(); + private Label lX = new Label(); + private Label lY = new Label(); + private Label lX21 = new Label(); + private Label lY21 = new Label(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 313, 242); + // Anfang Komponenten + + numberField1.setLayoutX(8); + numberField1.setLayoutY(40); + numberField1.setPrefHeight(24); + numberField1.setPrefWidth(80); + numberField1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(numberField1); + numberField2.setLayoutX(8); + numberField2.setLayoutY(88); + numberField2.setPrefHeight(24); + numberField2.setPrefWidth(80); + numberField2.setFont(Font.font("Dialog", 11)); + root.getChildren().add(numberField2); + numberField3.setLayoutX(184); + numberField3.setLayoutY(40); + numberField3.setPrefHeight(24); + numberField3.setPrefWidth(80); + numberField3.setFont(Font.font("Dialog", 11)); + root.getChildren().add(numberField3); + numberField4.setLayoutX(184); + numberField4.setLayoutY(88); + numberField4.setPrefHeight(24); + numberField4.setPrefWidth(80); + numberField4.setFont(Font.font("Dialog", 11)); + root.getChildren().add(numberField4); + bRechnen.setLayoutX(104); + bRechnen.setLayoutY(136); + bRechnen.setPrefHeight(24); + bRechnen.setPrefWidth(80); + bRechnen.setText("Rechnen"); + bRechnen.setOnAction( + (event) -> {bRechnen_Action(event);} + ); + bRechnen.setFont(Font.font("Dialog", 11)); + root.getChildren().add(bRechnen); + lergebnis.setLayoutX(16); + lergebnis.setLayoutY(184); + lergebnis.setPrefHeight(24); + lergebnis.setPrefWidth(168); + lergebnis.setText("ergebnis"); + lergebnis.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lergebnis); + lX.setLayoutX(8); + lX.setLayoutY(16); + lX.setPrefHeight(24); + lX.setPrefWidth(80); + lX.setText("X1"); + lX.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lX); + lY.setLayoutX(8); + lY.setLayoutY(64); + lY.setPrefHeight(24); + lY.setPrefWidth(80); + lY.setText("Y2"); + lY.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lY); + lX21.setLayoutX(184); + lX21.setLayoutY(16); + lX21.setPrefHeight(24); + lX21.setPrefWidth(80); + lX21.setText("X2"); + lX21.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lX21); + lY21.setLayoutX(184); + lY21.setLayoutY(64); + lY21.setPrefHeight(24); + lY21.setPrefWidth(80); + lY21.setText("Y2"); + lY21.setFont(Font.font("Dialog", 11)); + root.getChildren().add(lY21); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("Steigung"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public Steigung + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void bRechnen_Action(Event evt) { + double x1 = ; + double y1 = 2; + + double x2 = 6; + double y2 = 7; + + System.out.println("Steigung: " + ((y2 - y1)/(x2 - x1))); + + } // end of bRechnen_Action + + // Ende Methoden +} // end of class Steigung diff --git a/2/Lenj/Steigung.~fm b/2/Lenj/Steigung.~fm new file mode 100644 index 0000000..f3c9ed4 --- /dev/null +++ b/2/Lenj/Steigung.~fm @@ -0,0 +1,368 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 664 + Top = 372 + BorderIcons = [biSystemMenu] + Caption = 'Steigung' + ClientHeight = 241 + ClientWidth = 313 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'Steigung' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object numberField1: TFXNumberField + Tag = 103 + Left = 8 + Top = 40 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 40 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object numberField2: TFXNumberField + Tag = 103 + Left = 8 + Top = 88 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 88 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object numberField3: TFXNumberField + Tag = 103 + Left = 184 + Top = 40 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField3' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 184 + LayoutY = 40 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object numberField4: TFXNumberField + Tag = 103 + Left = 184 + Top = 88 + Width = 80 + Height = 24 + Cursor = crIBeam + Hint = 'numberField4' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 184 + LayoutY = 88 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Text = '' + Editable = True + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object bRechnen: TFXButton + Tag = 105 + Left = 104 + Top = 136 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 104 + LayoutY = 136 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Rechnen' + TextAlignment = _TA_LEFT + WrapText = False + action = 'bRechnen_Action' + CancelButton = False + DefaultButton = False + end + object lergebnis: TFXLabel + Tag = 101 + Left = 16 + Top = 184 + Width = 168 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 16 + LayoutY = 184 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 168 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'ergebnis' + TextAlignment = _TA_LEFT + WrapText = False + end + object lX: TFXLabel + Tag = 101 + Left = 8 + Top = 16 + Width = 80 + Height = 24 + Hint = 'label2' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 8 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'X1' + TextAlignment = _TA_LEFT + WrapText = False + end + object lY: TFXLabel + Tag = 101 + Left = 8 + Top = 64 + Width = 80 + Height = 24 + Hint = 'label3' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 8 + LayoutY = 64 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Y2' + TextAlignment = _TA_LEFT + WrapText = False + end + object lX21: TFXLabel + Tag = 101 + Left = 184 + Top = 16 + Width = 80 + Height = 24 + Hint = 'label4' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 184 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'X2' + TextAlignment = _TA_LEFT + WrapText = False + end + object lY21: TFXLabel + Tag = 101 + Left = 184 + Top = 64 + Width = 80 + Height = 24 + Hint = 'label5' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 184 + LayoutY = 64 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Y2' + TextAlignment = _TA_LEFT + WrapText = False + end +end diff --git a/2/Lenj/error.txt b/2/Lenj/error.txt new file mode 100644 index 0000000..e69de29 diff --git a/2/Lenj/game$TimerMethod.class b/2/Lenj/game$TimerMethod.class new file mode 100644 index 0000000000000000000000000000000000000000..5c51a59923687eda79ce48f070ebf7f14ec0365e GIT binary patch literal 568 zcmZ8eT~8B16g{&o-49l}A|irXAUu?sSl%%NLPC&KLLw=NK26(!4(ZOA-L3lQUozn% z@xdR!k0PGgA`oBZ+&kyobLZZZ-F82vVs{$J(y~VRO=Ey-Rl24#?I!+Ni^E+EdxF?2ULc+p&E)>dH*J{O+>q z9_qONXV~OilWC4*#(ss$sH+X7891|Q^T0K$82ep790)|8>^SSIJ?+@gxxI5k@|lM! zFZOL-2*e+ZQQ7WD=DDKT^rMwwg*y$nUXdhjtBgEQf?47-W?Mv$7`5JBLbR^o|0*?e zJZn?}CwR_texf42U`BoECa}PGin5;x#V@hQ)7fqlE5x960da*V52jIR^cgFQ>$YyXFL8tHm^R(FG;Py;-+t>~(XZ#u4B8C+%J(tz=DmB*yZ7AXJ-zUs ztIq@2kAHY?xEiu1t3*L}gk#5yA!yn}WRy z8N)IX8Q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8j)JWTgaJr zSkx};<+(m;&p8=`jf9xq)#hf&Q67!MJQ;=zNdU4LIl#CST=pQpSr;PsQDw9}c>j=Q zwA&l;6UpVDDtreQBe=+k7iHq-3eV$01Q*(y@RCgYO5rM&BUt9dZ^QTnv}okLgx6k<*hsv0ot(n_u9Iu6_vT%d?=U5JyXNz= z{CW`e905Dym!ZWw>i@ljP`sn=r6sJ3*DoOwU&i{0%eZa{ozHk6PxIMH0C_g>`rAs- zD7vr_oAEi$DjyD?#~1je@kIZkzm?Vn-t0N|)G{^^a`VtKwoL4aKa0>JAL|w`W7{wX zooz+j7`$(iH~&M6Mf3#YbsURUXZ$J>KoPg@DdKjScn--rj0a2mW$8fgRSd}BaBp;| zh~eJ8B98SIahz^VOwi>AmT-~^CySUYyLSK)nz^0K?x17c*oj@dAm4=Bu^TDgphx(1 z5_>SiJD!Vuco?_x9KH>YQsN2RfhT$86e{Ary8#t+9ACnhNk%iJzJjkZGF^BCU&GfK zgBDVG)+dT+>>1Q=j9 zxb={PY~ve@OBnZ}gEw8F$G0|G!j2M~IgTryme#@HbEPu4lUoSoDo*UqBAzJX{k3MF zq}it`m=Da3grz42#wPgoLRWtUPn7|r+Q4k74BI#HEg(`S9X3!FBgE6DI9>gCt#)69 zS4}0an(%F5j5uuFtKodA7N=)T9AT#c-=zh0_#VE`cLQf8@B@yvli}a+|A+W7UI<1% e!!Lr-FY#;qnNsr8XM*|t7wY{Lf5$&@!+!xo4+N6{ literal 0 HcmV?d00001 diff --git a/2/Lenj/game.java b/2/Lenj/game.java new file mode 100644 index 0000000..f0eb7ce --- /dev/null +++ b/2/Lenj/game.java @@ -0,0 +1,96 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.canvas.*; +import javafx.scene.control.*; +import javafx.scene.canvas.GraphicsContext; +import javafx.scene.paint.Color; +import java.lang.Thread; +import javafx.animation.AnimationTimer; +import javafx.scene.input.*; +import javafx.event.*; +import javafx.scene.input.KeyCodeCombination; +/** + * + * Beschreibung + * + * @version 1.0 vom 19.11.2024 + * @author + */ + +public class game extends Application { + // Anfang Attribute + public int gameWidth = 1000; + public int gameHeight = 720; + private AnimationTimer timer; + private int X = 0; + private Canvas main = new Canvas(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, gameWidth, gameHeight); + // Anfang Komponenten + + main.setLayoutX(0); + main.setLayoutY(0); + main.setWidth(gameWidth); + main.setHeight(gameHeight); + main.setOnKeyPressed( + (event) -> {main_KeyPressed(event);} + ); + root.getChildren().add(main); + main.setOnMouseClicked( + (event) -> {main_MouseClicked(event);} + ); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("game"); + primaryStage.setScene(scene); + primaryStage.show(); + + + timer = new TimerMethod(); + timer.start(); + + + + } // end of public game + + // Anfang Methoden + + public static void main(String[] args){ + launch(args); + // end of while + } // end of main + public void draw(GraphicsContext context) { + context.setFill(Color.BLUE); + context.fillRect(X,0,X+100,100); + context.clearRect(0,0,gameWidth,gameHeight); + + } + public void main_MouseClicked(MouseEvent evt) { + X+=10; + + } // end of main_MouseClicked + + public void main_KeyPressed(KeyEvent evt) { + if(evt.getCode() == KeyCode.ENTER) { + timer.stop(); + } + + } // end of main_KeyPressed + + // Ende Methoden + public class TimerMethod extends AnimationTimer { + @Override + public void handle(long now) { + mainLoop(); + } + } + public void mainLoop() { + draw(main.getGraphicsContext2D()); + } +} // end of class game diff --git a/2/Lenj/game.jfm b/2/Lenj/game.jfm new file mode 100644 index 0000000..79fc608 --- /dev/null +++ b/2/Lenj/game.jfm @@ -0,0 +1,67 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 747 + Top = 452 + BorderIcons = [biSystemMenu] + Caption = 'game' + ClientHeight = 434 + ClientWidth = 534 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'game' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object main: TFXCanvas + Tag = 114 + Left = 0 + Top = 0 + Width = 536 + Height = 432 + Hint = 'canvas1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Canvas' + LayoutX = 0 + LayoutY = 0 + Disable = False + Cache = False + dragOver = '' + keyPressed = 'main_KeyPressed' + mouseClicked = 'main_MouseClicked' + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/2/Lenj/game.~ava b/2/Lenj/game.~ava new file mode 100644 index 0000000..24416c7 --- /dev/null +++ b/2/Lenj/game.~ava @@ -0,0 +1,96 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.canvas.*; +import javafx.scene.control.*; +import javafx.scene.canvas.GraphicsContext; +import javafx.scene.paint.Color; +import java.lang.Thread; +import javafx.animation.AnimationTimer; +import javafx.scene.input.*; +import javafx.event.*; +import javafx.scene.input.KeyCodeCombination; +/** + * + * Beschreibung + * + * @version 1.0 vom 19.11.2024 + * @author + */ + +public class game extends Application { + // Anfang Attribute + public int gameWidth = 1000; + public int gameHeight = 720; + private AnimationTimer timer; + private int X = 0; + private Canvas main = new Canvas(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, gameWidth, gameHeight); + // Anfang Komponenten + + main.setLayoutX(0); + main.setLayoutY(0); + main.setWidth(gameWidth); + main.setHeight(gameHeight); + main.setOnKeyPressed( + (event) -> {main_KeyPressed(event);} + ); + root.getChildren().add(main); + main.setOnMouseClicked( + (event) -> {main_MouseClicked(event);} + ); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("game"); + primaryStage.setScene(scene); + primaryStage.show(); + + + timer = new TimerMethod(); + timer.start(); + + draw(main.getGraphicsContext2D()); + + } // end of public game + + // Anfang Methoden + + public static void main(String[] args){ + launch(args); + // end of while + } // end of main + public void draw(GraphicsContext context) { + context.setFill(Color.BLUE); + context.fillRect(X,0,X+100,100); + context.clearRect(0,0,gameWidth,gameHeight); + + } + public void main_MouseClicked(MouseEvent evt) { + X+=10; + + } // end of main_MouseClicked + + public void main_KeyPressed(KeyEvent evt) { + if(evt.getCode() == KeyCode.ENTER) { + timer.stop(); + } + + } // end of main_KeyPressed + + // Ende Methoden + public class TimerMethod extends AnimationTimer { + @Override + public void handle(long now) { + mainLoop(); + } + } + public void mainLoop() { + draw(main.getGraphicsContext2D()); + } +} // end of class game diff --git a/2/Lenj/game.~fm b/2/Lenj/game.~fm new file mode 100644 index 0000000..79fc608 --- /dev/null +++ b/2/Lenj/game.~fm @@ -0,0 +1,67 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 747 + Top = 452 + BorderIcons = [biSystemMenu] + Caption = 'game' + ClientHeight = 434 + ClientWidth = 534 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'game' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object main: TFXCanvas + Tag = 114 + Left = 0 + Top = 0 + Width = 536 + Height = 432 + Hint = 'canvas1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Canvas' + LayoutX = 0 + LayoutY = 0 + Disable = False + Cache = False + dragOver = '' + keyPressed = 'main_KeyPressed' + mouseClicked = 'main_MouseClicked' + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/2/Lenj/test.class b/2/Lenj/test.class new file mode 100644 index 0000000000000000000000000000000000000000..7e4048ab1c5d5dec042c35ecc0ab93ae19e022df GIT binary patch literal 4527 zcma)A32+-%8UCIRNtQRUqd0M5CvNV@b`rG-2w!IZGRE$_=I5gcJ6no1e^h-&F(GScDE0=`{(Qnz*s zREApz{Rjv&nIdw=+SmOesSFSBmuvo4s?%G~W9~-y)SRye0xE48(ofy{A zJ-TKjf@pLdX;!cd%NfR~oW4q+K3>Wh_2UYG=CV%h$y%0~45G!=wMxNitP$`JJM&bw zynHaO95t^aOIgivJ!1{(+Efs0UEQq;+R!dgW8_w-{fhG1^Rm$(He!<>5d~L*>??AX zMoh!dMr0*3k)Fey-bi4fIh@hblj^Xcb)?hkv{WUqHr$%GR4m(9;FWAnZMG_MkMFr!&<$IfA*GE6qP+O43cbaluV+wMv4Q*fHWSoG+HT#o>`E`V<_LEJ}{WfouTRab{mOW33qA2GEmZl664A^%x|C$U2~% zV)7TcQA7+iITq=+(qxRb4hBFUeO^g8v95f<8qqDM_W5F} zH`V8hZSY3J0lb!ZahsQ9e!YS-5+g3+%!!nP6klvGFViAT40t1&Xu&@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LkF?wPj92sfu%5MBg#cfS%~;1<&3Z&w@f~PIClL`RE|2p0rePB= zpb?zr6YdPI!X4O*dx?tsiPQ&))kk@4eFEF?B(~!zN2WHb0bQp)}%n-NG5hnGRV`;Ig zEguNe{Wts_qCO~lcFtxb?{wvP{J>Kw_dfW*^Y&de{)vA9^%e32$O-SH0qL->jaB~f z< listView1 = new ListView<>(); + private ObservableList listView1ObservableList = + FXCollections.observableArrayList(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, windowWidth, windowHeight); + // Anfang Komponenten + + title.setLayoutX(8); + title.setLayoutY(8); + title.setPrefHeight(24); + title.setPrefWidth(264); + title.setText("Just Testing"); + title.setFont(Font.font("Dialog", 15)); + + title.setContentDisplay(ContentDisplay.CENTER); + root.getChildren().add(title); + field1.setLayoutX(8); + field1.setLayoutY(40); + field1.setPrefHeight(24); + field1.setPrefWidth(136); + field1.setFont(Font.font("Dialog", 14)); + field1.setPromptText("Number"); + root.getChildren().add(field1); + button1.setLayoutX(88); + button1.setLayoutY(80); + button1.setPrefHeight(24); + button1.setPrefWidth(80); + button1.setText("Button"); + button1.setOnAction( + (event) -> {button1_Action(event);} + ); + button1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(button1); + listView1.setLayoutX(0); + listView1.setLayoutY(104); + listView1.setPrefHeight(112); + listView1.setPrefWidth(120); + listView1.setItems(listView1ObservableList); + listView1ObservableList.add("Amerika"); + listView1ObservableList.add("Europa"); + listView1ObservableList.add("Asien"); + root.getChildren().add(listView1); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("test"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public test + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void button1_Action(Event evt) { + title.setText("wadaw"); + System.out.println(field1.getInt() * 123); + listView1ObservableList.add("Asien"); + + } // end of button1_Action + + // Ende Methoden +} // end of class test diff --git a/2/Lenj/test.jfm b/2/Lenj/test.jfm new file mode 100644 index 0000000..57e065e --- /dev/null +++ b/2/Lenj/test.jfm @@ -0,0 +1,179 @@ +object FGUIForm_3: TFXGuiForm + Tag = 180 + Left = 727 + Top = 322 + BorderIcons = [biSystemMenu] + Caption = 'test' + ClientHeight = 217 + ClientWidth = 281 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'test' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object title: TFXLabel + Tag = 101 + Left = 8 + Top = 8 + Width = 264 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 8 + LayoutY = 8 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 264 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_CENTER + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Label' + TextAlignment = _TA_LEFT + WrapText = False + LabelFor = 'Just Testing' + end + object field1: TFXNumberField + Tag = 103 + Left = 8 + Top = 40 + Width = 136 + Height = 24 + Cursor = crIBeam + Hint = 'numberField1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 40 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 136 + SnapToPixel = False + Text = '' + Editable = True + PromptText = 'Number' + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object button1: TFXButton + Tag = 105 + Left = 88 + Top = 80 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 88 + LayoutY = 80 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Button' + TextAlignment = _TA_LEFT + WrapText = False + action = 'button1_Action' + CancelButton = False + DefaultButton = False + end + object listView1: TFXListView + Tag = 109 + Left = 0 + Top = 104 + Width = 120 + Height = 112 + Hint = 'listView1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = 13158600 + JavaType = 'ListView' + LayoutX = 0 + LayoutY = 104 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 112 + PrefWidth = 120 + SnapToPixel = False + Editable = False + FixedCellSize = -1 + Items.Strings = ( + 'Amerika' + 'Europa' + 'Asien') + Orientation = VERTICAL + SelectionMode = SINGLE + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/2/Lenj/test.~ava b/2/Lenj/test.~ava new file mode 100644 index 0000000..fa61977 --- /dev/null +++ b/2/Lenj/test.~ava @@ -0,0 +1,95 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.control.*; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import je.NumberField; +import javafx.event.*; +import javafx.collections.*; + +/** + * + * Beschreibung + * + * @version 1.0 vom 06.11.2024 + * @author + */ + +public class test extends Application { + // Anfang Attribute + public Label title = new Label(); + + private int windowWidth = 500; + private int windowHeight = 300; + private NumberField field1 = new NumberField(); + private Button button1 = new Button(); + private ListView listView1 = new ListView<>(); + private ObservableList listView1ObservableList = + FXCollections.observableArrayList(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, windowWidth, windowHeight); + // Anfang Komponenten + + title.setLayoutX(8); + title.setLayoutY(8); + title.setPrefHeight(24); + title.setPrefWidth(264); + title.setText("Just Testing"); + title.setFont(Font.font("Dialog", 15)); + + title.setContentDisplay(ContentDisplay.CENTER); + root.getChildren().add(title); + field1.setLayoutX(8); + field1.setLayoutY(40); + field1.setPrefHeight(24); + field1.setPrefWidth(136); + field1.setFont(Font.font("Dialog", 14)); + field1.setPromptText("Number"); + root.getChildren().add(field1); + button1.setLayoutX(88); + button1.setLayoutY(80); + button1.setPrefHeight(24); + button1.setPrefWidth(80); + button1.setText("Button"); + button1.setOnAction( + (event) -> {button1_Action(event);} + ); + button1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(button1); + listView1.setLayoutX(0); + listView1.setLayoutY(104); + listView1.setPrefHeight(112); + listView1.setPrefWidth(120); + listView1.setItems(listView1ObservableList); + listView1ObservableList.add("Amerika"); + listView1ObservableList.add("Europa"); + listView1ObservableList.add("Asien"); + root.getChildren().add(listView1); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("test"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public test + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void button1_Action(Event evt) { + title.setText("wadaw"); + System.out.println(field1.getInt() * 123); + listView1ObservableList.add("adfe"); + + } // end of button1_Action + + // Ende Methoden +} // end of class test diff --git a/2/Lenj/test.~fm b/2/Lenj/test.~fm new file mode 100644 index 0000000..352af73 --- /dev/null +++ b/2/Lenj/test.~fm @@ -0,0 +1,176 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 727 + Top = 322 + BorderIcons = [biSystemMenu] + Caption = 'test' + ClientHeight = 217 + ClientWidth = 281 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'test' + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object title: TFXLabel + Tag = 101 + Left = 8 + Top = 8 + Width = 264 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 8 + LayoutY = 8 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 264 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_CENTER + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Label' + TextAlignment = _TA_LEFT + WrapText = False + LabelFor = 'Just Testing' + end + object field1: TFXNumberField + Tag = 103 + Left = 8 + Top = 40 + Width = 136 + Height = 24 + Cursor = crIBeam + Hint = 'numberField1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clWhite + JavaType = 'NumberField' + LayoutX = 8 + LayoutY = 40 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 136 + SnapToPixel = False + Text = '' + Editable = True + PromptText = 'Number' + Alignment = CENTER_LEFT + PrefColumnCount = 12 + action = '' + end + object button1: TFXButton + Tag = 105 + Left = 88 + Top = 80 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 88 + LayoutY = 80 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Button' + TextAlignment = _TA_LEFT + WrapText = False + action = 'button1_Action' + CancelButton = False + DefaultButton = False + end + object listView1: TFXListView + Tag = 109 + Left = 0 + Top = 104 + Width = 120 + Height = 112 + Hint = 'listView1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = 13158600 + JavaType = 'ListView' + LayoutX = 0 + LayoutY = 104 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 112 + PrefWidth = 120 + SnapToPixel = False + Editable = False + FixedCellSize = -1 + Items.Strings = ( + 'Amerika' + 'Europa' + 'Asien') + Orientation = VERTICAL + SelectionMode = SINGLE + end +end diff --git a/2/Quadratzahlen.class b/2/Quadratzahlen.class new file mode 100644 index 0000000000000000000000000000000000000000..353c3f1b79a7a03f4cbaa1f445e02e390eae0732 GIT binary patch literal 1100 zcmaJ=TW=CU7(GKN3%D%^mRhNm)>fCQ#rvf+CJJe60$xH>AAA~MQl>0BxI5I;XOsQ~ z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0000000..f6dd7a6 --- /dev/null +++ b/2/Sparbuch.java @@ -0,0 +1,11 @@ +public class Sparbuch { + public static void main(String args[]) { + int betrag = 1000; + double zinssatz = 1.5; + System.out.println(zinssatz * .01); + for (int i = 0;i < 26;i++ ) { + betrag += (double)betrag * (zinssatz * .01); + System.out.println("Jahr: " + i + " Betrag: " + betrag); + } // end of for + } + } \ No newline at end of file diff --git a/2/Sparbuch.~ava b/2/Sparbuch.~ava new file mode 100644 index 0000000..7f811bb --- /dev/null +++ b/2/Sparbuch.~ava @@ -0,0 +1,11 @@ +public class Sparbuch { + public static void main(String args[]) { + int betrag = 1000; + double zinssatz = 11.5; + System.out.println(zinssatz * .01); + for (int i = 0;i < 26;i++ ) { + betrag += (double)betrag * (zinssatz * .01); + System.out.println("Jahr: " + i + " Betrag: " + betrag); + } // end of for + } + } \ No newline at end of file diff --git a/2/Steigung.class b/2/Steigung.class new file mode 100644 index 0000000000000000000000000000000000000000..8c8f68bcab2383bc296b37946d0cb29c6998d0dc GIT binary patch literal 1096 zcmaJ=TTc@~6#k~SEu{o31qvd9g0!eq5HC>FY6(G8FG&eL_%xJBS=jD0yHi4cgzx?h zeb9sle}F&A_-z+L35~niIo~;R&UY@e^XKo`Zvd}RP9cJ*g;*MKBm_o|u5DflMDvBcM0td9d=llZ2tY1GiSl#^1~7sf7BXp!B723h*71#Ml1aBo zJXY-{vvu*4XS=3mJSCf@3`xe*m_SZoqA8D6MZ0xrKHKJy$T!k8K4bG+g)qEZD`Rc9 zQA%M7H!V!3aSJm7qkZ@VtX7cCaRZX;6oowtvjWMQQFf#4HUwf7eV_z}tG25?w43|N z+m-tcEt#sWOJ`4dcA%ddW9HCieW~gNL5U1aX*1n;{!71n+?QU1F{6F91tO;_0%D7x zLl8M#4G@=9O}D+e+O~sIhAy%#2Q72vZ?rbP@nq}0GKc!WPvWt_;Dy)5tQbzOc=NBB3EdJp}aq9PrqW*fypr{B7+@+yw>edSx&6j->{Q@>Iz@b{kizbh|7 z*caw-o0ledA`ro~;W|gHNGT}eOTQq#cen3w4YtAWF4uJEfO#xX8^Ap*(h>xJg+(1$ z%);8qV&GjCgX{4uhSseg7|vORMlQbC&}SF}eq!>Heu@czC}Mn*#6u*?bg2isDc4vb zX^}^PGDh1H?lWnUT|6L)GGYo3iQ8|nSodYh%JB^q$(yR zEi)&zSg$xaqckT~FDE}aF()RsGCMyfQ7v2c;X3Nh}~f$SNKnb^*p!2}3GFCPO|$5zrNR zKz0#O9Hg5Mh{3wATj)Jd2I>a!VV+o)m8@Yq^^)M$YYYecZ%SMMc|s1P0Okph!(-rH Li2=I_Bo6}s2a1Ng literal 0 HcmV?d00001 diff --git a/3/A1.class b/3/A1.class new file mode 100644 index 0000000000000000000000000000000000000000..92198cdcba89044354b21f87a28bc7222f2890bd GIT binary patch literal 685 zcmZuvTTc@~7(LSqvt1V`EmQ@sDB6OdH1UC?L~NR9f~9Dd^u?!XS6v1k&Y7CkF>P3D?6dc>lHgm*Y4Xu`8T#XswkH>9G1f(kAxfC{UxigC&8~ zK)J|cMWW!Lh*g2&oL&KWVJC-%WaTMaB8ybo^y`(5gA&P(l!H40853yZV4Yr@p2R)Y z8a0N^@GKBmZfO&=C!=l&M6DzKIv#2H_ufhAesV;eyn<*kJZI&mFtI-s29A^R*Y=acI`*NV{Gt2>`6h` zC*ggcQI%HEX19Msd{4>`c-u0FhrGRM10InC$YB#tn6bk@NoGk;^X6dV8y%h#B10Sz zFNrqsmKYE(2tyqHfGjNj!m_n%v|mxQ?(JFXF0Iv)hSjpkU&H!o%HD&-J~h0Cizb!5 n!xDU~Bsxn|EqIEpr2hk+;W?F-8M(;*!=8|?l+09^Nn!g2E5Lmp literal 0 HcmV?d00001 diff --git a/3/A1.java b/3/A1.java new file mode 100644 index 0000000..f1e30d6 --- /dev/null +++ b/3/A1.java @@ -0,0 +1,18 @@ +public class A1{ + public static void main(String args[]) { + char firstChar = 'n'; + + switch (firstChar) { + case 'j': + System.out.println("ja"); // kein Break + case 'J': + System.out.println("Ja"); + break; + case 'n': + System.out.println("nein"); // kein Break + case 'N': + System.out.println("Nein"); + break; + } // es gibt kein default + } +} \ No newline at end of file diff --git a/3/A1.~ava b/3/A1.~ava new file mode 100644 index 0000000..91720e9 --- /dev/null +++ b/3/A1.~ava @@ -0,0 +1,18 @@ +public class A1{ + public static void main(String args[]) { + char firstChar = 'n'; + + switch (firstChar) { + case 'j': + System.out.println("ja"); // kein Break + case 'J': + System.out.println("Ja"); + break; + case 'n': + System.out.println("nein"); + case 'N': + System.out.println("Nein"); + break; + } // es gibt kein default + } +} \ No newline at end of file diff --git a/3/Alter.class b/3/Alter.class new file mode 100644 index 0000000000000000000000000000000000000000..17f090be6be4cecb3c211c0801547144f32aff00 GIT binary patch literal 700 zcmZuv%Wl&^6g?9svEwGKle8%`P~4V>1A>Uhid0Ay6$mLjgi$tKP0Yxd;EXG0jKpv7 z3Ei-U1xPIT0KN$!?%3HN#gb>{o_p>&NA~>w`|}ro6AWBbVA-fPQA3@F`Y^l@4_#_+sQ> zlc9Gih5uG4EquAuzEplFqnUQ$p>3nnL>Jo(-8J(J_PJ3@6d44iLlKqarHV&`iGv

8pfrCp7yQjH7HI95LGGC?9%%A5fKCrRJP&-Mq$QY_m)Axd5Yb=#` zl`n|-j!zRpI^#6r$%JRp)GM&6XL3oY#>MoA#ur>txL$C!E*TW=dh7(Ej^yBo*N#kn~xO(zH^AGPiBv_923P z9nmOGVc@AOg#%BDIzx|XGmPc@NYhDW?M71;q$_wm9f6J^RezWvKHHU&EUF44QH)}Y z8gZJ`*MG^jT+m}iCbN>WlIj796B6m$SZ-ZgEXOhajIf_kFaGfjbjnD3$)I3?Fb?#P)KGJ2G zl9i?;96s>*XJhF7Xsiy~Yn9%6`2F+6R zW%TX6_z3L2znr7DT2|CNy`wDxHgS_?eb~aAgitX1ig*TLfBg*o)&ulCB4a*4EH-|G z_@yIEW!2=__GB?U8xP0BHD^&HIIca$G;oC3xHgJQhhJkrkzXL-dwj02)ZsTRY|h6V zg)Icw%RaWNuvY_Y(Z@0hO9$9hA6rn^YXP?6W9JmM7GT$XtY5W|p`j8Y1SP}=n4otU z{dDz>&}QQ#K!Psd8ImQ10bIc#u49Nq8OANdP@#LdjxpS!xX+0F1y18joWZv^iyttB zhZOw_oyPC9`#&jz68I%L4-ye?p+Mh${Dy73O%liP6N=cOW0=8@c!x$|iujJ|?2z#9 w5_b~DKUBI`$F2@N6bb<&{-aa-?-8K~@6#64t;xXY_aUk@i_mBf`>-(iF9<-aGXMYp literal 0 HcmV?d00001 diff --git a/3/BMI.java b/3/BMI.java new file mode 100644 index 0000000..f89b700 --- /dev/null +++ b/3/BMI.java @@ -0,0 +1,48 @@ +import java.util.Scanner; +public class BMI{ + public static void main(String args[]) { + Scanner input = new Scanner(System.in); + + + System.out.print("Gewicht: "); + double gewicht = input.nextDouble(); + System.out.print("Große: "); + double grosse = input.nextDouble(); + + double bmi = (gewicht/ (grosse*grosse)); + + System.out.println("BMI = " + bmi); + if(bmi < 16) { + System.out.println("Starkes untergewicht"); + } else if (bmi <= 17) { + System.out.println("Mäßiges untergewicht"); + } + else if (bmi <= 18.5) { + System.out.println("Leichtes untergewicht"); + } + else if (bmi <= 25) { + System.out.println("Normalgewicht"); + } + else if (bmi <= 30) { + System.out.println("Präadipositas"); + } + else if (bmi <= 35) { + System.out.println("Adipositas Grad 1"); + } + else if (bmi <= 40) { + System.out.println("Adipositas Grad 2"); + } + else { + System.out.println("Adipositas Grad 3"); + } + + + + + + + + + + } +} \ No newline at end of file diff --git a/3/BMI.txt b/3/BMI.txt new file mode 100644 index 0000000..045370e --- /dev/null +++ b/3/BMI.txt @@ -0,0 +1,30 @@ + String bmi = "Normalgewicht"; + switch (bmi) { + case "Starkes untergewicht": + System.out.println("BMI < 16"); + break; + case "Mäßiges untergewicht": + System.out.println("16 < BMI < 17"); + break; + case "Leichtes untergewicht": + System.out.println("17 < BMI < 18.5"); + break; + case "Normalgewicht": + System.out.println("18.5 < BMI < 25"); + break; + case "Präadipositas": + System.out.println("25 < BMI < 30"); + break; + + case "Adipositas Grad 1": + System.out.println("30 < BMI < 35"); + break; + case "Adipositas Grad 2": + System.out.println("35 < BMI < 40"); + break; + case "Adipositas Grad 3": + System.out.println("BMI > 40"); + break; + default: + System.out.println("dd"); + } // end of switch mit Switch könnte man \ No newline at end of file diff --git a/3/BMI.~ava b/3/BMI.~ava new file mode 100644 index 0000000..b7c5ea5 --- /dev/null +++ b/3/BMI.~ava @@ -0,0 +1,48 @@ +import java.util.Scanner; +public class BMI{ + public static void main(String args[]) { + Scanner input = new Scanner(System.in); + + + System.out.print("Gewicht: "); + double gewicht = input.nextDouble(); + System.out.print("Große: "); + double grosse = input.nextDouble(); + + double bmi = (gewicht/ (grosse*grosse)); + + System.out.println("BMI = " + bmi); + if(bmi <= 16) { + System.out.println("Starkes untergewicht"); + } else if (bmi <= 17) { + System.out.println("Mäßiges untergewicht"); + } + else if (bmi <= 18.5) { + System.out.println("Leichtes untergewicht"); + } + else if (bmi <= 25) { + System.out.println("Normalgewicht"); + } + else if (bmi <= 30) { + System.out.println("Präadipositas"); + } + else if (bmi <= 35) { + System.out.println("Adipositas Grad 1"); + } + else if (bmi <= 40) { + System.out.println("Adipositas Grad 2"); + } + else { + System.out.println("Adipositas Grad 3"); + } + + + + + + + + + + } +} \ No newline at end of file diff --git a/3/BMI.~xt b/3/BMI.~xt new file mode 100644 index 0000000..568d4e9 --- /dev/null +++ b/3/BMI.~xt @@ -0,0 +1 @@ + mit Switch könnte man \ No newline at end of file diff --git a/3/Monat.class b/3/Monat.class new file mode 100644 index 0000000000000000000000000000000000000000..830e1d5717b2d6f47e1120aa9817cc8c8742ecd5 GIT binary patch literal 1281 zcmZuwU27Cq7=BK&$xJq5%!jV2^<$z&cQwt{ep!uHqiNcWyNR+k#P-IMby&x2&V7 zaXE_)bUMg*=t8$b|4qH7iw$k+#ks|sK`l|}J{_7c`9z^JUzm5`Dh$}5GzlBUYE2sx z#68HO*Ma9@8~R?WQe9t7f@Ot{&?xLI+srU3mdr|;RFgQ+%M)2R=$HNj3d8v~h7{(d z!;ps^*vUbnlym)G>{1+>SH)cH;>cg>8;w(b7H?sNZ zi=*sR+5A3kx)>vzWK_e&IBQjO=;B?4%uH$m7w=irpzQjh#^-UOD zkHflyb24FMH20UeK(E5~a%h6tR9arqiw#-^%TY}?=5-v3-Zo~E8{sMkD%a_weg-@yVU>cv% z!esRToqU0Rp1`?!A3YCA*L@5Q<~A^VYygaV3Q*CJjz+h4CM>THOdlYjdF|f z4dpK79_44sBPn)Z1BZUZZGlHDTo+id&j5( zF@Yy691(cZ!koYf3ws5gArx{tA>=f%k81|K5xu zM%?0+y^S2Vw+nZ8P3~ehzU6(qhrRd#`?*ygzu*8K;UJ!1lyn`&Gvx6H3iuPp@El`! zfpPqe`xxiZFc2R0_my{Qz))`wn7=TS&N=!@R&!U%rv$f%LlN zr>(wfhXV6^+SB2_K)hILCSfCK!Eup-`(Jwf-6&K;X8B{1R%=lq?U$bg+6(JppyaS( zV?n^Kt6os(jzb4aShkRHk;RHYb_PShx-k5K$CAZK&1g6l)LyqzYTC%L=i_l`ag8w2qYf)9VM_>WBg=1Y^k6jTLXGBHNPzfO&MroPo0Udr$++G+LT{mfuYpg zBv*VfYZb<2&?O~1Bh27?*&7ImBY|{1lU5eq& zQw(#LQlT7DPAO-fVP(=^u=oL016L#X(7?3_ZX38B!A%465zHBQHG(MvHwewBahOr7 z{Cy0LajPOMHns5p4jZSik2ISv;D|Y=SVn`t*cn#v5;+dLhCbF2ARi5zo2-H@+-1EO ZUSk{gxXuo(H0(bp3MYCjI?GYY?mrneq}Kod literal 0 HcmV?d00001 diff --git a/3/SwitchT.java b/3/SwitchT.java new file mode 100644 index 0000000..f8f6324 --- /dev/null +++ b/3/SwitchT.java @@ -0,0 +1,28 @@ +public class SwitchT { + public static void main(String args[]) { + int zahl = 1; + + switch (zahl) { + case 1: + System.out.println("Sehr gut"); + break; + case 2: + System.out.println("Gut"); + break; + case 3: + System.out.println("Befreidigend"); + break; + case 4: + System.out.println("Ausreichend"); + break; + case 5: + System.out.println("Mangelhaft"); + break; + case 6: + System.out.println("Ungenügend"); + break; + default: + System.out.println("Keine Note"); + } // end of switch + } +} \ No newline at end of file diff --git a/3/SwitchT.~ava b/3/SwitchT.~ava new file mode 100644 index 0000000..f8f6324 --- /dev/null +++ b/3/SwitchT.~ava @@ -0,0 +1,28 @@ +public class SwitchT { + public static void main(String args[]) { + int zahl = 1; + + switch (zahl) { + case 1: + System.out.println("Sehr gut"); + break; + case 2: + System.out.println("Gut"); + break; + case 3: + System.out.println("Befreidigend"); + break; + case 4: + System.out.println("Ausreichend"); + break; + case 5: + System.out.println("Mangelhaft"); + break; + case 6: + System.out.println("Ungenügend"); + break; + default: + System.out.println("Keine Note"); + } // end of switch + } +} \ No newline at end of file diff --git a/3/Verweigung.java b/3/Verweigung.java new file mode 100644 index 0000000..eacaa5e --- /dev/null +++ b/3/Verweigung.java @@ -0,0 +1,6 @@ + public class Verzweigung { + public static void main(String args[]) { + int alter = 38 + + } + } \ No newline at end of file diff --git a/3/Verzweigung.class b/3/Verzweigung.class new file mode 100644 index 0000000000000000000000000000000000000000..22e60e112e919bf97d167a1bad9406887e6ca365 GIT binary patch literal 838 zcmZva%Wl&^6o&uF%}(MZ&ZVK$rFDQpQkq6$(FKVr0TorH^df>HBqYQn9h^xMyK)>5 zeH>V@h6PA0cmN)Nr$LA_ju%DBNS@1g=KS*?>-_rr<0pW}Xk`#XTtmV@5-A3A%-`|W zgu71bbTAgffFae9t_=1W;`K&94IOC>83S1u|6T8Wm<3`=x4bzet#m^n>9x*$=?1;P z7kt{*k!L6#%+VzEa=#rGB>$Dqv z9aRS7s2Aya7d0KL4245qxL5CmA4tc3)I8I%#!x+w!hSB?K-kKNbnTfOjshL)RMHcL z&dDPezRf2@HyH9Ke8+aUdu6}%mhDb)_p#=F@@jU+}?% zNU7@$`J~T%sm>8h1S2_P$aSx2v`J*jB~@6hzgkuz#kucLT6syBAxUP1&%lmIxEJu@ z#WBB(-plm7xjz)oq;h0ldvsU*Y}BwxeV|4RB!m>rH9ECuWwa)@zk_`V!?$TxVbFJn zW@B*ycd~ z=EDfw48gi(b|PSfAgknV(N-CYLmAscF5JhFAS+2!s9o1+w?*yxfUNEzj}8hrL=nd* o;U%hggVnH*>cTAQXoMQCu}wJ)J9Nq-^@m#1q@fXN5{hB>9};4(@c;k- literal 0 HcmV?d00001 diff --git a/3/Verzweigung.java b/3/Verzweigung.java new file mode 100644 index 0000000..6daf589 --- /dev/null +++ b/3/Verzweigung.java @@ -0,0 +1,25 @@ +public class Verzweigung { + public static void main(String args[]) { + int alter = 30; + if(alter <= 20) { + System.out.println("Du bist noch jung"); + } + + else if (alter < 30) { + System.out.println("ISt noch ok!"); + } + else if (alter < 40) { + System.out.println("Grenzwertig :-P"); + } + else if (alter < 50) { + System.out.println("Die Rente ist in sicht"); + } + else if (alter < 60) { + System.out.println("Bist du baer alt"); + } + + else { + System.out.println("Na, ganz frish"); + } // end of if-else + } +} \ No newline at end of file diff --git a/3/Verzweigung.~ava b/3/Verzweigung.~ava new file mode 100644 index 0000000..6daf589 --- /dev/null +++ b/3/Verzweigung.~ava @@ -0,0 +1,25 @@ +public class Verzweigung { + public static void main(String args[]) { + int alter = 30; + if(alter <= 20) { + System.out.println("Du bist noch jung"); + } + + else if (alter < 30) { + System.out.println("ISt noch ok!"); + } + else if (alter < 40) { + System.out.println("Grenzwertig :-P"); + } + else if (alter < 50) { + System.out.println("Die Rente ist in sicht"); + } + else if (alter < 60) { + System.out.println("Bist du baer alt"); + } + + else { + System.out.println("Na, ganz frish"); + } // end of if-else + } +} \ No newline at end of file diff --git a/3/error.txt b/3/error.txt new file mode 100644 index 0000000..e69de29 diff --git a/4/.gitingore b/4/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/4/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/4/A2.class b/4/A2.class new file mode 100644 index 0000000000000000000000000000000000000000..1a4472dcb1a9d068ba509e4cc2685d807ef17444 GIT binary patch literal 903 zcmb7CO-~b16g{t<>1&6nJi&sfsQB5I+Gc&!r{oPK1On&6tH zE7!Vl<60MJjNu3PPy7e2z%#9y7}+?P-23jm=YE{`?zf{ahX880XCZ;4gki%(N6M$i>7@~efWg)_)WOxc*m+20)pksnlQVW{_Z z1=3NE_5JRaz*K&7wJ>Tu|Ohu2i1mrd8WIFhh0WfABG>Bw|u!E-jg2nL}?t;t6$&gaZ2e zT+Mxq;}!L5Zps@>49OQsaf3@=K#`gIe@-Ngd6Zah8BcMGwFU1IycXjak6=pNmbk-T V@FIU;<|tlb8axtNB{G4#KLL-Vv3CFf literal 0 HcmV?d00001 diff --git a/4/A2.java b/4/A2.java new file mode 100644 index 0000000..0b7659e --- /dev/null +++ b/4/A2.java @@ -0,0 +1,19 @@ +import java.util.Arrays; + +public class A2 { + public static void main(String args[]) { + int zahlen[] = {13, 9, 67, 42, 101, 99, 97, 112, 83, 5, 78 } ; + for (int zahl: zahlen ) { + System.out.println( zahl); + } // end of for + System.out.println(Arrays.toString(zahlen)); + + Arrays.sort(zahlen); + + + for (int zahl: zahlen ) { + System.out.println( zahl); + } + System.out.println(Arrays.toString(zahlen)); + } +} \ No newline at end of file diff --git a/4/A2.~ava b/4/A2.~ava new file mode 100644 index 0000000..4a93633 --- /dev/null +++ b/4/A2.~ava @@ -0,0 +1,18 @@ +import java.util.Arrays; + +public class A2 { + public static void main(String args[]) { + int zahlen[] = {13, 9, 67, 42, 101, 99, 97, 112, 83, 5, 78 } ; + for (int zahl: zahlen ) { + System.out.println( zahl); + } // end of for + System.out.println(Arrays.toString(zahlen)); + + Arrays.sort(zahlen); + + + for (int zahl: zahlen ) { + System.out.println( zahl); + } + } +} \ No newline at end of file diff --git a/4/A4.class b/4/A4.class new file mode 100644 index 0000000000000000000000000000000000000000..737e0c5a5aa98387dea5972dfc7dd75cef72c76f GIT binary patch literal 1661 zcmaJ>U31$+6g?Y%$T4a@oUgXjA%z6&I>fY?P?{2&#DqFHO{fC$JxqEkieYJl8U;$WCpOFz`S=lzCe^+xfMv2c{7S#IIV870e4nGTEwzguq}3Y6g~_uNcyCOs^M7 zyrx0daSDCMqEz<$z}yw+u^fSsa_DKf`I6IU29>}wmHKyY<&IpX{${lmbbqpD7SV5gLKaft~(>GJfwi1O>NyKut zN#u2$(~#CNjyD8`4#{@J7l<`fHWlJzfNWK1Ij`eQyd{uy%x{CD+uX9vuz1BJrtr3g zcXVWsJ*-k##s$xld*l`MU5~M2nayIhnu0)1NtqTH&6JA&!FWbTUeVP;Vzv{%Hpv?B zN#cDJG<=|A79R@q9c}HZ4C>6{xlO0Wq?uxNCB;7YNF}?Xq;<=s;VQRrp+JWvw?;|* zWy>*dG@2^fhQZQW>9x)egf;PA(A zAu#^`P~J8zT{w?9cBFcGcno+qar~HHd0IgmyYK?yr||bYNA(+s;uDT~3xI39-+*2$ zVu>qs7PrDcz|+JpTKQ*acb}p61^QPb^Xc5d4;X)jR62TpAEUr?oXw@DpJU?oqlozN zpWkvXG1-QlZNYNsi~G2skne_&-}_b~v$2twiZqbTjl?b*E01FI{e$>y?%=UIjQ4h4 z;?fgZcORESS0y0=C1DW*9OD$Bp&tp1k@^%5@iga`C~B5>>pc3fMtg_Y4WuA3ggUK5 z%1_u}O8#~F53+tme9Fj|k#5iK@$yt_F=C!#8K2Qc@tF7$%hQkVu!7H7?F|%A#wvYp z5HXJUD-3E_)1ZkzG4U5-H0S)J>v#a0|C-hxvV%(JJA1Cmc8M4gVy$dLLV; G;mp4fX@@HS literal 0 HcmV?d00001 diff --git a/4/A4.java b/4/A4.java new file mode 100644 index 0000000..417d3f8 --- /dev/null +++ b/4/A4.java @@ -0,0 +1,25 @@ +import java.util.Arrays; +import java.util.Scanner; + +public class A4 { + public static void main(String args[]) { + double schueler[] = new double[5]; + Scanner input = new Scanner(System.in); + for (int i = 0; i < schueler.length;i++ ) { + System.out.print((i+1) + ". "); + schueler[i] = input.nextDouble(); + } + Arrays.sort(schueler); + for (int i = 0; i < schueler.length;i++ ) { + System.out.println((i+1)+". " + schueler[i]); + } + double durschnittlich = 0; + + for (int i = 0; i < schueler.length;i++ ) { + durschnittlich += schueler[i]; + } + + System.out.println("Durschnittlich: " + (Math.round((durschnittlich/schueler.length) *10.0 )/10.0 ) ); + + } +} \ No newline at end of file diff --git a/4/A4.~ava b/4/A4.~ava new file mode 100644 index 0000000..f7985df --- /dev/null +++ b/4/A4.~ava @@ -0,0 +1,25 @@ +import java.util.Arrays; +import java.util.Scanner; + +public class A4 { + public static void main(String args[]) { + double schueler[] = new double[18]; + Scanner input = new Scanner(System.in); + for (int i = 0; i < schueler.length;i++ ) { + System.out.print((i+1) + ". "); + schueler[i] = input.nextDouble(); + } + Arrays.sort(schueler); + for (int i = 0; i < schueler.length;i++ ) { + System.out.println((i+1)+". " + schueler[i]); + } + double durschnittlich = 0; + + for (int i = 0; i < schueler.length;i++ ) { + durschnittlich += schueler[i]; + } + + System.out.println("Durschnittlich: " + (Math.round((durschnittlich/schueler.length) *10.0 )/10.0 ) ); + + } +} \ No newline at end of file diff --git a/4/Array1.class b/4/Array1.class new file mode 100644 index 0000000000000000000000000000000000000000..aa687264d4102d8e16d06a221db94f81747ffe6d GIT binary patch literal 1254 zcmaJ>>rN9v6#k~P-L|Z-6afJ*MQ$x974K36p-LoHYb>d0_%)OXUD)n4yHk?-BqlzE z{!l{<58y)?&va3WZQNvM=3KvT&YYQ_zfMj8Y~XnUA@mstn}{IFU>)*fo^`l;kS*>V zimGCWuG+4x))@NInQ|O4#0?}&^uxU1UTXPD)X7UWDQKk7PGrmMThDe?NqK_Tb4kJ+ zFfj;=VXV%NL|(d8uHM_KMk`-&SNRm1-p&N!Z5|YBy9c=hk{C8{*~AD&8HRi0XD}KX z&2e>-?i87F0#`6@V8X;CuKuClRJN1d@I2lk@R*VTAj4>Sw-=El7_RG0++djNh0+bI zVW&*o#5693rdi(;-VWb$NRuqcDtF4ESJj-VW&-ED?MNjANz*s?W; z{s3l4*PSZ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)} z*O$`pVI7Qh{q35A63P~i6;Q#HKzT%d0c()#=J`pIqbZg)N)VW^FvBvhTz+1_Yy?|c zV6y4@`r2-PQ-{~prbkby8FZDmp+YyAA2`i;$7OxlCSz+1?kkr&O)cIWwUvNy`Clhb zh1(1(kDyWAx73cOnI?0SRBJm7BI+n$_dM-V5}M=fSao|>)nHhLg#`yqlmLAWRI@nMkAGGJhqSV#$&!#rns9LEWI7%V=3 z$yC5^vht(TG30owW6FH1la-BDCnuL%9ZTv~$ClkzN9Lp=T5>?NWt*6{368u*9FrG` z1-VWfw+IvR9C0#7kj2cq9Eu6MB&UgGnfQ+t#hF&qSTpLzS+ioUJh+Fcm5RAK`vvS| zTzk(HUq1YO_CL#W_tNEhy8JDyxqXZS-=j!-b|2G2JJG^GqD7rIjRN5gRk;fbZ&QQ! z;ow7lSw5ou3D-Y`#8)WdYrg&OXy2#YKVt^JGDD(aow4swvy*s|ntlF{MeXnu7Rb1R z4o=}TmA#7_c$&NncX|_xvGy**{^5WF+ehSs6ToRgM$1 VUSPKB5TC;<^f{cL#|2h1^EduPI}rc? literal 0 HcmV?d00001 diff --git a/4/KG2.java b/4/KG2.java new file mode 100644 index 0000000..8eb41cc --- /dev/null +++ b/4/KG2.java @@ -0,0 +1,28 @@ +import java.util.Arrays; + +public class KG2 { + public static void main(String args[]) { + int zahlen[] = {13, 9, 67, 42, 101, 99, 97, 112, 83, 5, 78, 66,73,4,56,3,643,5,23,6,300 }; + int grosste = 0; + int kleinste = 0; + + for (int i = 0; i < zahlen.length;i++ ) { + if(zahlen[i] > grosste) { + grosste = zahlen[i]; + } + + } + kleinste = grosste; + for (int i = 0; i < zahlen.length;i++ ) { + if(zahlen[i] < kleinste) { + kleinste = zahlen[i]; + } + + } + + + System.out.println("Kleinste: "+ kleinste); + System.out.println("Großte: "+ grosste); + + } +} \ No newline at end of file diff --git a/4/KG2.~ava b/4/KG2.~ava new file mode 100644 index 0000000..306d909 --- /dev/null +++ b/4/KG2.~ava @@ -0,0 +1,28 @@ +import java.util.Arrays; + +public class KG2 { + public static void main(String args[]) { + int zahlen[] = {13, 9, 67, 42, 101, 99, 97, 112, 83, 5, 78, 66,73,4,56,3,643,5,23,6 }; + int grosste = 0; + int kleinste = 0; + + for (int i = 0; i < zahlen.length;i++ ) { + if(zahlen[i] > grosste) { + grosste = zahlen[i]; + } + + } + kleinste = grosste; + for (int i = 0; i < zahlen.length;i++ ) { + if(zahlen[i] < kleinste) { + kleinste = zahlen[i]; + } + + } + + + System.out.println("Kleinste: "+ kleinste); + System.out.println("Großte: "+ grosste); + + } +} \ No newline at end of file diff --git a/4/error.txt b/4/error.txt new file mode 100644 index 0000000..e69de29 diff --git a/4/o.class b/4/o.class new file mode 100644 index 0000000000000000000000000000000000000000..3f4a79a1a60d9cba198409b8264546cce1e9c0ac GIT binary patch literal 352 zcmaiu!D_-l5QhIrV$!BsH5bpl)e6l6D1r!{f*vg1H*u*OwpmDH-^-KW!3Xf6inA&r zMd%*>+5g}9cINQA+XEOO3gN&F;MGxsPiW=hN5onbpYbfsWmXaVfhtrrB)G5LMSuqa z8G<)9OG#)Zs*uz5S1QX7k!nt&#AHG*M5(O5gkH5$-~2;j`UEG>S+pjEbF(fpIZ+n$ z&AT0r7X-YMJub*@#rnuD=1N>^Z(GoYFAhRh`wVV)Vy&MWxHi}kp09B4Bv`Cd<|fulzwK zY9cZ5!XMy|GM+O`7v$rHIWzmtInQ~|@aONZ-vExVZ^1w;iMS0D34xU}@1s}gdHrtX zb^AMYCHSjLKgrN11@ zPXgJ-xWGvm`2FqyYqK`iuul2p`I|uc1Ikh3^Sq4>Ri`Znq1QhZ*mUZ%DQfjnOCbK@ z;#3MOH~hYAUVdoH;H}s0(Mh&((eZjMFYtM<598r`u9Ir$77hgLt_<~#+n|2ybU66$ zFz%>YcGPZDUJ9hgH&vVKPHC2sWaC^)mUCuR+(~+DnM!X_`j=PE5LS&`rBu;T+^O+3 zOS>1{Ilgj@)#HseQ^}TesdqA#ivg!tI(#jE&2o*64^A-3dQB97R$E5GKa9h(wQ(z1Cb*@Q}^f$UR z39>a8enfdow*<`cJ$>c8O>HF+-(}? zG)RR&_7;GYX-Ew6Xzplo)1%p+3$iYNU`LG1v>k^N N6h`zw9xKzH`~!wDy`BI7 literal 0 HcmV?d00001 diff --git a/5/Artikel.java b/5/Artikel.java new file mode 100644 index 0000000..3c44701 --- /dev/null +++ b/5/Artikel.java @@ -0,0 +1,64 @@ +/** + * + * Beschreibung + * + * @version 1.0 vom 11.03.2025 + * @author + */ + +public class Artikel { + + // Anfang Attribute + public int artikelNr; + private String artikelBez; + private double ekPreis; + private int bestand; + // Ende Attribute + + public Artikel(int artikelNr, String artikelBez, double ekPreis, int bestand) { + this.artikelNr = artikelNr; + this.artikelBez = artikelBez; + this.ekPreis = ekPreis; + this.bestand = bestand; + } + + // Anfang Methoden + public int getArtikelNr() { + return artikelNr; + } + + public void setArtikelNr(int artikelNrNeu) { + artikelNr = artikelNrNeu; + } + + public String getArtikelBez() { + return artikelBez; + } + + public void setArtikelBez(String artikelBezNeu) { + artikelBez = artikelBezNeu; + } + + public double getEkPreis() { + return ekPreis; + } + + public void setEkPreis(double ekPreisNeu) { + ekPreis = ekPreisNeu; + } + + public int getBestand() { + return bestand; + } + + public void setBestand(int bestandNeu) { + bestand = bestandNeu; + } + + public double artikelWert() { + // TODO hier Quelltext einfügen + return 0; + } + + // Ende Methoden +} // end of Artikel diff --git a/5/Artikel.uml b/5/Artikel.uml new file mode 100644 index 0000000..1475df3 --- /dev/null +++ b/5/Artikel.uml @@ -0,0 +1,27 @@ +[Files] +File0=Artikel.java + +[Box: - Artikel] +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= + diff --git a/5/Aufgabe3.class b/5/Aufgabe3.class new file mode 100644 index 0000000000000000000000000000000000000000..6af7ff89f8d87f3b9673fbec8041b0c1d2e67285 GIT binary patch literal 1210 zcmaJ>TTc@~6#k}Ny1i_nmI89M3TRt}%FSCTicN@3ikcMh!561xEK9e$&F++h#7BRG z{sLco(FZj=_yhbuzL+SU-7TSn#x^s1=FBIs@1XUVoP^pi=Wajx~Wr(9$S`lq|Mvg zLhf68P8drJk(G2Vy_znjSr}CQ*yQL)Z2e<7!Sp{k(4pZUKjb;i#NS82WjG`v8NCWu}r+GpsL zrzfN5K<*pZXA%OqLc4nnT4~xf-+&;l(J6vi%#p@*e&K-uvtOWw)bEHNV;J~~F*+v} z5}K!(_B3bEgXH8!k$^&gp&p7^%;UO8LGNIf;w=TFkS-N0PHaqnKzwTQb@5&B^I_Mzd)J*7O76~D!5Aax8d%~c;Hzx6i~!NjQ<1Zjt!vz literal 0 HcmV?d00001 diff --git a/5/Aufgabe3.java b/5/Aufgabe3.java new file mode 100644 index 0000000..a9e2283 --- /dev/null +++ b/5/Aufgabe3.java @@ -0,0 +1,16 @@ +public class Aufgabe3 { + public static void main(String[] args) { + System.out.println("3 * 4 = " + mult(3,4)); + System.out.println("45 * 12 = " + mult(45,12)); + + } + + + public static int mult(int a, int b) { + int result=0; + for (int i = a; i != 0 ;i-- ) { + result+=b; + } // end of for + return result; + } +} \ No newline at end of file diff --git a/5/Aufgabe3.uml b/5/Aufgabe3.uml new file mode 100644 index 0000000..b722963 --- /dev/null +++ b/5/Aufgabe3.uml @@ -0,0 +1,27 @@ +[Files] +File0=Aufgabe3.java + +[Box: - Aufgabe3] +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= + diff --git a/5/Aufgabe3.~ava b/5/Aufgabe3.~ava new file mode 100644 index 0000000..ec70d01 --- /dev/null +++ b/5/Aufgabe3.~ava @@ -0,0 +1,16 @@ +public class Aufgabe3 { + public static void main(String[] args) { + System.out.println("3 * 4 = " + mult(3,4)); + System.out.println("45 * 12 = " + mult(45,12)); + + } + + + public static int mult(int a, int b) { + int result=0; + for (int i = a; i != 0 ;i-- ) { + result+=b; + } // end of for + return result; + } +} \ No newline at end of file diff --git a/5/Aufgabe4.class b/5/Aufgabe4.class new file mode 100644 index 0000000000000000000000000000000000000000..589a4404139453fc0d37b5ecd601bcac78debd87 GIT binary patch literal 1314 zcmaJ>?M@Rx6g@*fwp|yxv;u;Nihykqs)An>(NZNgsn(>Vrs3DLtYu-l+w4wBcoQE( z{h@>yAHat)-q|f_NgJDV?tI*P&bjx_?4Q3EzX24mr(z5t1z`;lL>csBe#&zew_CYN z|xp$rju zPB0T#k{F9gs^*G@`$#j)wE2lqbnGS z1v|1tuNap4*UYp}of9J$bT_El9&ZZACH^mi_3AkW4DYyoXc^v8*>O&~o&0c)13Om& z_s=@U2=~D<1Q$O)c=vh`MQ&MDQy5fVtz_GVTeP_68J>b&hUKB0MoCrhhGF6Vu5|r^ zyy)W1(fgFYFsLnv(wL!Djw~Y^$^HcUMw2mQX_UuuzDlDOIN$-+Xcfo0A0&fq0+XQY zv0rLEq-&LWSXV3ch*GIX^|eY}(UnU1JCxOPjQ>E2%YBP+Q#$x4mU>^bgbztSvFE2A|N5dJooW8?J5(WW4d6k3u(<8YKKp%k$4hj2)#A|ZZlTsPU)N98yik42GM z1QHLxDW{rvsy2Y{z|q9K8#f|QOlG7NKj{5>}u?hTCB{XN?X z88R*5iExu4S*`UlTjVB}M&CIFx{e%X81xr`Ek?Tzx2>VgklT-m&lplwv({5Fhj|5g z9R(Esq3V7bg|-}Tvc#Q#|l;% z79;o5;8c#?h=szWoF*|u<)Sc!H)v|8qNZR?#|_+MD4dZBgK{7fb36%h8lu+AqE0ny z)Ef;MRzvoNuu{+c9jfhYM|k$DvD>$UZQgfClkfNzcX~V!Ql2VP;ZTgI4xM;snuOwV zLBtEycV{uvI}ZlrS2*LD3LnsKGGtqpGo1>p>yHD=ZVMU7e4MNk|Xq#Rf?#?%_UZr1J(@OFN|q>)};Tv(03F76+pa)j&uV``Lz9>Xl-5t`(m jMeA=)D-^g~x$jthn_oYM@dYIb#A3P0GCU?-0-JvTj8m^2 literal 0 HcmV?d00001 diff --git a/5/Kreisflaeche.java b/5/Kreisflaeche.java new file mode 100644 index 0000000..26f6bb5 --- /dev/null +++ b/5/Kreisflaeche.java @@ -0,0 +1,14 @@ +import java.text.DecimalFormat; + +public class Kreisflaeche { + public static DecimalFormat d = new DecimalFormat("0.00"); + public static void main(String[] args) { + kreisflaecheB(2); + + } + public static void kreisflaecheB( double r) { + System.out.println(d.format((Math.PI * Math.pow(r,2)) )); + + } + +} \ No newline at end of file diff --git a/5/Kreisflaeche.~ava b/5/Kreisflaeche.~ava new file mode 100644 index 0000000..01dfedc --- /dev/null +++ b/5/Kreisflaeche.~ava @@ -0,0 +1,14 @@ +import java.text.DecimalFormat; + +public class Kreisflaeche { + public static DecimalFormat d = new DecimalFormat("0.00"); + public static void main(String[] args) { + kreisflaecheB(2); + + } + public static void kreisflaecheB( double r) { + System.out.println(d.format(Math.round( (Math.PI * Math.pow(r,2)) ))); + + } + +} \ No newline at end of file diff --git a/5/Kreisflaeche2.class b/5/Kreisflaeche2.class new file mode 100644 index 0000000000000000000000000000000000000000..3f4b001a120663b73d27f216d2a0db82be6f49d1 GIT binary patch literal 2529 zcmaJ?Sx*~R6#gzY9%F_;%ucg74WV|LU_vQvAqxSQh5$*3!D*5%nwSAkJf3mvF@)~> zzOQMYDJO+?DeZS>Ok#vp%Xj9Ud(S=RJLi1o&d;}Q z{0QJEu7pqnp8~&%S_A}|E^13!+|;ba_{j?w^|T`pIA~agb6CI^jinR>1-80MCC4!1 z$+Tu!dZ7*>)GJU`G+@gHE6J6jqvr%_3`?MO$~|e=@d+z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JPjulgY!iYPjvqS(zlWj`yG0m1 zZfOQs$pn6ZgA!*f1eUN&Z}se<%UEHV8bkn3;c154Bz$-V&$49CQDZ0SZy}~Y@rheF zuArZP(b%YVwYRtbjZh82^4|CAOn3n|XKD+c>}i2^9qH`1G*ZcxXa!ePJWrRBE4;VM zHU{We<~_voJy{ysWMN;0h0tvayy2^(SgeMkufoPUiXdLNP4_)6pMZv&m^vFat|9w9 uj>=kz3fk9F=|wlZm+&&*U4;G)HC}O_uer}R+~-^PNQT6{kMSu!N9TX0;V>8g literal 0 HcmV?d00001 diff --git a/5/Kreisflaeche2.java b/5/Kreisflaeche2.java new file mode 100644 index 0000000..3c02062 --- /dev/null +++ b/5/Kreisflaeche2.java @@ -0,0 +1,51 @@ +import java.util.Scanner; +import java.text.DecimalFormat; + +public class Kreisflaeche2 { + public static DecimalFormat antwortFormat = new DecimalFormat("0.00"); + public static void main(String[] args) { + + Scanner input = new Scanner(System.in); + double radius = 0; + boolean ende = false; + System.out.print("Radius: "); + radius = input.nextDouble(); + System.out.println("Rad = " + radius); + + + while (!ende) { + System.out.println("Was wollen Sie machen?"); + System.out.println("K, U oder V finden"); + String wahl = input.next(); + switch (wahl) { + case "K": + System.out.println("Kreisfläche: " + antwortFormat.format( kreisflaecheB(radius))); + break; + case "U": + System.out.println("Umfang - " + antwortFormat.format( umfang(radius))); + break; + case "V": + System.out.println("Volumen - " + antwortFormat.format( volumen(radius))); + break; + default: + System.out.println("Falsch"); + ende = true; + } + + } + + + } + public static double kreisflaecheB( double r) { + return (Math.PI * Math.pow(r,2) ); + } + + public static double umfang(double r) { + return (2 * r * Math.PI); + + } + public static double volumen(double r) { + return ((4/3) * Math.PI * Math.pow(r,3)); + + } +} \ No newline at end of file diff --git a/5/Kreisflaeche2.~ava b/5/Kreisflaeche2.~ava new file mode 100644 index 0000000..3c02062 --- /dev/null +++ b/5/Kreisflaeche2.~ava @@ -0,0 +1,51 @@ +import java.util.Scanner; +import java.text.DecimalFormat; + +public class Kreisflaeche2 { + public static DecimalFormat antwortFormat = new DecimalFormat("0.00"); + public static void main(String[] args) { + + Scanner input = new Scanner(System.in); + double radius = 0; + boolean ende = false; + System.out.print("Radius: "); + radius = input.nextDouble(); + System.out.println("Rad = " + radius); + + + while (!ende) { + System.out.println("Was wollen Sie machen?"); + System.out.println("K, U oder V finden"); + String wahl = input.next(); + switch (wahl) { + case "K": + System.out.println("Kreisfläche: " + antwortFormat.format( kreisflaecheB(radius))); + break; + case "U": + System.out.println("Umfang - " + antwortFormat.format( umfang(radius))); + break; + case "V": + System.out.println("Volumen - " + antwortFormat.format( volumen(radius))); + break; + default: + System.out.println("Falsch"); + ende = true; + } + + } + + + } + public static double kreisflaecheB( double r) { + return (Math.PI * Math.pow(r,2) ); + } + + public static double umfang(double r) { + return (2 * r * Math.PI); + + } + public static double volumen(double r) { + return ((4/3) * Math.PI * Math.pow(r,3)); + + } +} \ No newline at end of file diff --git a/5/error.txt b/5/error.txt new file mode 100644 index 0000000..e69de29 diff --git a/6/.gitingore b/6/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/6/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/6/Aufgabe.class b/6/Aufgabe.class new file mode 100644 index 0000000000000000000000000000000000000000..068af4f2e88debc79822bc5a717a132c09d2fea6 GIT binary patch literal 1646 zcmaJ>+fo}x5Iw_fg;)%T*x(CzA>bgBSaF;<2{JfPwVUass)-&f%%(ipQ~+Ze}%kGzym zqF6Nr2DC45v6xuuAXo5P?YJC=N;dOpSeP{YQv$OqeIeP3VVJh@87?xApv}0>ogIYQ zKXaDCjKI*Qv+ksE8CNV^wQ&t|0@G*IJ!pa9ma(O?E^m@KB+d ziO)(R@q7zk3e259!)8cNO%-c*=as8ku@3wcZV4=GDecr$=xnJ_xedSV*PXhoIx2Dw z!l3G@W(r>moGEM01AVM(TG2%LPOTlf4QIdYc^1AQ>ik8MmnrF}DPyQA`xIulC!`stOM!LlVdo16O(#8ET_< z4~OE0W{pORUHd#8G^J^nODiuvty;DsAS73TtI9>c*Lz@nDn^fs9YoT#{c|+5GORO_ z={~IN6>XZ9w>_S^{ZG^JaxC4Wl58bOS=bRsmjjkr?P`;`-A(S6DK-BhTR{*JHF@SBg4a!mg)oVtx{)Ntb7aURlSAHL?q4 zSZsSTid1Cbslf6lIrR(G!ZU&S|A%r=b@IXjzT;3czX9;oFv9(NYB@?lIehaS#GB;$ z2kzz?7{rgGW?@5mTEesKz z;@396m>nKqhjNU5cJYw8?@^n<;0F>7SSVPWh{D3^p@rL{bn}SU0|XZ-Q-nX^Dv=xv MSJ2&Wc#g~e0UG|4E&u=k literal 0 HcmV?d00001 diff --git a/6/Aufgabe.java b/6/Aufgabe.java new file mode 100644 index 0000000..9fd3088 --- /dev/null +++ b/6/Aufgabe.java @@ -0,0 +1,29 @@ +import java.util.InputMismatchException; +import java.util.Scanner; +public class Aufgabe { + public static void main(String args[]) { + Scanner input = new Scanner(System.in); + int a; + int b; + + try { + System.out.print("A = "); + a = input.nextInt(); + System.out.print("B = "); + b = input.nextInt(); + + System.out.println("a : b = " + a/b); + } catch(ArithmeticException e) { + System.out.println("Bei der Berechnung gab es Problem"); + System.out.println("Problem: Dividiederen durch Null"); + } catch (InputMismatchException e) { + System.out.println("Geben Sie ganzzahlige Zahl"); + + + } + + + + } + +} diff --git a/6/Aufgabe.uml b/6/Aufgabe.uml new file mode 100644 index 0000000..c2bc002 --- /dev/null +++ b/6/Aufgabe.uml @@ -0,0 +1,13 @@ +[Diagram] +comments=0 +OffsetX=0 +OffsetY=0 +Visibility=0 +ShowParameter=4 +SortOrder=0 +ShowIcons=1 +ShowConnections=0 +Fontname=Segoe UI +Fontsize=11 +ShowObjectDiagram=0 + diff --git a/6/Aufgabe.~ava b/6/Aufgabe.~ava new file mode 100644 index 0000000..87c9ae6 --- /dev/null +++ b/6/Aufgabe.~ava @@ -0,0 +1,30 @@ +import java.util.InputMismatchException; +import java.util.Scanner; +public class Aufgabe { + public static void main(String args[]) { + Scanner input = new Scanner(System.in); + System.out.println(6.7 / 0); + int a; + int b; + + try { + System.out.print("A = "); + a = input.nextInt(); + System.out.print("B = "); + b = input.nextInt(); + + System.out.println("a : b = " + (double)a/b); + } catch(ArithmeticException e) { + System.out.println("Bei der Berechnung gab es Problem"); + System.out.println("Problem: Dividiederen durch Null"); + } catch (InputMismatchException e) { + System.out.println("Geben Sie ganzzahlige Zahl"); + + + } + + + + } + +} diff --git a/6/Aufgabe2.class b/6/Aufgabe2.class new file mode 100644 index 0000000000000000000000000000000000000000..1c3f197708de7536496e4ffdd6b3ab092d2f163b GIT binary patch literal 950 zcmZ`%T~8B16g|@x7S`>DrBtCP1yQ%4RPi%GO^9gHq<~3H6XVl#8J5BAmTb2~|B8RW z7hmuJj3)Z-k20RwLez*4b7$_Id(Sy@@BH}rBL zVC@@{fJGU%QEOY67MTD2l130HUj}QDKj^A3e)iT=`!P9eOku{sC0rJ;eHCx0eqZ`Z zpybwu`jbXbybgVeFQIB=%<*~dzxTEF7_JD+uB)iJslt%kwv2YFq4sv;>gFH_s(qys z(yON1gvmVZZIdqF)S=oOblHQKvJ)^;Z1y}Ev}L4?e-g~ZySh)M&C|B65}_+KpIvre zpCw2@5NzR(tN*paK*`7_{KOeZ0@+q9y*C?j|3r(B#BOkPxIBt#^#+lro@=8%dn$0* z%m8zodWyddNP}a=DD5?Rb?$=u$l@`?ArC2Br#06m)unZY38-O_-Z++UgAr34GsA#Z zKEW#3>Cea>Vd4XFP5Mhms2pMTFe!GB=a|z8beZgiz#&u~{D}O`)AS5gnQ#TzxQXSY zu0nmc7{ASBA+=>;%4Qiq?ui1QplM!~D({i~im6w{`C}}6pRNRtXFf7Mq%0!CbB;Do lYpRP0U3FNC72M%HQE-+invv5Is)XZW5NZB+vrovV{Ukfrk5~X}L5|sFVUyP;n^?(q zCC`|XE~YRoFx!?psv3p9H1D+8rj!^NnuNZ^jZ)ve$Ai8)Y*li|qu}7UixZd;D2%`t za5^?x5L%GK5Tz{#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+1,23 @@ +import java.io.*; + +public class BR { + public static void main(String args[]) throws IOException { + String speicher; + + BufferedReader eingabe = new BufferedReader(new InputStreamReader(System.in)); + + System.out.print("Geben Sie Zahl: "); + + speicher = eingabe.readLine(); + try { + int zahl = Integer.parseInt(speicher); + System.out.println("Quadrat: " + (zahl*zahl)); + } catch(NumberFormatException e) { + System.out.println("Geben Sie ganzzahlige zahl"); + } + + + + } + +} \ No newline at end of file diff --git a/7/BR.~ava b/7/BR.~ava new file mode 100644 index 0000000..2cc269c --- /dev/null +++ b/7/BR.~ava @@ -0,0 +1,23 @@ +import java.io.*; + +public class BR { + public static void main(String args[]) throws IOException { + String speicher; + + BufferedReader eingabe = new BufferedReader(new InputStreamReader(System.in)); + + System.out.print("Geben Sie Zahl: "); + + speicher = eingabe.readLine(); + try { + int zahl = Integer.parseInt(speicher); + System.out.println("Quadrat: " + (zahl*zahl)); + } catch(NumberFormatException e) { + System.out.println("Geben Sie ganzzahlige zahl"); + } + + + + } + +} \ No newline at end of file diff --git a/8/.gitingore b/8/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/8/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/8/Aufgabe1.class b/8/Aufgabe1.class new file mode 100644 index 0000000000000000000000000000000000000000..4f2d246bf68dccdf08c46985dff6aad7db0328f0 GIT binary patch literal 2006 zcmaJ?+fo}x5IqADBa{Wq-S~>*OC*C)>?BSCjvc^OtXP0!85}}xD`}7xmR)6cgu$PY zr@ZCS&-Q~{Wmn|`@-6v>kTWX*!cdWFXJ>o6Pj{d0>HYiPw|@bc#fv05&?ynK5J#85 zsSSJE&bYQ$$t)E&R7neT-Elle-xcUgrB@^p0;eM-$IoOPS1r|bt*#3?Q1(^=NdYUY zDW_Cb!Ia+7Nk~`*yGLL+l|MwMf#X$X3}Txiyt{*Bx&n*j|7?>CfP&S-=X5ltIC!Akr zz=!ESCgH6*G5s$wEiq%^4!#l?+^4@yhdye?!bCi8ocAIl@wLGDePvVqMPFzAx>tU% zQ&KhU_+A2Y0%z{qS~=s->p@wKdu#?hUQz2*Q=ajB-@*ga5HfP$dJ^BX#gJP%081i^ zoP}>q0g|L}L4~1RQ3GtWt+wu zNv$3CmR@1nVW}D@r%0X-dh`90WMEv!^vl>0o%SAPg}y_ktMNCq6&UJ zC@GUJ-|v$)Wy0sdne%-e>cFloC|&i-VFEnG-C0$2RWLm+`nupJQNwQ%fhj*7UpY+N z@wWXR8x?58xsJ9c* zoS-x96Qcz&Z@X@Rhno~yIWx@WT{{d_D6uVY^;k|Pg(|TlaN++|Ib51~aoj9%(3@We zST=NV{fu(@lMX#T5HLoc|fveTpKgBYiy0L<1l+ajI5Thnge+Rib(ESD< zKNR16$-bm)V77tzm+W5dY4Pwa9sv}+it<^;_qfLpmQm)c=!6MA%drjc zTg3kmdiZ(h!)40S802Ie!Ze0Ce@2+X80{_+;Vf2h4mS5?oQLAX*BFnIe-hz5qRuLl z9^x1C2dvR^nj`v0{6vqVxQn0h3#qt_TlkeIaq1>eM2QxPzKcXPbk_N_&U=N|B;tDv zq)VbIAtibxE(vJ@AK5ePQ*M@fk0i2v^y1K_0~^@nJwY^&m&+)@90ie|V;5up0hYY( AAOHXW literal 0 HcmV?d00001 diff --git a/8/Aufgabe1.java b/8/Aufgabe1.java new file mode 100644 index 0000000..05dbd60 --- /dev/null +++ b/8/Aufgabe1.java @@ -0,0 +1,33 @@ +import java.io.*; +import java.util.Scanner; + +public class Aufgabe1 { + public static void main(String arrgs[]) { //throws IOException + try { + FileOutputStream schreib = new FileOutputStream("speicher.txt"); + + FileInputStream lies = new FileInputStream("speicher.txt"); + + String zeile; + int z = 0; + + Scanner input = new Scanner(System.in); + + zeile = input.next(); + + schreib.write(zeile.getBytes(),0,zeile.length()); // Schreibt String zeile in Datei + schreib.close(); + while((z=lies.read())!=-1){ // liest jede Buchstabe als Zahl und umwandelt in char + System.out.print((char)z); + //lies.close(); + } + lies.close(); + + } catch(FileNotFoundException e) { + System.out.println("Datei wurde nicht gefunden"); + } catch (IOException e) { + System.out.println("Fehler: " + e.getMessage()); + } + } + +} \ No newline at end of file diff --git a/8/Aufgabe1.~ava b/8/Aufgabe1.~ava new file mode 100644 index 0000000..05dbd60 --- /dev/null +++ b/8/Aufgabe1.~ava @@ -0,0 +1,33 @@ +import java.io.*; +import java.util.Scanner; + +public class Aufgabe1 { + public static void main(String arrgs[]) { //throws IOException + try { + FileOutputStream schreib = new FileOutputStream("speicher.txt"); + + FileInputStream lies = new FileInputStream("speicher.txt"); + + String zeile; + int z = 0; + + Scanner input = new Scanner(System.in); + + zeile = input.next(); + + schreib.write(zeile.getBytes(),0,zeile.length()); // Schreibt String zeile in Datei + schreib.close(); + while((z=lies.read())!=-1){ // liest jede Buchstabe als Zahl und umwandelt in char + System.out.print((char)z); + //lies.close(); + } + lies.close(); + + } catch(FileNotFoundException e) { + System.out.println("Datei wurde nicht gefunden"); + } catch (IOException e) { + System.out.println("Fehler: " + e.getMessage()); + } + } + +} \ No newline at end of file diff --git a/8/Aufgabe3.class b/8/Aufgabe3.class new file mode 100644 index 0000000000000000000000000000000000000000..02b83e79d06df2adefd217c9a4d72a6cd9e88074 GIT binary patch literal 2080 zcmaJ?TXPgu5dKc~GMix_VM7RuKoaD#;kF7IH32kPh%DrSECyp#oa`QUhfHSHnX{0f z!i&#R<&))$RlejI9+oPo@(1_}{1N^FAB^9bO~}Ng+^RWqrn}GA-Cv*X{o|jPzXKS< zV-p=n7)V-3AuZ5--+o{hT-&P^W)|+tiV{d)bUa607D(iWW({Nn_C`ic<+z1%#r8ZI zbi%|g1D1u|*s}$tyb>z8B+%h_0=<*bNyjggyhc-%RUqx9Q47G-^Z?zigGOo5spHi~HR3^mzBpnmC=)sK z>A((KID&qGq$ih2#=iVeJHR+rmQ)T}IEpt3xMVNNqVH8~b;nV4?m}gIDik=eQxx05 zOdQ7v11BxyF|?J+C~|>JO{(z~C5f5L56zG36Q?bl!C4l|m0nHNqhggb2L%gn;cbD` z!@yBez{t;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gabe3.java @@ -0,0 +1,28 @@ +import java.io.*; +import java.util.Scanner; +public class Aufgabe3 { + public static void main(String arrgs[]) { + try { + Scanner input = new Scanner(System.in); + FileOutputStream schreib = new FileOutputStream("speicher.txt"); + + + String zeile; + + + for (int i = 0;i <10 ;i++ ) { + zeile = input.next(); + zeile += '\n'; + schreib.write(zeile.getBytes(),0,zeile.length()); + } + + + schreib.close(); + } catch(FileNotFoundException e) { + System.out.println("Datei wurde nicht gefunden"); + } catch (IOException e) { + System.out.println("Fehler: " + e.getMessage()); + } + } + +} \ No newline at end of file diff --git a/8/Aufgabe3.~ava b/8/Aufgabe3.~ava new file mode 100644 index 0000000..ed61837 --- /dev/null +++ b/8/Aufgabe3.~ava @@ -0,0 +1,30 @@ +import java.io.*; +import java.util.Scanner; +public class Aufgabe3 { + public static void main(String arrgs[]) { + try { + Scanner input = new Scanner(System.in); + FileOutputStream schreib = new FileOutputStream("speicher.txt"); + + + String zeile; + + + + + for (int i = 0;i <10 ;i++ ) { + zeile = input.next(); + zeile += '\n'; + schreib.write(zeile.getBytes(),0,zeile.length()); + } + + + schreib.close(); + } catch(FileNotFoundException e) { + System.out.println("Datei wurde nicht gefunden"); + } catch (IOException e) { + System.out.println("Fehler: " + e.getMessage()); + } + } + +} \ No newline at end of file diff --git a/8/Test.class b/8/Test.class new file mode 100644 index 0000000000000000000000000000000000000000..8bd134ba229d32f32cce0d6dd3439e3c5d5d5041 GIT binary patch literal 959 zcmZuv+fEZv6kVqmhK@slBD6(8@qz`kRm2;`DiTeaR52+bX?z-n6F4}XX{J+yeuh8b zqfb7_15G6H1N<02L0qS;PzjUFx$M36TKnw1fBpIK6Tm87n1~>1AZ8(s0fCV{`-5F@ zZEvTrzO^TvP+(w1c`7UkM00bS1_lMv9gy-1uaqmxUZWLO!$8{gL6`zovmuqUD}#Kv zADS>=Y3d%EI+*M7srlNz3jIP_d922>B=hc{cb`b0^VC)<} zqg^HG%$^kUOkXJ=KJhP;Na=QysEh4y8Bs&k(01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ndRp38yqHnjpz!LxPvJH+SMeTP!J z^`I9itt0?Nt&JD>RmGv7(s{so8fUtwO>Y}T7=FfI>p1?(#z`GoDz_x9U6-1MQfS1AD+TC*-Z&$1<{xn3!lCfa+O&ycvC_`$Jnz@@K07nNKHYl^ zU=}Jq~pAa-eRkj#IGF>V^Pgs$TVb$}+Ql=Wj5T&_h(ps2-nWMjab}RkYlORSI zLMu;xsx?fbwk-oQnb36W>)%5`j4=#WZD&(BJ??a7j52@WwLbtbfhAAt+B*gE+q|D zDWGC^oSK+76z}LWYUh-Ov=8QNTehXcTT4Q2+nenmRv1#f63e_Prcx|*HuWE($`BI7 zDkWQRtGlHMiv>^(VGZwUxT$1*k74}zF)*y#c0=U4r=hzU=6Oxp&Mw0j`~O$Zu}f!> zTbrh6kC$z`(P`xmOSlg?5V*SA5`EnFE89Kk`Tg6im!iN;vtmd=3WrOUC7goE+ilU- z@IJ%Dp`Q9t)$k$1@&9+FBi!u^Cy=KLNj)Cgq;w_GI8Cb@&5UOMnMYs`T=Nwgl^Gbo zn>2>I4w#{9O<{8=5JJIhj#e6B-v@t&R*sgk-XEde9P;M$fdmHQ!AFQxvOX8{f2qe4 z(Bokj^D8Vqp(hd;jVE0w;JUF>dNP3*;<}4zF6K$<#}YUmk15Q1(Kq7DKE8)+cEmUN z5UET4bkbid{ebZ-GM-{`^!6+n-;4YH*1Y`J|)?bm=cR1#Xa)Bc65`Gdz`f5__TbPGWiGc+y((K1K zDB&terQsf~k)H=;!XxlJMN`9)m;Fsdy;vsDgX_3KbCkZ`p^&%Tv4VBNLbSex5AYGj F{sm3XjzItb literal 0 HcmV?d00001 diff --git a/9/Aufgabe2A.java b/9/Aufgabe2A.java new file mode 100644 index 0000000..9f207b4 --- /dev/null +++ b/9/Aufgabe2A.java @@ -0,0 +1,31 @@ +/** + * + * Beschreibung + * + * @version 1.0 vom 11.03.2025 + * @author + */ + +public class Aufgabe2A { + + public static void main(String args[]) { + Artikel[] lage = new Artikel[5]; + double gesamtLageWert = 0; + + lage[0] = new Artikel(815,"Reifen",4.35,8); + lage[1] = new Artikel(1435,"Klingel",6.94,12); + lage[2] = new Artikel(37,"Rücklicht",12.52,24); + lage[3] = new Artikel(294,"Vorderlicht",17.28,18); + lage[4] = new Artikel(536,"Sattel",29.94,15); + + + for (int i = 0; i < lage.length; i++) { + double artikelWert = lage[i].artikelWert(); + gesamtLageWert+= artikelWert; + System.out.println("ArtikelName: " + lage[i].getArtikelBez() + " , ArtikelWert: "+artikelWert); + } + System.out.println("GesamteWert: " + gesamtLageWert); + } + + // Ende Methoden +} // end of Aufgabe2A diff --git a/9/Aufgabe2A.uml b/9/Aufgabe2A.uml new file mode 100644 index 0000000..b786b19 --- /dev/null +++ b/9/Aufgabe2A.uml @@ -0,0 +1,27 @@ +[Files] +File0=Aufgabe2A.java + +[Box: - Aufgabe2A] +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= + diff --git a/9/Aufgabe2A.~ava b/9/Aufgabe2A.~ava new file mode 100644 index 0000000..affc1f8 --- /dev/null +++ b/9/Aufgabe2A.~ava @@ -0,0 +1,31 @@ +/** + * + * Beschreibung + * + * @version 1.0 vom 11.03.2025 + * @author + */ + +public class Aufgabe2A { + + public static void main() { + Artikel[] lage = new Artikel[5]; + double gesamtLageWert = 0; + + lage[0] = new Artikel(815,"Reifen",4.35,8); + lage[1] = new Artikel(1435,"Klingel",6.94,12); + lage[2] = new Artikel(37,"Rücklicht",12.52,24); + lage[3] = new Artikel(294,"Vorderlicht",17.28,18); + lage[4] = new Artikel(536,"Sattel",29.94,15); + + + for (int i = 0; i < lage.length; i++) { + double artikelWert = lage[i].artikelWert(); + gesamtLageWert+= artikelWert; + System.out.println("ArtikelName: " + lage[i].getArtikelBez() + " , ArtikelWert: "+artikelWert); + } + System.out.println("GesamteWert: " + gesamtLageWert); + } + + // Ende Methoden +} // end of Aufgabe2A diff --git a/9/Auto.class b/9/Auto.class new file mode 100644 index 0000000000000000000000000000000000000000..beb8ba0f246b773be3e230f724c91447fb1f4516 GIT binary patch literal 2364 zcmaJ@T~ixX7=AWDmXGBtlp+n*r3Qg$34SY7%2%P3K&y$gw0?96N3zXkH?!F=(m&9j zU~hCrZ@AHMbZDJn9B+E(UvkFrIlF7vgeVv1oPE#xzUO(L_c@3B`SL!#>E|-g_hpo`U!_(>A>Y1#MH)J6-5Rmx^u;J&7=cS?t1&oyd=BI{a}n-dydlbhXg)3l3*;ugF!Ej$Tz_+L%6%Dggy=$k?mWW3`2cJT#+WRvy}0Honf+ z&+WupEaXO2H>;lhIN*!GiozwymL*&TiSs9teDA2j=B+sULP3Alw8eIVTWV-K^|3*Fwb|azx_7t{70I@!u^2L6C~X;) z@Q6XC+-&HIfo zq}y5JWlc>M8S}4006J>_g6}xdpLiN=~~ZZ8K7}ybjBb<5fM^sB8(Z=^dMloKaP9d*u{Mn52Tbn zQ;<5l$fkYhltd=D1%WcxjDqL5M+%-s?@8zwfV#;`VTo!g>o}!aW&XU3B9?~0{82@; zaDNc-51y9!sMf<2D~4s|Oixf?+J%urM zSB%$J<;W+ED+O=k9nLYl8_s+${BK@+f9BiZ`|(C{?qLMqPLA*KE5ljg+>!nb$}e2R z@IFVmE#H<8IBJ0dKExcq6wKoq$Hw3js6TQu8a&c6_#-TY!3Xq~m5e1jzDHMbK>Yzd z>Etu0$LRSLy@{dc7?yzAd_W1bbDbpmF%01quCDm`F9tb6aLk75KHx=qcc86DRe9V} zOT@`$#1kzMFV_(-goxu3X7Y?I`9BGiaR<^7Oz}FVI97a23Rdg6ej>RtYB%}h0xqXd zpgSB=rKjIwmenUuF$s`?^zI3g$%i~ou2RV-(v=ZT>EIbs$4Jt-A;BqL_XE$UyTon+ zS4rCpiOUe^EEXx6dn8u&H=uC04tEzf>J-Ki`wNRB47>!f(Jr2KhwB(VW&{`?!(9@S^T$u|Ic?qi{sIrNhtYokPVUu8 literal 0 HcmV?d00001 diff --git a/9/Auto.java b/9/Auto.java new file mode 100644 index 0000000..37444e4 --- /dev/null +++ b/9/Auto.java @@ -0,0 +1,85 @@ +/** + * + * Beschreibung + * + * @version 1.0 vom 11.03.2025 + * @author Fesenko + */ + +public class Auto { + + // Anfang Attribute + private int anzahlTueren; + public String hersteller; + private String typ; + private int kilometerStand; + private double tankinhalt; + private double tankvebrauch; + public double maxTankinhalt; + // Ende Attribute + + // Anfang Methoden + public int getAnzahlTueren() { + return anzahlTueren; + } + + public void setAnzahlTueren(int anzahlTuerenNeu) { + if(anzahlTuerenNeu < 2 || anzahlTuerenNeu < 7) { + anzahlTueren = anzahlTuerenNeu; + } + else { + System.out.println("Zu viel Türen"); + } // end of if-else + + } + + public int getKilometerStand() { + return kilometerStand; + } + + public void setKilometerStand(int kilometerStandNeu) { + kilometerStand = kilometerStandNeu; + } + + public void fahren(int km) { + if(km <= ((100)/tankvebrauch)*tankinhalt) { + System.out.println("Gefahren: " + km + " km!"); + kilometerStand += km; + tankinhalt -= (km*(tankvebrauch/100)); + } + else { + System.out.println("man könnte nur: " + ((100)/tankvebrauch)*tankinhalt + " km maximal fahren!"); + } + + + } + + public double getTankinhalt() { + return tankinhalt; + } + + public void setTankinhalt(double tankinhaltNeu) { + tankinhalt = tankinhaltNeu; + } + + public double getTankvebrauch() { + return tankvebrauch; + } + + public void setTankvebrauch(double tankvebrauchNeu) { + tankvebrauch = tankvebrauchNeu; + } + + public void tanken(double anzahl) { + if(anzahl+tankinhalt > maxTankinhalt) { + System.out.println("Es ist zu viel"); + + } + else { + tankinhalt += anzahl; + } // end of if-else + + } + + // Ende Methoden +} // end of Auto diff --git a/9/Auto.uml b/9/Auto.uml new file mode 100644 index 0000000..67bb885 --- /dev/null +++ b/9/Auto.uml @@ -0,0 +1,27 @@ +[Files] +File0=Auto.java + +[Box: - Auto] +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= + diff --git a/9/Auto.~ava b/9/Auto.~ava new file mode 100644 index 0000000..fa4dad0 --- /dev/null +++ b/9/Auto.~ava @@ -0,0 +1,79 @@ +/** + * + * Beschreibung + * + * @version 1.0 vom 11.03.2025 + * @author Fesenko + */ + +public class Auto { + + // Anfang Attribute + private int anzahlTueren; + public String hersteller; + private String typ; + private int kilometerStand; + private double tankinhalt; + private double tankvebrauch; + public double maxTankinhalt; + // Ende Attribute + + // Anfang Methoden + public int getAnzahlTueren() { + return anzahlTueren; + } + + public void setAnzahlTueren(int anzahlTuerenNeu) { + if(anzahlTuerenNeu < 2 || anzahlTuerenNeu < 7) { + anzahlTueren = anzahlTuerenNeu; + } + else { + System.out.println("Zu viel Türen"); + } // end of if-else + + } + + public int getKilometerStand() { + return kilometerStand; + } + + public void setKilometerStand(int kilometerStandNeu) { + kilometerStand = kilometerStandNeu; + } + + public void fahren(int km) { + System.out.println("Gefahren: " + km + " km!"); + kilometerStand += km; + tankinhalt -= (km*(tankvebrauch/100)); + System.out.println("man könnte noch: " + ((100)/tankvebrauch)*tankinhalt + " km fahren!"); + } + + public double getTankinhalt() { + return tankinhalt; + } + + public void setTankinhalt(double tankinhaltNeu) { + tankinhalt = tankinhaltNeu; + } + + public double getTankvebrauch() { + return tankvebrauch; + } + + public void setTankvebrauch(double tankvebrauchNeu) { + tankvebrauch = tankvebrauchNeu; + } + + public void tanken(double anzahl) { + if(anzahl+tankinhalt > maxTankinhalt) { + System.out.println("Es ist zu viel"); + + } + else { + tankinhalt += anzahl; + } // end of if-else + + } + + // Ende Methoden +} // end of Auto diff --git a/9/AutoAufruf.class b/9/AutoAufruf.class new file mode 100644 index 0000000000000000000000000000000000000000..5ddabfbf3a8cb7e50e291a2340cf1f6660e3b229 GIT binary patch literal 1897 zcmah~%W@l45IxtjHL@~}ZTS%#g3AGuND}jF=gj zI6#pv$Qr0(#}Dv`QY9!Bu!0>s_yfLz;@pvmB6=Pbtx76c;6RM9|8pg-FP+&BzGv^ZkI#E`(S zuY#;|OIGYcLwU-fUow{}#xN{k6gOrrtmRh*=|5^BfiZ!2MR|UpY+HE(iF_yUdf-`3 zITKyHdYd@{`p_{G4`E7Rs3va~q*Jw=inN)WSdIX8n6-eyB44nr;KTF;uu;2di$|GSCo zdM*Kh1)cM&8Y6dTA_lT1&TEWOV)Qm3!694FVO}$_f(s;{F5Toa$Z`S^Xa}VO{@b%l2`n7hwPHDCs@D6TJ8^pVKj}{&lH@G$$^pEdh zT)T(Cd^*-dJe@dt7bEF$jNip%I&r*-hp9|AF~i4f6Q{mGD*YWsS`3aRp4Dm-FSqbY zm%7-(QkS~i!fKa#u?1eMJewZbYGSR8@Sr2<(a4|w?=+4#nkcl9?nmnoQp5xc9YBn0 zK14Z2B98M?pTQBFCPi~N%KV3s#|TLq#ST9-dl<*3Ja-3^_>$j{uP}vgdFm&ez%Tq@ z{Eq36;K??Lcps86V)zZ4D3Rg_wy5_(VVlnxM*o1;awx4(Rzq0}rHc>g6{p8d+``A0 F`Wr{d%`*T1 literal 0 HcmV?d00001 diff --git a/9/AutoAufruf.java b/9/AutoAufruf.java new file mode 100644 index 0000000..e5911b4 --- /dev/null +++ b/9/AutoAufruf.java @@ -0,0 +1,32 @@ + +public class AutoAufruf { + + public static void main(String args[]) { + Auto car = new Auto(); + + car.setAnzahlTueren(5); + car.hersteller = "VW GOLF"; + car.maxTankinhalt = 70.0; + car.setKilometerStand(32768); + car.setTankinhalt(60.0); + car.setTankvebrauch(6.4); + + System.out.println("Hersteller: " + car.hersteller); + System.out.println("Türen: " + car.getAnzahlTueren()); + System.out.println("KilometerStand: " + car.getKilometerStand()); + System.out.println("Tankinhalt: " + car.getTankinhalt()); + System.out.println("Tankinvebrauch: " + car.getTankvebrauch()); + + car.fahren(100); + System.out.println("KilometerStand: " + car.getKilometerStand()); + System.out.println("Tankinhalt: " + car.getTankinhalt()); + + car.fahren(1000); + System.out.println("KilometerStand: " + car.getKilometerStand()); + System.out.println("Tankinhalt: " + car.getTankinhalt()); + + car.tanken(10); + System.out.println("Tankinhalt: " + car.getTankinhalt()); + } + +} \ No newline at end of file diff --git a/9/AutoAufruf.uml b/9/AutoAufruf.uml new file mode 100644 index 0000000..014024b --- /dev/null +++ b/9/AutoAufruf.uml @@ -0,0 +1,27 @@ +[Files] +File0=AutoAufruf.java + +[Box: - AutoAufruf] +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= + diff --git a/9/AutoAufruf.~ava b/9/AutoAufruf.~ava new file mode 100644 index 0000000..e1f05ce --- /dev/null +++ b/9/AutoAufruf.~ava @@ -0,0 +1,28 @@ + +public class AutoAufruf { + + public static void main(String args[]) { + Auto car = new Auto(); + + car.setAnzahlTueren(5); + car.hersteller = "VW GOLF"; + car.maxTankinhalt = 70.0; + car.setKilometerStand(32768); + car.setTankinhalt(60.0); + car.setTankvebrauch(6.4); + + System.out.println("Hersteller: " + car.hersteller); + System.out.println("Türen: " + car.getAnzahlTueren()); + System.out.println("KilometerStand: " + car.getKilometerStand()); + System.out.println("Tankinhalt: " + car.getTankinhalt()); + System.out.println("Tankinvebrauch: " + car.getTankvebrauch()); + + car.fahren(938); + System.out.println("KilometerStand: " + car.getKilometerStand()); + System.out.println("Tankinhalt: " + car.getTankinhalt()); + + car.tanken(10); + System.out.println("Tankinhalt: " + car.getTankinhalt()); + } + +} \ No newline at end of file diff --git a/9/Kreis.class b/9/Kreis.class new file mode 100644 index 0000000000000000000000000000000000000000..f19d142343cf66e544f09921354ab409d97afd2c GIT binary patch literal 1123 zcmaKsTTc@~6vzKVX_u}mmr^KHMNrTdg?hhGRHRLVv8YJ_AAB0NBVD@PX?CX=zKI{e zFQ74Mc<{wHzmkdZ%(iJuXxxX{b7s%^oy(lr-+xbj0(g#16GMm?7`6~ajA8tcAMu>a zy@TBA{X=0ZhS<8}IqE4xB$M5XV+3&nriF8`PMKGZ10@<{C0pb)RSrRp%)Rj)PgRsJ zcq1R%prHDRV;mC(5*8+rWQe}>g%eOHpI4n039M*fnqjn;%{EuH*hYNe&rWe=CP9d_ zg$uaIkZSO{C`ixd>aC+{Bn66liXc;&Vz!+|SP$jkcn5hCbGU3^-ogT|FiZ}}lfh`} ztX)q-&LXmVCZ@1xVF}l$;HLaQC1i@lY%u|bG{bN~Rt3XY+401yR%2iIJAB`zokUsM z+}-28qxH__u&U|ejdIw9JVTrugkAH*Zl7FYFe|d<+oI%Xlo?vD>h$RxHlBe+YxyW8*SB-iHI2=0?d$^G@ot_jk|Vt8oc5gr>@(|x3%i@jbu-jS?}T)ScI z)|R-fq<_rtvA-W3!*(IJj^YMxlE$#obuJM|+s%A|k;M7suNbQ*k*c3y z7WjrsJ)XX|zywm1M2|VsWv+IaTQEXqI%K9alh8kKm8jPTQl}|es*jrPP$N{FuICnR a(|eSp2SmOTuJ^D`dnV~m@Qi*ev;P2(`TiLI literal 0 HcmV?d00001 diff --git a/9/Kreis.java b/9/Kreis.java new file mode 100644 index 0000000..bf1a167 --- /dev/null +++ b/9/Kreis.java @@ -0,0 +1,26 @@ +/** + * + * Beschreibung + * + * @version 1.0 vom 11.03.2025 + * @author + */ + +public class Kreis { + + // Anfang Attribute + public double radius; + // Ende Attribute + + // Anfang Methoden + public void berechneU() { + System.out.println("UMfang: " + (2 * radius * Math.PI)); + + } + + public void berechneF() { + System.out.println("Fläche: "+ (Math.PI * Math.pow(radius,2) )); + } + + // Ende Methoden +} // end of Kreis diff --git a/9/Kreis.uml b/9/Kreis.uml new file mode 100644 index 0000000..5c659f5 --- /dev/null +++ b/9/Kreis.uml @@ -0,0 +1,27 @@ +[Files] +File0=Kreis.java + +[Box: - Kreis] +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= + diff --git a/9/Kreis.~ava b/9/Kreis.~ava new file mode 100644 index 0000000..3303019 --- /dev/null +++ b/9/Kreis.~ava @@ -0,0 +1,26 @@ +/** + * + * Beschreibung + * + * @version 1.0 vom 11.03.2025 + * @author + */ + +public class Kreis { + + // Anfang Attribute + public double radius; + // Ende Attribute + + // Anfang Methoden + public void berechneU() { + System.out.println("UMfang: " + (2 * radius * Math.PI)); + + } + + public void berechneF() { + System.out.println("Fläche: "+ (Math.PI * Math.pow(radius,2) ); + } + + // Ende Methoden +} // end of Kreis diff --git a/9/Rechteck.class b/9/Rechteck.class new file mode 100644 index 0000000000000000000000000000000000000000..8508556c98a858cc2d52d35df4010655d1d901ff GIT binary patch literal 980 zcmaJ=U2hUW6g>l!g>_ph6l?vcRZ#)8>$iy*la_>(1V17TKKL{&ld@%*A-h8p{)s=p zKVV}t>4OjY=8rPoWvS3WeAt~kcg{Wc+&g!E|2g>qU+g@eCbM8zha0NORY3gNEF_FPyFxPLGlV!qsAjfz?CMnuUCbh}^qb(zK{~TIjCo1SymmR%+g_&lLP(i#h$D$C)JVnYfQ_19sS-2MmSj z4Z8A3^@JTYB5GNUJ6ic8hEKC~PJmIOJuW+*2nr3Qdc#3wz8y23GlBb~fmi_lID?O7 zsxo^`6N)PLye5qRHOi_>Dg3I(gFplZ9y8pUt7(x`15X(?{|}{+it5638nYP9RSYbg zMzZMg$7|@J$3Xur^4hdAT9?Y-!M>0Yqfm^Gfi!NAZAAdwM1giB_g`=o@$p&y7)JRk zmg&oNPjCVFhD%ej@DTzztdW8#VSYjw$89=|;SP$lrikz^eI-1kok`XsJi#+;`~|!& B?p^=@ literal 0 HcmV?d00001 diff --git a/9/Rechteck.java b/9/Rechteck.java new file mode 100644 index 0000000..6de752c --- /dev/null +++ b/9/Rechteck.java @@ -0,0 +1,24 @@ +/** + * + * Beschreibung + * + * @version 1.0 vom 11.03.2025 + * @author + */ + +public class Rechteck { + + // Anfang Attribute + public int seiteA; + public int seiteB; + // Ende Attribute + + // Anfang Methoden + + public void berechneFlaeche() { + System.out.println("Fläche: " + (seiteA*seiteB) + "cm²"); + + } + + // Ende Methoden +} // end of Rechteck diff --git a/9/Rechteck.uml b/9/Rechteck.uml new file mode 100644 index 0000000..a64479d --- /dev/null +++ b/9/Rechteck.uml @@ -0,0 +1,27 @@ +[Files] +File0=Rechteck.java + +[Box: - Rechteck] +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= + diff --git a/9/Rechteck.~ava b/9/Rechteck.~ava new file mode 100644 index 0000000..21f71d7 --- /dev/null +++ b/9/Rechteck.~ava @@ -0,0 +1,24 @@ +/** + * + * Beschreibung + * + * @version 1.0 vom 11.03.2025 + * @author + */ + +public class Rechteck { + + // Anfang Attribute + public int seiteA; + public int seiteB; + // Ende Attribute + + // Anfang Methoden + + public void berechneFlaeche() { + System.out.println("Fläche: " + (seiteA*seiteB)); + + } + + // Ende Methoden +} // end of Rechteck diff --git a/Auto.uml b/Auto.uml new file mode 100644 index 0000000..67bb885 --- /dev/null +++ b/Auto.uml @@ -0,0 +1,27 @@ +[Files] +File0=Auto.java + +[Box: - Auto] +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= + diff --git a/fx/.gitingore b/fx/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/fx/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/fx/error.txt b/fx/error.txt new file mode 100644 index 0000000..e69de29 diff --git a/fx/sed.class b/fx/sed.class new file mode 100644 index 0000000000000000000000000000000000000000..b73012182ad701a58aac38e51a614648726a2d79 GIT binary patch literal 3528 zcma)930D(W6#gEBB!p2B5fnvHQQ0&^aj8)YqEy?sLZfK4eIySuI?TkG35wmc`@U~> zv8&w|Z8a!ZYkPW5&uRTlJ-u%xtD^OAoV?{O?|%2Y_dWmqcl;`VF8m%q2}*tNC@6!M zVcuar!UvBBc`~V~F>b4d9_-4G8NBONU9~qdlr}X-eeg5XXH=}1&_yt2=(cHS!H8Lj1d)AE) zZ3>oQIYYn_cEmaGJ_b({S@(7}J!3HU!WJLC=aXTS7a<_s`bTRm8W1B68Erunzpl_3_=BU)}RO z+GPa$o1<0a{2m2cv5gjDT+p^p$P1%i|OU?WQO!lRb!|3QQ0`BvqW+VW`b{ zaqGib&WNWJjL6pJu@VNgqY4~XFp3itxyDm^EWuFIbigSu7vKV4kKj=s9#il*PBK)= zd}TyNEutuy6vtJH(bKd|*5MNjtwn{M?S(O7O0Z8Hw|i8f#bt|;+zH?mo|5(bG&Qu` z`6p*&l-gylI;3+uWfC?ki@QPAkF+d%?)saf*%)S6lhwL)Io(3j({04b?X-xhiyf)q z0b%yJ6;>57sHCFYROLLg=&=(jrKc=HZJykgSvEHbrGgygNkciJW{@=1VQ!9QXjGj& zCn;vhMRq)V-mViPto}BK%6%^a5d7USf3+>3&dVkj~mCFs&rsu6lfj|2dhGn z8!fgo9L!mqH0W$#ZVlbYs(fF(d0+Bb!k^?Or@9FA8Ywd-dQ@4+RHpIevM#8EHc<*K z+vLgZ!cG`*s}f)5`h0PFbIwwk zo30D9TjQ1`EFXTQN7hZ4OctIGzh$1AMV5<1sYkn5U;*W!gl_T@`lB}_-Cxf*vu9~e z@3h?fIqIjxLwM=?JW1?EDUE>ImNBrF3HbWQP<|1CmP@F-h??_`kr(J&LrTC5crcU9 z*Ps%$^sT{*w5qr!@Dg688N(}h)iuvf(wji)U7tW5S)RLn0`>iE)tFz61!GvWV**QP zxoMrJ z>?*-tXB;gU?<*MZFBm`Ij@!~WB(1r#)^TuYQnXebNkeO0mPWEQ4O?PT3W-USumI-3 zkGX`#JTy=mTCfluScHveq&L-K^wMMU0G86LpcyIJJ%v_6sST&;MR^v>@e4w@f))6K zo{oQ!=08~FVA|p0mcf(|#A|q+Q1#HMj}vY-$OEH4pp3G6ET3BWUmRc^35N^PS%werAy65R#hoz_%o-@YgopD6B$+^Q z listView1 = new ListView<>(); + private ObservableList zahlen = + FXCollections.observableArrayList(); + private Label label1 = new Label(); + private Button button1 = new Button(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 447, 224); + + StringConverter converter = new DefaultStringConverter(); + // Anfang Komponenten + + listView1.setLayoutX(16); + listView1.setLayoutY(8); + listView1.setPrefHeight(176); + listView1.setPrefWidth(120); + listView1.setItems(zahlen); + listView1.setEditable(true); + listView1.setCellFactory(param -> new TextFieldListCell<>(converter)); + + zahlen.add("1000"); + zahlen.add("182"); + zahlen.add("14"); + zahlen.add("341"); + zahlen.add("161"); + root.getChildren().add(listView1); + label1.setLayoutX(160); + label1.setLayoutY(16); + label1.setPrefHeight(24); + label1.setPrefWidth(80); + label1.setText("Antwort"); + label1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(label1); + button1.setLayoutX(160); + button1.setLayoutY(48); + button1.setPrefHeight(24); + button1.setPrefWidth(80); + button1.setText("Button"); + button1.setOnAction( + (event) -> {button1_Action(event);} + ); + button1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(button1); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("sed"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public sed + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void button1_Action(Event evt) { + zahlen.sorted() + + } // end of button1_Action + + // Ende Methoden +} // end of class sed diff --git a/fx/sed.jfm b/fx/sed.jfm new file mode 100644 index 0000000..efe5556 --- /dev/null +++ b/fx/sed.jfm @@ -0,0 +1,149 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 985 + Top = 436 + BorderIcons = [biSystemMenu] + Caption = 'sed' + ClientHeight = 224 + ClientWidth = 451 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnCanResize = FormCanResize + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'sed' + FontSize = 11 + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object listView1: TFXListView + Tag = 109 + Left = 16 + Top = 8 + Width = 120 + Height = 176 + Hint = 'listView1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = 13158600 + JavaType = 'ListView' + LayoutX = 16 + LayoutY = 8 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 176 + PrefWidth = 120 + SnapToPixel = False + Editable = False + FixedCellSize = -1 + Items.Strings = ( + 'Amerika' + 'Europa' + 'Asien') + Orientation = VERTICAL + SelectionMode = SINGLE + end + object label1: TFXLabel + Tag = 101 + Left = 160 + Top = 16 + Width = 80 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 160 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Label' + TextAlignment = _TA_LEFT + WrapText = False + end + object button1: TFXButton + Tag = 105 + Left = 160 + Top = 48 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 160 + LayoutY = 48 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Button' + TextAlignment = _TA_LEFT + WrapText = False + action = 'button1_Action' + CancelButton = False + DefaultButton = False + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/fx/sed.~ava b/fx/sed.~ava new file mode 100644 index 0000000..b7ca6f6 --- /dev/null +++ b/fx/sed.~ava @@ -0,0 +1,89 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.collections.*; +import javafx.scene.control.*; +import javafx.scene.control.cell.TextFieldListCell; +import javafx.util.StringConverter; +import javafx.util.converter.DefaultStringConverter; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.event.*; + +/** + * + * Beschreibung + * + * @version 1.0 vom 22.01.2025 + * @author + */ + +public class sed extends Application { + // Anfang Attribute + private ListView listView1 = new ListView<>(); + private ObservableList zahlen = + FXCollections.observableArrayList(); + private Label label1 = new Label(); + private Button button1 = new Button(); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 447, 224); + + StringConverter converter = new DefaultStringConverter(); + // Anfang Komponenten + + listView1.setLayoutX(16); + listView1.setLayoutY(8); + listView1.setPrefHeight(176); + listView1.setPrefWidth(120); + listView1.setItems(zahlen); + listView1.setEditable(true); + listView1.setCellFactory(param -> new TextFieldListCell<>(converter)); + + zahlen.add("1000"); + zahlen.add("182"); + zahlen.add("14"); + zahlen.add("341"); + zahlen.add("161"); + root.getChildren().add(listView1); + label1.setLayoutX(160); + label1.setLayoutY(16); + label1.setPrefHeight(24); + label1.setPrefWidth(80); + label1.setText("Antwort"); + label1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(label1); + button1.setLayoutX(160); + button1.setLayoutY(48); + button1.setPrefHeight(24); + button1.setPrefWidth(80); + button1.setText("Button"); + button1.setOnAction( + (event) -> {button1_Action(event);} + ); + button1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(button1); + // Ende Komponenten + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("sed"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public sed + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + + public void button1_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of button1_Action + + // Ende Methoden +} // end of class sed diff --git a/fx/sed.~fm b/fx/sed.~fm new file mode 100644 index 0000000..efe5556 --- /dev/null +++ b/fx/sed.~fm @@ -0,0 +1,149 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 985 + Top = 436 + BorderIcons = [biSystemMenu] + Caption = 'sed' + ClientHeight = 224 + ClientWidth = 451 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnCanResize = FormCanResize + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'sed' + FontSize = 11 + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object listView1: TFXListView + Tag = 109 + Left = 16 + Top = 8 + Width = 120 + Height = 176 + Hint = 'listView1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = 13158600 + JavaType = 'ListView' + LayoutX = 16 + LayoutY = 8 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 176 + PrefWidth = 120 + SnapToPixel = False + Editable = False + FixedCellSize = -1 + Items.Strings = ( + 'Amerika' + 'Europa' + 'Asien') + Orientation = VERTICAL + SelectionMode = SINGLE + end + object label1: TFXLabel + Tag = 101 + Left = 160 + Top = 16 + Width = 80 + Height = 24 + Hint = 'label1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Label' + LayoutX = 160 + LayoutY = 16 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER_LEFT + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Label' + TextAlignment = _TA_LEFT + WrapText = False + end + object button1: TFXButton + Tag = 105 + Left = 160 + Top = 48 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 160 + LayoutY = 48 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Button' + TextAlignment = _TA_LEFT + WrapText = False + action = 'button1_Action' + CancelButton = False + DefaultButton = False + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/fx/wiederTesten.class b/fx/wiederTesten.class new file mode 100644 index 0000000000000000000000000000000000000000..04d364e1c1d455986cff22de3ba9e906411f0a8e GIT binary patch literal 6908 zcma)Ad3aRS75|+{GBZpr5Qad65D*BM1v0WD13FoV1d(pI~CE;R#UwToS?wRZp7udQ~mi{0#MSKD*%n|U+yGC2L`-FwbG z_jk{|XSwITr(QY#1b}9W``|)}2c-gKa1)jv*G_69*9EkRiC8qOnNcGiXwLQt?w!$i z)V!QfQdi&aftPSmdP*{^$Mrx=n>HrRK#vyJeej@U4$2`sm@6<3^9f=qsz>xhpPn@J zIH7EU48;h?@x`7HF9?O@nt(VJ%ZBun3C@o?*pj*qVIU{CPpC z+C>6Oa^`IGpqj9(;A&lZe6mGL_^{MkZn?k;TukteTLZk_^1|z-XYy875tdvK+>2U5 zX?rxrC$|!7rA00wEUHtWe6aD+K(CpI#z%wo{ZjXOfd(`Z=4KQal5_d6F04h+i}h@} zZhcAu1OzUX01NT}hIrJ2jeL3+)U?CY$GzCh+U{j{@nHkjO1y0X+i@9T@hrR{DMwgw zVa+5Y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xE*u6fxH(>V;+r6W7jO0&VA8Q|_6Euz`{{w((^?LvS literal 0 HcmV?d00001 diff --git a/fx/wiederTesten.java b/fx/wiederTesten.java new file mode 100644 index 0000000..bc4aa97 --- /dev/null +++ b/fx/wiederTesten.java @@ -0,0 +1,171 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.web.*; +import javafx.scene.control.*; +import javafx.event.*; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.scene.input.*; +import javafx.event.Event; + + +import javafx.scene.paint.Color; + + +/** + * + * Beschreibung + * + * @version 1.0 vom 17.12.2024 + * @author + */ + +public class wiederTesten extends Application { + // Anfang Attribute + private Pane pane1 = new Pane(); + private Button button1 = new Button(); + private Button button2 = new Button(); + private MenuBar menuBar1 = new MenuBar(); + private Menu menuBar1_File = new Menu("File"); + private Menu menuBar1_File_New = new Menu("New"); + private MenuItem menuBar1_File_New_Java = new MenuItem("Java"); + private MenuItem menuBar1_File_New_XML = new MenuItem("XML"); + private MenuItem menuBar1_File_Load = new MenuItem("Load"); + private MenuItem menuBar1_File_Save = new MenuItem("Save"); + private Menu menuBar1_Edit = new Menu("Edit"); + private MenuItem menuBar1_Edit_Copy = new MenuItem("Copy"); + private MenuItem menuBar1_Edit_Paste = new MenuItem("Paste"); + private SeparatorMenuItem menuBar1_Separator1 = new SeparatorMenuItem(); + private MenuItem menuBar1_Edit_Delete = new MenuItem("Delete"); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 540, 371); + scene.setFill(Color.CYAN); + // Anfang Komponenten + + pane1.setLayoutX(192); + pane1.setLayoutY(152); + pane1.setPrefHeight(144); + pane1.setPrefWidth(160); + root.getChildren().add(pane1); + button1.setLayoutX(24); + button1.setLayoutY(24); + button1.setPrefHeight(24); + button1.setPrefWidth(80); + button1.setText("Button"); + button1.setOnAction( + (event) -> {button1_Action(event);} + ); + button1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(button1); + root.getChildren().add(menuBar1); + menuBar1.getMenus().add(menuBar1_File); + menuBar1_File.getItems().add(menuBar1_File_New); + menuBar1_File_New.getItems().add(menuBar1_File_New_Java); + menuBar1_File_New.getItems().add(menuBar1_File_New_XML); + menuBar1_File.getItems().add(menuBar1_File_Load); + menuBar1_File.getItems().add(menuBar1_File_Save); + menuBar1_File_Save.setAccelerator(KeyCombination.keyCombination("Ctrl+Shift+S")); + menuBar1.getMenus().add(menuBar1_Edit); + menuBar1_Edit.getItems().add(menuBar1_Edit_Copy); + menuBar1_Edit_Copy.setAccelerator(KeyCombination.keyCombination("Ctrl+C")); + menuBar1_Edit.getItems().add(menuBar1_Edit_Paste); + menuBar1_Edit_Paste.setAccelerator(KeyCombination.keyCombination("Ctrl+V")); + menuBar1_Edit.getItems().add(menuBar1_Separator1); + menuBar1_Edit.getItems().add(menuBar1_Edit_Delete); + menuBar1_File_New_Java.setOnAction( + (event) -> {menuBar1_File_New_Java_Action(event);} + ); + menuBar1_File_New_XML.setOnAction( + (event) -> {menuBar1_File_New_XML_Action(event);} + ); + menuBar1_File_Load.setOnAction( + (event) -> {menuBar1_File_Load_Action(event);} + ); + menuBar1_File_Save.setOnAction( + (event) -> {menuBar1_File_Save_Action(event);} + ); + menuBar1_Edit_Copy.setOnAction( + (event) -> {menuBar1_Edit_Copy_Action(event);} + ); + menuBar1_Edit_Paste.setOnAction( + (event) -> {menuBar1_Edit_Paste_Action(event);} + ); + menuBar1_Edit_Delete.setOnAction( + (event) -> {menuBar1_Edit_Delete_Action(event);} + ); + menuBar1.setPrefWidth(4000); + // Ende Komponenten + + button2.setLayoutX(0); + button2.setLayoutY(0); + + button2.setPrefWidth(100); + button2.setPrefHeight(50); + button2.setText("Open"); + button2.setOnAction( (event) -> {open(event);}); + pane1.getChildren().add(button2); + + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("wiederTesten"); + primaryStage.setScene(scene); + primaryStage.show(); + + } // end of public wiederTesten + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + public void open(Event evt) { + button2.setText("Close"); + + } + public void button1_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of button1_Action + + + public void menuBar1_File_New_Java_Action(Event evt) { + + + } // end of menuBar1_File_New_Java_Action + + public void menuBar1_File_New_XML_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_File_New_XML_Action + + public void menuBar1_File_Load_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_File_Load_Action + + public void menuBar1_File_Save_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_File_Save_Action + + public void menuBar1_Edit_Copy_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_Edit_Copy_Action + + public void menuBar1_Edit_Paste_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_Edit_Paste_Action + + public void menuBar1_Edit_Delete_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_Edit_Delete_Action + // Ende Methoden +} // end of class wiederTesten diff --git a/fx/wiederTesten.jfm b/fx/wiederTesten.jfm new file mode 100644 index 0000000..b74ee80 --- /dev/null +++ b/fx/wiederTesten.jfm @@ -0,0 +1,143 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 794 + Top = 459 + BorderIcons = [biSystemMenu] + Caption = 'wiederTesten' + ClientHeight = 371 + ClientWidth = 544 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnCanResize = FormCanResize + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'wiederTesten' + FontSize = 11 + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object pane1: TFXPane + Tag = 121 + Left = 192 + Top = 152 + Width = 160 + Height = 144 + Hint = 'pane1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Pane' + LayoutX = 192 + LayoutY = 152 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 144 + PrefWidth = 160 + SnapToPixel = False + end + object button1: TFXButton + Tag = 105 + Left = 24 + Top = 24 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 24 + LayoutY = 24 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Button' + TextAlignment = _TA_LEFT + WrapText = False + action = 'button1_Action' + CancelButton = False + DefaultButton = False + end + object menuBar1: TFXMenuBarWithMenus + Tag = 124 + Left = 0 + Top = 0 + Width = 540 + Height = 23 + Hint = 'menuBar1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = 16053492 + JavaType = 'MenuBar' + LayoutX = 0 + LayoutY = 0 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 23 + PrefWidth = 540 + SnapToPixel = False + MenuItems.Strings = ( + 'File' + ' New' + ' Java' + ' XML' + ' Load' + ' Save, Ctrl+Shift+S' + 'Edit' + ' Copy, Ctrl+C' + ' Paste, Ctrl+V' + ' -' + ' Delete') + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/fx/wiederTesten.~ava b/fx/wiederTesten.~ava new file mode 100644 index 0000000..12a5a36 --- /dev/null +++ b/fx/wiederTesten.~ava @@ -0,0 +1,171 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.web.*; +import javafx.scene.control.*; +import javafx.event.*; +import javafx.scene.text.*; +import javafx.scene.text.Font; +import javafx.scene.input.*; +import javafx.event.Event; +import java.awt.Color; + +import javafx.scene.paint.Color; + + +/** + * + * Beschreibung + * + * @version 1.0 vom 17.12.2024 + * @author + */ + +public class wiederTesten extends Application { + // Anfang Attribute + private Pane pane1 = new Pane(); + private Button button1 = new Button(); + private Button button2 = new Button(); + private MenuBar menuBar1 = new MenuBar(); + private Menu menuBar1_File = new Menu("File"); + private Menu menuBar1_File_New = new Menu("New"); + private MenuItem menuBar1_File_New_Java = new MenuItem("Java"); + private MenuItem menuBar1_File_New_XML = new MenuItem("XML"); + private MenuItem menuBar1_File_Load = new MenuItem("Load"); + private MenuItem menuBar1_File_Save = new MenuItem("Save"); + private Menu menuBar1_Edit = new Menu("Edit"); + private MenuItem menuBar1_Edit_Copy = new MenuItem("Copy"); + private MenuItem menuBar1_Edit_Paste = new MenuItem("Paste"); + private SeparatorMenuItem menuBar1_Separator1 = new SeparatorMenuItem(); + private MenuItem menuBar1_Edit_Delete = new MenuItem("Delete"); + // Ende Attribute + + public void start(Stage primaryStage) { + Pane root = new Pane(); + Scene scene = new Scene(root, 540, 371); + scene.setFill(Color.CYAN); + // Anfang Komponenten + + pane1.setLayoutX(192); + pane1.setLayoutY(152); + pane1.setPrefHeight(144); + pane1.setPrefWidth(160); + root.getChildren().add(pane1); + button1.setLayoutX(24); + button1.setLayoutY(24); + button1.setPrefHeight(24); + button1.setPrefWidth(80); + button1.setText("Button"); + button1.setOnAction( + (event) -> {button1_Action(event);} + ); + button1.setFont(Font.font("Dialog", 11)); + root.getChildren().add(button1); + root.getChildren().add(menuBar1); + menuBar1.getMenus().add(menuBar1_File); + menuBar1_File.getItems().add(menuBar1_File_New); + menuBar1_File_New.getItems().add(menuBar1_File_New_Java); + menuBar1_File_New.getItems().add(menuBar1_File_New_XML); + menuBar1_File.getItems().add(menuBar1_File_Load); + menuBar1_File.getItems().add(menuBar1_File_Save); + menuBar1_File_Save.setAccelerator(KeyCombination.keyCombination("Ctrl+Shift+S")); + menuBar1.getMenus().add(menuBar1_Edit); + menuBar1_Edit.getItems().add(menuBar1_Edit_Copy); + menuBar1_Edit_Copy.setAccelerator(KeyCombination.keyCombination("Ctrl+C")); + menuBar1_Edit.getItems().add(menuBar1_Edit_Paste); + menuBar1_Edit_Paste.setAccelerator(KeyCombination.keyCombination("Ctrl+V")); + menuBar1_Edit.getItems().add(menuBar1_Separator1); + menuBar1_Edit.getItems().add(menuBar1_Edit_Delete); + menuBar1_File_New_Java.setOnAction( + (event) -> {menuBar1_File_New_Java_Action(event);} + ); + menuBar1_File_New_XML.setOnAction( + (event) -> {menuBar1_File_New_XML_Action(event);} + ); + menuBar1_File_Load.setOnAction( + (event) -> {menuBar1_File_Load_Action(event);} + ); + menuBar1_File_Save.setOnAction( + (event) -> {menuBar1_File_Save_Action(event);} + ); + menuBar1_Edit_Copy.setOnAction( + (event) -> {menuBar1_Edit_Copy_Action(event);} + ); + menuBar1_Edit_Paste.setOnAction( + (event) -> {menuBar1_Edit_Paste_Action(event);} + ); + menuBar1_Edit_Delete.setOnAction( + (event) -> {menuBar1_Edit_Delete_Action(event);} + ); + menuBar1.setPrefWidth(4000); + // Ende Komponenten + + button2.setLayoutX(0); + button2.setLayoutY(0); + + button2.setPrefWidth(100); + button2.setPrefHeight(50); + button2.setText("Open"); + button2.setOnAction( (event) -> {open(event);}); + pane1.getChildren().add(button2); + + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("wiederTesten"); + primaryStage.setScene(scene); + primaryStage.show(); + + } // end of public wiederTesten + + // Anfang Methoden + + public static void main(String[] args) { + launch(args); + } // end of main + public void open(Event evt) { + button2.setText("Close"); + + } + public void button1_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of button1_Action + + + public void menuBar1_File_New_Java_Action(Event evt) { + + + } // end of menuBar1_File_New_Java_Action + + public void menuBar1_File_New_XML_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_File_New_XML_Action + + public void menuBar1_File_Load_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_File_Load_Action + + public void menuBar1_File_Save_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_File_Save_Action + + public void menuBar1_Edit_Copy_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_Edit_Copy_Action + + public void menuBar1_Edit_Paste_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_Edit_Paste_Action + + public void menuBar1_Edit_Delete_Action(Event evt) { + // TODO hier Quelltext einfügen + + } // end of menuBar1_Edit_Delete_Action + // Ende Methoden +} // end of class wiederTesten diff --git a/fx/wiederTesten.~fm b/fx/wiederTesten.~fm new file mode 100644 index 0000000..b74ee80 --- /dev/null +++ b/fx/wiederTesten.~fm @@ -0,0 +1,143 @@ +object FGUIForm: TFXGuiForm + Tag = 180 + Left = 794 + Top = 459 + BorderIcons = [biSystemMenu] + Caption = 'wiederTesten' + ClientHeight = 371 + ClientWidth = 544 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnCanResize = FormCanResize + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + FrameType = 8 + Modified = False + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'wiederTesten' + FontSize = 11 + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object pane1: TFXPane + Tag = 121 + Left = 192 + Top = 152 + Width = 160 + Height = 144 + Hint = 'pane1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Pane' + LayoutX = 192 + LayoutY = 152 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 144 + PrefWidth = 160 + SnapToPixel = False + end + object button1: TFXButton + Tag = 105 + Left = 24 + Top = 24 + Width = 80 + Height = 24 + Hint = 'button1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = clBtnFace + JavaType = 'Button' + LayoutX = 24 + LayoutY = 24 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 24 + PrefWidth = 80 + SnapToPixel = False + Alignment = CENTER + ContentDisplay = _CD_LEFT + EllipsisString = '...' + Underline = False + TextFill = 3355443 + GraphicTextGap = 4 + MnemonicParsing = False + Text = 'Button' + TextAlignment = _TA_LEFT + WrapText = False + action = 'button1_Action' + CancelButton = False + DefaultButton = False + end + object menuBar1: TFXMenuBarWithMenus + Tag = 124 + Left = 0 + Top = 0 + Width = 540 + Height = 23 + Hint = 'menuBar1' + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -15 + Font.Name = 'Dialog' + Font.Style = [] + Foreground = clBlack + Background = 16053492 + JavaType = 'MenuBar' + LayoutX = 0 + LayoutY = 0 + Disable = False + Cache = False + dragOver = '' + PrefHeight = 23 + PrefWidth = 540 + SnapToPixel = False + MenuItems.Strings = ( + 'File' + ' New' + ' Java' + ' XML' + ' Load' + ' Save, Ctrl+Shift+S' + 'Edit' + ' Copy, Ctrl+C' + ' Paste, Ctrl+V' + ' -' + ' Delete') + end + object GNUgettextMarker: TGnuGettextComponentMarker + end +end diff --git a/projekt/.gitingore b/projekt/.gitingore new file mode 100644 index 0000000..05acd03 --- /dev/null +++ b/projekt/.gitingore @@ -0,0 +1,2 @@ +*.class +*.~ava diff --git a/projekt/Game.class b/projekt/Game.class new file mode 100644 index 0000000000000000000000000000000000000000..893fb29213b284f38d36c50ea9d0c5ada9dc67d2 GIT binary patch literal 802 zcmZuv%Wl&^6g^`nac!J7O=#NE@@RM^1sdKgQXwIv0#XW#phzvNNjgehVkdGPBz}b- zU=3LW5s44rn=0U3r;8%hmS*PObME8ZncshY{sQm<&pcSL9b|lDky9uf=})@e*HN$j zu5)C%i9&8Wh=Sy~f?ch(J9^vo+A8g9aHkSF=I=?_ip!H4aVTkx@nBK?P{ zUtz8}V>BFGR9H;Qjgp{WZ*_GPnb<`c%MMn2tm4vt{j@$GCni*|f=FShnMMYK`kQDt zN?J*5blC7v!n!EAtguo&mr`p>TUUKt!-hgOkZ6U{jC-~bHh7)Nc1<+$P?@Q@<>NN0 z^oI0OR8!Cf?U#cCj$xr0MCR=%?3nny?)2#?HV0kZZ|gV^`_!394ufNfmf=Zss6|q_ z`eD{ZI(;e%qF$rcCa&Wi`K5DUUW$nh6x6;#zLn_i$6Y-rs(5V!c)9^w&GJ*MTr zIzd+DSch+rPN}oQgz{CU@b@N|A7f#P(%yG0O|Uk`l_@H8-x%Yj6jx`8m*HWV|0<=g K6L~`1!qa~`n3E;| literal 0 HcmV?d00001 diff --git a/projekt/Game.java b/projekt/Game.java new file mode 100644 index 0000000..0892368 --- /dev/null +++ b/projekt/Game.java @@ -0,0 +1,30 @@ +import java.util.Random; +import java.util.Scanner; + +public class Game { + public static Helper helper; + public static Menu menu; + public static Scanner input; + public static void main(String args[]) { + + + + boolean end = false; + + init(); + + while (!end) { + + } + } + + public static void init() { + helper = new Helper(); + input = new Scanner(System.in); + + + + + } + +} \ No newline at end of file diff --git a/projekt/Game.~ava b/projekt/Game.~ava new file mode 100644 index 0000000..5525d74 --- /dev/null +++ b/projekt/Game.~ava @@ -0,0 +1,30 @@ +import java.util.Random; +import java.util.Scanner; + +public class Game { + public static Helper helper; + public static Menu menu; + public static Scanner input; + public static void main(String args[]) { + + + + boolean end = false; + + init(); + + while (!end) { + + } + } + + public static void init() { + helper = new Helper(); + input = new Scanner(System.in); + + menu = new Menu(this); + + + } + +} \ No newline at end of file diff --git a/projekt/Helper.class b/projekt/Helper.class new file mode 100644 index 0000000000000000000000000000000000000000..440fee799037b899dc8a2a7ad5df42cf01d2cf63 GIT binary patch literal 671 zcmb7C$xg#C5Pd@fY16P3TK0Wwk)Q_-9EvKj2!T`Krp80-u8*lUE~jRZQ-X`;(UH&Va2%hwly)F`jX z3h7cvqrCjSuiT&<_);_qar6?F7XCjhWYA}#-^Kt22|a(16U=ih<+!Y#jpW0oSzEdF zLat(Bn7i4M&bjmn#=3Vb37sY7%H3w8D*Z!IbvTnMc{Slwgs=4eGid}T>Vgn2Mdbx9 ztjpjaJejDP8ME8DZ9ag8xFQg*?9kAf@U;fPDtk@8CO4HDo5kvoHn_RS;7#h@oppg|mih)CgcVi8qw@IGA?&Rr|bS=(S7;Hv|UW*iB7$49&E( zB2%tu5sc!df-x22m=K8l=cs_<5vf|t9d9T1E?97xznn=NhA<^CdQ{O}FZmfk$~Ik^ zYilKYGlXe@nSz$m3KhG)q-D9wmQD@JZ92x1mZO?$n$=PWvjUJ6npd%aTda#|)#a69 zZPcb~R?~%|Zdrzti6DWbf<+ZeNbzbO^Q#f$UC|o{#(O4U>EFr&X%)9|hjq6+^I$yj z?|meJdn)eZ0prSgjeQB`bCj7d9$`hns){va=#)k}D@L_$I0B*kuD2t#$JkJ?sp5(3 zW3X)&P`x^C=}z9XcrdVSmnizAcF?RH8_sL}xJpYjZx{9Iq3)Pc?-&Da#cW6_a%70E zlnu8%Jv|(e;=6sl-iZtrE4Eqm@?1`1r&$VKTpt~;hXRp;-E@k^jw$iOGViiHi)j|a z$4U1?$ck_$WNSRh3GR3}`m|@MtuvZUL?rnQBI*AMw;ekO5S{ST(dNNAdW;@y+D6-xP=iZCp%K3jLzgqY_5g)M|8J$ z%hGc9=mHO0Sij^l!x92xT*t{|f-EMfO<|twQe?Nnoh-$08?eJ`j8VJTBOS>w1n~