v1
This commit is contained in:
parent
daa9ff1d9e
commit
9e27da7c8b
29
Arbeitszreitrechner/.gitignore
vendored
Normal file
29
Arbeitszreitrechner/.gitignore
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
### IntelliJ IDEA ###
|
||||||
|
out/
|
||||||
|
!**/src/main/**/out/
|
||||||
|
!**/src/test/**/out/
|
||||||
|
|
||||||
|
### Eclipse ###
|
||||||
|
.apt_generated
|
||||||
|
.classpath
|
||||||
|
.factorypath
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
bin/
|
||||||
|
!**/src/main/**/bin/
|
||||||
|
!**/src/test/**/bin/
|
||||||
|
|
||||||
|
### NetBeans ###
|
||||||
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
|
||||||
|
### VS Code ###
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
### Mac OS ###
|
||||||
|
.DS_Store
|
8
Arbeitszreitrechner/.idea/.gitignore
generated
vendored
Normal file
8
Arbeitszreitrechner/.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
6
Arbeitszreitrechner/.idea/misc.xml
generated
Normal file
6
Arbeitszreitrechner/.idea/misc.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
8
Arbeitszreitrechner/.idea/modules.xml
generated
Normal file
8
Arbeitszreitrechner/.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/Arbeitszreitrechner.iml" filepath="$PROJECT_DIR$/Arbeitszreitrechner.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
Arbeitszreitrechner/.idea/vcs.xml
generated
Normal file
6
Arbeitszreitrechner/.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
11
Arbeitszreitrechner/Arbeitszreitrechner.iml
Normal file
11
Arbeitszreitrechner/Arbeitszreitrechner.iml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
25
Arbeitszreitrechner/src/Main.java
Normal file
25
Arbeitszreitrechner/src/Main.java
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
public class Main {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
|
||||||
|
// Konvertieren zu Stunden und Minuten
|
||||||
|
String[] zeitArray = eingabe.split(":");
|
||||||
|
int stunden = Integer.parseInt(zeitArray[0]);
|
||||||
|
int minuten = Integer.parseInt(zeitArray[1]);
|
||||||
|
|
||||||
|
// Berechnung der Arbeitszeiten
|
||||||
|
Calendar startZeit = Calendar.getInstance();
|
||||||
|
SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
|
||||||
|
startZeit.set(Calendar.HOUR_OF_DAY, stunden);
|
||||||
|
startZeit.set(Calendar.MINUTE, minuten);
|
||||||
|
|
||||||
|
Calendar arbeitszeit7h6Gehen = (Calendar) startZeit.clone();
|
||||||
|
arbeitszeit7h6Gehen.add(Calendar.MINUTE, (7 * 60) + 36 * 60); // 7,6 Stunden Arbeitszeit mit einer Stunde Pause (60 Minuten)
|
||||||
|
System.out.println("Mit einer Arbeitszeit von 7.6 Stunden gehst du um " + format.format(arbeitszeit7h6Gehen.getTime()) + " Uhr.");
|
||||||
|
|
||||||
|
Calendar arbeitszeit6hGehen = (Calendar) startZeit.clone();
|
||||||
|
arbeitszeit6hGehen.add(Calendar.MINUTE, (6 * 60) + 20); // 6 Stunden Arbeitszeit mit 20 Minuten Pause
|
||||||
|
System.out.println("Mit einer Arbeitszeit von 6 Stunden gehst du um " + format.format(arbeitszeit6hGehen.getTime()) + " Uhr.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
Folien_Semester_1/Programmieren_00_Intro_Orga.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_00_Intro_Orga.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_01_1_Grundbegriffe.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_01_1_Grundbegriffe.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_02_Programmiersprachen.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_02_Programmiersprachen.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_03_VariablenAusdruecke.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_03_VariablenAusdruecke.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_04_Kontrollstrukturen.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_04_Kontrollstrukturen.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_05_RekursionBacktracking.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_05_RekursionBacktracking.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_06_Objektorientierung_1 (1).pdf
Normal file
BIN
Folien_Semester_1/Programmieren_06_Objektorientierung_1 (1).pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_06_Objektorientierung_1.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_06_Objektorientierung_1.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_07_Objektorientierung_2.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_07_Objektorientierung_2.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_08_Objektorientierung_3.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_08_Objektorientierung_3.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_09_Dokumentation.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_09_Dokumentation.pdf
Normal file
Binary file not shown.
BIN
Folien_Semester_1/Programmieren_10_Exceptions.pdf
Normal file
BIN
Folien_Semester_1/Programmieren_10_Exceptions.pdf
Normal file
Binary file not shown.
29
Kontrollstrukturen afg1/.gitignore
vendored
Normal file
29
Kontrollstrukturen afg1/.gitignore
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
### IntelliJ IDEA ###
|
||||||
|
out/
|
||||||
|
!**/src/main/**/out/
|
||||||
|
!**/src/test/**/out/
|
||||||
|
|
||||||
|
### Eclipse ###
|
||||||
|
.apt_generated
|
||||||
|
.classpath
|
||||||
|
.factorypath
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
bin/
|
||||||
|
!**/src/main/**/bin/
|
||||||
|
!**/src/test/**/bin/
|
||||||
|
|
||||||
|
### NetBeans ###
|
||||||
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
|
||||||
|
### VS Code ###
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
### Mac OS ###
|
||||||
|
.DS_Store
|
8
Kontrollstrukturen afg1/.idea/.gitignore
generated
vendored
Normal file
8
Kontrollstrukturen afg1/.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
6
Kontrollstrukturen afg1/.idea/misc.xml
generated
Normal file
6
Kontrollstrukturen afg1/.idea/misc.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
8
Kontrollstrukturen afg1/.idea/modules.xml
generated
Normal file
8
Kontrollstrukturen afg1/.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/Kontrollstrukturen afg1.iml" filepath="$PROJECT_DIR$/Kontrollstrukturen afg1.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
Kontrollstrukturen afg1/.idea/vcs.xml
generated
Normal file
6
Kontrollstrukturen afg1/.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
11
Kontrollstrukturen afg1/Kontrollstrukturen afg1.iml
Normal file
11
Kontrollstrukturen afg1/Kontrollstrukturen afg1.iml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
20
Kontrollstrukturen afg1/src/Main.java
Normal file
20
Kontrollstrukturen afg1/src/Main.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
public class Main {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
int MAXIMUM;
|
||||||
|
MAXIMUM = 20;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
for ( int i = 1; i < MAXIMUM; i++ ){
|
||||||
|
if (i %2 == 0) {
|
||||||
|
System.out.println(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (int i = MAXIMUM; i > 1; i--) {
|
||||||
|
if (i %2 != 0) {
|
||||||
|
System.out.println(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
Variablen und Ausdruecke afg3/.idea/.name
generated
Normal file
1
Variablen und Ausdruecke afg3/.idea/.name
generated
Normal file
@ -0,0 +1 @@
|
|||||||
|
Variablen und Ausdruecke afg3 & 4
|
Loading…
Reference in New Issue
Block a user