From d423613198945d1465e8e3c84860a2d695c4a936 Mon Sep 17 00:00:00 2001 From: danielvici123 <94993276+danielvici@users.noreply.github.com> Date: Thu, 12 Dec 2024 11:49:29 +0100 Subject: [PATCH] aufgabe vom 24-12-11 und vom 24-12-12 --- progp/24-12-11 -- edicer 2/aufgabe.php | 13 +++++++ progp/24-12-12/matrix.php | 38 ++++++++++++++++++++ progp/24-12-12/staedte.php | 50 ++++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 progp/24-12-11 -- edicer 2/aufgabe.php create mode 100644 progp/24-12-12/matrix.php create mode 100644 progp/24-12-12/staedte.php diff --git a/progp/24-12-11 -- edicer 2/aufgabe.php b/progp/24-12-11 -- edicer 2/aufgabe.php new file mode 100644 index 0000000..c4f86ba --- /dev/null +++ b/progp/24-12-11 -- edicer 2/aufgabe.php @@ -0,0 +1,13 @@ +$value){ + $tag = $tage[$key]; + echo "
"; + echo "Am $tag waren es $value Stunde(n) Sonnenschein
"; + echo "Am Tag-Nr.: ". ($key+1). " gab es $value h Sonnenschein
"; +} + +?> \ No newline at end of file diff --git a/progp/24-12-12/matrix.php b/progp/24-12-12/matrix.php new file mode 100644 index 0000000..125c1fd --- /dev/null +++ b/progp/24-12-12/matrix.php @@ -0,0 +1,38 @@ + +

COPYRIGHT DANIEL

+

GITHUB

+ array(93,6,0,32,52,117,32,86,120), // Y + "zeile2" => array(32,86,177,177,155,207,185,120,49), // Y + "zeile3" => array(92,253, 112,53,87,30, 105, 212,55), // Y + "zeile4" => array(67, 212,18, 179,126,247,10 ,170,17), // Y + "zeile5" => array(38, 190,43, 121,28,4 ,44, 230,17),// Y + "zeile6" => array(1, 184,25, 175,194,241, 125, 185,30), // Y + "zeile7" => array(28, 205,16,89,44,9, 87, 137,61),// Y + "zeile8" => array(6, 35,162,243,172,221 ,180,24 ,101), // Y + "zeile9" => array(57,7,74,76,17, 17 ,123,47, 2)// Y +); + +echo "
";
+
+foreach ($matrix as $row) {
+    $output = ""; 
+    foreach ($row as $value) {
+        if ($value < 128) {
+            $output .= " "; 
+        } else {
+            $output .= "X"; 
+        }
+    }
+    echo $output . "\n";
+}
+
+echo "
"; + +?> +

Das Ding ist ein Smile.

\ No newline at end of file diff --git a/progp/24-12-12/staedte.php b/progp/24-12-12/staedte.php new file mode 100644 index 0000000..4685580 --- /dev/null +++ b/progp/24-12-12/staedte.php @@ -0,0 +1,50 @@ + + + + + + Maschalla Tabelle + + + + + + + + + + + array("Bombay","India","12.916"), + "stadt2"=> array("Buenos Aires","Argentinien","11.624"), + "stadt3"=> array("Seoul","Süd Korea","11.019"), + "stadt4"=> array("Jakurata","Indonesien","10.226"), + "stadt5"=> array("Delhi","Indien","10.095"), + "stadt6"=> array("Manila","Philippinen","10.032"), + "stadt7"=> array("Karachi","Pakistan","10.032"), + "stadt8"=> array("Sao Paulo","Brasilien","9.921"), + "stadt9"=> array("Istanbul","Türkei","9.018"), + "stadt10"=> array("Shanghai","China","8.914"), + ); + + foreach($staedte as $ausgabe){ + list($stadt, $land, $ew) = $ausgabe; + echo ""; + } + ?> + +
StadtLandEinwohner in Mio
$stadt$land$ew
+ + \ No newline at end of file