This file contains hidden or 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
package Problema3; | |
import java.util.Arrays; | |
/* | |
- Saldaña Espinoza Hector | |
- Desarrollo web integral | |
- 9B | |
- Problema 3: Dada una matriz de cadenas con nombres de archivos verificar que éstos no se repitan. | |
En caso de que existir nombres duplicados se deberán renombrar agregando (x) al final, |
This file contains hidden or 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
package Problema2; | |
/* | |
- Saldaña Espinoza Hector | |
- Desarrollo web integral | |
- 9B | |
- Problema 2: La panificadora “Malvisco” solicita diariamente cajas de cartón a una empresa para empacar los paquetes de galletas de chocolate que produce. | |
Sin embargo, no siempre solicita correctamente el número de cajas porque sobran o faltan carto Considerando que en una caja caben 6 paquetes | |
de galletas, desarrolla u programa en Java que permita conocer la cantidad de cajas necesarias par embalar “x” cifra de paquetes | |
y si es el caso mostrar los sobrantes, es decir, aquellos que no pudieron ser empaquetados. El número de cajas debe ser un entero. |
This file contains hidden or 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
package Problema1; | |
/* | |
- Saldaña Espinoza Hector | |
- Desarrollo web integral | |
- 9B | |
- Problema 1: Desarrolla un programa en Java que dada una cadena de caracteres determine la suma total de productos comprados en la papelería. | |
*/ | |
import java.util.Arrays; |
This file contains hidden or 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
""" | |
? Saldaña Espinoza Hector | |
* Seguridad informática | |
! 7B | |
""" | |
import socket | |
def main(): | |
# * Se mantiene activo el servidor |
This file contains hidden or 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
""" | |
? Saldaña Espinoza Hector | |
* Seguridad informática | |
! 7B | |
""" | |
import socket | |
import Cryptography | |
import sys |
This file contains hidden or 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
""" | |
? Saldaña Espinoza Hector | |
* Seguridad informática | |
! 7B | |
""" | |
import Cryptography | |
import sys | |
crypto = Cryptography.Cryptography() |
This file contains hidden or 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
""" | |
? Saldaña Espinoza Hector | |
* Seguridad informática | |
! 7B | |
""" | |
from sys import stdout | |
from alphabet import LETTERS | |
This file contains hidden or 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
""" | |
? Saldaña Espinoza Hector | |
* Seguridad informática | |
! 7B | |
""" | |
# * Estos son mis caracteres de sustitución | |
LETTERS = { | |
'a': 'Q', 'b': 'W', 'c': 'E', 'd': 'R', 'e': 'T', 'f': 'Y', 'g': 'U', 'h': 'I', 'i': 'O', 'j': 'P', | |
'k': 'A', 'l': 'S', 'm': 'D', 'n': 'F', 'ñ': 'G', 'o': 'H', 'p': 'J', 'q': 'K', 'r': 'L', 's': '<', |
This file contains hidden or 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
""" | |
? Saldaña Espinoza Hector | |
* Seguridad informática | |
! 7B | |
""" | |
fileName = input('¿Nombre del archivo? ó (q/Q/salir/exit) Para salir: ') | |
fileName = fileName.lower() | |
if (fileName == 'q' or fileName == 'salir' or fileName == 'exit'): | |
print('Programa finalizado correctamente :)') | |
else: |