Ececececuacion de primer grado y

214 views

Published on

ivan ramirez iglesias

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
214
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ececececuacion de primer grado y

  1. 1.  ECUACION DE PRIMER GRADO Y = Ax + B:Private sub command1_ click ( )text1 = “ “text2 = “ “text3 = “ “·text4 = “ “End subPrivate sub command2_ click ( )EndEnd subPrivate sub command3_ click ( )Din a As DoubleDin b As DoubleDin x As Doublea = Val (text1)b = Val (text2)x = Val (text3) y=a*x+btext4.text = ytext5.text = “y “& Val (text 1) & Val (text 2)End sub FORMULA DE PITAGORAS:Private sub command1 _click ( )Din A As DoubleDin B As Double A = Val (text1) B = Val (text2) C = sqr ( (A * A ) + ( B * B ) )Text3 .text = CEnd subPrivate sub command2_: click ( )Din B As DoubleDin C As Double B = Val (text1) C = Val (text2) A =sqr ( (C * C ) - ( B * B) )Text3.text = AEnd subPrivates ub command_clicjk ( )Din A As DoubleDin B As Double A = val (text1 ) C = val ( text3 ) B = sqr ( ( c * c ) - (A * A) )Text2.text = BEnd sub
  2. 2. Private sub command4_ click ( )IgText1.text = “ “Text2 .text= “ “Text3. Text = “ “End subPrivate sub command5_ click ( )EndEnd sub PROMEDIO DE UN ALUMNO:Private sub command click ( )EndEnd subPrivate sub command _click ( )Text1 = “ “Text2 = “ “Text5 = “ “Text3 = “ {Enter } “Text4 = “ ¿aprovaras ? “Text4 .forecolor = RGB ( 25, 10 , 225 )End subPrivate sub text3_keypress (keyacii As Integer) Num = CDb ( ( Val (text1.text) + val (text2.text ) +val(text5)) /3)If keyAcii = 13 thenText3.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 IfEnd sub

×