Está en la página 1de 5

UNIVERSIDAD NACIONAL

DE SAN AGUSTN

ESCUELA PROFESIONAL DE
INGENIERA INDUSTRIAL

PROGRAMACION Y METODOS NUMERICOS

GRUPO: GENIOMTICOS
INTEGRANTES:
- PAREDES CCORAHUA, RODRIGO
-TINTAYA CHUCTAYA, ELIZABETH
-HUARACHI PALOMINO, ELSY
-CHAMBI OCSA, WILLIAM
AREQUIPA PER
2016
CANCHA DE TENIS

Elabore una cancha de tenis, donde la cancha cambie de color al momento de hacer enter en la
ventana de compilacion.
Module Module1

Sub Main()
Dim col, fil, colr As Integer

Console.ForegroundColor = ConsoleColor.Blue
Console.SetCursorPosition(33, 2)
Console.Write("CANCHA DE TENIS")

For col = 10 To 70
Console.ForegroundColor = ConsoleColor.White
Console.BackgroundColor = ConsoleColor.White
Console.SetCursorPosition(col, 5)
Console.Write("-")
Console.SetCursorPosition(col, 21)
Console.Write("-")
Next

For fil = 5 To 20
Console.ForegroundColor = ConsoleColor.White
Console.BackgroundColor = ConsoleColor.White
Console.SetCursorPosition(10, fil)
Console.Write("-")
Console.SetCursorPosition(70, fil)
Console.Write("-")
Next

For fil = 5 To 20
Console.ForegroundColor = ConsoleColor.White
Console.BackgroundColor = ConsoleColor.White
Console.SetCursorPosition(28, fil)
Console.Write(" ")
Console.SetCursorPosition(53, fil)
Console.Write(" ")
Next

For col = 28 To 53
Console.ForegroundColor = ConsoleColor.White
Console.BackgroundColor = ConsoleColor.White
Console.SetCursorPosition(col, 13)
Console.Write(" ")
Next

For fil = 5 To 21
Console.ForegroundColor = ConsoleColor.White
Console.BackgroundColor = ConsoleColor.DarkBlue
Console.SetCursorPosition(40, fil)
Console.Write(" ")
Console.SetCursorPosition(41, fil)
Console.Write(" ")
Next
Console.ReadLine()
For colr = 2 To 12
Console.BackgroundColor = colr
Console.ForegroundColor = colr
For col = 11 To 27
For fil = 6 To 20
Console.SetCursorPosition(col, fil)
Console.Write("v")
Next
Next
For col = 29 To 39
For fil = 6 To 12
Console.SetCursorPosition(col, fil)
Console.Write("v")
Console.SetCursorPosition(col, fil)
Console.Write("v")
Next
For fil = 14 To 20
Console.SetCursorPosition(col, fil)
Console.Write("v")
Next
Next
For col = 42 To 52
For fil = 6 To 12
Console.SetCursorPosition(col, fil)
Console.Write("v")
Next
For fil = 14 To 20
Console.SetCursorPosition(col, fil)
Console.Write("v")

Next

Next
For col = 54 To 69
For fil = 6 To 20
Console.SetCursorPosition(col, fil)
Console.Write("v")
Next
Next
Console.ReadLine()
Next
Console.ReadLine()
End Sub

End Module
Cancha de tennis

Paso N1 enter