This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def consultar_juegos_por_tiempo(self, tiempo_disponible): | |
juegos_disponibles = [] | |
for juego in self.juegos: | |
if juego.tiempo_por_partida <= tiempo_disponible and juego.existencia > 0: | |
juegos_disponibles.append(juego) | |
juegos_disponibles.append(juego) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
4. Escribir un programa para una empresa que tiene salas de juegos para todas las edades y quiere calcular de forma automática el | |
precio que debe cobrar a sus clientes por entrar. El programa debe preguntar al usuario la edad del cliente y mostrar el precio de | |
la entrada. Si el cliente es menor de 4 años puede entrar gratis, si tiene entre 4 y 18 años debe pagar 5.000 COP y si es mayor de | |
18 años, 10000 COP. | |
""" | |
age=int(input("ingrese su edad: ")) | |
if age<4 and age>0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>tabla exel</title> | |
</head> | |
<body> | |
<table border="1" > | |
<thead> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
h1 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
En Colombia, existen varias organizaciones que trabajan para ayudar a las personas en situación de pobreza y vulnerabilidad. Algunas de ellas incluyen: | |
1. **TECHO**: Trabaja en la construcción de viviendas de emergencia y en la promoción de la participación comunitaria en asentamientos precarios. | |
2. **Banco de Alimentos de Colombia**: Se dedica a recolectar y distribuir alimentos a personas en situación de pobreza y hambre. | |
3. **Fundación Social**: Esta entidad busca mejorar las condiciones de vida de las familias más necesitadas a través de proyectos de educación, salud y desarrollo comunitario. | |
4. **Fundación Juan Felipe Gómez Escobar**: Se enfoca en brindar apoyo a niños y jóvenes en situación de riesgo, ofreciendo programas de educación y formación. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//inciar archivo git// | |
git init | |
git add . | |
git commit -m "nombre del archivo" | |
mkdir crear carpetas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Algoritmo Articulos | |
// 15% si compra mas de 1000 unidades | |
// 10% si se compra entre 500 y 900 unidades | |
//-5% si se compran entre 200 y 499 unidades | |
//calcular el coste final de un pedido dado el precio de | |
//articulo y las unidades de compra | |
Definir nombreProducto Como Caracter; | |
Definir unidades, precioArticulo, precioFinal,precioArticuloFinal Como Real; | |
unidades = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Algoritmo GymFee | |
Definir time,feeByTime,totalPay Como Real; | |
Definir frame Como Caracter; | |
time=0; | |
frame=''; | |
Escribir "Welcome to gym" | |
Escribir "How many hours will he be at the gym"; | |
Leer time; | |
Escribir "Enter the time you will be there, remember is it morning or afternoon?"; | |
Leer frame; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Algoritmo NumerosEnteros | |
Definir numEntero Como Entero; | |
numEntero=0; | |
Mientras numEntero <= 100 Hacer | |
Escribir numEntero; | |
numEntero = numEntero+1; | |
Fin Mientras | |
FinAlgoritmo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Algoritmo CalcularCuantosNumHay | |
Definir num,digito Como Entero | |
num=0; | |
digito=0; | |
Escribir "ingresa un numero"; | |
Leer num; | |
Si num=0 Entonces | |
digito=1; | |
SiNo | |
Mientras num<>0 Hacer |
OlderNewer