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.

Struktogramm für VB Code

Empfohlene Antworten

Hallo,

bin grad übelzt am durchdrehen. Muss ein Struktogramm für einen VB-Code erstellen.

Könnte mir da mal jemand Hilfe geben?

Habe keine Ahnung wie genau Struktogramme aufgebaut sind.

Hier der VB Code:


Private Sub TextBox1_Change()

Dim Eingabe As Long

If TextBox1.Text > 30 Then

MsgBox ("zu groß")

Else

Eingabe = TextBox1.Text

End If

End Sub

Private Sub (CommandButton1_Click ()

Dim Eingabe As Long

Dim e As Double

Dim i As Double

Dim tmp As Double

i = 1

Eingabe = TextBox1.Text

e=1

Do

tmp = Eingabe ^ i / faku(i)

If tmp >= 0.00001 Then

e = e + tmp

i = i + 1

End If

Loop Until tmp <= 0.00001

Label1 = e


End Sub


Public Function faku (zahl As Double) As Double

Dim Fakultät As Double

Dim n As Double

Fakultät = 1

For n = 1 To zahl

Fakultät = Fakultät * n

Next n

faku = Fakultät

End Function

Würde mich über Hilfe freuen.

Gruß RedBullSuchti

Bearbeitet von grueni

Es wird dir hier keiner ein fertiges Struktogramm basteln. Es gibt mehr als ausreichend Beispiel von Struktogrammen im Netz.

Versuch eins zu erstellen und wir korrigieren dich dann, wenn nötig.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.