Вы находитесь на странице: 1из 25

VISUAL BASIC

Paso 5 Proyecto Final

WILLIAM FABIÁN RODRÍGUEZ Cód. 1096956729

YARNHER ENRIQUE SÁNCHEZ Cód. 13724713

Grupo: 201416_20

Tutor: JAIME RUBIANO LLORENTE

UNIVERSIDAD NACIONAL ABIERTA Y A DISTANCIA UNAD

Mayo 2019
INTRODUCTION

In this document we will observe the development of the activity Step 5 final activity

of the Visual Basic course, which consists of finishing the project worked along the

course, where we select three topics, to perform the analysis, design and coding.
ANALISIS

La universidad Nacional Abierta y a Distancia requiere un programa de


computador para el apoyo en el proceso enseñanza aprendizaje de los
estudiantes de ingeniería de sistemas, este programa debe manejar un
registro de estudiantes en una base de datos, una vez registrado el
estudiante debe seleccionar una a una las áreas a estudiar como apoyo al
proceso de formación, estas áreas:
REALIDAD VIRTUAL
MINERIA DE DATOS
La función del programa será mostrar archivos de multimedia como lo son
imágenes, videos, sonidos y textos referentes al tema de la minería de
datos y realidad virtual.

Diseño:

Se emplea la POO en el lenguaje de programación de Visual Basic

El programa tendrá los siguientes formularios

 Login
 Formulario para seleccionar los temas (Minería de Datos)(Realidad
Virtual)
 Formulario Realidad virtual
 Formulario de minería de datos
 Formulario con material de apoyo
 Formulario evaluación nivel 1
 Formulario evaluación nivel 2
También tendrá los siguientes elementos:

 Reproductor de Windows Media


 Botones de Play, Pause y Stop
 Video sobre MD
 Audio sobre MD
 TextBox
 Label
 RichTextbox
 PictureBox
Tema Realidad Virtual Formularios Evaluación

Código

Public Class Form1


Private Property puntaje As Single

Private Sub RadioButton8_CheckedChanged(sender As Object, e As EventArgs)


Handles RadioButton8.CheckedChanged

End Sub

Private Sub RadioButton34_CheckedChanged(sender As Object, e As EventArgs)


Handles RadioButton34.CheckedChanged

End Sub

Private Sub RadioButton36_CheckedChanged(sender As Object, e As EventArgs)


Handles RadioButton36.CheckedChanged

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click
GroupBox1.Visible = True
GroupBox2.Visible = True
GroupBox3.Visible = True
GroupBox4.Visible = True
GroupBox5.Visible = True
GroupBox6.Visible = True
GroupBox7.Visible = True
GroupBox8.Visible = True
GroupBox9.Visible = True
GroupBox10.Visible = True
Timer1.Enabled = True
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles


Button2.Click
puntaje = 0
If RadioButton1.Checked = False Xor RadioButton2.Checked = False Xor
RadioButton3.Checked = False Xor RadioButton4.Checked = False Xor
RadioButton5.Checked = False Xor RadioButton6.Checked = False Xor
RadioButton7.Checked = False Xor RadioButton8.Checked = False Xor
RadioButton9.Checked = False Xor RadioButton10.Checked = False Xor
RadioButton11.Checked = False Xor RadioButton12.Checked = False Xor
RadioButton13.Checked = False Xor RadioButton14.Checked = False Xor
RadioButton15.Checked = False Xor RadioButton16.Checked = False Xor
RadioButton17.Checked = False Xor RadioButton18.Checked = False Xor
RadioButton19.Checked = False Xor RadioButton20.Checked = False Xor
RadioButton21.Checked = False Xor RadioButton22.Checked = False Xor
RadioButton23.Checked = False Xor RadioButton24.Checked = False Xor
RadioButton25.Checked = False Xor RadioButton26.Checked = False Xor
RadioButton27.Checked = False Xor RadioButton28.Checked = False Xor
RadioButton29.Checked = False Xor RadioButton30.Checked = False Xor
RadioButton31.Checked = False Xor RadioButton32.Checked = False Xor
RadioButton33.Checked = False Xor RadioButton34.Checked = False Xor
RadioButton35.Checked = False Xor RadioButton36.Checked = False Xor
RadioButton37.Checked = False Xor RadioButton38.Checked = False Xor
RadioButton39.Checked = False Xor RadioButton40.Checked = False Then
MsgBox("debe responder todas las preguntas")

