Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

MARTINEZ RODRIGUEZ MIRNA ANGELICA

EJERCICIO 1
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Label1.Text = "EXPRECION ALGORITMICA"
Label2.Text = "Y= A*B - (C/ (D+E))"
Label3.Text = " DATOS"
Label4.Text = "A ="
Label5.Text = "B ="
Label6.Text = "C ="
Label7.Text = "D ="
Label8.Text = "E ="
Label9.Text = "Y="
TextBox6.Enabled = False
Button1.Text = "CALCULAR"
Button2.Text = "LIMPIAR"
Me.BackColor = Color.LightBlue
End Sub

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


Button1.Click
TextBox6.Text = CDbl(TextBox1.Text) * CDbl(TextBox2.Text) -
(CDbl(TextBox3.Text) / (CDbl(TextBox4.Text) + CDbl(TextBox5.Text)))
End Sub

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


Button2.Click
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
TextBox6.Clear()

End Sub
End Class

EJERCICIO 2
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Label1.Text = "EXPRECION ALGORITMICA"
Label2.Text = "Y= (5*X^3) + ((A*X)-B)/(8+X) /(X^2-1)"
Label3.Text = " DATOS"
Label4.Text = "X ="
Label5.Text = "A ="
Label6.Text = "B ="
Label7.Text = "Y ="
TextBox4.Enabled = False
Button1.Text = "CALCULAR"
Button2.Text = "LIMPIAR"
Me.BackColor = Color.LightBlue
End Sub

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


Button1.Click
TextBox4.Text = 5 * (CDbl(TextBox1.Text) ^ 3) + (CDbl(TextBox2.Text) *
CDbl(TextBox1.Text) - CDbl(TextBox3.Text)) / (8 + CDbl(TextBox1.Text)) /
(CDbl(TextBox1.Text) ^ 2 - 1)

End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles
Button2.Click
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
End Class

EJERCICIO 3
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Label1.Text = "EXPRECION ALGORITMICA"
Label2.Text = "Y= ((B*C -D)^3)/ ((7+4) * A) + D - 1/ (3+B)"
Label3.Text = " DATOS"
Label4.Text = "B ="
Label5.Text = "C ="
Label6.Text = "D ="
Label7.Text = "A ="
Label8.Text = "Y ="
TextBox5.Enabled = False
Button1.Text = "CALCULAR"
Button2.Text = "LIMPIAR"
Me.BackColor = Color.LightSalmon
End Sub

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


Button1.Click

TextBox5.Text = (CDbl(TextBox1.Text) * CDbl(TextBox2.Text) -


CDbl(TextBox3.Text)) ^ 3 / (7 + 4 * CDbl(TextBox4.Text)) + CDbl(TextBox3.Text) - 1 /
(3 + CDbl(TextBox1.Text))
End Sub

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


Button2.Click
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
End Sub

End Class

EJERCICIO 4
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Label1.Text = "EXPRECION ALGORITMICA"
Label2.Text = "Y= (A+B) mod 3((A^2)/7)"
Label3.Text = " DATOS"
Label4.Text = "A ="
Label5.Text = "B ="
Label6.Text = "Y ="
TextBox3.Enabled = False
Button1.Text = "CALCULAR"
Button2.Text = "LIMPIAR"
Me.BackColor = Color.LightYellow
End Sub

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


Button1.Click
TextBox3.Text = (CDbl(TextBox1.Text) + CDbl(TextBox2.Text)) Mod 3 +
((CDbl(TextBox1.Text) ^ 2) / 7)
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles
Button2.Click
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
End Sub
End Class

You might also like