<!-- author: Rico Meiner email: rico.meiner@jade-hs.de version: 1.0.0 logo: comment: Lösungsvorschläge für Prüfung FIAE language: de narrator: Deutsch Female mode: Textbook import: https://raw.githubusercontent.com/liascript/CodeRunner/master/README.md @run: @LIA.eval(`["main.c"]`, `gcc -Wall main.c -o a.out`, `./a.out`) --> # FIAE Abschlussprüfung 2022/23 [Prüfung als PDF](https://ccs.jade-hs.de/f/241951796) (nur intern) :::spoiler Inhaltsverzeichnis [toc] ::: ## GA1 1. Handlungsschritt ## GA1 2. Handlungsschritt ## GA1 3. Handlungsschritt ## GA1 4. Handlungsschritt ## GA2 1. Handlungsschritt a) ```java= void sort(raeume: Array[]) { for (i = 0; i < raeume.lenght() - 1; i++) { for (j = 0; j < raeume.length() - i - 1; ) if (raeume[j].getBelegung() > raeume[j+1].getBelegung()) { Raum r = raeume[j]; raeume[j] = raeume[j+1]; raeume[j+1] = r; } } } } ``` - For-Schleife um durch alle Räume zu gehen (doppelt um es vollständig zu sortieren) - Wenn Belegung beim aktuellen als beim nächsten (x+1) dann tauschen - Tausch: - speichere aktuelles puffer, - nächstes in aktuelles, - speichere puffer in nächstes b) ```java= vergleicheMitarbeiter(Mitarbeiter m1, Mitarbeiter m2):Integer { if (m1.getGehalt() == m2.getGehalt()) { return 0; } if (m1.getGehalt() > m2.getGehalt()) { return 1; } if (m1.getGehalt() < m2.getGehalt()) { return -1; } } ``` ## GA2 2. Handlungsschritt ## GA2 3. Handlungsschritt ## GA2 4. Handlungsschritt ## 3 WiSo
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up