SlideShare uma empresa Scribd logo
1 de 15
Baixar para ler offline
Jesús Osorio Vázquez NL33

Proyecto 1
Descripción.
Este programa sirve para una taquería en la cual el empleado entrara con una contraseña
asignada se le dará la bienvenida con la fecha y lo hora en la que se ingrese. Después saldrá un
listado en donde vienen las mesas disponibles y otro listado en el cual parecen el menú de comida
y bebidas los cuales al seleccionar aparecerá un cuadro en el cual se anotara lo solicitado por el
cliente, después se ira acumulando para así al final dar una cantidad de las ganancias del día.
Cuando el empleado salga le dará un mensaje de despedida y la hora en la que salió.

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim pas As String
pas = InputBox("Ingresa el pasword")
If pas = " " Then
MessageBox.Show("Debes de introducir la contraseña corecta")
End If
If pas = "tacos" Then
MessageBox.Show("contraseña corecta")
mesa.Show()
Me.Hide()
ElseIf MsgBox("La contraseña es invalidad " & pas, MsgBoxStyle.Critical,
"contarseña invalida") Then
End If
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles PictureBox1.Click
End Sub
End Class
Public Class mesa
Private Sub AGREGAR_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles AGREGAR.Click
Dim x As Double
Dim y As Double
Dim d As Double
Dim a As Double
Dim f As Double
Dim k As Double
Dim l As Double
Dim cuentat As Double
Dim cuentaf As Double
If MESAS.Text = 1 Then
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 15)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M1.Text = cuentat
End If
If MESAS.Text = 2 Then
If MESAS.Text = 2 Then
M2.ForeColor = Color.Red
Label2.ForeColor = Color.Red
Label15.ForeColor = Color.Red
Label33.ForeColor = Color.Red
End If
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 20)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M2.Text = cuentat
End If
If MESAS.Text = 3 Then
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 20)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M3.Text = cuentat
End If
If MESAS.Text = 4 Then
If MESAS.Text = 4 Then
M4.ForeColor = Color.Red
Label4.ForeColor = Color.Red
Label17.ForeColor = Color.Red
Label26.ForeColor = Color.Red
End If
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 20)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M4.Text = cuentat
End If
If MESAS.Text = 5 Then
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 20)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M5.Text = cuentat
End If
If MESAS.Text = 6 Then
If MESAS.Text = True Then
Label6.ForeColor = Color.Red
M6.ForeColor = Color.Red
Label19.ForeColor = Color.Red
Label28.ForeColor = Color.Red
End If
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 20)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M6.Text = cuentat
End If

If MESAS.Text = 7 Then
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 20)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M7.Text = cuentat
End If
If MESAS.Text = 8 Then
If MESAS.Text = 8 Then
M8.ForeColor = Color.Red
Label8.ForeColor = Color.Red
Label21.ForeColor = Color.Red
Label30.ForeColor = Color.Red
End If
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 20)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M8.Text = cuentat
End If
If MESAS.Text = 9 Then
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 20)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M9.Text = cuentat
End If
If MESAS.Text = 10 Then
If MESAS.Text = 10 Then
M10.ForeColor = Color.Red
Label10.ForeColor = Color.Red
Label23.ForeColor = Color.Red
Label32.ForeColor = Color.Red
End If
If TG.Checked = True Then
x = (Val(TextBox1.Text) * 20)
End If
If TCH.Checked = True Then
y = (Val(TextBox2.Text) * 10)
End If
If REF.Checked = True Then
d = (Val(TextBox3.Text) * 10)
End If
If CER.Checked = True Then
a = (Val(TextBox4.Text) * 30)
End If
If POS.Checked = True Then
f = (Val(TextBox5.Text) * 20)
End If
If CG.Checked = True Then
k = (Val(TextBox6.Text) * 20)
End If
If CCH.Checked = True Then
l = (Val(TextBox7.Text) * 13)
End If
cuentat = x + y + d + a + f + l + k
M10.Text = cuentat
End If
cuentaf = Val(M1.Text) + Val(M2.Text) + Val(M3.Text) + Val(M4.Text) +
Val(M5.Text) + Val(M6.Text) + Val(M7.Text) + Val(M8.Text) + Val(M9.Text) +
Val(M10.Text)
final.Text = "$

