You are on page 1of 8

VISUAL BASIC BASICO 201416A_363

Paso 1

Estudiante:

WILSON BAUTISTA CUEVAS C.C. 82392600

GRUPO N° 25

Tutor:

JAIME RUBIANO LLORENTE

UNIVERSIDAD NACIONAL ABIERTA Y A DISTANCIA

ESCUELA DE CIENCIAS BASICAS, TECNOLOGIA E INGENIERIA

PROGRAMA DE INGENIERIA DE SISTEMAS

Curso: Visual Basic Básico Código del curso: 201416


Tutor: Jaime Rubiano Llorente Periodo 2017-2
Grupo N° 25
INTRODUCCION

Curso: Visual Basic Básico Código del curso: 201416


Tutor: Jaime Rubiano Llorente Periodo 2017-2
Grupo N° 25
ACTIVIDAD

10. Diseñe un programa que me permita solucionar el siguiente problema. Al llegar al hotel nos

han dado un mapa con los lugares de interés de la ciudad, y nos han dicho que 5 centímetros del

mapa representan 600 metros de la realidad. Hoy queremos ir a un parque que se encuentra a 8

centímetros del hotel en el mapa. ¿A qué distancia del hotel se encuentra este parque?, el

programa debe trabajar con distancias hasta de 30 cms.

Sabemos que en 1 cm hay 120 m (600: 5 = 120).

Por lo tanto hacemos 120 × 8 = 960 m

Resultado:

Curso: Visual Basic Básico Código del curso: 201416


Tutor: Jaime Rubiano Llorente Periodo 2017-2
Grupo N° 25
Curso: Visual Basic Básico Código del curso: 201416
Tutor: Jaime Rubiano Llorente Periodo 2017-2
Grupo N° 25
CÓDIGO:

Public Class Form1


Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click

End Sub

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

End Sub

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


Dim x As Double

x = (Label6.Text * TextBox2.Text) / Label4.Text


TextBox1.Text = x
TextBox3.Text = TextBox2.Text
End Sub

Private Sub Label3_Click(sender As Object, e As EventArgs) Handles Label3.Click

End Sub

Private Sub Label2_Click(sender As Object, e As EventArgs) Handles Label2.Click

End Sub

Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged

End Sub

Private Sub Label7_Click(sender As Object, e As EventArgs) Handles Label7.Click

End Sub

Private Sub Label6_Click(sender As Object, e As EventArgs) Handles Label6.Click

End Sub

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

End Sub

Private Sub Label4_Click(sender As Object, e As EventArgs) Handles Label4.Click

End Sub

Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged

End Sub

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

End Sub

Private Sub TextBox3_TextChanged(sender As Object, e As EventArgs) Handles TextBox3.TextChanged


TextBox3.Text = TextBox2.Text

Curso: Visual Basic Básico Código del curso: 201416


Tutor: Jaime Rubiano Llorente Periodo 2017-2
Grupo N° 25
End Sub
End Class

Curso: Visual Basic Básico Código del curso: 201416


Tutor: Jaime Rubiano Llorente Periodo 2017-2
Grupo N° 25
CONCLUSIONES

Curso: Visual Basic Básico Código del curso: 201416


Tutor: Jaime Rubiano Llorente Periodo 2017-2
Grupo N° 25
REFERENCIAS BIBLIOGRÁFICAS

Curso: Visual Basic Básico Código del curso: 201416


Tutor: Jaime Rubiano Llorente Periodo 2017-2
Grupo N° 25

You might also like