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

Hallo, ich hab da so ein doofes Verständnisproblem bezüglich dieses Nassi-Shneiderman-Diagramms - ich komme einfach nicht darauf, wie je die linke Seite der Verzweigung bedient werden könnte.

Mein Kopf sitzt schief und denkt:

end = Anzahl Kunden, (#zb 5.)

für i = 1 bis end(#also 5)

Anzahl_titel (#also 1) > Anzahl_titel [i + 1](#also 1 + 1 oder auch 2)

ja(#ne!)  oder nein(#durchaus)

mach also nichts

end = end - 1(#also 4)

(#jetzt wieder oben)

für i = 1 bis end(#also 4)

Anzahl_titel (#also 1) > Anzahl_titel [i + 1](#also 1 + 1 oder auch 2, das hatten wir doch eben schon?)

und so fort.

Mag mir jemand den Kopf wieder gerade rücken? Bitte? 😕

Struktogramm.thumb.jpg.a357167878a42788062f307e91e0d01c.jpg

Gelöst von MrN1ceGuy

Zur Lösung
  • Lösung

Das end = end - 1 ist noch Teil der For-Schleife

D.h. bei deinem zweiten Schritt
"

(#jetzt wieder oben)

für i = 1 bis end(#also 4)

Anzahl_titel (#also 1) > Anzahl_titel [i + 1](#also 1 + 1 oder auch 2, das hatten wir doch eben schon?)

und so fort.

"

Wäre es eigentlich: 

 

(#jetzt wieder oben)

für i = 1 bis end(#also 4)

Anzahl_titel (#also 2) > Anzahl_titel [i + 1](#also 2 + 1 oder auch 3)

und so fort.

 

vor 9 Stunden schrieb MrN1ceGuy:

Das end = end - 1 ist noch Teil der For-Schleife

D.h. bei deinem zweiten Schritt

Wäre es eigentlich: 

 

 

(#jetzt wieder oben)

für i = 1 bis end(#also 4)

Anzahl_titel (#also 2) > Anzahl_titel [i + 1](#also 2 + 1 oder auch 3)

und so fort.

 

Danke, das ist schonmal ein Schritt vorwärts! Bloß seh ich immer noch nicht, wie ich auf die linke Seite der Auswahl komme, also zu ja,

wenn

Anzahl_titel (#also 2) > Anzahl_titel [i + 1](#also 2 + 1 oder auch 3)

also beide Seiten immer um 1 erhöht werden mit jeder Iteration, kann Anzahl_titel (i) doch nie größer Anzahl_titel (i+1) werden?

Bearbeitet von Curt Dukis

Ich habs, danke nochmal!

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.