" & cuentaf.ToString & "

TextBox1.Text = ""

pesos"
TextBox2.Text
TextBox3.Text
TextBox4.Text
TextBox5.Text
TextBox6.Text
TextBox7.Text

=
=
=
=
=
=

""
""
""
""
""
""

TG.Checked = False
TCH.Checked = False
REF.Checked = False
CER.Checked = False
POS.Checked = False
CG.Checked = False
CCH.Checked = False
TextBox1.Enabled
TextBox2.Enabled
TextBox3.Enabled
TextBox4.Enabled
TextBox5.Enabled
TextBox6.Enabled
TextBox7.Enabled

=
=
=
=
=
=
=

PictureBox1.Visible
PictureBox2.Visible
PictureBox3.Visible
PictureBox4.Visible
PictureBox5.Visible

False
False
False
False
False
False
False
=
=
=
=
=

False
False
False
False
False

End Sub
Private Sub TG_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TG.CheckedChanged
If TG.Checked = True Then
TextBox1.Enabled = True
PictureBox1.Visible = True
Else
PictureBox1.Visible = False
End If
End Sub
Private Sub TCH_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TCH.CheckedChanged
If TCH.Checked = True Then
TextBox2.Enabled = True
PictureBox1.Visible = True
Else
PictureBox1.Visible = False
End If
End Sub
Private Sub REF_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles REF.CheckedChanged
If REF.Checked = True Then
TextBox3.Enabled = True
PictureBox5.Visible = True
Else
PictureBox5.Visible = False
End If
End Sub
Private Sub CER_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles CER.CheckedChanged
If CER.Checked = True Then
TextBox4.Enabled = True
PictureBox4.Visible = True
Else
PictureBox4.Visible = False
End If
End Sub
Private Sub POS_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles POS.CheckedChanged
If POS.Checked = True Then
TextBox5.Enabled = True
PictureBox3.Visible = True
Else
PictureBox3.Visible = False
End If
End Sub
Private Sub CG_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles CG.CheckedChanged
If CG.Checked = True Then
TextBox6.Enabled = True
PictureBox2.Visible = True
Else
PictureBox2.Visible = False
End If
End Sub
Private Sub CCH_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles CCH.CheckedChanged
If CCH.Checked = True Then
TextBox7.Enabled = True
PictureBox2.Visible = True
Else
PictureBox2.Visible = False
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
MsgBox("Hola Bienvenido " & TextBox8.Text & " " & DateAndTime.Now)
Button2.Visible = True
nota.Visible = True
menuu.Visible = True
Label1.Visible = True
Label2.Visible = True
Label3.Visible = True
Label4.Visible = True
Label5.Visible = True
Label6.Visible = True
Label7.Visible = True
Label8.Visible = True
Label9.Visible = True
Label10.Visible = True
M1.Visible = True
M2.Visible = True
M3.Visible = True
M4.Visible = True
M5.Visible = True
M6.Visible = True
M7.Visible = True
M8.Visible = True
M9.Visible = True
M10.Visible = True
Label11.Visible = True
final.Visible = True
Label14.Visible = True
Label15.Visible = True
Label16.Visible = True
Label17.Visible = True
Label18.Visible = True
Label19.Visible = True
Label20.Visible = True
Label21.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
Label31.Visible = True
Label32.Visible = True
Label33.Visible = True
End Sub

Private Sub Label13_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label13.Click

