Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
0 of .
Results for:
P. 1
LÄBÖRÄTÖRÏÖ N° 1

# LÄBÖRÄTÖRÏÖ N° 1

Ratings: (0)|Views: 9|Likes:

### Availability:

See more
See less

07/01/2014

pdf

text

original

Este ejercicio sirve para calcular la edad de una persona dando la fecha de nacimiento
:
CÓDIGO
Private Sub Command1_Click()Dim a As Date, b As Integera = CDate(Text1.Text)b = CInt((Date - a) / 365)Text2.Text = Str(b) & "años"End SubPrivate Sub Command2_Click()Text1.Text = ""Text2.Text = ""End SubPrivate Sub Command3_Click()EndEnd Sub
RESTAURANTE
Esta aplicación calcula el total de ventas en el día y también los impuestos a pagar comoson (18*100)

CÓDIGO
Private Sub Command1_Click()Dim A, B, C, D, E, F, G, H, I, J As IntegerA = Val(Text1.Text)B = Val(Text2.Text)C = Val(Text3.Text)D = Val(Text4.Text)E = Val(Text5.Text)F = Val(Text6.Text)G = Val(Text7.Text)H = Val(Text8.Text)I = (A * 2.5) + (B * 4) + (C * 3) + (D * 1.5) + (E * 2) + (F * 1) + (G * 1.5) + (H * 1.5)J = (I * 0.18)Text9.Text = I + JText10.Text = JEnd SubPrivate Sub Command2_Click()Text1.Text = ""Text2.Text = ""Text3.Text = ""Text4.Text = ""Text5.Text = ""Text6.Text = ""Text7.Text = ""Text8.Text = ""Text9.Text = ""Text10.Text = ""End Sub