TURNO
MAANA
TARDE
NOCHE
SN = S - D
TextBox2.Text = SN
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
End Class
Inicio
HT,
TURNO
TURNO =MAANA
TH =
TURNO = TARDE
TH =
TH =
S=
S>200
D=
S>200
D=
SN = S SN
Fin
Inicio
TC
Generar nmero = n
S>200
D = TC*0.2
D = TC*0.4
TP = TC - D
D, TP
Fin
=
=
=
=
=
=
=
=
Val(TextBox1.Text)
Val(TextBox2.Text)
Val(TextBox3.Text)
Val(TextBox4.Text)
Val(TextBox5.Text)
Val(TextBox6.Text)
Val(TextBox7.Text)
Val(TextBox8.Text)
For I = 0 To 7
For J = 0 To 7
If numeros(I) < numeros(J) Then
AUX = numeros(J)
numeros(J) = numeros(I)
numeros(I) = AUX
End If
Next
Next
For I = 0 To 7
strMsg = strMsg & numeros(I) & " - "
SUMA = (numeros(1) + numeros(2) + numeros(3) + numeros(4) + numeros(5) +
numeros(6) + numeros(7))
Next
PROMEDIO = SUMA / 7
TextBox9.Text = strMsg
TextBox10.Text = SUMA
TextBox11.Text = PROMEDIO
DIAGRAMA DE FLUJO
Inicio
I=0 7
AUX =
N(I) N(J)
= N(I)
N(I) =
J=0 7
I=0 7
ORDENAR VALORES = VO
SUMA DE 7 VALORES ORDENADOS
= SVO
SVO =
(N1+N2+N3+N4+N5+N6+N7)
VO, SVO,
PROMEDIO
Fin