Label13.Text = (" Hasta Pronto, " & TextBox8.Text & " Buen dia ")
Label13.Font = New Font(Label13.Font, FontStyle.Italic Or FontStyle.Bold
Or FontStyle.Underline)
Label13.ForeColor = Color.Blue
Button2.Visible = False
nota.Visible = False
menuu.Visible = False
Label1.Visible = False
Label2.Visible = False
Label3.Visible = False
Label4.Visible = False
Label5.Visible = False
Label6.Visible = False
Label7.Visible = False
Label8.Visible = False
Label9.Visible = False
Label10.Visible = False
M1.Visible = False
M2.Visible = False
M3.Visible = False
M4.Visible = False
M5.Visible = False
M6.Visible = False
M7.Visible = False
M8.Visible = False
M9.Visible = False
M10.Visible = False
Label11.Visible = False
final.Visible = False
Label14.Visible = False
Label15.Visible = False
Label16.Visible = False
Label17.Visible = False
Label18.Visible = False
Label19.Visible = False
Label20.Visible = False
Label21.Visible = False
Label22.Visible = False
Label23.Visible = False
Label24.Visible = False
Label25.Visible = False
Label26.Visible = False
Label27.Visible = False
Label28.Visible = False
Label29.Visible = False
Label30.Visible = False
Label31.Visible = False
Label32.Visible = False
Label33.Visible = False
End Sub
Private Sub mesa_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
MESAS.Text = ""
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox7.Text = ""
M1.Text = "0"
M2.Text = "0"
M3.Text = "0"
M4.Text = "0"
M5.Text = "0"
M6.Text = "0"
M7.Text = "0"
M8.Text = "0"
M9.Text = "0"
M10.Text = "0"
final.Text = "$" & "

0

" & "pesos"

M2.ForeColor = Color.Black
Label2.ForeColor = Color.Black
Label15.ForeColor = Color.Black
Label33.ForeColor = Color.Black
M4.ForeColor = Color.Black
Label4.ForeColor = Color.Black
Label17.ForeColor = Color.Black
Label26.ForeColor = Color.Black
Label6.ForeColor = Color.Black
M6.ForeColor = Color.Black
Label19.ForeColor = Color.Black
Label28.ForeColor = Color.Black
M8.ForeColor = Color.Black
Label8.ForeColor = Color.Black
Label21.ForeColor = Color.Black
Label30.ForeColor = Color.Black
M10.ForeColor = Color.Red
Label10.ForeColor = Color.Black
Label23.ForeColor = Color.Black
Label32.ForeColor = Color.Black

End Sub
End Class
Conjuntos.
-

Conjunto mesas denotado por M = <1, 2, 3 ,4 ,5 ,6 ,7 ,8, 9, >.

-

Conjunto precios denotado por P = <15, 10, 30, 20, 20, 13>.

-

Conjunto menú denotado por L = <taco grande, taco chico, cemita grande, cemita chica,
refresco, cerveza, postre>.

Proyecto 2
Relación
Sea un relación dada por los conjuntos M y P, en donde M ≤ P. verificar si es una relación de
equivalencia o un conjunto parcialmente ordenado.
-Reflexiva:
No, porque no existe un par (a,a) €R por lo tanto no existe la reflexividad.
-Simétrica:
Damos por cierto que existe un (a,b) €R, y ahora debemos encontrar un (b,a) €R, y
observamos que no existe un (b,a) €R por la condición de la relación ya que b no puede
ser menor que a.
-Anti simétrica:
Si, porque sabemos que existe un par (a,b) €R pero no encontramos un par (b,a) €R y por
lo tanto por la tabla de verdad del entonces hace verdadera la anti simetría.
-Transitiva:
Si, porque cuando encontramos el par (a,b) €R y no encontramos un par (b,c) €R decimos
que por tabla de verdad del entonces hace verdadera la transitividad.
-Conclusión:
Por lo tanto en este caso no es una relación de equivalencia ya que no cumple con las tres
propiedades reflexividad, simétrica y transitividad.
De la misma manera no cumple con ser un conjunto parcialmente ordenado al no cumplir
con las tres propiedades reflexividad, anti simetría y transitividad.

