43
EJERCICIO # 1Elaborar un programa en Visual Basic .net que me
permita realizar una factura.
RADIO BUTTON 2 PictureBox1.Image = Image.FromFile("C:\
descartable.jpg") Label3.Text = 3 & " dolar"RADIO BUTTON 3
PictureBox1.Image = Image.FromFile("C:\ retornable.jpg")
Label3.Text = 2 & " dolar"RADIO BUTTON 1
PictureBox1.Image = Image.FromFile("C:\ lata.jpg") Label3.Text =
1 & " dolar"BOTON LIMPIAR RadioButton1.Checked = False
RadioButton2.Checked = False RadioButton3.Checked = False
TextBox1.Text = "" TextBox2.Text = "" Label3.Text = "" Label5.Text
= "" Label8.Text = "" PictureBox1.Image = Nothing
TextBox1.Focus()BOTON CALCULAR TextBox2.Enabled = True Label5.Text
= Val(TextBox1.Text) * Val(Label3.Text)BOTON CAMBIO Label8.Text =
Val(TextBox2.Text) - Val(Label5.Text)BOTON SALIR
Me.Close()EJERCICIO # 2
RADIO BUTTON 2
PictureBox1.Image = Image.FromFile("C:\Users\ raiz3.jpg")
TextBox1.Focus()RADIO BUTTON 3
PictureBox1.Image = Image.FromFile("C:\ raiz4.jpg")
TextBox1.Focus()RADIO BUTTON 1
PictureBox1.Image = Image.FromFile("C:\ raiz5.jpg")
TextBox1.Focus()BOTON CALCULAR If RadioButton1.Checked = True Then
Label3.Text = Math.Sqrt(TextBox1.Text) Else If RadioButton2.Checked
= True Then Label3.Text = TextBox1.Text ^ (1 / 3) Else If
RadioButton3.Checked = True Then Label3.Text = TextBox1.Text ^ (1 /
4) End If End If End If BOTON LIMPIAR RadioButton1.Checked = False
RadioButton2.Checked = False RadioButton3.Checked = False
TextBox1.Text = "" PictureBox1.Image = Nothing Label3.Text = ""
BOTON SALIR Me.Close()EJERCICIO # 3
RADIO BUTTON 1 PictureBox1.Image =
Image.FromFile("C:\LETRAS.png")RADIO BUTTON 2
PictureBox1.Image = Image.FromFile("C:\INVERTIR.png")RADIO
BUTTON 3
PictureBox1.Image = Image.FromFile("C:\ PRIMERA.png")BOTON
CALCULAR If RadioButton1.Checked = True Then Label3.Text =
Len(TextBox1.Text) Else If RadioButton2.Checked = True Then
Label3.Text = StrReverse(TextBox1.Text) Else If
RadioButton3.Checked = True Then Label3.Text =
Strings.Left(TextBox1.Text, 1) End If End If End IfBOTON LIMPIAR
PictureBox1.Image = Nothing RadioButton1.Checked = False
RadioButton2.Checked = False RadioButton3.Checked = False
Label3.Text = "" TextBox1.Text = "" TextBox1.Focus()BOTON SALIR
Me.Close()EJERCICIO # 4
RADIO BUTTON 1(CALCULAR) If Len(TextBox1.Text) = 3 Then
MsgBox("EL NUMERO QUE INGRESO ES DE TRES DIGITOS")
RadioButton1.Checked = False RadioButton2.Checked = False
RadioButton3.Checked = False
Else
MsgBox("EL NUMERO QUE INGRESO NO ES DE TRES DIGITOS")
RadioButton1.Checked = False RadioButton2.Checked = False
RadioButton3.Checked = False
End If
RADIO BUTTON 2 (LIMPIAR)
RadioButton1.Checked = False RadioButton2.Checked = False
RadioButton3.Checked = False TextBox1.Text = "" Label4.Text = ""
TextBox1.Focus()RADIO BUTTON 3 (SALIR)
Me.Close()
EJERCICIO # 5
RADIO BUTTON 1(CALCULAR)
If Val(TextBox1.Text) > (TextBox2.Text) And
Val(TextBox1.Text) > Val(TextBox3.Text) ThenIf
Val(TextBox2.Text) > Val(TextBox3.Text) ThenLabel5.Text = "
MAYOR " & TextBox1.Text & " MEDIO " & TextBox2.Text
& " MENOR " & TextBox3.Text
ElseLabel5.Text = " MAYOR " & TextBox1.Text & " MEDIO "
& TextBox3.Text & " MENOR " & TextBox2.TextEnd IfEnd
If
If Val(TextBox2.Text) > (TextBox1.Text) And
Val(TextBox2.Text) > Val(TextBox3.Text) ThenIf
Val(TextBox1.Text) > Val(TextBox3.Text) ThenLabel5.Text = "
MAYOR " & TextBox2.Text & " MEDIO " & TextBox1.Text
& " MENOR " & TextBox3.TextElseLabel5.Text = " MAYOR "
& TextBox2.Text & " MEDIO " & TextBox3.Text & "
MENOR " & TextBox1.TextEnd IfEnd IfIf Val(TextBox3.Text) >
(TextBox1.Text) And Val(TextBox3.Text) > Val(TextBox2.Text)
ThenIf Val(TextBox1.Text) > Val(TextBox2.Text) ThenLabel5.Text =
" MAYOR " & TextBox3.Text & " MEDIO " & TextBox1.Text
& " MENOR " & TextBox2.TextElseLabel5.Text = " MAYOR "
& TextBox3.Text & " MEDIO " & TextBox2.Text & "
MENOR " & TextBox1.TextEnd IfEnd If
RADIO BUTTON 2 (LIMPIAR)
RadioButton1.Checked = False RadioButton2.Checked = False
RadioButton3.Checked = False TextBox1.Text = "" TextBox2.Text = ""
TextBox3.Text = "" Label5.Text = "" TextBox1.Focus()
RADIO BUTTON 3 (SALIR)
Me.Close()EJERCICIO # 6
RADIO BUTTON 1(CALCULAR)
If Val(TextBox2.Text)