Professional Documents
Culture Documents
Programa en Visual basic 2010 que calcula el promedio de 3 calificaciones y además según tu edad
y sexo te indica si eres joven, señorita, señor o señora.
Programa:
Public Class Form1
Label13.Visible = False
Label14.Visible = False
Label15.Visible = False
End If
If (Edad >= 15) And (sexo = "Femenino") Then
Label12.Visible = False
Label13.Visible = True
Label14.Visible = False
Label15.Visible = False
End If
If (Edad >= 35) And (sexo = "Masculino") Then
Label12.Visible = False
Label13.Visible = False
Label14.Visible = True
Label15.Visible = False
End If
If (Edad >= 35) And (sexo = "Femenino") Then
Label12.Visible = False
Label13.Visible = False
Label14.Visible = False
Label15.Visible = True
End If
If (Promedio >= 6.9) Then
Label18.Visible = True
Else
Label19.Visible = True
End If
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
Private Sub Label11_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label11.Click
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Sub
End Class