From 5d13103032d69ff205c729f8f1817e2f83bb9d3b Mon Sep 17 00:00:00 2001 From: 3p01 Date: Wed, 15 Oct 2025 09:28:40 +0200 Subject: [PATCH] 15.10 --- Zadania/Z59 - ocena procent/index.php | 76 +++++++++++++++++++ Zadania/Z59 - ocena procent/style.css | 68 +++++++++++++++++ Zadania/Z64 - dni w miesiącu i luty/index.php | 51 +++++++++++++ Zadania/Z64 - dni w miesiącu i luty/style.css | 68 +++++++++++++++++ 4 files changed, 263 insertions(+) create mode 100644 Zadania/Z59 - ocena procent/index.php create mode 100644 Zadania/Z59 - ocena procent/style.css create mode 100644 Zadania/Z64 - dni w miesiącu i luty/index.php create mode 100644 Zadania/Z64 - dni w miesiącu i luty/style.css diff --git a/Zadania/Z59 - ocena procent/index.php b/Zadania/Z59 - ocena procent/index.php new file mode 100644 index 0000000..5b82b4d --- /dev/null +++ b/Zadania/Z59 - ocena procent/index.php @@ -0,0 +1,76 @@ +Ocena: 5

"; + break; + case 8: + $html = "

Ocena: 4,5

"; + break; + case 7: + $html = "

Ocena: 4

"; + break; + case 6: + $html = "

Ocena: 3,5

"; + break; + case 5: + $html = "

Ocena: 3

"; + break; + case 1: + case 2: + case 3: + case 4: + $html = "

Ocena: 2

"; + break; + default: + $html = "

Nieprawidłowa Wartość

"; + } +} + +echo << + + + + + + Z59 - ocena procent + + + +
+

Zadanie Z59

+

Autor: Jakub Grzegorczyk

+
+
+

+ Napisz program, który dla podanego wyniku procentowego testów studenckich wystawia ocenę według następującej zasady:
+ 5 - 90% do 100%
+ 4,5 - 80% do 89%
+ 4 - 70% do 79%
+ 3,5 - 60% do 69%
+ 3 - 50% do 59%
+ 2 - poniżej 50% +

+
+
+
+
+
+ +
+
+
+ {$html} +
+ + +HTML; diff --git a/Zadania/Z59 - ocena procent/style.css b/Zadania/Z59 - ocena procent/style.css new file mode 100644 index 0000000..1de7812 --- /dev/null +++ b/Zadania/Z59 - ocena procent/style.css @@ -0,0 +1,68 @@ +* { + box-sizing: border-box; +} +body { + font-family: Verdana, serif; + background: #ffffff; + margin: 15px; + font-size: 0.9em; +} +header { + border: 2px solid black; + border-radius: 1em; + padding: 10px 20px; + box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px; + background: #f0f0f0; +} + +input { + margin-top: 5px; + margin-bottom: 5px; + width: 30%; + border: black 2px solid; + border-radius: 0.5em; + height: 2em; +} + +button { + padding: 5px; + width: 30%; + border: black 2px solid; + border-radius: 0.5em; + font-weight: bold; + margin-top: 10px; +} +pre { + font-family: Verdana, serif; +} + +.box { + border: 2px solid black; + padding: 15px 20px; + border-radius: 1em; + margin: 15px 0 10px 0; + box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px; +} + +.box h3 { + cursor: pointer; +} +td { + width: 50px; + height: 50px; + margin: 0; + padding: 0; +} +tr { + padding: 0; +} + +.y { + background: yellow; +} + +.b { + background:blue; +} + + diff --git a/Zadania/Z64 - dni w miesiącu i luty/index.php b/Zadania/Z64 - dni w miesiącu i luty/index.php new file mode 100644 index 0000000..83f2dce --- /dev/null +++ b/Zadania/Z64 - dni w miesiącu i luty/index.php @@ -0,0 +1,51 @@ +

Miesiąc numer $miesiac ma $dni dni

"; +} +echo << + + + + + + Z64 - dni w miesiącu i luty + + + +
+

Zadanie Z64

+

Autor: Jakub Grzegorczyk

+
+
+

Napisz program, który jak poprzednio, ale w przypadku lutego pyta dodatkowo o rok i dla lat przestępnych wyświetla 29 dni, a dla pozostałych 28.

+
+
+
+
+
+
+
+ +
+
+{$html} + + +HTML; + diff --git a/Zadania/Z64 - dni w miesiącu i luty/style.css b/Zadania/Z64 - dni w miesiącu i luty/style.css new file mode 100644 index 0000000..1de7812 --- /dev/null +++ b/Zadania/Z64 - dni w miesiącu i luty/style.css @@ -0,0 +1,68 @@ +* { + box-sizing: border-box; +} +body { + font-family: Verdana, serif; + background: #ffffff; + margin: 15px; + font-size: 0.9em; +} +header { + border: 2px solid black; + border-radius: 1em; + padding: 10px 20px; + box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px; + background: #f0f0f0; +} + +input { + margin-top: 5px; + margin-bottom: 5px; + width: 30%; + border: black 2px solid; + border-radius: 0.5em; + height: 2em; +} + +button { + padding: 5px; + width: 30%; + border: black 2px solid; + border-radius: 0.5em; + font-weight: bold; + margin-top: 10px; +} +pre { + font-family: Verdana, serif; +} + +.box { + border: 2px solid black; + padding: 15px 20px; + border-radius: 1em; + margin: 15px 0 10px 0; + box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px; +} + +.box h3 { + cursor: pointer; +} +td { + width: 50px; + height: 50px; + margin: 0; + padding: 0; +} +tr { + padding: 0; +} + +.y { + background: yellow; +} + +.b { + background:blue; +} + +