Documentos de Académico
Documentos de Profesional
Documentos de Cultura
CODIFICACION
CODIFICACION
If Command1 Then
Form1.Hide
End If
End Sub
Option1.Visible = True
Option2.Visible = True
End If
End Sub
Frame1.Visible = True
Frame2.Visible = False
End If
End Sub
DECLARACIONES
Const pi = 3.141592654
Dim a, b, c, h, ht
Text1 = ""
Text2 = ""
End If
Text2.Text = ""
End If
Text2.Text = ""
End If
End If
Text3.Text = ""
End If
Text3.Text = ""
End If
End Sub
a = Val(Text1.Text)
b = Val(Text2.Text)
h = Val(Text4.Text)
c = Val(Text3.Text)
Vtr = (pi * (a ^ 2 + b ^ 2 + a * b) * h) / 3
v1 = (Vtr * b ^ 3) / (a ^ 3 - b ^ 3)
Vt = v1 + Vtr
h1 = ht - h
g1 = Sqr(h1 ^ 2 + b ^ 2)
d=h-c
g3 = ((h1 + d) * g1) / h1
g2 = g3 - g1
X = Sqr(g2 ^ 2 - d ^ 2)
r2 = b + X
End Sub
Text1 = ""
Text2 = ""
End If
Text2.Text = ""
End If
Text2.Text = ""
End If
Text4.Text = ""
End If
If Val(Text3.Text) <= 0 Then
Text3.Text = ""
End If
Text3.Text = ""
End If
End Sub
a = Val(Text1.Text)
h = Val(Text4.Text)
b = Val(Text2.Text)
c = HScroll1.Value
End Sub
Text2 = ""
End If
Text2.Text = ""
End If
Text2.Text = ""
End If
Text4.Text = ""
End If
Text3.Text = ""
End If
Text3.Text = ""
End If
End Sub
Private Sub Command2_Click()
a = Val(Text1.Text)
ht = Val(Label12.Caption)
c = HScroll1.Value
End Sub
Text5.Text = HScroll1.Value
End Sub
Picture1.Cls
End Sub
If Option2 Then
Frame2.Visible = True
Frame1.Visible = False
End If
End Sub
Text6 = ""
End If
Text7.Text = ""
End If
Text7.Text = ""
End If
Text8.Text = ""
End If
Text9.Text = ""
End If
Text9.Text = ""
End If
End Sub
Private Sub Command5_Click()
a = Val(Text6.Text)
b = Val(Text7.Text)
h = Val(Text8.Text)
S = Val(Text9.Text)
ht = (a * h) / (a - b)
h1 = ht - h
Vt = (pi * (a ^ 2) * ht) / 3
gt = Sqr(a ^ 2 + ht ^ 2)
v1 = (Vt * b ^ 3) / (a ^ 3)
X=a-b
g2 = Sqr(X ^ 2 + h ^ 2)
z = r3 - b
Label29.Caption = Sqr(g3 ^ 2 - z ^ 2)
Label30.Caption = (a * h) / (a - b)
End Sub
Text6 = ""
End If
If Val(Text7.Text) >= Val(Text6.Text) Then
Text7.Text = ""
End If
Text7.Text = ""
End If
Text8.Text = ""
End If
Text9.Text = ""
End If
Text9.Text = ""
End If
End Sub
a = Val(Text6.Text)
ht = Val(Label30.Caption)
c = HScroll2.Value
DrawWidth = 3
End Sub
Text6 = ""
End If
Text7.Text = ""
End If
Text7.Text = ""
End If
Text8.Text = ""
End If
Text9.Text = ""
End If
Text9.Text = ""
End If
End Sub
a = Val(Text6.Text)
h = Val(Text8.Text)
b = Val(Text7.Text)
c = HScroll2.Value
End Sub
Text10.Text = HScroll2.Value
End Sub
Picture2.Cls
End Sub
DECLARACIONES
Const pi = 3.141592654
Dim r, h
Text2 = ""
End If
Text3 = ""
End If
Text2.Text = ""
End If
End Sub
r = Sqr(Text3 ^ 2 - Text2 ^ 2)
e = 2 * pi / 5
g = r * Sin(e / 2)
h = Sqr(r ^ 2 - g ^ 2)
b = Atn(Text2 / h)
Label2 = (b * 180) / pi
j = Sqr(Text2 ^ 2 + h ^ 2)
k = Atn(j / g)
l = (180 * (5 - 2)) / 5
Label3 = (c * 180) / pi
n=5*g*j
q = 5 * ((r ^ 2 * Sin(e)) / 2)
Label4 = n + q
Label5 = (1 / 3) * q * Text2
End Sub
Text2 = ""
End If
Text3 = ""
End If
Text2.Text = ""
End If
End Sub
X = (Cos(18 * pi / 180)) * r
X1 = (Cos(54 * pi / 180)) * r
Y = (Sin(18 * pi / 180)) * r
j = Text3
c = HScroll1.Value
p = Text2
End Sub
Text1.Text = HScroll1.Value
End Sub
Picture1.Cls
End Sub
End Sub
DECLARACIONES
Dim r, h
Text1 = ""
End If
Text2 = ""
End If
End Sub
pi = 3.14159265358979
c = Text1 - 2 * Text2
r = Sqr(Text2 / pi)
h = c / (2 * pi * r)
Label1 = pi * r ^ 2 * h
End Sub
Text1 = ""
End If
Text2 = ""
End If
End Sub
c = HScroll1.Value
End Sub
Text3.Text = HScroll1.Value
End Sub
Picture1.Cls
End Sub
DECLARACIONES
Const pi = 3.14159265358979
Dim h, e, a
Text2 = ""
End If
Text3 = ""
End If
End Sub
d = 2 * pi / 5
f = e * Sqr(2 * (1 - Cos(d)))
h = ((Text2) / (5 * f))
a = Sqr(e ^ 2 - (f / 2) ^ 2)
Label1 = Text3 * h
End Sub
Text2 = ""
End If
Text3 = ""
End If
End Sub
c = HScroll1.Value
X = (Cos(18 * pi / 180)) * e
X1 = (Cos(54 * pi / 180)) * e
Y = (Sin(18 * pi / 180)) * e
End Sub
Text4.Text = HScroll1.Value
End Sub
Picture1.Cls
End Sub
End Sub
Dim r, h
Text1 = ""
End If
Text2 = ""
End If
End Sub
r = Text1
h = Text2
v1 = (2 * pi * r ^ 3) / 3
v2 = (pi * r ^ 2 * h) / 3
Label6.Caption = v1 + v2
End Sub
Text1 = ""
End If
Text2 = ""
End If
End Sub
j = HScroll1.Value
End Sub
Text4.Text = HScroll1.Value
End Sub
Picture1.Cls
End Sub
End Sub
ESTO ES EN FORM2
END
End sub