Sea la relación dada por el conjunto L, en donde la relación será por L=L. Verificar si es una
relación de equivalencia o un conjunto parcialmente ordenado.
-Reflexiva:
Si, porque dada la relación sabemos que siempre existirá el par (a,a) €R y por lo tanto
cumple con la reflexividad.
-Simétrica:
Si, porque cuando encontramos el par (a,b) €R sabemos que dada la relación siempre
encontraremos el par (b,a) €R.

-Asimétrica
No, porque en el par (a,b) €R sabemos que si existe un (b,a) €R por lo tanto no cumple con
la asimetría
-Anti simétrica
Si, porque al encontrar el par (a,b)^(b,a) €R sabemos que por la relación cumple entonces
que a=b haciendo la verdadera la anti simetría
-Transitiva:
Si, porque al no encontrar un par (a,b)^(b,c) €R sabemos que por tabla de verdad del
entonces hace verdadera la transitividad.
-

Conclusión:
En este caso si cumple con ser una relación de equivalencia al cumplir con las tres
propiedades reflexividad, simétrica y transitividad.
También cumple con ser un conjunto parcialmente ordenado al cumplir con las tres
propiedades que son reflexiva, anti simetría y transitividad.

Mais conteúdo relacionado

Último

Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx241521559
 
Desarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdfDesarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdfJulian Lamprea
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)GDGSucre
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveFagnerLisboa3
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricKeyla Dolores Méndez
 
Presentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptxPresentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptxLolaBunny11
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITMaricarmen Sánchez Ruiz
 
Trabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíaTrabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíassuserf18419
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan JosephBRAYANJOSEPHPEREZGOM
 
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...silviayucra2
 

Último (10)

Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx
 
Desarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdfDesarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdf
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial Uninove
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
 
Presentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptxPresentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptx
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNIT
 
Trabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíaTrabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnología
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Joseph
 
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
 

