From 364fa455346962c8a6a862724e3dc7b625d6473c Mon Sep 17 00:00:00 2001 From: Sage The DM Date: Wed, 30 Oct 2024 16:02:50 +0100 Subject: [PATCH] Brother Please end me --- .../.vscode/settings.json | 7 ++ .../30-10-2024-Prüfung-teil2/README.md | 18 +++ .../30-10-2024-Prüfung-teil2/bin/App.class | Bin 0 -> 1572 bytes .../30-10-2024-Prüfung-teil2/bin/Person.class | Bin 0 -> 776 bytes .../30-10-2024-Prüfung-teil2/bin/Zimmer.class | Bin 0 -> 2218 bytes .../30-10-2024-Prüfung-teil2/src/App.java | 21 ++++ .../30-10-2024-Prüfung-teil2/src/Person.java | 28 +++++ .../30-10-2024-Prüfung-teil2/src/Zimmer.java | 56 +++++++++ .../30-10-2024-Prüfung/.vscode/settings.json | 7 ++ Code/Steiner/30-10-2024-Prüfung/README.md | 18 +++ Code/Steiner/30-10-2024-Prüfung/bin/App.class | Bin 0 -> 1432 bytes .../30-10-2024-Prüfung/bin/Datum.class | Bin 0 -> 2615 bytes Code/Steiner/30-10-2024-Prüfung/src/App.java | 21 ++++ .../Steiner/30-10-2024-Prüfung/src/Datum.java | 119 ++++++++++++++++++ .../.vscode/settings.json | 7 ++ Code/Steiner/30.10.24-Player-Klasse/README.md | 18 +++ .../30.10.24-Player-Klasse/bin/Player.class | Bin 0 -> 822 bytes .../bin/PlayerTest.class | Bin 0 -> 1665 bytes .../30.10.24-Player-Klasse/src/Player.class | Bin 0 -> 614 bytes .../30.10.24-Player-Klasse/src/Player.java | 27 ++++ .../src/PlayerTest.class | Bin 0 -> 1079 bytes .../src/PlayerTest.java | 13 ++ Code/Steiner/CO2-Daten-Projekt/bin/App.class | Bin 5668 -> 5668 bytes .../CO2-Daten-Projekt/bin/Lesson.class | Bin 985 -> 1206 bytes Code/Steiner/CO2-Daten-Projekt/src/App.java | 3 +- .../Steiner/CO2-Daten-Projekt/src/Lesson.java | 17 +++ 26 files changed, 378 insertions(+), 2 deletions(-) create mode 100644 Code/Steiner/30-10-2024-Prüfung-teil2/.vscode/settings.json create mode 100644 Code/Steiner/30-10-2024-Prüfung-teil2/README.md create mode 100644 Code/Steiner/30-10-2024-Prüfung-teil2/bin/App.class create mode 100644 Code/Steiner/30-10-2024-Prüfung-teil2/bin/Person.class create mode 100644 Code/Steiner/30-10-2024-Prüfung-teil2/bin/Zimmer.class create mode 100644 Code/Steiner/30-10-2024-Prüfung-teil2/src/App.java create mode 100644 Code/Steiner/30-10-2024-Prüfung-teil2/src/Person.java create mode 100644 Code/Steiner/30-10-2024-Prüfung-teil2/src/Zimmer.java create mode 100644 Code/Steiner/30-10-2024-Prüfung/.vscode/settings.json create mode 100644 Code/Steiner/30-10-2024-Prüfung/README.md create mode 100644 Code/Steiner/30-10-2024-Prüfung/bin/App.class create mode 100644 Code/Steiner/30-10-2024-Prüfung/bin/Datum.class create mode 100644 Code/Steiner/30-10-2024-Prüfung/src/App.java create mode 100644 Code/Steiner/30-10-2024-Prüfung/src/Datum.java create mode 100644 Code/Steiner/30.10.24-Player-Klasse/.vscode/settings.json create mode 100644 Code/Steiner/30.10.24-Player-Klasse/README.md create mode 100644 Code/Steiner/30.10.24-Player-Klasse/bin/Player.class create mode 100644 Code/Steiner/30.10.24-Player-Klasse/bin/PlayerTest.class create mode 100644 Code/Steiner/30.10.24-Player-Klasse/src/Player.class create mode 100644 Code/Steiner/30.10.24-Player-Klasse/src/Player.java create mode 100644 Code/Steiner/30.10.24-Player-Klasse/src/PlayerTest.class create mode 100644 Code/Steiner/30.10.24-Player-Klasse/src/PlayerTest.java diff --git a/Code/Steiner/30-10-2024-Prüfung-teil2/.vscode/settings.json b/Code/Steiner/30-10-2024-Prüfung-teil2/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/30-10-2024-Prüfung-teil2/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/30-10-2024-Prüfung-teil2/README.md b/Code/Steiner/30-10-2024-Prüfung-teil2/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/30-10-2024-Prüfung-teil2/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/30-10-2024-Prüfung-teil2/bin/App.class b/Code/Steiner/30-10-2024-Prüfung-teil2/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..74d6cf42f9572a6addf3e4a15efc3d830bbcfc8a GIT binary patch literal 1572 zcmaJ>&sQ5&6#gE`WRi3$Gyz()(AZL&G__IGs-#vSf{h(oG#CWjJi;?fnat$OOnQXl zIc~afVb^Y5xwZ>9r#BPq}!B%qxC~$GTL@R0mEjgD${hN;|YuxH|(R5jVN%uc2$?jF8t6^-N^C1 z&_qrke-!nf$HXYxTX#Ag6=adexbEmYYZUACQq#l)y~`>HeJ_nSXkHAQXfKNknACw& zy82-8^-@#kDp+_Emj%vkJKkRJ`<`kmFU}=!rfA0^J56JnVCFnertuafTX`~rBCeY# zouIR^8%C;Qp^O`(((jSkvADY9SC)x8B6=k|RbBn2g$mvg$h1{NYKgB;e_i`#EWC&J z1=5?!RqdYF78os-27%-_-&+J90M6$KBB)k3HGf^|Kz?EwFy`ZHQ9lfJzuHj9+QykK~??+)2 z$nKJgw*9RziwF41#InHj(bhTMBY#I#;uVdlT$HWI4|X-jUkm(t9P(jwobaynwpsAN(K4v*_ab>rwP6KSSB9bDr}wSE)d3PtgJoh}VCw%vIjxujep_5#a?kwNh4PH3Iw-pEQJWDNu*D%Z^Bb1Z$oYQHq@^(4# z9Qn26Na_G%jdD^ehS8S|EvH7ZeI+sT92eGduO|+0aUYk;$ymRVJgHxOrLWBzFK#6h zcYeo}31f0*=_#(=*vH#^-hGA-fPH*S`P0?M2{AdA{O#r68czZm&n&yvs0?672NVASNP2oc literal 0 HcmV?d00001 diff --git a/Code/Steiner/30-10-2024-Prüfung-teil2/bin/Person.class b/Code/Steiner/30-10-2024-Prüfung-teil2/bin/Person.class new file mode 100644 index 0000000000000000000000000000000000000000..fe3128192735850c4ea9c758f7722892886d57db GIT binary patch literal 776 zcmZ{h%TB^T6o&sPrARFzD0si^026rtFB=ox5H-<|=&sZW)L=>4;#0ZML}KE?2k@bc z|4gf*XqtA;oZJ7M)3^7RR{;Ci%E1t@&SV%3f*eeN*&FxHZT8)u+dS>uNG}#J1NT-6 zlw04S^EmW_?yi8{m66x$ORvX7am8MHe&ELk0@d1N{#Curc87y&X(NMzgFI#gGPQa; z4@x`8!ctb*K@L*_#g-q)li_Vgh8J$9uOSAW+i$y}ukNYSjC+10Fx5)tAXcs`;}cCi zU#m}YFd_O(sQkgHFdaWS9-EDjoUXvKaj#j^BiZMJVd%*tUm;E>6gz5L*y1!9uG-+k z;k3okcxL(LVKY8W>ymMmS8P1PX>5;Ztd3B6q|3k@zh#*G@)xllr~TmDuHT=6sl>d1d9|ECg~*^I++PG6I}4@ zkB~=QxccIQx+tzym%RAqKk(Uq;rG5XX(=|#huk^$-gEaod!KV|e))U*Ie-grHADnD z*UWld(vAuA-7_8-Im@uCxvS-Svf>LQ9|hZXQ#lEUMS=K+(J&sFz9G4B%1wzLJh zZWUL8NnW6*EG=1W+SL%9*PJ(P)1MRQm{?rQtO~>m&bo{viryp==o5%eWL7n#=o+GQ zLEu0VI=YlKltdhz$~u@tM`(>Ep`lZtw`kgOxmhnu_qtKGq(G|ZR19m?a7{IDEynzs z=`rGB7!#vxk>k;TTz}29A2shbWmVc?3<8OX9a5RqF1(5p8jimtROzAT%X$*yc#RyK zCN&u>20EHfZpAfizvR2psONQL1WsIXUB^w=Wz9_+mY0^Movuo+QnO^G=BLei`kK+K z$1#a14JQQ#+8`w{jhukiP~aAYADjp;3=+rNOuL%Ttm-%|&>wP58%?h&%T3-veZ!O~ zC3f@GUGj~}#*)!!Y1LJg{*Ek6470B9WRzK%$n3u`#hN;oL>}h_hU>@NbxY zjh5#dwombgRQC5DX2t?GVLZ|Qbdfp zOd*2H3g(KyY#W&UC~d-2!0#pTK8maz)4RNzxS)F1Qmp3r6k=-Vz`Q_rsC0{uD$5rQ z*2)uG%49RJgc>y0G_W=Hv|;GQo+~*`w;~rzRo#g&snZIK-WMIm_k7oAEJ?rStb1|X z!Y3L&7C8RmI@5mOY{*=Q7p7*xsQ8ZiP>J%Xz!!T(X?cf$R}6dIlHT#6<7_k=`TZRB zth{va`oo57<9=(8fB4Mg_iEjOC>WMiGJTov?Zlc65{-(S&{0vwR9XjxhzKrJnG10) zUH|!sZChrgrh|eexbm4a%i+R?a*fk((YB>qunf>fc1UrhB3MWD< z9R#Z`|Bb<@mHXMJyzVImo_~eg%6^P_HO=0ny%t+%Ff+lN)0wX^x?@k40*}}oI&5O< zdmKwmJVSO9$J%=&l*cK0C_>SI(3wDmK2qq%0O{m7zJ&uQU=Rx!!ZHrx1B|e`Me#h zMkQ%S!Lyic9iFAP+UwzArPjzcBgMD>K^fnJ(zA8cC*d}olcczPThaaPxPD@Pem;+gF%{02|NJtWH zCsCZF5L4*opT|*>&)^hir*W1t%~7UH++U$MO3Z8+RV(5s(N`!u|GN3|T?;BFL%$NP z6IBV^kJw+(HGC-k#I)%Aoi!fC4Q@p65pME3&O^5ea3>hc!MGlbcZ0DOjQ3#CH%`Ag Jd*MDt{snXh If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/30-10-2024-Prüfung/bin/App.class b/Code/Steiner/30-10-2024-Prüfung/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..32f3c3bae0bd8afbcad152cb2bec74574f668019 GIT binary patch literal 1432 zcmaJ>YflqF6g`72Tk0Z8Q50XOpe?9Xd|O4ah!l&WMerFjv}3!_?l!wqBmcy|p&x3Z zi9f*j!Cz!N)8$c8Vw#<~bI+YK=ia%~Uw^;<1aKE`Ep!R&nX1<#gTbGck{LCIRi z5T3L#j8g)3S?Ou#!w2OnmmA{AeCy0iDi_BYj9M7k)VGtw##x*buN3nJ z8)Fy`nU}p{g}kyXFpx}jR>Pce!BAbK)?_ChGG4NAxpkNOyBKB9Q~upKpAt?Th)ZI6Qv7i4#qnHf9saCeDvXn@ESti7jA);B|htzT*zS zs4(FEmX)Qot#u4Wag^%1F@zXKxlU8U2hvj6g}h5jk9f%O=;7nl$55yanrg$zaVYeG$D;sJEbHf^ow?FZ|#kp-LPI) zG)M>#0ttkK#0wGcD#VYv%QQxcxh#dV^UB~21Y{jg40*UjsWBU^{ z(z#r2bcqX7ZrMs9id{Oou$!^z(WNdBR!1BOX&E|_fwf16hJ-**-gd0{=4#RM7R_Sa zqEFr}ne`>pv*kFPjQLf&A&|@~vg6F!u>3_yEtXcvHI54b!Cec!S*jJxwJ{nr9-$;SzcMnARv8~-BOhv5`Is5G{2?Fg74W*Wn9BB88Dr4Nt)#{ zsgQcgbk@ykJs2biL`%s)e2v49V3KA)$e^Vvq5`XyXE#b!4aWswaD%csPU2;OeXC~8 znsS|z=`Y)Ul~%(y9iMW%l-|iL*MYA=>9YnR$O?3MO{-L^m_;S^j?x5nZE{j$&d2Jy)?&#r5@#DWW^t>H5FX0GYbnpRew)(o*G zo0Vq6*Dy;i3)Y%%$-UPwN9b!c-&KP=^_q7dgiG@rO0#<*Fl4w zs&o`3F7@bMm8T}y*d%z2+b%&c%Y9vNn_kJ9vE}(psSP_Jm80`z*Yz8|XRZ}2zv`A7 zDcr)HByI}~Z)s~g58RrS4d8;EoH0wj>phf3yesf+dl8{`061$p<+{}v&bw}{xi-GD zvbLFL0v8{ySsmPOwfP5ke7s$o5Ms)#*B5Nx8t+NqrUn)o6XL{>hLYfuAv92js1QTE zE;+}sys5g`XjqLTsscxM)ZM9)Bvu3t{l6;@OHeir^8iPAC89jTd`f6Vk$!B{N5qC38oab3YD*nJ2g+*Ago0R<4wq?IB99!rvQsweS-mzQAA$ zs~BPp4EE|jpl9$qbW7B}N6<1cekFQTRU$70$UQ}N2J!dtC#wju479QgDDDCWxfVmj zh>`X4t$fdLZ__E@et--I+fWlN)P#J>i3A+N3!x5Y`IS0Ed-Y%V2?P(EhT1@)Es!XN zD76GRj2A<5V;u+#?FX?0(n|KH#FxoM=Z+q~mj=`CZ!TsBV&vgg}j4;{sKj;JvuW6MhN9m~4}4B&;)vBRGZAYA4QY z<`rKuue`CpF|RRJVCKG`ImBmda!Yl#3ASmrIkq?1me_8y71^q64x7)m&i0XUw(tnE z#%t^^8{_QH8yDE0F)p${X-u-u7*p(rjW^gIGOn;6Fmmh-<0^aID6mfuC)DAZtaxlg zrdE1TgoRBJf@}2&&m=IzLay*U%xQixN-)Ctb(Bnf`_?TXwvdquv`2}kDir!zdWj?6R_p-i1{r>?X#>v+J literal 0 HcmV?d00001 diff --git a/Code/Steiner/30-10-2024-Prüfung/src/App.java b/Code/Steiner/30-10-2024-Prüfung/src/App.java new file mode 100644 index 0000000..f529598 --- /dev/null +++ b/Code/Steiner/30-10-2024-Prüfung/src/App.java @@ -0,0 +1,21 @@ +// Luca Fabian Burger +// Aufgabe 2 +public class App { + public static void main(String[] args) throws Exception { + Datum datum1 = new Datum(1, 1, 2000); + Datum datum2 = new Datum(1, 1, 2000); + // Aufgabe a + System.out.println(datum1.getDifferent(datum2)); + // Aufgabe b + System.out.println(datum1.getWochentag()); + // Aufagbe c + datum1.addTage(2); + System.out.println(datum1.getTag()); + // Aufgabe d + System.out.println(datum1.getTag() + " " + datum1.getMonat() + " " + datum1.getJahr()); + // Aufgabe e + System.out.println(datum1.getDatumNummerisch()); + // Aufgabe f + System.out.println(datum1.getDatumMonat()); + } +} \ No newline at end of file diff --git a/Code/Steiner/30-10-2024-Prüfung/src/Datum.java b/Code/Steiner/30-10-2024-Prüfung/src/Datum.java new file mode 100644 index 0000000..6097dc5 --- /dev/null +++ b/Code/Steiner/30-10-2024-Prüfung/src/Datum.java @@ -0,0 +1,119 @@ +// Luca Fabian Burger +// Aufgabe 2 +public class Datum { + private int tag; + private int monat; + private int jahr; + + Datum(int tag, int monat, int jahr) { + this.tag = tag; + this.monat = monat; + this.jahr = jahr; + } + + public void setTag(int tag) { + this.tag = tag; + } + + public void setMonat(int monat) { + if (monat <= 12 && monat >= 0) + this.monat = monat; + else + this.monat = 1; + } + + public void setJahr(int jahr) { + this.jahr = jahr; + } + + // Aufgabe a + int getDifferent(Datum datum) { + // Logic + return 12; + } + + // Aufgabe b + String getWochentag() { + // Logic + return "Montag"; + } + + // Aufgabe C + void addTage(int anzahlTage) { + this.tag += anzahlTage; + } + + // Aufgabe d + public int getTag() { + return tag; + } + + public int getMonat() { + return monat; + } + + public int getJahr() { + return jahr; + } + + // Aufgabe e + String getDatumNummerisch() { + String rueckgabe = ""; + rueckgabe += this.tag + ". "; + rueckgabe += this.monat + ". "; + rueckgabe += this.jahr; + return rueckgabe; + } + + // Aufgabe f + String getDatumMonat() { + String rueckgabe = ""; + String monatString = ""; + switch (this.monat) { + case 1: + monatString = "Januar"; + break; + case 2: + monatString = "Februar"; + break; + case 3: + monatString = "März"; + break; + case 4: + monatString = "April"; + break; + case 5: + monatString = "Mai"; + break; + case 6: + monatString = "Juni"; + break; + case 7: + monatString = "Juli"; + break; + case 8: + monatString = "August"; + break; + case 9: + monatString = "September"; + break; + case 10: + monatString = "Oktober"; + break; + case 11: + monatString = "November"; + break; + case 12: + monatString = "Dezember"; + break; + default: + monatString = "Januar"; + break; + } + rueckgabe += this.tag + ". "; + rueckgabe += monatString + " "; + rueckgabe += this.jahr; + return rueckgabe; + } + +} diff --git a/Code/Steiner/30.10.24-Player-Klasse/.vscode/settings.json b/Code/Steiner/30.10.24-Player-Klasse/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/30.10.24-Player-Klasse/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/30.10.24-Player-Klasse/README.md b/Code/Steiner/30.10.24-Player-Klasse/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/30.10.24-Player-Klasse/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/30.10.24-Player-Klasse/bin/Player.class b/Code/Steiner/30.10.24-Player-Klasse/bin/Player.class new file mode 100644 index 0000000000000000000000000000000000000000..4ef2308133583e10482ca76d3e41cc264dc469c7 GIT binary patch literal 822 zcmZ{h-A>y;5QWb=_8J_gKp=rYfB2OWS85)hl$%PGB1KS%DtDFYm{n?I9LYFHyb~AD z7FFs+AD|Ca_3YXrDL=m0omtPG^Uds^zrTJ1c!ymVmVo@2gqJFFVGAsth8JNs3DZ&c zXn3lkT)>J?1Vm53PQx=LQ14G`j`J)|M{fn(Xgo=Cl?lx4M@gK<`GG*C-5K!O`|*jI zhrlx*^N<1y{Ww*Jle3}9K83@?NRFd08H8D^^YT#cmokm^L&wg*Lj@~7mQdB&O&<=V zj@Ep*n4@j}H9jX!zvzyP&Pe4w_ChRn0pe=F_ILq8Um15P1h8 s&ET~0D{PipvmmS2_dpttf^6LlYzp%KbPA9b?be?F(J!Y#wvFS?Kb~1?!~g&Q literal 0 HcmV?d00001 diff --git a/Code/Steiner/30.10.24-Player-Klasse/bin/PlayerTest.class b/Code/Steiner/30.10.24-Player-Klasse/bin/PlayerTest.class new file mode 100644 index 0000000000000000000000000000000000000000..af5c696fb87889ce65a92705647fb0e13b841265 GIT binary patch literal 1665 zcmaJ>T~i!I6g|z(?hKnHyXj>UF_I4@W(f(a7*VrHG;F|Z96odqoZwfpjO@Vd%sM+z zVwEYYk{{rsKISPec`*-3RZ`-MFXmVH2mA}cGYnNgLHW?9Z{I%m_U+Sm=Ecirn*gq% zqoYe8JL9PhC!BRUkq%9uu%gyg#Z&%rWqNVNX+#2H5ypT5FMM)S~AINHb_CZ%&17yxwtYQPb@R2mv>I7^_K2HuT>TP-r*W5}4}8~A|4Y0q7c!zn;&+;g)i;99IEMJ|;O6QUa* zVNA!3{R(V!BBzx@4L6x5SmRrjl3+Ke%uvFJ8ab*}jq^|B@G)*tqGczlFOgp!tjGS_ zIeY?BK&O97wfK6y<-vm`NcPNB4%3(sIMJdAwZLzvXx@#Qv^tUUBR=l=a{XZFA=$F{ z46`~cf#UY7@2@w9&toO@c6aHIviI@{l|hJ>O`SxPdZUESn6c) z9hy3p1qOCI*!9l2^u3}bpLBKai|nMRDbKUq$f@QtUi?;HmE@8*3!cXg1G;GOuR_$hs&E#Z(-)q?_c&yz>0z+&$%~V`DD?h;f*GTiR>a*Zqz|0bc9KR{!@#d1TFdj{ix`> zj%De<%(-*U_d56U>-_`3A$Bb2*os3#QGT{fluVQb6u&PZngUwjjy!>M>)O3_>q9pf z)H{>V4+cj9M#B&M$+1AzSshm|Nj@3(Nlv!>z-v!OT`#0b-5baGrru3ke9=JRK0Bu%>Ho5KmCFt7j;+y;rD@ z>5IvWE?6R&F`4p83TBJ~*iXW&&Q5zeZ6eKB;D8Fvo8(7%hZFX-->MQsH zzJ~q)gNYB|LmB6Go3u?EH`zNgCue5P%-#L-_wqM@O}w^n71IW0Ox&{$cP23vA zZOrL7sgFD3#Jy)Bg+&AR4J!Hdc_av5GYt>&P;Uz4bg5D4#cWggW+WK_ZR^CLY?@z#{{XZ9D?jCBn6(~_BbzV~^gnY-#?$MBnMisoCBf&>P6>IH%6&VbQ zc6psJ+QKX`w zCA!kUGrg8AhE#V0jy&^DMdz-<_61&5p5HP+_Z}~K-f6SJU>Btne%|FlAV|}<-i38) zgg5Y>%bF{KRG63>RNjO1CGNKxVhFwWiwdtR*E@TsM4r2D*-;{AV4GoaV7_767?S_z zVF5P%H~JX?(_bl_V-(GiWn^P37hvDXVYp6bybUspVjL6XYwA}-5G8x~3nQP#BNvF4 z+Fp#jowgSzZ}$g`%)w8XnRAR@!UE25g|JnPt@dMU8e8kZx&o3gs8xjWqnJbtNs_cd iSOF$JldK4#dX_2V$XX=vIbPxgW-(8(N$~=`cmDy&I0)+i literal 0 HcmV?d00001 diff --git a/Code/Steiner/30.10.24-Player-Klasse/src/PlayerTest.java b/Code/Steiner/30.10.24-Player-Klasse/src/PlayerTest.java new file mode 100644 index 0000000..bbb6d05 --- /dev/null +++ b/Code/Steiner/30.10.24-Player-Klasse/src/PlayerTest.java @@ -0,0 +1,13 @@ +public class PlayerTest { + public static void main(String[] args) { + Player[] players = new Player[20]; + String[] names = { "Eva", "Fritz", "Anna", "Luca", "Sara", "Max", "Zoe", "Leo", "Nina", "Tom", + "Ella", "Jake", "Mia", "Liam", "Sophie", "Noah", "Emma", "Ben", "Olivia", "Eli" }; + for (int i = 0; i < players.length; i++) { + players[i] = new Player(names[i]); + } + for (Player player : players) { + System.out.println(player.getId() + " " + player.getName()); + } + } +} \ No newline at end of file diff --git a/Code/Steiner/CO2-Daten-Projekt/bin/App.class b/Code/Steiner/CO2-Daten-Projekt/bin/App.class index 15b3ed9601ee93cb54cba735ffe5b55c05daf89e..985e89e39b279b956a55e3350ea88d3b97f0d04e 100644 GIT binary patch delta 247 zcmWNLOG^S_7=@pRE@P$6=tL1#)<#h@p|Td!B1*E0V6HX+h7L!#XtSe8qhb+d}P=4ckWs_01@UhJ}IsELf zNS*|{q}e0GKFb`CrN{|~lqIior2dUx^OzBAxh!GeFfDq4Q`HT*x+^~`1UX}hbLOe4 zNVplTiCbrahIE_EaUn~W#Kl|UiZ!lPFZ^ZQFvu;#+@aADrh5WB%EAMaJTb#Fv%C=H Zl^Acr`A&)t;cH{@samEpV5vW|&mgF=tL1ynVY0R4Xh+^T!ck87e)&&1a@=br2>PpDAEj}Hu0_6 z3qiPW+aGD=kLleV&UxQ+p03@s``@}2$7CIgP1V=4!wwT9mB;v6+hU9q<7_j@4jy(1 zvd0ShL^xoTLt>=aAVYy8ijtQ(Rs-YL%rZ(&KJyro&5B;)ME&?q^)u-_$IAsXT(U?> zS^ip}EN%riRk^)lfooa1AtYXuI&p4Q&;OaYV~Bf3XrS>ROpi?QEDKLe^THfW=4lb& Zm1Ww(`9_$I@V%4ZLp992%Ta%3`X3l~EU5qh diff --git a/Code/Steiner/CO2-Daten-Projekt/bin/Lesson.class b/Code/Steiner/CO2-Daten-Projekt/bin/Lesson.class index fd895bd2ab89ec8c1e9d2c1a476b58a22a02e888..004bbc422ba41f0d1b8aa587c96519303402a996 100644 GIT binary patch delta 257 zcmcb~zKxUX)W2Q(7#J9A8FV*tEoIbY&n$K-N=?jWWMJ0NjACTq0`fD{p+fwb#UZJQ z$r-6d!R47H$r+Q^GWs!cZvMk~gRx$Nfsug^Xpjz&W(3kq%xgd-gA9;l1B<9L$O73s j5LpH}26-TlkwKGzuueU!I<=5>n&7b17^_xou+ww^etjQF delta 36 scmdnSd6S*%)W2Q(7#J9A88kO?EoGd1kI{#bZL>Dh4MtW51||j#0PB+qUH||9 diff --git a/Code/Steiner/CO2-Daten-Projekt/src/App.java b/Code/Steiner/CO2-Daten-Projekt/src/App.java index 34e34a2..319bd88 100644 --- a/Code/Steiner/CO2-Daten-Projekt/src/App.java +++ b/Code/Steiner/CO2-Daten-Projekt/src/App.java @@ -52,8 +52,7 @@ public class App { // Maximum points for a long break: 10 points. // Plus 5 bonus points if the teachers are switching after. for (Teacher teacher : teachers) { - // Implement logic to calculate points for each teacher - teacher.setPoints(0); // Replace with actual calculation + teacher.setPoints(0); } } diff --git a/Code/Steiner/CO2-Daten-Projekt/src/Lesson.java b/Code/Steiner/CO2-Daten-Projekt/src/Lesson.java index fd93484..5990b7a 100644 --- a/Code/Steiner/CO2-Daten-Projekt/src/Lesson.java +++ b/Code/Steiner/CO2-Daten-Projekt/src/Lesson.java @@ -33,4 +33,21 @@ public class Lesson { public String getDay() { return day; } + + public boolean isBreak() { + // Logic if it is between lessons + return false; + } + + public boolean isBigBreak() { + // is the break longer than 5 minutes + // But was not the last lesson of the day + // Is not Lunch break + return false; + } + + public boolean isTeacherSwitch() { + // is a another teacher in this room + return false; + } } \ No newline at end of file