From cddee2e624f8f2f3aab2383f37914649f540486a Mon Sep 17 00:00:00 2001
From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de>
Date: Tue, 29 Apr 2025 08:56:29 +0200
Subject: [PATCH] 3.te vorlesung

---
 03-funktion/.idea/03-funktion.iml                          |    8 ++
 03-funktion/.idea/inspectionProfiles/Project_Default.xml   |   14 ++++
 03-funktion/.idea/vcs.xml                                  |    6 ++
 03-funktion/.idea/modules.xml                              |    8 ++
 03-funktion/.idea/misc.xml                                 |    7 ++
 03-funktion/Inhalt.md                                      |    6 ++
 canvas-bezier/.idea/canvas-bezier.iml                      |   10 +++
 03-funktion/gauss-ostern.py                                |   48 ++++++++++++++++
 03-funktion/.idea/.gitignore                               |    3 +
 03-funktion/.idea/inspectionProfiles/profiles_settings.xml |    6 ++
 .idea/mam-2025.iml                                         |    8 ++
 11 files changed, 124 insertions(+), 0 deletions(-)

diff --git a/.idea/mam-2025.iml b/.idea/mam-2025.iml
new file mode 100644
index 0000000..d0876a7
--- /dev/null
+++ b/.idea/mam-2025.iml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="PYTHON_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>
\ No newline at end of file
diff --git a/03-funktion/.idea/.gitignore b/03-funktion/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/03-funktion/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/03-funktion/.idea/03-funktion.iml b/03-funktion/.idea/03-funktion.iml
new file mode 100644
index 0000000..d8b3f6c
--- /dev/null
+++ b/03-funktion/.idea/03-funktion.iml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="PYTHON_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="jdk" jdkName="Python 3.13" jdkType="Python SDK" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>
\ No newline at end of file
diff --git a/03-funktion/.idea/inspectionProfiles/Project_Default.xml b/03-funktion/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..53b1f6c
--- /dev/null
+++ b/03-funktion/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,14 @@
+<component name="InspectionProjectProfileManager">
+  <profile version="1.0">
+    <option name="myName" value="Project Default" />
+    <inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true">
+      <option name="ourVersions">
+        <value>
+          <list size="1">
+            <item index="0" class="java.lang.String" itemvalue="3.13" />
+          </list>
+        </value>
+      </option>
+    </inspection_tool>
+  </profile>
+</component>
\ No newline at end of file
diff --git a/03-funktion/.idea/inspectionProfiles/profiles_settings.xml b/03-funktion/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/03-funktion/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+<component name="InspectionProjectProfileManager">
+  <settings>
+    <option name="USE_PROJECT_PROFILE" value="false" />
+    <version value="1.0" />
+  </settings>
+</component>
\ No newline at end of file
diff --git a/03-funktion/.idea/misc.xml b/03-funktion/.idea/misc.xml
new file mode 100644
index 0000000..1d3ce46
--- /dev/null
+++ b/03-funktion/.idea/misc.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Black">
+    <option name="sdkName" value="Python 3.13" />
+  </component>
+  <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13" project-jdk-type="Python SDK" />
+</project>
\ No newline at end of file
diff --git a/03-funktion/.idea/modules.xml b/03-funktion/.idea/modules.xml
new file mode 100644
index 0000000..0877bc8
--- /dev/null
+++ b/03-funktion/.idea/modules.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/03-funktion.iml" filepath="$PROJECT_DIR$/.idea/03-funktion.iml" />
+    </modules>
+  </component>
+</project>
\ No newline at end of file
diff --git a/03-funktion/.idea/vcs.xml b/03-funktion/.idea/vcs.xml
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ b/03-funktion/.idea/vcs.xml
@@ -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>
\ No newline at end of file
diff --git a/03-funktion/Inhalt.md b/03-funktion/Inhalt.md
new file mode 100644
index 0000000..527ff11
--- /dev/null
+++ b/03-funktion/Inhalt.md
@@ -0,0 +1,6 @@
+# Funktionen
+
+# Tupel
+
+# Liste
+
diff --git a/03-funktion/gauss-ostern.py b/03-funktion/gauss-ostern.py
new file mode 100644
index 0000000..cfae15c
--- /dev/null
+++ b/03-funktion/gauss-ostern.py
@@ -0,0 +1,48 @@
+
+eingabe_ok = False
+
+while not eingabe_ok:
+    try:
+        jahr_input = input("Geben Sie die Jahresnummer ein! ")
+        x = int(jahr_input)
+        eingabe_ok = True
+    except:
+        print("Eingabe ist keine Zahl")
+
+
+# calc_oster_sunday
+# argument : Jahresnummer
+# rückgabe: tage im märz
+def calc_oster_sunday(year: int) -> (int,int):
+    a = year % 19
+    k = year // 100
+    m = 15 + (3*k + 3) // 4 - (8*k + 13) // 25
+    d = (19*a + m) % 30
+    s = 2 - (3*k + 3) // 4
+    r = (d + a // 11) // 29
+    og = 21 + d - r
+    sz = 7 - (year + year//4 + s) % 7
+    oe = 7 - (og - sz) % 7
+    os = (og + oe)
+    if os <= 31:
+        tag = os
+        monat = 3
+    else:
+        tag = os-31
+        monat = 4
+    return (tag,monat)
+
+tag,monat = calc_oster_sunday(x)
+
+months = (None, "Jan", "Feb", "März", "April")
+
+print(f"Der Ostersonntag im {x} ist am {tag}ten {months[monat]}.")
+
+
+
+
+
+
+
+
+
diff --git a/canvas-bezier/.idea/canvas-bezier.iml b/canvas-bezier/.idea/canvas-bezier.iml
new file mode 100644
index 0000000..a59dd72
--- /dev/null
+++ b/canvas-bezier/.idea/canvas-bezier.iml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="PYTHON_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <excludeFolder url="file://$MODULE_DIR$/.venv" />
+    </content>
+    <orderEntry type="jdk" jdkName="Python 3.10 (canvas-bezier)" jdkType="Python SDK" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>
\ No newline at end of file

--
Gitblit v1.10.0-SNAPSHOT