Else
If RadioButton3.Checked = True Then puntaje = puntaje + 5
If RadioButton8.Checked = True Then puntaje = puntaje + 5
If RadioButton10.Checked = True Then puntaje = puntaje + 5
If RadioButton16.Checked = True Then puntaje = puntaje + 5
If RadioButton19.Checked = True Then puntaje = puntaje + 5
If RadioButton21.Checked = True Then puntaje = puntaje + 5
If RadioButton25.Checked = True Then puntaje = puntaje + 5
If RadioButton30.Checked = True Then puntaje = puntaje + 5
If RadioButton36.Checked = True Then puntaje = puntaje + 5
If RadioButton37.Checked = True Then puntaje = puntaje + 5
Label5.Text = puntaje

End If

If puntaje = 30 Then

Aplicativo multimedia

Análisis

Se desarrolló el aplicativo en base a Realidad Virtual, en el cual podemos

encontrar contenido multimedia como imagen video, sonido y texto.

Encontramos los siguientes formularios

 Login
 Temas Realidad Virtual
 Formulario Realidad Virtual
 Formulario video audio
 Audio Video
 Botón audio
 PictureBox
 TextBox
Codigo

Public Class Login


Dim usuarios() As String = {"Admin"}
Dim contraseñas() As String = {"1234"}

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click
Dim usuario As String = CStr(TextBox1.Text)
Dim pass As String = CStr(TextBox2.Text)

If usuario = "" Or pass = "" Then


MsgBox("Debe poner usuario y contraseña")
TextBox1.Focus()
Exit Sub

Else
Dim contador = 0
For x As Integer = 0 To usuarios.Length - 1
If usuario = usuarios(x) And pass = contraseñas(x) Then
MsgBox("Bienvenido")
Temas.Show()
Me.Hide()
Else
contador += 1
If contador = usuarios.Length Then
MsgBox("Verifique su usuario o contraseña")
Exit Sub
End If
End If
Next

End If
End Sub
End Class

Public Class Video_y_Audio


Private Sub AxWindowsMediaPlayer1_Enter(sender As Object, e As
EventArgs) Handles AxWindowsMediaPlayer1.Enter

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click
My.Computer.Audio.Play(My.Resources._Qu__es_Realidad_virtual__128,
AudioPlayMode.Background)
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles


Button2.Click
My.Computer.Audio.Stop()

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles


Button3.Click
End
End Sub
End Class

Public Class Realidad_Virtual


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
Me.Hide()
Video_y_Audio.Show()
End Sub
End Class
Codificación:
Public Class Login

Dim usuarios() As String = {"Admin", "William"}

Dim contraseñas() As String = {"1234", "1010"}

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles

Button1.Click

Dim usuario As String = CStr(TextBox1.Text)

Dim pass As String = CStr(TextBox2.Text)

If usuario = "" Or pass = "" Then

MsgBox("Debe poner usuario y contraseña")

TextBox1.Focus()

Exit Sub

Else

Dim contador = 0

For x As Integer = 0 To usuarios.Length - 1

If usuario = usuarios(x) And pass = contraseñas(x) Then

MsgBox("Bienvenido")

Temas.Show()

Me.Hide()

Else

contador += 1

If contador = usuarios.Length Then

MsgBox("Verifique su usuario o contraseña")

Exit Sub

End If
End If

Next

End If

End Sub

Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles

PictureBox1.Click

Me.Hide()

End Sub

End Class

Public Class Mineria_de_Datos

Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles

PictureBox1.Click

Me.Hide()

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles

Button1.Click

