0% found this document useful (0 votes)
30 views4 pages

Guia 1, Ejercicio 3. Formulario 1

This document contains code for 6 forms that allow a user to view different subject materials for systems, enter grades for each subject, calculate the average grade, and check if the user passed or failed. The forms hide and show each other to switch between subjects. When grades are entered for a subject, they are averaged and a message informs the user if they passed or failed that subject.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views4 pages

Guia 1, Ejercicio 3. Formulario 1

This document contains code for 6 forms that allow a user to view different subject materials for systems, enter grades for each subject, calculate the average grade, and check if the user passed or failed. The forms hide and show each other to switch between subjects. When grades are entered for a subject, they are averaged and a message informs the user if they passed or failed that subject.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Guia 1, Ejercicio 3.

Formulario 1:
Private Sub Form_Click()
Guia_1_3_1.Print "MATERIAS DE SISTEMAS"
Guia_1_3_1.Print "->ALGORITMOS"
Guia_1_3_1.Print "->PROGRAMAS"
Guia_1_3_1.Print "->DIAGRAMAS DE FLUJO"
Guia_1_3_1.Print "->PRUEBA DE ESCRITORIO"
Guia_1_3_1.ForeColor = vbBlack
End Sub

Private Sub Form_DblClick()
Guia_1_3_1.Hide
Guia_1_3_2.Show
End Sub

Formulario 2:
Private Sub Cmdmat1_Click(Index As Integer)
Guia_1_3_2.Hide
Guia_1_3_3.Show
End Sub

Private Sub Cmdmat2_Click()
Guia_1_3_2.Hide
Guia_1_3_4.Show
End Sub

Private Sub Cmdmat3_Click(Index As Integer)
Guia_1_3_2.Hide
Guia_1_3_5.Show
End Sub

Private Sub Cmdmat4_Click(Index As Integer)
Guia_1_3_2.Hide
Guia_1_3_6.Show
End Sub

Private Sub Command1_Click()
Guia_1_3_1.Hide
Guia_1.Show
End Sub

Formulario 3:
Private Sub CmdLimpiar1_Click(Index As Integer)
Txtnota1 = ""
Txtnota2 = ""
Txtnota3 = ""
End Sub

Private Sub Command1_Click(Index As Integer)
Guia_1_3_3.Hide
Guia_1_3_2.Show
End Sub

Public Sub Command2_Click()
Dim A As Integer
A = (Val(Txtnota1.Text) + Val(Txtnota2.Text) + Val(Txtnota3.Text)) / 3
If A < 3 Then
MsgBox ("Su nota final en Algoritmos es " & A & " Reprob")
Else
MsgBox ("Su nota final en Algoritmos es " & A & " Aprob")
End If
End Sub

Formulario 4:
Private Sub CmdLimpiar2_Click(Index As Integer)
Txtnota4 = ""
Txtnota5 = ""
Txtnota6 = ""
End Sub

Private Sub Command1_Click(Index As Integer)
Guia_1_3_4.Hide
Guia_1_3_2.Show
End Sub

Private Sub Command2_Click()
Dim B As Integer
B = (Val(Txtnota4.Text) + Val(Txtnota5.Text) + Val(Txtnota6.Text)) / 3
If B < 3 Then
MsgBox ("Su nota final en Programas es " & B & " Reprob")
Else
MsgBox ("Su nota final en Programas es " & B & " Aprob")
End If
End Sub

Formulario 5:
Private Sub CmdLimpiar3_Click(Index As Integer)
Txtnota7 = ""
Txtnota8 = ""
Txtnota9 = ""
End Sub

Private Sub Command1_Click(Index As Integer)
Guia_1_3_5.Hide
Guia_1_3_2.Show
End Sub

Private Sub Command2_Click()
Dim C As Integer
C = (Val(Txtnota7.Text) + Val(Txtnota8.Text) + Val(Txtnota9.Text)) / 3
If C < 3 Then
MsgBox ("Su nota final en Diagramas de Flujo es " & C & " Reprob")
Else
MsgBox ("Su nota final en Diagramas de Flujo es " & C & " Aprob")
End If
End Sub

Formulario 6:
Private Sub CmdLimpiar4_Click(Index As Integer)
Txtnota10 = ""
Txtnota11 = ""
Txtnota12 = ""
End Sub

Private Sub Command1_Click(Index As Integer)
Guia_1_3_6.Hide
Guia_1_3_2.Show
End Sub

Private Sub Command2_Click()
Dim d As Integer
d = (Val(Txtnota10.Text) + Val(Txtnota11.Text) + Val(Txtnota12.Text)) / 3
If d < 3 Then
MsgBox ("Su nota final en Proeba de escritorio es " & d & " Reprob")
Else
MsgBox ("Su nota final en Proeba de escritorio es " & d & " Aprob")
End If
End Sub

You might also like