Destaque

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Destaque (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Proyecto 2 jesús osorio vázquez nl33

  • 1. Jesús Osorio Vázquez NL33 Proyecto 1 Descripción. Este programa sirve para una taquería en la cual el empleado entrara con una contraseña asignada se le dará la bienvenida con la fecha y lo hora en la que se ingrese. Después saldrá un listado en donde vienen las mesas disponibles y otro listado en el cual parecen el menú de comida y bebidas los cuales al seleccionar aparecerá un cuadro en el cual se anotara lo solicitado por el cliente, después se ira acumulando para así al final dar una cantidad de las ganancias del día. Cuando el empleado salga le dará un mensaje de despedida y la hora en la que salió. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim pas As String pas = InputBox("Ingresa el pasword") If pas = " " Then MessageBox.Show("Debes de introducir la contraseña corecta") End If If pas = "tacos" Then MessageBox.Show("contraseña corecta") mesa.Show() Me.Hide() ElseIf MsgBox("La contraseña es invalidad " & pas, MsgBoxStyle.Critical, "contarseña invalida") Then End If End Sub Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click End Sub End Class Public Class mesa
  • 2. Private Sub AGREGAR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AGREGAR.Click Dim x As Double Dim y As Double Dim d As Double Dim a As Double Dim f As Double Dim k As Double Dim l As Double Dim cuentat As Double Dim cuentaf As Double If MESAS.Text = 1 Then If TG.Checked = True Then x = (Val(TextBox1.Text) * 15) End If If TCH.Checked = True Then y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20) End If If CCH.Checked = True Then l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M1.Text = cuentat End If If MESAS.Text = 2 Then If MESAS.Text = 2 Then M2.ForeColor = Color.Red Label2.ForeColor = Color.Red Label15.ForeColor = Color.Red Label33.ForeColor = Color.Red End If If TG.Checked = True Then
  • 3. x = (Val(TextBox1.Text) * 20) End If If TCH.Checked = True Then y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20) End If If CCH.Checked = True Then l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M2.Text = cuentat End If If MESAS.Text = 3 Then If TG.Checked = True Then x = (Val(TextBox1.Text) * 20) End If If TCH.Checked = True Then y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20) End If If CCH.Checked = True Then
  • 4. l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M3.Text = cuentat End If If MESAS.Text = 4 Then If MESAS.Text = 4 Then M4.ForeColor = Color.Red Label4.ForeColor = Color.Red Label17.ForeColor = Color.Red Label26.ForeColor = Color.Red End If If TG.Checked = True Then x = (Val(TextBox1.Text) * 20) End If If TCH.Checked = True Then y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20) End If If CCH.Checked = True Then l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M4.Text = cuentat End If If MESAS.Text = 5 Then If TG.Checked = True Then x = (Val(TextBox1.Text) * 20) End If If TCH.Checked = True Then
  • 5. y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20) End If If CCH.Checked = True Then l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M5.Text = cuentat End If If MESAS.Text = 6 Then If MESAS.Text = True Then Label6.ForeColor = Color.Red M6.ForeColor = Color.Red Label19.ForeColor = Color.Red Label28.ForeColor = Color.Red End If If TG.Checked = True Then x = (Val(TextBox1.Text) * 20) End If If TCH.Checked = True Then y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20)
  • 6. End If If CCH.Checked = True Then l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M6.Text = cuentat End If If MESAS.Text = 7 Then If TG.Checked = True Then x = (Val(TextBox1.Text) * 20) End If If TCH.Checked = True Then y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20) End If If CCH.Checked = True Then l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M7.Text = cuentat End If If MESAS.Text = 8 Then If MESAS.Text = 8 Then M8.ForeColor = Color.Red Label8.ForeColor = Color.Red Label21.ForeColor = Color.Red Label30.ForeColor = Color.Red End If If TG.Checked = True Then
  • 7. x = (Val(TextBox1.Text) * 20) End If If TCH.Checked = True Then y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20) End If If CCH.Checked = True Then l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M8.Text = cuentat End If If MESAS.Text = 9 Then If TG.Checked = True Then x = (Val(TextBox1.Text) * 20) End If If TCH.Checked = True Then y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20) End If
  • 8. If CCH.Checked = True Then l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M9.Text = cuentat End If If MESAS.Text = 10 Then If MESAS.Text = 10 Then M10.ForeColor = Color.Red Label10.ForeColor = Color.Red Label23.ForeColor = Color.Red Label32.ForeColor = Color.Red End If If TG.Checked = True Then x = (Val(TextBox1.Text) * 20) End If If TCH.Checked = True Then y = (Val(TextBox2.Text) * 10) End If If REF.Checked = True Then d = (Val(TextBox3.Text) * 10) End If If CER.Checked = True Then a = (Val(TextBox4.Text) * 30) End If If POS.Checked = True Then f = (Val(TextBox5.Text) * 20) End If If CG.Checked = True Then k = (Val(TextBox6.Text) * 20) End If If CCH.Checked = True Then l = (Val(TextBox7.Text) * 13) End If cuentat = x + y + d + a + f + l + k M10.Text = cuentat End If cuentaf = Val(M1.Text) + Val(M2.Text) + Val(M3.Text) + Val(M4.Text) + Val(M5.Text) + Val(M6.Text) + Val(M7.Text) + Val(M8.Text) + Val(M9.Text) + Val(M10.Text) final.Text = "$ " & cuentaf.ToString & " TextBox1.Text = "" pesos"
  • 9. TextBox2.Text TextBox3.Text TextBox4.Text TextBox5.Text TextBox6.Text TextBox7.Text = = = = = = "" "" "" "" "" "" TG.Checked = False TCH.Checked = False REF.Checked = False CER.Checked = False POS.Checked = False CG.Checked = False CCH.Checked = False TextBox1.Enabled TextBox2.Enabled TextBox3.Enabled TextBox4.Enabled TextBox5.Enabled TextBox6.Enabled TextBox7.Enabled = = = = = = = PictureBox1.Visible PictureBox2.Visible PictureBox3.Visible PictureBox4.Visible PictureBox5.Visible False False False False False False False = = = = = False False False False False End Sub Private Sub TG_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TG.CheckedChanged If TG.Checked = True Then TextBox1.Enabled = True PictureBox1.Visible = True Else PictureBox1.Visible = False End If End Sub Private Sub TCH_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TCH.CheckedChanged If TCH.Checked = True Then TextBox2.Enabled = True PictureBox1.Visible = True Else PictureBox1.Visible = False End If End Sub Private Sub REF_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles REF.CheckedChanged If REF.Checked = True Then TextBox3.Enabled = True PictureBox5.Visible = True
  • 10. Else PictureBox5.Visible = False End If End Sub Private Sub CER_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CER.CheckedChanged If CER.Checked = True Then TextBox4.Enabled = True PictureBox4.Visible = True Else PictureBox4.Visible = False End If End Sub Private Sub POS_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles POS.CheckedChanged If POS.Checked = True Then TextBox5.Enabled = True PictureBox3.Visible = True Else PictureBox3.Visible = False End If End Sub Private Sub CG_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CG.CheckedChanged If CG.Checked = True Then TextBox6.Enabled = True PictureBox2.Visible = True Else PictureBox2.Visible = False End If End Sub Private Sub CCH_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CCH.CheckedChanged If CCH.Checked = True Then TextBox7.Enabled = True PictureBox2.Visible = True Else PictureBox2.Visible = False End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox("Hola Bienvenido " & TextBox8.Text & " " & DateAndTime.Now) Button2.Visible = True nota.Visible = True menuu.Visible = True Label1.Visible = True Label2.Visible = True Label3.Visible = True Label4.Visible = True Label5.Visible = True
  • 11. Label6.Visible = True Label7.Visible = True Label8.Visible = True Label9.Visible = True Label10.Visible = True M1.Visible = True M2.Visible = True M3.Visible = True M4.Visible = True M5.Visible = True M6.Visible = True M7.Visible = True M8.Visible = True M9.Visible = True M10.Visible = True Label11.Visible = True final.Visible = True Label14.Visible = True Label15.Visible = True Label16.Visible = True Label17.Visible = True Label18.Visible = True Label19.Visible = True Label20.Visible = True Label21.Visible = True Label22.Visible = True Label23.Visible = True Label24.Visible = True Label25.Visible = True Label26.Visible = True Label27.Visible = True Label28.Visible = True Label29.Visible = True Label30.Visible = True Label31.Visible = True Label32.Visible = True Label33.Visible = True End Sub Private Sub Label13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label13.Click Label13.Text = (" Hasta Pronto, " & TextBox8.Text & " Buen dia ") Label13.Font = New Font(Label13.Font, FontStyle.Italic Or FontStyle.Bold Or FontStyle.Underline) Label13.ForeColor = Color.Blue Button2.Visible = False nota.Visible = False menuu.Visible = False
  • 12. Label1.Visible = False Label2.Visible = False Label3.Visible = False Label4.Visible = False Label5.Visible = False Label6.Visible = False Label7.Visible = False Label8.Visible = False Label9.Visible = False Label10.Visible = False M1.Visible = False M2.Visible = False M3.Visible = False M4.Visible = False M5.Visible = False M6.Visible = False M7.Visible = False M8.Visible = False M9.Visible = False M10.Visible = False Label11.Visible = False final.Visible = False Label14.Visible = False Label15.Visible = False Label16.Visible = False Label17.Visible = False Label18.Visible = False Label19.Visible = False Label20.Visible = False Label21.Visible = False Label22.Visible = False Label23.Visible = False Label24.Visible = False Label25.Visible = False Label26.Visible = False Label27.Visible = False Label28.Visible = False Label29.Visible = False Label30.Visible = False Label31.Visible = False Label32.Visible = False Label33.Visible = False End Sub Private Sub mesa_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click MESAS.Text = "" TextBox1.Text = "" TextBox2.Text = ""
  • 13. TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox7.Text = "" M1.Text = "0" M2.Text = "0" M3.Text = "0" M4.Text = "0" M5.Text = "0" M6.Text = "0" M7.Text = "0" M8.Text = "0" M9.Text = "0" M10.Text = "0" final.Text = "$" & " 0 " & "pesos" M2.ForeColor = Color.Black Label2.ForeColor = Color.Black Label15.ForeColor = Color.Black Label33.ForeColor = Color.Black M4.ForeColor = Color.Black Label4.ForeColor = Color.Black Label17.ForeColor = Color.Black Label26.ForeColor = Color.Black Label6.ForeColor = Color.Black M6.ForeColor = Color.Black Label19.ForeColor = Color.Black Label28.ForeColor = Color.Black M8.ForeColor = Color.Black Label8.ForeColor = Color.Black Label21.ForeColor = Color.Black Label30.ForeColor = Color.Black M10.ForeColor = Color.Red Label10.ForeColor = Color.Black Label23.ForeColor = Color.Black Label32.ForeColor = Color.Black End Sub End Class
  • 14. Conjuntos. - Conjunto mesas denotado por M = <1, 2, 3 ,4 ,5 ,6 ,7 ,8, 9, >. - Conjunto precios denotado por P = <15, 10, 30, 20, 20, 13>. - Conjunto menú denotado por L = <taco grande, taco chico, cemita grande, cemita chica, refresco, cerveza, postre>. Proyecto 2 Relación Sea un relación dada por los conjuntos M y P, en donde M ≤ P. verificar si es una relación de equivalencia o un conjunto parcialmente ordenado. -Reflexiva: No, porque no existe un par (a,a) €R por lo tanto no existe la reflexividad. -Simétrica: Damos por cierto que existe un (a,b) €R, y ahora debemos encontrar un (b,a) €R, y observamos que no existe un (b,a) €R por la condición de la relación ya que b no puede ser menor que a. -Anti simétrica: Si, porque sabemos que existe un par (a,b) €R pero no encontramos un par (b,a) €R y por lo tanto por la tabla de verdad del entonces hace verdadera la anti simetría. -Transitiva: Si, porque cuando encontramos el par (a,b) €R y no encontramos un par (b,c) €R decimos que por tabla de verdad del entonces hace verdadera la transitividad. -Conclusión: Por lo tanto en este caso no es una relación de equivalencia ya que no cumple con las tres propiedades reflexividad, simétrica y transitividad. De la misma manera no cumple con ser un conjunto parcialmente ordenado al no cumplir con las tres propiedades reflexividad, anti simetría y transitividad. Sea la relación dada por el conjunto L, en donde la relación será por L=L. Verificar si es una relación de equivalencia o un conjunto parcialmente ordenado. -Reflexiva: Si, porque dada la relación sabemos que siempre existirá el par (a,a) €R y por lo tanto cumple con la reflexividad.
  • 15. -Simétrica: Si, porque cuando encontramos el par (a,b) €R sabemos que dada la relación siempre encontraremos el par (b,a) €R. -Asimétrica No, porque en el par (a,b) €R sabemos que si existe un (b,a) €R por lo tanto no cumple con la asimetría -Anti simétrica Si, porque al encontrar el par (a,b)^(b,a) €R sabemos que por la relación cumple entonces que a=b haciendo la verdadera la anti simetría -Transitiva: Si, porque al no encontrar un par (a,b)^(b,c) €R sabemos que por tabla de verdad del entonces hace verdadera la transitividad. - Conclusión: En este caso si cumple con ser una relación de equivalencia al cumplir con las tres propiedades reflexividad, simétrica y transitividad. También cumple con ser un conjunto parcialmente ordenado al cumplir con las tres propiedades que son reflexiva, anti simetría y transitividad.