Audio_y_Video.Show()

Me.Hide()

End Sub

End Class
Public Class Audio_y_Video

Private Sub PictureBox3_Click(sender As Object, e As EventArgs) Handles

PictureBox3.Click

Me.Hide()

End Sub

Private Sub AxWindowsMediaPlayer1_Enter(sender As Object, e As

EventArgs) Handles AxWindowsMediaPlayer1.Enter

End Sub

Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles

PictureBox1.Click

AxWindowsMediaPlayer1.Ctlcontrols.play()

End Sub

Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles

PictureBox2.Click

AxWindowsMediaPlayer1.Ctlcontrols.pause()

End Sub

Private Sub PictureBox4_Click(sender As Object, e As EventArgs) Handles

PictureBox4.Click

AxWindowsMediaPlayer1.Ctlcontrols.stop()

End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles

Button1.Click

My.Computer.Audio.Play(My.Resources.Que_es_la_Mineria_de_Datos_128_1_,

AudioPlayMode.Background)

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles

Button2.Click

End

End Sub

End Class

}
FORMULARIO EVALUACIÓN NIVEL 1 Y 2 MINERIA DE DATOS

Public Class Nivel_2

Private puntaje As Integer

Private Sub Nivel_2_Load(sender As Object, e As EventArgs) Handles Me.Load

Timer1.Enabled = True

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles

Button1.Click

puntaje = 0

If RadioButton3.Checked = True Then puntaje = puntaje + 1

If RadioButton6.Checked = True Then puntaje = puntaje + 1

If RadioButton12.Checked = True Then puntaje = puntaje + 1

If RadioButton15.Checked = True Then puntaje = puntaje + 1

If RadioButton17.Checked = True Then puntaje = puntaje + 1

If RadioButton24.Checked = True Then puntaje = puntaje + 1

If RadioButton28.Checked = True Then puntaje = puntaje + 1

If RadioButton30.Checked = True Then puntaje = puntaje + 1

If RadioButton33.Checked = True Then puntaje = puntaje + 1

If RadioButton39.Checked = True Then puntaje = puntaje + 1


If RadioButton40.Checked = True Then puntaje = puntaje + 1

If RadioButton1.Checked = True Then Label8.Text = "Incorrecto"

If RadioButton2.Checked = True Then Label9.Text = "Incorrecto"

If RadioButton4.Checked = True Then Label10.Text = "Incorrecto"

If RadioButton3.Checked = True Then Label11.Text = "correcto"

If RadioButton5.Checked = True Then Label15.Text = "Incorrecto"

If RadioButton7.Checked = True Then Label13.Text = "Incorrecto"

If RadioButton8.Checked = True Then Label12.Text = "Incorrecto"

If RadioButton6.Checked = True Then Label14.Text = "correcto"

If RadioButton9.Checked = True Then Label19.Text = "Incorrecto"

If RadioButton10.Checked = True Then Label18.Text = "Incorrecto"

If RadioButton11.Checked = True Then Label17.Text = "Incorrecto"

If RadioButton7.Checked = True Then Label13.Text = "Incorrecto"

If RadioButton8.Checked = True Then Label12.Text = "Incorrecto"

If RadioButton12.Checked = True Then Label16.Text = "correcto"

If RadioButton13.Checked = True Then Label23.Text = "Incorrecto"

If RadioButton14.Checked = True Then Label22.Text = "Incorrecto"

If RadioButton15.Checked = True Then Label21.Text = "correcto"

If RadioButton16.Checked = True Then Label20.Text = "Incorrecto"

If RadioButton17.Checked = True Then Label27.Text = "correcto"

If RadioButton18.Checked = True Then Label26.Text = "Incorrecto"


If RadioButton19.Checked = True Then Label25.Text = "Incorrecto"

If RadioButton20.Checked = True Then Label24.Text = "Incorrecto"

If RadioButton21.Checked = True Then Label31.Text = "Incorrecto"

If RadioButton22.Checked = True Then Label30.Text = "Incorrecto"

