Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
0 of .
Results for:
No results containing your search query
P. 1
LABORATORIO N° 1 TATIANA CORREDOR Y YESIKA CABALLERO

# LABORATORIO N° 1 TATIANA CORREDOR Y YESIKA CABALLERO

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

### More info:

Published by: Häsblëïdy Gömëz Mölïnä on Nov 17, 2011
Copyright:Attribution Non-commercial

### Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

05/12/2014

pdf

text

original

SU EDAD ES?
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 SubPrivate Sub Command3_Click()End

End SubPrivate Sub Form_Load()Cols = 2GrdMenu.Rows = 9GrdMenu.FixedCols = 0GrdMenu.FixedRows = 1GrdMenu.TextArray(0) = "Menú"GrdMenu.TextArray(1) = "Precio"GrdMenu.TextArray(2) = "Hamburguesa"GrdMenu.TextArray(3) = "2.50"GrdMenu.TextArray(4) = "Cerveza"GrdMenu.TextArray(5) = "4.00"GrdMenu.TextArray(6) = "Gaseosa"GrdMenu.TextArray(7) = "3.00"GrdMenu.TextArray(8) = "Ensalada"GrdMenu.TextArray(9) = "1.50"GrdMenu.TextArray(10) = "Salchichas"GrdMenu.TextArray(11) = "2.00"GrdMenu.TextArray(12) = "Refresco"GrdMenu.TextArray(13) = "1.00"GrdMenu.TextArray(14) = "Sopa"GrdMenu.TextArray(15) = "1.50"GrdMenu.TextArray(16) = "Postre"GrdMenu.TextArray(17) = "1.50"End SubPrivate Sub Text1_KeyPress(KeyAscii As Integer)If KeyAscii = 13 ThenIf Text1.Text = "" ThenMsgBox ("")Text1.SetFocusElseText2.SetFocusEnd IfEnd IfEnd SubPrivate Sub Text2_KeyPress(KeyAscii As Integer)If KeyAscii = 13 ThenIf Text2.Text = "" ThenMsgBox ("")Text2.SetFocusElseText3.SetFocusEnd IfEnd IfEnd SubPrivate Sub Text3_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then

## Activity (1)

You've already reviewed this. Edit your review.
1 hundred reads
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->