You are on page 1of 5

Public Sub Main()

Dim lugar As New Byte[2, 6]

Dim nombre As New String[2, 6]

Dim numcliente1, numcliente2, nombre As String

Dim dia, asiento, x, y, a, b As Byte

Repeat

Print "Introduzca nombre"

Input nombre

Print "que dia desea volar (1,0)"

Input dia

If dia = 0 Then

nombre[dia, asiento] = n

Print "Inserte que asiento del uno al seis"

Input asiento

lugar[dia, asiento] = a

Repeat

If a = 0 Then

b=1

Else

Print "Asiento ocupado, elija otro"

Endif

Until b = 1

Else If dia = 1 Then

nombre[dia, asiento] = n

Inc numcliente2

Print "Inserte que asiento del uno al seis"

Input asiento
lugar[dia, asiento] = a

Repeat

If a = 0 Then

b=1

Else

Print "Asiento ocupado, elija otro"

Endif

Until b = 1

Print " Para continuar presione (1), para generar reporte presione (2)"

Input opc

Until opc = 2

For x = 0 To 5 Step +1

For y = 0 To 1 Step +1

Print lugares[vuelo, lugar]

Inc y

Next

Print

Inc x

Next

End
CODIGO EDUARDO GAMBAS AVION

Public Sub Main()

Dim a, b, x, y As Byte

Dim op, op2 As Byte

Dim asiento As New Byte[2, 6]

Dim nombre As New String[2, 6]

Repeat

Print "que desea hacer 1:ingresar nuevo usuario, 2:reporte, 3:salir"

Input op

If op = 1

Print "Seleccione dia Miercoles:0 Viernes:1"

Input x

If x = 0

Repeat

Print "Numero de Asiento1-6"

Input y

y=y-1

a = asiento[x, y]

If a = 0

asiento[x, y] = y + 1

Print "Inserte su nombre"

Input nombre[x, y]

op2 = 1

Else

Print "Error asiento ocupado"

End If

Until op2 = 1
End If

If x = 1

Repeat

Print "Numero de Asiento1-6"

Input b

b=b-1

a = asiento[x, b]

If a = 0

asiento[x, b] = b + 1

Print "Inserte su nombre"

Input nombre[x, b]

op2 = 1

Else

Print "Error asiento ocupado"

End If

Until op2 = 1

End If

End If

If op = 2

Y=0

Print "Avion 1"

For y = 0 To 5

Print "Asiento: "; asiento[0, y]; " Nombre: "; nombre[0, y]

Next

Y=0

Print "Avion 2"

For y = 0 To 5

Print "Asiento: "; asiento[1, y]; " Nombre: "; nombre[1, y]

Next
End If

Until op = 3

End

You might also like