1. ECUACION DE PRIMER GRADO Y = Ax + B:
Private sub command1_ click ( )
text1 = “ “
text2 = “ “
text3 = “ “·
text4 = “ “
End sub
Private sub command2_ click ( )
End
End sub
Private sub command3_ click ( )
Din a As Double
Din b As Double
Din x As Double
a = Val (text1)
b = Val (text2)
x = Val (text3)
y=a*x+b
text4.text = y
text5.text = “y “& Val (text 1) & Val (text 2)
End sub
FORMULA DE PITAGORAS:
Private sub command1 _click ( )
Din A As Double
Din B As Double
A = Val (text1)
B = Val (text2)
C = sqr ( (A * A ) + ( B * B ) )
Text3 .text = C
End sub
Private sub command2_: click ( )
Din B As Double
Din C As Double
B = Val (text1)
C = Val (text2)
A =sqr ( (C * C ) - ( B * B) )
Text3.text = A
End sub
Privates ub command_clicjk ( )
Din A As Double
Din B As Double
A = val (text1 )
C = val ( text3 )
B = sqr ( ( c * c ) - (A * A) )
Text2.text = B
End sub
2. Private sub command4_ click ( )
IgText1.text = “ “
Text2 .text= “ “
Text3. Text = “ “
End sub
Private sub command5_ click ( )
End
End sub
PROMEDIO DE UN ALUMNO:
Private sub command click ( )
End
End sub
Private sub command _click ( )
Text1 = “ “
Text2 = “ “
Text5 = “ “
Text3 = “ {Enter } “
Text4 = “ ¿aprovaras ? “
Text4 .forecolor = RGB ( 25, 10 , 225 )
End sub
Private sub text3_keypress (keyacii As Integer)
Num = CDb ( ( Val (text1.text) + val (text2.text ) +val
(text5)) /3)
If keyAcii = 13 then
Text3.text = str (Num)
Text3.forecolor = IIf (Num >= 10.5, RGB (0, 0,225), RGB
(225, 0,0))
Text4.text = IIf (Num > = 10.5, “aprovado “,
“desaprobado” )
Text4. forecolor = IIf (Num > = 10.5,RGB(0, 0,225,RGB
(225, 0, 0 ) )
End If
End sub