- kleine veränderung bzw. optimierung

- inf: ka
This commit is contained in:
danielvici123
2024-10-23 10:20:44 +02:00
parent 9881bf3e1a
commit 8949abf1b4
2 changed files with 109 additions and 4 deletions

View File

@@ -34,6 +34,9 @@
case 6:
$englisch_msg = "Ungenügend";
break;
default:
$englisch_msg = "Unbekannt";
break;
}
switch ($deutsch){
@@ -55,6 +58,9 @@
case 6:
$deutsch_msg = "Ungenügend";
break;
default:
$deutsch_msg = "Unbekannt";
break;
}
switch ($mathe) {
@@ -76,12 +82,19 @@
case 6:
$mathe_msg = "Ungenügend";
break;
default:
$mathe_msg = "Unbekannt";
break;
}
echo "Die Leistung in Englisch ist ". $englisch_msg . ".<br>";
echo "Die Leistung in Deutsch ist ". $deutsch_msg . ".<br>";
echo "Die Leistung in Mathe ist ". $mathe_msg . ".<br><br>";
echo "Der Durchschnitt der Noten beträgt: ". $durchschnitt. ".<br>";
if ($mathe_msg == "Unbekannt" or $deutsch_msg == "Unbekannt" or $englisch_msg == "Unbekannt"){
echo "Es sind unbekannte Noten gegeben.<br>";
} else {
echo "Die Leistung in Englisch ist ". $englisch_msg . ".<br>";
echo "Die Leistung in Deutsch ist ". $deutsch_msg . ".<br>";
echo "Die Leistung in Mathe ist ". $mathe_msg . ".<br><br>";
echo "Der Durchschnitt der Noten beträgt: ". $durchschnitt. ".<br>";
}
?>
</div>
</body>