Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
NOMBRE: LENIN TOAPANTACURSO: SUGUNDO TECNICOMATERIA: PROGRAMACION
Visual Studio es un conjunto completo deherramientas de desarrollo para la generaciónde aplicaciones Web ASP.NET, Servicio...
AREA YPERIMETRO DECUADRADO
Public Class Form1  Dim a As Double  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) ...
Public Class Form1  Dim BA, AL, H As Double  Private Sub Label3_Click(ByVal sender As System.Object, ByVal e AsSystem.Even...
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click     End  End Su...
AREA YPERIMATRO DELRECTANGULO
Public Class Form1  Dim a As Double  Dim b As Double  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsS...
AREA DEL ROMBO
Public Class Form1  Dim DM As Double  Dim Ds As Double  Dim l1 As Double  Dim l2 As Double  Dim l3 As Double  Dim l4 As Do...
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click    TextBox1.Cle...
CALCULADORA
Public Class Form1  Dim DATO As Double  Dim DATO2 As Double  Dim RESUL As Double  Dim OPE As Double  Dim PUN As Double  Pr...
BT2.Enabled = False    End If  End Sub  Private Sub BT5_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) H...
Private Sub BT10_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT10.Click    TextBox1.Text = Te...
Private Sub BT16_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT16.Click     OPE = 1     DATO ...
If OPE = 2 Then         RESUL = DATO - DATO2         TextBox1.Text = RESUL         BT2.Enabled = True      Else         If...
OPE = 2   DATO = Val(TextBox1.Text)   TextBox1.Clear()   BT2.Enabled = True End Sub  Private Sub BT8_Click(ByVal sender As...
CIRCULO
Public Class Form1  Dim PI As Double  Dim Rd As Double  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e A...
DOLAR Y EURO
Public Class Form1  Dim dl As Double  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)...
ESCALA DECALIFICACION
Public Class Form1  Dim n1 As Double  Dim n2 As Double  Dim n3 As Double  Dim n4 As Double  Dim resul As Double  Dim pro A...
Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles TextBox3.TextChanged  ...
Private Sub BT6_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT6.Click     div = 4     TextBox...
FACTURA
Public Class Form1  Dim CT As Double  Dim CT1 As Double  Dim CT2 As Double  Dim CT3 As Double  Dim CT4 As Double  Dim VU A...
CT = Val(TextBox1.Text)    CT1 = Val(TextBox2.Text)    CT2 = Val(TextBox3.Text)    CT3 = Val(TextBox4.Text)    CT4 = Val(T...
If (TextBox21.Text > 10000) Then        TextBox22.Text = (TextBox21.Text * 100) / 25        MsgBox("DESCUENTO DE 25%")    ...
End If            End If          End If       End If     End If    TextBox23.Text = TextBox21.Text - TextBox22.Text     R...
TextBox11.Clear()     TextBox12.Clear()     TextBox13.Clear()     TextBox14.Clear()     TextBox15.Clear()     TextBox16.Cl...
FIGURASGEOMETRICAS
Public Class Form1  Dim a As Double  Dim h As Double  Dim base As Double  Dim rd As Double  Dim pi As Double  Dim Bs As Do...
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button4.Click     h = Val(Tex...
TextBox15.Text = (Bs * H2) / 2    TextBox16.Text = l1 + l2 + hp  End Sub  Private Sub Button7_Click(ByVal sender As System...
Private Sub Button9_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button9.Click    h3 = TextBox...
TRANSFORMACION   DE HORA A   MINUTOS Y   SEGUNDOS
Public Class Form1  Dim CV  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles B...
PAR, INPAR
Public Class Form1  Dim residuo As Double  Dim i As Double  Dim r As Double  Private Sub Button1_Click(ByVal sender As Sys...
PERIMETRO DEL  TRIANGULO
Public Class Form1  Dim B As Double  Dim A As Double  Dim l1 As Double  Dim l2 As Double  Dim l3 As Double  Private Sub Bu...
TextBox5.Clear()    TextBox6.Clear()    TextBox7.Clear()  End Sub  Private Sub Button3_Click(ByVal sender As System.Object...
POSITIVO YNEGATIVO
Public Class Form1  Dim R As Double  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) ...
TABLA DEMULTIPLICAR
Public Class Form1  Dim TB As Double  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)...
TextBox31.Text = TB * TextBox7.Text    TextBox32.Text = TB * TextBox8.Text    TextBox33.Text = TB * TextBox9.Text    TextB...
TextBox23.Clear()     TextBox24.Clear()     TextBox25.Clear()     TextBox26.Clear()     TextBox27.Clear()     TextBox28.Cl...
TRASFORMACIONDE DIAS A HORAS
Public Class Form1  Dim CV As Double  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)...
LAS CUATROOPERACIONES   BASICAS
Public Class Form1  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.C...
Private Sub Label2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Label2.Click  End Sub  Private...
Colegio municipal
Colegio municipal
Upcoming SlideShare
Loading in …5
×

Colegio municipal

691 views

Published on

  • Buen aporte.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Colegio municipal

  1. 1. NOMBRE: LENIN TOAPANTACURSO: SUGUNDO TECNICOMATERIA: PROGRAMACION
  2. 2. Visual Studio es un conjunto completo deherramientas de desarrollo para la generaciónde aplicaciones Web ASP.NET, Servicios WebXML, aplicaciones de escritorio y aplicacionesmóviles. Visual Basic, Visual C++, Visual C# yVisual J# utilizan el mismo entorno de desarrollointegrado (IDE), que les permite compartirherramientas y facilita la creación de solucionesen varios lenguajes. Asimismo, dichos lenguajesaprovechan las funciones de .NET Framework,que ofrece acceso a tecnologías clave parasimplificar el desarrollo de aplicaciones WebASP y Servicios Web XML.
  3. 3. AREA YPERIMETRO DECUADRADO
  4. 4. Public Class Form1 Dim a As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click a = Val(TextBox1.Text) TextBox2.Text = a * a TextBox3.Text = 4 * a End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  5. 5. Public Class Form1 Dim BA, AL, H As Double Private Sub Label3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Label3.Click End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click BA = Val(TextBox1.Text) AL = Val(TextBox2.Text) TextBox3.Text = (BA * AL) / 2 H = 1 / 2 * ((BA ^ 2) + (AL ^ 2)) TextBox4.Text = H + BA + AL End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" End Sub
  6. 6. Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles MyBase.Load End SubEnd Class
  7. 7. AREA YPERIMATRO DELRECTANGULO
  8. 8. Public Class Form1 Dim a As Double Dim b As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click a = Val(TextBox1.Text) b = Val(TextBox2.Text) TextBox3.Text = a * b TextBox4.Text = (2 * a) + (2 * b) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  9. 9. AREA DEL ROMBO
  10. 10. Public Class Form1 Dim DM As Double Dim Ds As Double Dim l1 As Double Dim l2 As Double Dim l3 As Double Dim l4 As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click DM = Val(TextBox1.Text) Ds = Val(TextBox2.Text) l1 = Val(TextBox3.Text) l2 = Val(TextBox4.Text) l3 = Val(TextBox5.Text) l4 = Val(TextBox6.Text) TextBox7.Text = (DM * Ds) / 2 TextBox8.Text = l1 + l2 + l3 + l4 End Sub
  11. 11. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() TextBox3.Clear() TextBox4.Clear() TextBox5.Clear() TextBox6.Clear() TextBox7.Clear() TextBox8.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click EndEnd SubEnd Class
  12. 12. CALCULADORA
  13. 13. Public Class Form1 Dim DATO As Double Dim DATO2 As Double Dim RESUL As Double Dim OPE As Double Dim PUN As Double Private Sub BT17_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT17.Click TextBox1.Clear() BT2.Enabled = True End Sub Private Sub BT1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT1.Click TextBox1.Text = TextBox1.Text & "0" End Sub Private Sub BT2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT2.Click TextBox1.Text = TextBox1.Text & "." PUN = 1 If PUN = 1 Then
  14. 14. BT2.Enabled = False End If End Sub Private Sub BT5_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT5.Click TextBox1.Text = TextBox1.Text & "1" End Sub Private Sub BT6_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT6.Click TextBox1.Text = TextBox1.Text & "2" End Sub Private Sub BT7_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT7.Click TextBox1.Text = TextBox1.Text & "3" End SubPrivate Sub BT9_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT9.Click TextBox1.Text = TextBox1.Text & "4" End Sub
  15. 15. Private Sub BT10_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT10.Click TextBox1.Text = TextBox1.Text & "5" End Sub Private Sub BT11_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT11.Click TextBox1.Text = TextBox1.Text & "6" End Sub Private Sub BT13_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT13.Click TextBox1.Text = TextBox1.Text & "7" End Sub Private Sub BT14_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT14.Click TextBox1.Text = TextBox1.Text & "8" End Sub Private Sub BT15_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT15.Click TextBox1.Text = TextBox1.Text & "9" End Sub
  16. 16. Private Sub BT16_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT16.Click OPE = 1 DATO = Val(TextBox1.Text) TextBox1.Clear() BT2.Enabled = True End Sub Private Sub BT3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT3.Click DATO2 = Val(TextBox1.Text) If OPE = 1 Then RESUL = DATO + DATO2 TextBox1.Text = RESUL BT2.Enabled = True Else If OPE = 2 Then RESUL = DATO - DATO2 TextBox1.Text = RESUL BT2.Enabled = True Else
  17. 17. If OPE = 2 Then RESUL = DATO - DATO2 TextBox1.Text = RESUL BT2.Enabled = True Else If OPE = 3 Then RESUL = DATO * DATO2 TextBox1.Text = RESUL BT2.Enabled = True Else If OPE = 4 Then RESUL = DATO / DATO2 TextBox1.Text = RESUL BT2.Enabled = True End If End If End If End If End Sub Private Sub BT12_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT12.Click
  18. 18. OPE = 2 DATO = Val(TextBox1.Text) TextBox1.Clear() BT2.Enabled = True End Sub Private Sub BT8_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT8.Click OPE = 3 DATO = Val(TextBox1.Text) TextBox1.Clear() BT2.Enabled = True End Sub Private Sub BT4_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT4.Click OPE = 4 DATO = Val(TextBox1.Text) TextBox1.Clear() BT2.Enabled = True End SubEnd Class
  19. 19. CIRCULO
  20. 20. Public Class Form1 Dim PI As Double Dim Rd As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click PI = 3.1415 Rd = Val(TextBox1.Text) TextBox2.Text = PI * (Rd * Rd) TextBox3.Text = 2 * (PI * Rd) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() TextBox3.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  21. 21. DOLAR Y EURO
  22. 22. Public Class Form1 Dim dl As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click dl = Val(TextBox1.Text) TextBox2.Text = dl * 0.7829 End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  23. 23. ESCALA DECALIFICACION
  24. 24. Public Class Form1 Dim n1 As Double Dim n2 As Double Dim n3 As Double Dim n4 As Double Dim resul As Double Dim pro As Double Dim div As Double Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles TextBox1.TextChanged n1 = Val(TextBox1.Text) If n1 > 10 Then MsgBox("error nota mayor a 10") End If End Sub Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles TextBox2.TextChanged n2 = Val(TextBox2.Text) If n2 > 10 Then MsgBox("error nota mayor a 10") End If End Sub
  25. 25. Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles TextBox3.TextChanged n3 = Val(TextBox3.Text) If n3 > 10 Then MsgBox("error nota mayor a 10") End If End Sub Private Sub TextBox4_TextChanged(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles TextBox4.TextChanged n4 = Val(TextBox4.Text) If n4 > 10 Then MsgBox("error nota mayor a 10") End If End Sub Private Sub BT5_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT5.Click TextBox5.Text = TextBox5.Text TextBox5.Text = (n1 + n2 + n3 + n4) End Sub
  26. 26. Private Sub BT6_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT6.Click div = 4 TextBox6.Text = (n1 + n2 + n3 + n4) / div resul = (n1 + n2 + n3 + n4) / div End Sub Private Sub BT7_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BT7.Click If resul = 10 Then TextBox7.Text = " supera los aprendizajes requeridos" Else If resul >= 8 Then TextBox7.Text = "domina los aprendizajes requeridos " Else If resul = 7 Then TextBox7.Text = "alcansa los aprendizajes requeridos " Else If resul >= 5 Then TextBox7.Text = "proximo los aprendizajes requeridos " Else If resul <= 4 Then TextBox7.Text = "no alcansa los aprendizajes requeridos “
  27. 27. FACTURA
  28. 28. Public Class Form1 Dim CT As Double Dim CT1 As Double Dim CT2 As Double Dim CT3 As Double Dim CT4 As Double Dim VU As Double Dim VU1 As Double Dim VU2 As Double Dim VU3 As Double Dim VU4 As Double Dim Vt As Double Dim Vt1 As Double Dim Vt2 As Double Dim Vt3 As Double Dim Vt4 As Double Dim R As Double Dim v2 As Double Dim v3 As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click
  29. 29. CT = Val(TextBox1.Text) CT1 = Val(TextBox2.Text) CT2 = Val(TextBox3.Text) CT3 = Val(TextBox4.Text) CT4 = Val(TextBox5.Text) VU = Val(TextBox11.Text) VU1 = Val(TextBox12.Text) VU2 = Val(TextBox13.Text) VU3 = Val(TextBox14.Text) VU4 = Val(TextBox15.Text) TextBox16.Text = CT * VU TextBox17.Text = CT1 * VU1 TextBox18.Text = CT2 * VU2 TextBox19.Text = CT3 * VU3 TextBox20.Text = CT4 * VU4 Vt = Val(TextBox16.Text) Vt1 = Val(TextBox17.Text) Vt2 = Val(TextBox18.Text) Vt3 = Val(TextBox19.Text) Vt4 = Val(TextBox20.Text) TextBox21.Text = Vt + Vt1 + Vt3 + Vt4
  30. 30. If (TextBox21.Text > 10000) Then TextBox22.Text = (TextBox21.Text * 100) / 25 MsgBox("DESCUENTO DE 25%") Else If (TextBox21.Text > 5000 & TextBox21.Text < 10000) Then TextBox22.Text = (TextBox21.Text * 100) / 20 MsgBox("DESCUENTO DE 20%") Else If (TextBox21.Text >= 2500 & TextBox21.Text < 5000) Then TextBox22.Text = (TextBox21.Text * 100) / 15 MsgBox("DESCUENTO DE 15%") Else If (TextBox21.Text >= 1200 & TextBox21.Text < 2500) Then TextBox22.Text = (TextBox21.Text * 100) / 10 MsgBox("DESCUENTO DE 10%") Else If (TextBox21.Text >= 350 & TextBox21.Text < 1200) Then TextBox22.Text = (TextBox21.Text * 100) / 5 MsgBox("DESCUENTO DE 5%") Else If (TextBox21.Text < 350) Then TextBox22.Text = 0.0 MsgBox("NO EXISTE DESCUENTO")
  31. 31. End If End If End If End If End If TextBox23.Text = TextBox21.Text - TextBox22.Text R = TextBox21.Text * 0.1 v2 = Val(TextBox22.Text) v3 = Val(TextBox24.Text) TextBox24.Text = TextBox21.Text - R TextBox25.Text = (TextBox21.Text - v2) + v3 End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() TextBox3.Clear() TextBox4.Clear() TextBox5.Clear() TextBox6.Clear() TextBox7.Clear() TextBox8.Clear() TextBox9.Clear() TextBox10.Clear()
  32. 32. TextBox11.Clear() TextBox12.Clear() TextBox13.Clear() TextBox14.Clear() TextBox15.Clear() TextBox16.Clear() TextBox17.Clear() TextBox18.Clear() TextBox19.Clear() TextBox20.Clear() TextBox21.Clear() TextBox22.Clear() TextBox23.Clear() TextBox24.Clear() TextBox25.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  33. 33. FIGURASGEOMETRICAS
  34. 34. Public Class Form1 Dim a As Double Dim h As Double Dim base As Double Dim rd As Double Dim pi As Double Dim Bs As Double Dim H2 As Double Dim l1 As Double Dim l2 As Double Dim l3 As Double Dim cb As Double Dim ld As Double Dim ld2 As Double Dim ld3 As Double Dim rd2 As Double Dim h3 As Double Dim hp As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click a = Val(TextBox1.Text) TextBox2.Text = a * a TextBox3.Text = a + a + a + a End Sub
  35. 35. Private Sub Button4_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button4.Click h = Val(TextBox5.Text) base = Val(TextBox4.Text) TextBox6.Text = base * h TextBox7.Text = (2 * base) + (2 * h) End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button5.Click rd = TextBox8.Text pi = 3.1415 TextBox9.Text = pi * (rd * rd) TextBox10.Text = 2 * rd * pi End Sub Private Sub Button6_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button6.Click Bs = Val(TextBox11.Text) H2 = Val(TextBox12.Text) l1 = TextBox13.Text l2 = TextBox14.Text hp = Math.Sqrt(l1 ^ 2 + l2 ^ 2)
  36. 36. TextBox15.Text = (Bs * H2) / 2 TextBox16.Text = l1 + l2 + hp End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button7.Click cb = Val(TextBox17.Text) TextBox18.Text = 6 * (cb ^ 2) TextBox19.Text = cb ^ 3 End Sub Private Sub Button8_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button8.Click ld = Val(TextBox20.Text) ld2 = Val(TextBox21.Text) ld3 = Val(TextBox22.Text) TextBox23.Text = 2 * (ld * ld2) + 2 * (ld2 * ld3) + 2 * (ld * ld3) TextBox24.Text = ld * ld2 * ld3 End Sub
  37. 37. Private Sub Button9_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button9.Click h3 = TextBox30.Text rd2 = TextBox25.Text pi = 3.1415 TextBox27.Text = 2 * pi * (rd2 * rd2) TextBox28.Text = 2 * pi * rd2 * h3 TextBox26.Text = 2 * rd2 * pi TextBox29.Text = pi * (rd2 * rd2) * h3 End SubEnd Class
  38. 38. TRANSFORMACION DE HORA A MINUTOS Y SEGUNDOS
  39. 39. Public Class Form1 Dim CV Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click CV = Val(TextBox1.Text) TextBox2.Text = CV * 60 TextBox3.Text = CV * 1300 End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() TextBox3.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  40. 40. PAR, INPAR
  41. 41. Public Class Form1 Dim residuo As Double Dim i As Double Dim r As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click r = Val(TextBox1.Text) residuo = r Mod 2 If residuo = 1 Then TextBox2.Text = (r & " ES IMPAR ") Else TextBox2.Text = (r & " ES PAR ") End If End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click EndEnd Class
  42. 42. PERIMETRO DEL TRIANGULO
  43. 43. Public Class Form1 Dim B As Double Dim A As Double Dim l1 As Double Dim l2 As Double Dim l3 As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click B = Val(TextBox1.Text) A = Val(TextBox2.Text) l1 = Val(TextBox3.Text) l2 = Val(TextBox4.Text) l3 = Val(TextBox5.Text) TextBox6.Text = (B * A) / 2 TextBox7.Text = l1 + l2 + l3 End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() TextBox3.Clear() TextBox4.Clear()
  44. 44. TextBox5.Clear() TextBox6.Clear() TextBox7.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  45. 45. POSITIVO YNEGATIVO
  46. 46. Public Class Form1 Dim R As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click R = Val(TextBox1.Text) If (R > 0) Then TextBox2.Text = "POSITIVO" End If If (R < 0) Then TextBox2.Text = "NEGATIVO" End If End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  47. 47. TABLA DEMULTIPLICAR
  48. 48. Public Class Form1 Dim TB As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click TB = Val(TextBox37.Text) TextBox13.Text = TB TextBox14.Text = TB TextBox15.Text = TB TextBox16.Text = TB TextBox17.Text = TB TextBox18.Text = TB TextBox19.Text = TB TextBox20.Text = TB TextBox21.Text = TB TextBox22.Text = TB TextBox23.Text = TB TextBox24.Text = TB TextBox25.Text = TB * TextBox1.Text TextBox26.Text = TB * TextBox2.Text TextBox27.Text = TB * TextBox3.Text TextBox28.Text = TB * TextBox4.Text TextBox29.Text = TB * TextBox5.Text TextBox30.Text = TB * TextBox6.Text
  49. 49. TextBox31.Text = TB * TextBox7.Text TextBox32.Text = TB * TextBox8.Text TextBox33.Text = TB * TextBox9.Text TextBox34.Text = TB * TextBox10.Text TextBox35.Text = TB * TextBox11.Text TextBox36.Text = TB * TextBox12.Text End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox13.Clear() TextBox14.Clear() TextBox15.Clear() TextBox16.Clear() TextBox17.Clear() TextBox18.Clear() TextBox19.Clear() TextBox20.Clear() TextBox21.Clear() TextBox22.Clear()
  50. 50. TextBox23.Clear() TextBox24.Clear() TextBox25.Clear() TextBox26.Clear() TextBox27.Clear() TextBox28.Clear() TextBox29.Clear() TextBox30.Clear() TextBox31.Clear() TextBox32.Clear() TextBox33.Clear() TextBox34.Clear() TextBox35.Clear() TextBox37.Clear() TextBox36.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  51. 51. TRASFORMACIONDE DIAS A HORAS
  52. 52. Public Class Form1 Dim CV As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click CV = Val(TextBox1.Text) TextBox2.Text = CV * 24 TextBox3.Text = CV * 1440 TextBox4.Text = CV * 86400 End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() TextBox3.Clear() TextBox4.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click End End SubEnd Class
  53. 53. LAS CUATROOPERACIONES BASICAS
  54. 54. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click TextBox3.Text = Val(TextBox2.Text) + Val(TextBox1.Text) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click TextBox3.Text = Val(TextBox2.Text) - Val(TextBox1.Text) End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click TextBox3.Text = Val(TextBox2.Text) / Val(TextBox1.Text) End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button4.Click TextBox3.Text = Val(TextBox2.Text) * Val(TextBox1.Text) End Sub
  55. 55. Private Sub Label2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Label2.Click End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles MyBase.Load End SubEnd Class

×