If RadioButton23.Checked = True Then Label29.Text = "Incorrecto"

If RadioButton24.Checked = True Then Label28.Text = "correcto"

If RadioButton25.Checked = True Then Label35.Text = "Incorrecto"

If RadioButton26.Checked = True Then Label34.Text = "Incorrecto"

If RadioButton27.Checked = True Then Label33.Text = "Incorrecto"

If RadioButton28.Checked = True Then Label32.Text = "correcto"

If RadioButton29.Checked = True Then Label39.Text = "Incorrecto"

If RadioButton30.Checked = True Then Label38.Text = "correcto"

If RadioButton31.Checked = True Then Label37.Text = "Incorrecto"

If RadioButton32.Checked = True Then Label36.Text = "Incorrecto"

If RadioButton33.Checked = True Then Label43.Text = "correcto"

If RadioButton34.Checked = True Then Label42.Text = "Incorrecto"

If RadioButton35.Checked = True Then Label41.Text = "Incorrecto"

If RadioButton36.Checked = True Then Label40.Text = "Incorrecto"

If RadioButton37.Checked = True Then Label47.Text = "Incorrecto"

If RadioButton38.Checked = True Then Label46.Text = "Incorrecto"

If RadioButton39.Checked = True Then Label45.Text = "correcto"

If RadioButton40.Checked = True Then Label44.Text = "Incorrecto"


If RadioButton1.Checked = False Xor RadioButton2.Checked = False Xor

RadioButton3.Checked =

False Xor RadioButton4.Checked = False Xor RadioButton5.Checked =

False Xor RadioButton6.Checked = False Xor RadioButton7.Checked =

False Xor RadioButton8.Checked = False Xor RadioButton9.Checked =

False Xor RadioButton10.Checked =

False Xor RadioButton11.Checked = False Xor RadioButton12.Checked =

False Xor RadioButton13.Checked = False Xor RadioButton14.Checked =

False Xor RadioButton15.Checked = False Xor RadioButton16.Checked =

False Xor RadioButton17.Checked = False Xor RadioButton18.Checked =

False Xor RadioButton19.Checked = False Xor RadioButton20.Checked =

False Xor RadioButton21.Checked = False Xor RadioButton22.Checked =

False Xor RadioButton23.Checked = False Xor RadioButton24.Checked =

False Xor RadioButton25.Checked = False Xor RadioButton26.Checked =

False Xor RadioButton27.Checked = False Xor RadioButton28.Checked =

False Xor RadioButton29.Checked = False Xor RadioButton30.Checked =

False Xor RadioButton31.Checked = False Xor RadioButton32.Checked =

False Xor RadioButton33.Checked = False Xor RadioButton34.Checked =

False Xor RadioButton35.Checked = False Xor RadioButton36.Checked =

False Xor RadioButton37.Checked = False Xor RadioButton38.Checked =

False Xor RadioButton39.Checked = False Xor RadioButton40.Checked =

False Then
Label49.Text = "Debe responder todas las preguntas"

Label49.Visible = True

End If

Label4.Text = puntaje

Label4.Visible = True

If (puntaje >= 6) Then

Label3.Text = "Felicitaciones ha aprobado"

Else

Label3.Text = "Reprobado debe repetir la evaluación"

End If

If Label4.Visible = True Then

Timer1.Stop()

End If

End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles

Timer1.Tick

Label6.Text += 1

If Label6.Text = "59" Then

Label2.Text += 1

Label6.Text = "00"

End If

If Label2.Text = "2" Then

Timer1.Enabled = False

End If

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles

Button2.Click

Label3.Text = Nothing

Label4.Text = Nothing

Label8.Text = Nothing

Label9.Text = Nothing

Label10.Text = Nothing
Label11.Text = Nothing

Label12.Text = Nothing

Label13.Text = Nothing

Label14.Text = Nothing

Label15.Text = Nothing

Label16.Text = Nothing

Label17.Text = Nothing

Label18.Text = Nothing

Label19.Text = Nothing

