Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

also ich schreib einfach mal auf was mein lehrer mir für eine aufgabe gestellt hat und wie... vllt kann mir ja wer helfen... wenn ja wäre das super nett:

Ein Persönlichkeitestest nach Art der Tests, die sich manchmal in Zeitschreifden finden,

Nach mehreren Fragen wird dem Benutzer die Bewertung mitgeteilt.

Ich habe zur zeit keinen plan wie ich das schreiben soll, da unser Lehrer auch keinem etwas erklärt....

mit freundlichen Grüßen Alexandra

Hallo Alexandra!

Du könntest so etwas miitels PHP programmieren. Ein Lösungsansatz wäre, wenn Du für jede Frage Punkte vergibst.

Etwa so:

if($antwort='a' then $punkte=$punkte + 5)

if($antwort='b' then $punkte=$punkte + 3)

if($antwort='c' then $punkte=$punkte + 1)

Am Ende wertest Du die Gesamtpunktzahl aus.

If($punkte<20 and then $Ergebnis=$funzenpaul)

If($punkte>20 and $punkte <40 then $Ergebnis=$oberdepp)

If($punkte >>40 then $Ergebnis=$superschlau)

Dann halt zu jeder Ergebnisvariable einen entsprechenden Text und fertig.

Voila, Du hast einen "Psycho-Test"!

Ich hoffe, ich konnte Dir helfen.

Gruß

Florian

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.