Label20.Text = Nothing

Label21.Text = Nothing

Label22.Text = Nothing

Label23.Text = Nothing

Label24.Text = Nothing

Label25.Text = Nothing

Label26.Text = Nothing

Label27.Text = Nothing

Label28.Text = Nothing

Label29.Text = Nothing

Label30.Text = Nothing

Label31.Text = Nothing

Label32.Text = Nothing

Label33.Text = Nothing

Label34.Text = Nothing
Label35.Text = Nothing

Label36.Text = Nothing

Label37.Text = Nothing

Label38.Text = Nothing

Label39.Text = Nothing

Label40.Text = Nothing

Label41.Text = Nothing

Label42.Text = Nothing

Label43.Text = Nothing

Label44.Text = Nothing

Label45.Text = Nothing

Label46.Text = Nothing

Label47.Text = Nothing

Label49.Text = Nothing

RadioButton1.Checked = Nothing

RadioButton2.Checked = Nothing

RadioButton3.Checked = Nothing

RadioButton4.Checked = Nothing

RadioButton5.Checked = Nothing

RadioButton6.Checked = Nothing

RadioButton7.Checked = Nothing

RadioButton8.Checked = Nothing

RadioButton9.Checked = Nothing
RadioButton10.Checked = Nothing

RadioButton11.Checked = Nothing

RadioButton12.Checked = Nothing

RadioButton13.Checked = Nothing

RadioButton14.Checked = Nothing

RadioButton15.Checked = Nothing

RadioButton16.Checked = Nothing

RadioButton17.Checked = Nothing

RadioButton18.Checked = Nothing

RadioButton19.Checked = Nothing

RadioButton20.Checked = Nothing

RadioButton21.Checked = Nothing

RadioButton22.Checked = Nothing

RadioButton23.Checked = Nothing

RadioButton24.Checked = Nothing

RadioButton25.Checked = Nothing

RadioButton26.Checked = Nothing

RadioButton27.Checked = Nothing

RadioButton28.Checked = Nothing

RadioButton29.Checked = Nothing

RadioButton30.Checked = Nothing

RadioButton31.Checked = Nothing

RadioButton32.Checked = Nothing

RadioButton33.Checked = Nothing
RadioButton34.Checked = Nothing

RadioButton35.Checked = Nothing

RadioButton36.Checked = Nothing

RadioButton37.Checked = Nothing

RadioButton38.Checked = Nothing

RadioButton39.Checked = Nothing

RadioButton40.Checked = Nothing

GroupBox1.Visible = True

GroupBox2.Visible = True

GroupBox3.Visible = True

GroupBox4.Visible = True

GroupBox5.Visible = True

GroupBox6.Visible = True

GroupBox7.Visible = True

GroupBox8.Visible = True

GroupBox9.Visible = True

GroupBox10.Visible = True

Timer1.Stop()

Label6.Text = "00"
Label2.Text = "00"

Timer1.Start()

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles

Button3.Click

If (puntaje >= 6) Then

End

End If

End Sub

End Class
CONCLUSIONES
REFERENCIAS BIBLIOGRÁFICAS

Ceballos, S. F. J. (2012). Enciclopedia de Microsoft Visual Basic: interfaces


gráficas y aplicaciones para Internet con Windows Forms y ASP.NET (3a.
ed.). Madrid, ES: RA-MA Editorial. Parte 3 Acceso a datos. (pp. 421-486),
Recuperado
de http://bibliotecavirtual.unad.edu.co:2077/lib/unadsp/reader.
action?ppg=449&docID=11046056&tm=1480461245069

Stephens, R. (2010). Visual Basic 2010: Programmer's Reference.


Indianápolis, IN: Wrox. Chapter 21. DataBase Controls and Objects.
Chapter 21 (pp.421-471), Recuperado
de. http://bibliotecavirtual.unad.edu.co:2051/login.aspx?direct=true&d
b=nlebk&AN=310355&lang=es&site=ehost-live

Вам также может понравиться