From b78472ebaf2690fd366ea045591810cd3e2c5d06 Mon Sep 17 00:00:00 2001 From: JEsposito95 Date: Wed, 20 Sep 2023 20:36:28 -0300 Subject: [PATCH 1/5] primeros archivos de phyton --- Python/Rangos/rangos.py | 14 ++++++++++++++ Python/Tuplas/tuplas.py | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 Python/Rangos/rangos.py create mode 100644 Python/Tuplas/tuplas.py diff --git a/Python/Rangos/rangos.py b/Python/Rangos/rangos.py new file mode 100644 index 00000000..3d4046b3 --- /dev/null +++ b/Python/Rangos/rangos.py @@ -0,0 +1,14 @@ +# ejercicio 1 +for i in range(0,10): + if i%3==0: + print(i) + + +# ejercicio 2 +for i in range(2,6): + print(i) + +# ejercicio 3 +for i in range(3,10,2): + print (i) + diff --git a/Python/Tuplas/tuplas.py b/Python/Tuplas/tuplas.py new file mode 100644 index 00000000..674eb072 --- /dev/null +++ b/Python/Tuplas/tuplas.py @@ -0,0 +1,9 @@ +tupla= (13,1,8,3,2,5,8) + +lista=[] + +for i in tupla: + if i < 5: + lista.append(i) + +print(lista) \ No newline at end of file From fc16e1f5b0bf1e0d9274396796283090c8908744 Mon Sep 17 00:00:00 2001 From: JEsposito95 Date: Thu, 26 Oct 2023 19:59:37 -0300 Subject: [PATCH 2/5] subiendo ejercicios a mi rama --- JAVA/Clase1/CicloWhile/build.xml | 73 + .../CicloWhile/build/built-jar.properties | 4 + .../classes/CicloWhile/EjercicioWhile01.class | Bin 0 -> 1357 bytes JAVA/Clase1/CicloWhile/manifest.mf | 3 + .../CicloWhile/nbproject/build-impl.xml | 1770 +++++++++++++++++ .../CicloWhile/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../CicloWhile/nbproject/private/private.xml | 9 + .../CicloWhile/nbproject/project.properties | 95 + JAVA/Clase1/CicloWhile/nbproject/project.xml | 15 + .../src/CicloWhile/EjercicioWhile01.java | 39 + JAVA/Clase2/EjercicioCiclos01/build.xml | 73 + JAVA/Clase2/EjercicioCiclos01/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 95 + .../EjercicioCiclos01/nbproject/project.xml | 15 + .../src/Ciclos01/Ciclos01.java | 14 + .../src/Ciclos01/Interger.java | 14 + JAVA/Clase2/EjerciciosCiclos02/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/Ciclos02/Ciclos02.class | Bin 0 -> 1356 bytes .../build/classes/Ciclos02/Ejercicio02.class | Bin 0 -> 1555 bytes JAVA/Clase2/EjerciciosCiclos02/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 95 + .../EjerciciosCiclos02/nbproject/project.xml | 15 + .../src/Ciclos02/Ciclos02.java | 26 + .../src/Ciclos02/Ejercicio02.java | 29 + JAVA/Clase3/EjercicioCiclos03/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/Ciclos03/Ciclos03.class | Bin 0 -> 1572 bytes .../build/classes/Ciclos03/Ejercicio03.class | Bin 0 -> 1393 bytes JAVA/Clase3/EjercicioCiclos03/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 95 + .../EjercicioCiclos03/nbproject/project.xml | 15 + .../src/Ciclos03/Ciclos03.java | 30 + .../src/Ciclos03/Ejercicio03.java | 29 + JAVA/Clase3/EjercicioCiclos04/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/Ciclos04/Ciclos04.class | Bin 0 -> 1537 bytes .../build/classes/Ciclos04/Ejercicio04.class | Bin 0 -> 1365 bytes JAVA/Clase3/EjercicioCiclos04/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 95 + .../EjercicioCiclos04/nbproject/project.xml | 15 + .../src/Ciclos04/Ciclos04.java | 26 + .../src/Ciclos04/Ejercicio04.java | 29 + JAVA/Clase3/EjercicioCiclos05/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/Ciclos05/Ciclos05.class | Bin 0 -> 1686 bytes .../build/classes/Ciclos05/Ejercicio05.class | Bin 0 -> 1639 bytes JAVA/Clase3/EjercicioCiclos05/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 95 + .../EjercicioCiclos05/nbproject/project.xml | 15 + .../src/Ciclos05/Ciclos05.java | 33 + .../src/Ciclos05/Ejercicio05.java | 32 + JAVA/Clase3/leccionClasesObjetos/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/Clases/Persona.class | Bin 0 -> 1069 bytes .../build/classes/Clases/PruebaPersona.class | Bin 0 -> 1364 bytes .../pasoporreferencia/PasoPorReferencia.class | Bin 0 -> 1758 bytes JAVA/Clase3/leccionClasesObjetos/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 95 + .../nbproject/project.xml | 15 + .../src/Clases/Persona.java | 15 + .../src/Clases/PruebaPersona.java | 20 + .../pasoporreferencia/PasoPorReferencia.java | 35 + JAVA/Clase4/Aritmetica/build.xml | 73 + .../Aritmetica/build/built-jar.properties | 4 + .../classes/Operaciones/Aritmetica.class | Bin 0 -> 1480 bytes .../build/classes/Operaciones/Imprimir.class | Bin 0 -> 1174 bytes .../build/classes/Operaciones/Persona.class | Bin 0 -> 1159 bytes .../Operaciones/PruebaAritmetica.class | Bin 0 -> 2214 bytes JAVA/Clase4/Aritmetica/manifest.mf | 3 + .../Aritmetica/nbproject/build-impl.xml | 1770 +++++++++++++++++ .../Aritmetica/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Aritmetica/nbproject/private/private.xml | 7 + .../Aritmetica/nbproject/project.properties | 95 + JAVA/Clase4/Aritmetica/nbproject/project.xml | 15 + .../src/Operaciones/Aritmetica.java | 48 + .../src/Operaciones/PruebaAritmetica.java | 70 + JAVA/Clase4/EjercicioCiclo06/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/Ciclos06/Ciclos06.class | Bin 0 -> 1415 bytes .../build/classes/Ciclos06/Ejercicio06.class | Bin 0 -> 1248 bytes JAVA/Clase4/EjercicioCiclo06/manifest.mf | 3 + .../EjercicioCiclo06/nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 95 + .../EjercicioCiclo06/nbproject/project.xml | 15 + .../src/Ciclos06/Ciclos06.java | 20 + .../src/Ciclos06/Ejercicio06.java | 17 + JAVA/Clase4/EjerciciosCiclos07/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/Ciclois7/Ciclos07.class | Bin 0 -> 1598 bytes .../build/classes/Ciclois7/Ejercicio07.class | Bin 0 -> 1414 bytes JAVA/Clase4/EjerciciosCiclos07/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 95 + .../EjerciciosCiclos07/nbproject/project.xml | 15 + .../src/Ciclois7/Ciclos07.java | 32 + .../src/Ciclois7/Ejercicio07.java | 29 + JAVA/Clase5/EjercicioCiclos08/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/Ciclos08/Ciclos08.class | Bin 0 -> 952 bytes .../build/classes/Ciclos08/Ejercicio08.class | Bin 0 -> 818 bytes JAVA/Clase5/EjercicioCiclos08/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 95 + .../EjercicioCiclos08/nbproject/project.xml | 15 + .../src/Ciclos08/Ciclos08.java | 20 + .../src/Ciclos08/Ejercicio08.java | 19 + JAVA/Clase5/EjercicioCiclos09/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/Ciclos09/Ciclos09.class | Bin 0 -> 1705 bytes .../build/classes/Ciclos09/Ejercicio09.class | Bin 0 -> 1494 bytes JAVA/Clase5/EjercicioCiclos09/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 95 + .../EjercicioCiclos09/nbproject/project.xml | 15 + .../src/Ciclos09/Ciclos09.java | 38 + .../src/Ciclos09/Ejercicio09.java | 35 + JAVA/Clase6/EjercicioCiclos10/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/ciclos10/Ciclos10.class | Bin 0 -> 1446 bytes .../build/classes/ciclos10/Ejercicio10.class | Bin 0 -> 1414 bytes JAVA/Clase6/EjercicioCiclos10/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 95 + .../EjercicioCiclos10/nbproject/project.xml | 15 + .../src/ciclos10/Ciclos10.java | 21 + .../src/ciclos10/Ejercicio10.java | 23 + JAVA/Clase6/HolaMundo/build.xml | 73 + .../HolaMundo/build/built-jar.properties | 4 + .../HolaMundo/build/classes/HolaMundo.class | Bin 0 -> 540 bytes .../classes/PasoPorValor/PasoPorValor.class | Bin 0 -> 1165 bytes JAVA/Clase6/HolaMundo/manifest.mf | 3 + .../Clase6/HolaMundo/nbproject/build-impl.xml | 1770 +++++++++++++++++ .../HolaMundo/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../HolaMundo/nbproject/private/private.xml | 7 + .../HolaMundo/nbproject/project.properties | 95 + JAVA/Clase6/HolaMundo/nbproject/project.xml | 15 + JAVA/Clase6/HolaMundo/src/HolaMundo.java | 6 + .../src/PasoPorValor/PasoPorValor.java | 17 + JAVA/Clase6/ProyectoCaja/build.xml | 73 + .../ProyectoCaja/build/built-jar.properties | 4 + .../build/classes/caja/Caja.class | Bin 0 -> 561 bytes .../build/classes/caja/PruebaCaja.class | Bin 0 -> 1419 bytes JAVA/Clase6/ProyectoCaja/manifest.mf | 3 + .../ProyectoCaja/nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../ProyectoCaja/nbproject/project.properties | 95 + .../Clase6/ProyectoCaja/nbproject/project.xml | 15 + JAVA/Clase6/ProyectoCaja/src/caja/Caja.java | 24 + .../ProyectoCaja/src/caja/PruebaCaja.java | 31 + JAVA/Clase7/EjercicioCiclos11/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/ciclos11/Ciclos11.class | Bin 0 -> 1083 bytes JAVA/Clase7/EjercicioCiclos11/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 95 + .../EjercicioCiclos11/nbproject/project.xml | 15 + .../src/ciclos11/Ciclos11.java | 18 + JAVA/Clase7/EjercicioCiclos12/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/ciclos12/Ciclos12.class | Bin 0 -> 1278 bytes JAVA/Clase7/EjercicioCiclos12/manifest.mf | 3 + .../nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 95 + .../EjercicioCiclos12/nbproject/project.xml | 15 + .../src/ciclos12/Ciclos12.java | 24 + .../src/ciclos12/JOptionpane.java | 14 + JAVA/Clase7/Encapsulamiento/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/dominio/Persona.class | Bin 0 -> 1601 bytes .../build/classes/test/PersonaPrueba.class | Bin 0 -> 2144 bytes JAVA/Clase7/Encapsulamiento/manifest.mf | 3 + .../Encapsulamiento/nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 95 + .../Encapsulamiento/nbproject/project.xml | 15 + .../Encapsulamiento/src/dominio/Persona.java | 48 + .../src/test/PersonaPrueba.java | 37 + JAVA/Clase8/ContextoEstatico/build.xml | 73 + .../build/built-jar.properties | 4 + .../build/classes/domain/Persona.class | Bin 0 -> 1538 bytes .../build/classes/test/PersonaPrueba.class | Bin 0 -> 1573 bytes JAVA/Clase8/ContextoEstatico/manifest.mf | 3 + .../ContextoEstatico/nbproject/build-impl.xml | 1770 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 95 + .../ContextoEstatico/nbproject/project.xml | 15 + .../ContextoEstatico/src/domain/Persona.java | 52 + .../src/test/PersonaPrueba.java | 32 + JAVA/Clase8/herencia.uxf | 0 JAVASCRIPT/Leccion01/01-01-holamundo.js | 6 + JAVASCRIPT/Leccion01/HolaMundo.js | 4 + JAVASCRIPT/Leccion01/index.html | 12 + .../Leccion02/02-01-ConcatenacionDeCadenas.js | 33 + JAVASCRIPT/Leccion02/02-01-TiposDatos.js | 62 + JAVASCRIPT/Leccion02/index.html | 12 + .../Leccion03/03-01-OperadoresJavaScript.js | 28 + JAVASCRIPT/Leccion03/index.html | 11 + JAVASCRIPT/Leccion04/04-01-Ejercicios.js | 51 + JAVASCRIPT/Sintaxis Js y Java.txt.txt | 70 + Python/Leccion4/EjercicioRango.py | 26 + Python/Leccion4/EjercicioTuplasListas | 23 + Python/Leccion4/Tuplas.py | 14 + Python/Leccion4/main.py | 32 + Python/Leccion5/EjercicioClase5.py | 19 + Python/Leccion5/main.py | 322 +++ Python/Leeccion6/Ejercicio01.py | 13 + Python/Leeccion6/Ejercicio02.py | 16 + Python/Leeccion6/Ejercicio3.py | 16 + Python/Leeccion6/EjercicioColecciones01.py | 15 + Python/Leeccion6/EjercicioColecciones02.py | 26 + Python/Leeccion6/EjercicioColecciones03.py | 34 + 266 files changed, 39472 insertions(+) create mode 100644 JAVA/Clase1/CicloWhile/build.xml create mode 100644 JAVA/Clase1/CicloWhile/build/built-jar.properties create mode 100644 JAVA/Clase1/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class create mode 100644 JAVA/Clase1/CicloWhile/manifest.mf create mode 100644 JAVA/Clase1/CicloWhile/nbproject/build-impl.xml create mode 100644 JAVA/Clase1/CicloWhile/nbproject/genfiles.properties create mode 100644 JAVA/Clase1/CicloWhile/nbproject/private/private.properties create mode 100644 JAVA/Clase1/CicloWhile/nbproject/private/private.xml create mode 100644 JAVA/Clase1/CicloWhile/nbproject/project.properties create mode 100644 JAVA/Clase1/CicloWhile/nbproject/project.xml create mode 100644 JAVA/Clase1/CicloWhile/src/CicloWhile/EjercicioWhile01.java create mode 100644 JAVA/Clase2/EjercicioCiclos01/build.xml create mode 100644 JAVA/Clase2/EjercicioCiclos01/manifest.mf create mode 100644 JAVA/Clase2/EjercicioCiclos01/nbproject/build-impl.xml create mode 100644 JAVA/Clase2/EjercicioCiclos01/nbproject/genfiles.properties create mode 100644 JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.properties create mode 100644 JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.xml create mode 100644 JAVA/Clase2/EjercicioCiclos01/nbproject/project.properties create mode 100644 JAVA/Clase2/EjercicioCiclos01/nbproject/project.xml create mode 100644 JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Ciclos01.java create mode 100644 JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Interger.java create mode 100644 JAVA/Clase2/EjerciciosCiclos02/build.xml create mode 100644 JAVA/Clase2/EjerciciosCiclos02/build/built-jar.properties create mode 100644 JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ciclos02.class create mode 100644 JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ejercicio02.class create mode 100644 JAVA/Clase2/EjerciciosCiclos02/manifest.mf create mode 100644 JAVA/Clase2/EjerciciosCiclos02/nbproject/build-impl.xml create mode 100644 JAVA/Clase2/EjerciciosCiclos02/nbproject/genfiles.properties create mode 100644 JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.properties create mode 100644 JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.xml create mode 100644 JAVA/Clase2/EjerciciosCiclos02/nbproject/project.properties create mode 100644 JAVA/Clase2/EjerciciosCiclos02/nbproject/project.xml create mode 100644 JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ciclos02.java create mode 100644 JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ejercicio02.java create mode 100644 JAVA/Clase3/EjercicioCiclos03/build.xml create mode 100644 JAVA/Clase3/EjercicioCiclos03/build/built-jar.properties create mode 100644 JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ciclos03.class create mode 100644 JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ejercicio03.class create mode 100644 JAVA/Clase3/EjercicioCiclos03/manifest.mf create mode 100644 JAVA/Clase3/EjercicioCiclos03/nbproject/build-impl.xml create mode 100644 JAVA/Clase3/EjercicioCiclos03/nbproject/genfiles.properties create mode 100644 JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.properties create mode 100644 JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.xml create mode 100644 JAVA/Clase3/EjercicioCiclos03/nbproject/project.properties create mode 100644 JAVA/Clase3/EjercicioCiclos03/nbproject/project.xml create mode 100644 JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ciclos03.java create mode 100644 JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ejercicio03.java create mode 100644 JAVA/Clase3/EjercicioCiclos04/build.xml create mode 100644 JAVA/Clase3/EjercicioCiclos04/build/built-jar.properties create mode 100644 JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ciclos04.class create mode 100644 JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ejercicio04.class create mode 100644 JAVA/Clase3/EjercicioCiclos04/manifest.mf create mode 100644 JAVA/Clase3/EjercicioCiclos04/nbproject/build-impl.xml create mode 100644 JAVA/Clase3/EjercicioCiclos04/nbproject/genfiles.properties create mode 100644 JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.properties create mode 100644 JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.xml create mode 100644 JAVA/Clase3/EjercicioCiclos04/nbproject/project.properties create mode 100644 JAVA/Clase3/EjercicioCiclos04/nbproject/project.xml create mode 100644 JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ciclos04.java create mode 100644 JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java create mode 100644 JAVA/Clase3/EjercicioCiclos05/build.xml create mode 100644 JAVA/Clase3/EjercicioCiclos05/build/built-jar.properties create mode 100644 JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ciclos05.class create mode 100644 JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ejercicio05.class create mode 100644 JAVA/Clase3/EjercicioCiclos05/manifest.mf create mode 100644 JAVA/Clase3/EjercicioCiclos05/nbproject/build-impl.xml create mode 100644 JAVA/Clase3/EjercicioCiclos05/nbproject/genfiles.properties create mode 100644 JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.properties create mode 100644 JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.xml create mode 100644 JAVA/Clase3/EjercicioCiclos05/nbproject/project.properties create mode 100644 JAVA/Clase3/EjercicioCiclos05/nbproject/project.xml create mode 100644 JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ciclos05.java create mode 100644 JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java create mode 100644 JAVA/Clase3/leccionClasesObjetos/build.xml create mode 100644 JAVA/Clase3/leccionClasesObjetos/build/built-jar.properties create mode 100644 JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/Persona.class create mode 100644 JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/PruebaPersona.class create mode 100644 JAVA/Clase3/leccionClasesObjetos/build/classes/pasoporreferencia/PasoPorReferencia.class create mode 100644 JAVA/Clase3/leccionClasesObjetos/manifest.mf create mode 100644 JAVA/Clase3/leccionClasesObjetos/nbproject/build-impl.xml create mode 100644 JAVA/Clase3/leccionClasesObjetos/nbproject/genfiles.properties create mode 100644 JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.properties create mode 100644 JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.xml create mode 100644 JAVA/Clase3/leccionClasesObjetos/nbproject/project.properties create mode 100644 JAVA/Clase3/leccionClasesObjetos/nbproject/project.xml create mode 100644 JAVA/Clase3/leccionClasesObjetos/src/Clases/Persona.java create mode 100644 JAVA/Clase3/leccionClasesObjetos/src/Clases/PruebaPersona.java create mode 100644 JAVA/Clase3/leccionClasesObjetos/src/pasoporreferencia/PasoPorReferencia.java create mode 100644 JAVA/Clase4/Aritmetica/build.xml create mode 100644 JAVA/Clase4/Aritmetica/build/built-jar.properties create mode 100644 JAVA/Clase4/Aritmetica/build/classes/Operaciones/Aritmetica.class create mode 100644 JAVA/Clase4/Aritmetica/build/classes/Operaciones/Imprimir.class create mode 100644 JAVA/Clase4/Aritmetica/build/classes/Operaciones/Persona.class create mode 100644 JAVA/Clase4/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class create mode 100644 JAVA/Clase4/Aritmetica/manifest.mf create mode 100644 JAVA/Clase4/Aritmetica/nbproject/build-impl.xml create mode 100644 JAVA/Clase4/Aritmetica/nbproject/genfiles.properties create mode 100644 JAVA/Clase4/Aritmetica/nbproject/private/private.properties create mode 100644 JAVA/Clase4/Aritmetica/nbproject/private/private.xml create mode 100644 JAVA/Clase4/Aritmetica/nbproject/project.properties create mode 100644 JAVA/Clase4/Aritmetica/nbproject/project.xml create mode 100644 JAVA/Clase4/Aritmetica/src/Operaciones/Aritmetica.java create mode 100644 JAVA/Clase4/Aritmetica/src/Operaciones/PruebaAritmetica.java create mode 100644 JAVA/Clase4/EjercicioCiclo06/build.xml create mode 100644 JAVA/Clase4/EjercicioCiclo06/build/built-jar.properties create mode 100644 JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ciclos06.class create mode 100644 JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ejercicio06.class create mode 100644 JAVA/Clase4/EjercicioCiclo06/manifest.mf create mode 100644 JAVA/Clase4/EjercicioCiclo06/nbproject/build-impl.xml create mode 100644 JAVA/Clase4/EjercicioCiclo06/nbproject/genfiles.properties create mode 100644 JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.properties create mode 100644 JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.xml create mode 100644 JAVA/Clase4/EjercicioCiclo06/nbproject/project.properties create mode 100644 JAVA/Clase4/EjercicioCiclo06/nbproject/project.xml create mode 100644 JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ciclos06.java create mode 100644 JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ejercicio06.java create mode 100644 JAVA/Clase4/EjerciciosCiclos07/build.xml create mode 100644 JAVA/Clase4/EjerciciosCiclos07/build/built-jar.properties create mode 100644 JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ciclos07.class create mode 100644 JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ejercicio07.class create mode 100644 JAVA/Clase4/EjerciciosCiclos07/manifest.mf create mode 100644 JAVA/Clase4/EjerciciosCiclos07/nbproject/build-impl.xml create mode 100644 JAVA/Clase4/EjerciciosCiclos07/nbproject/genfiles.properties create mode 100644 JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.properties create mode 100644 JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.xml create mode 100644 JAVA/Clase4/EjerciciosCiclos07/nbproject/project.properties create mode 100644 JAVA/Clase4/EjerciciosCiclos07/nbproject/project.xml create mode 100644 JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ciclos07.java create mode 100644 JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ejercicio07.java create mode 100644 JAVA/Clase5/EjercicioCiclos08/build.xml create mode 100644 JAVA/Clase5/EjercicioCiclos08/build/built-jar.properties create mode 100644 JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ciclos08.class create mode 100644 JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ejercicio08.class create mode 100644 JAVA/Clase5/EjercicioCiclos08/manifest.mf create mode 100644 JAVA/Clase5/EjercicioCiclos08/nbproject/build-impl.xml create mode 100644 JAVA/Clase5/EjercicioCiclos08/nbproject/genfiles.properties create mode 100644 JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.properties create mode 100644 JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.xml create mode 100644 JAVA/Clase5/EjercicioCiclos08/nbproject/project.properties create mode 100644 JAVA/Clase5/EjercicioCiclos08/nbproject/project.xml create mode 100644 JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ciclos08.java create mode 100644 JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ejercicio08.java create mode 100644 JAVA/Clase5/EjercicioCiclos09/build.xml create mode 100644 JAVA/Clase5/EjercicioCiclos09/build/built-jar.properties create mode 100644 JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ciclos09.class create mode 100644 JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ejercicio09.class create mode 100644 JAVA/Clase5/EjercicioCiclos09/manifest.mf create mode 100644 JAVA/Clase5/EjercicioCiclos09/nbproject/build-impl.xml create mode 100644 JAVA/Clase5/EjercicioCiclos09/nbproject/genfiles.properties create mode 100644 JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.properties create mode 100644 JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.xml create mode 100644 JAVA/Clase5/EjercicioCiclos09/nbproject/project.properties create mode 100644 JAVA/Clase5/EjercicioCiclos09/nbproject/project.xml create mode 100644 JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ciclos09.java create mode 100644 JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ejercicio09.java create mode 100644 JAVA/Clase6/EjercicioCiclos10/build.xml create mode 100644 JAVA/Clase6/EjercicioCiclos10/build/built-jar.properties create mode 100644 JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ciclos10.class create mode 100644 JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ejercicio10.class create mode 100644 JAVA/Clase6/EjercicioCiclos10/manifest.mf create mode 100644 JAVA/Clase6/EjercicioCiclos10/nbproject/build-impl.xml create mode 100644 JAVA/Clase6/EjercicioCiclos10/nbproject/genfiles.properties create mode 100644 JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.properties create mode 100644 JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.xml create mode 100644 JAVA/Clase6/EjercicioCiclos10/nbproject/project.properties create mode 100644 JAVA/Clase6/EjercicioCiclos10/nbproject/project.xml create mode 100644 JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ciclos10.java create mode 100644 JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ejercicio10.java create mode 100644 JAVA/Clase6/HolaMundo/build.xml create mode 100644 JAVA/Clase6/HolaMundo/build/built-jar.properties create mode 100644 JAVA/Clase6/HolaMundo/build/classes/HolaMundo.class create mode 100644 JAVA/Clase6/HolaMundo/build/classes/PasoPorValor/PasoPorValor.class create mode 100644 JAVA/Clase6/HolaMundo/manifest.mf create mode 100644 JAVA/Clase6/HolaMundo/nbproject/build-impl.xml create mode 100644 JAVA/Clase6/HolaMundo/nbproject/genfiles.properties create mode 100644 JAVA/Clase6/HolaMundo/nbproject/private/private.properties create mode 100644 JAVA/Clase6/HolaMundo/nbproject/private/private.xml create mode 100644 JAVA/Clase6/HolaMundo/nbproject/project.properties create mode 100644 JAVA/Clase6/HolaMundo/nbproject/project.xml create mode 100644 JAVA/Clase6/HolaMundo/src/HolaMundo.java create mode 100644 JAVA/Clase6/HolaMundo/src/PasoPorValor/PasoPorValor.java create mode 100644 JAVA/Clase6/ProyectoCaja/build.xml create mode 100644 JAVA/Clase6/ProyectoCaja/build/built-jar.properties create mode 100644 JAVA/Clase6/ProyectoCaja/build/classes/caja/Caja.class create mode 100644 JAVA/Clase6/ProyectoCaja/build/classes/caja/PruebaCaja.class create mode 100644 JAVA/Clase6/ProyectoCaja/manifest.mf create mode 100644 JAVA/Clase6/ProyectoCaja/nbproject/build-impl.xml create mode 100644 JAVA/Clase6/ProyectoCaja/nbproject/genfiles.properties create mode 100644 JAVA/Clase6/ProyectoCaja/nbproject/private/private.properties create mode 100644 JAVA/Clase6/ProyectoCaja/nbproject/private/private.xml create mode 100644 JAVA/Clase6/ProyectoCaja/nbproject/project.properties create mode 100644 JAVA/Clase6/ProyectoCaja/nbproject/project.xml create mode 100644 JAVA/Clase6/ProyectoCaja/src/caja/Caja.java create mode 100644 JAVA/Clase6/ProyectoCaja/src/caja/PruebaCaja.java create mode 100644 JAVA/Clase7/EjercicioCiclos11/build.xml create mode 100644 JAVA/Clase7/EjercicioCiclos11/build/built-jar.properties create mode 100644 JAVA/Clase7/EjercicioCiclos11/build/classes/ciclos11/Ciclos11.class create mode 100644 JAVA/Clase7/EjercicioCiclos11/manifest.mf create mode 100644 JAVA/Clase7/EjercicioCiclos11/nbproject/build-impl.xml create mode 100644 JAVA/Clase7/EjercicioCiclos11/nbproject/genfiles.properties create mode 100644 JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.properties create mode 100644 JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.xml create mode 100644 JAVA/Clase7/EjercicioCiclos11/nbproject/project.properties create mode 100644 JAVA/Clase7/EjercicioCiclos11/nbproject/project.xml create mode 100644 JAVA/Clase7/EjercicioCiclos11/src/ciclos11/Ciclos11.java create mode 100644 JAVA/Clase7/EjercicioCiclos12/build.xml create mode 100644 JAVA/Clase7/EjercicioCiclos12/build/built-jar.properties create mode 100644 JAVA/Clase7/EjercicioCiclos12/build/classes/ciclos12/Ciclos12.class create mode 100644 JAVA/Clase7/EjercicioCiclos12/manifest.mf create mode 100644 JAVA/Clase7/EjercicioCiclos12/nbproject/build-impl.xml create mode 100644 JAVA/Clase7/EjercicioCiclos12/nbproject/genfiles.properties create mode 100644 JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.properties create mode 100644 JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.xml create mode 100644 JAVA/Clase7/EjercicioCiclos12/nbproject/project.properties create mode 100644 JAVA/Clase7/EjercicioCiclos12/nbproject/project.xml create mode 100644 JAVA/Clase7/EjercicioCiclos12/src/ciclos12/Ciclos12.java create mode 100644 JAVA/Clase7/EjercicioCiclos12/src/ciclos12/JOptionpane.java create mode 100644 JAVA/Clase7/Encapsulamiento/build.xml create mode 100644 JAVA/Clase7/Encapsulamiento/build/built-jar.properties create mode 100644 JAVA/Clase7/Encapsulamiento/build/classes/dominio/Persona.class create mode 100644 JAVA/Clase7/Encapsulamiento/build/classes/test/PersonaPrueba.class create mode 100644 JAVA/Clase7/Encapsulamiento/manifest.mf create mode 100644 JAVA/Clase7/Encapsulamiento/nbproject/build-impl.xml create mode 100644 JAVA/Clase7/Encapsulamiento/nbproject/genfiles.properties create mode 100644 JAVA/Clase7/Encapsulamiento/nbproject/private/private.properties create mode 100644 JAVA/Clase7/Encapsulamiento/nbproject/private/private.xml create mode 100644 JAVA/Clase7/Encapsulamiento/nbproject/project.properties create mode 100644 JAVA/Clase7/Encapsulamiento/nbproject/project.xml create mode 100644 JAVA/Clase7/Encapsulamiento/src/dominio/Persona.java create mode 100644 JAVA/Clase7/Encapsulamiento/src/test/PersonaPrueba.java create mode 100644 JAVA/Clase8/ContextoEstatico/build.xml create mode 100644 JAVA/Clase8/ContextoEstatico/build/built-jar.properties create mode 100644 JAVA/Clase8/ContextoEstatico/build/classes/domain/Persona.class create mode 100644 JAVA/Clase8/ContextoEstatico/build/classes/test/PersonaPrueba.class create mode 100644 JAVA/Clase8/ContextoEstatico/manifest.mf create mode 100644 JAVA/Clase8/ContextoEstatico/nbproject/build-impl.xml create mode 100644 JAVA/Clase8/ContextoEstatico/nbproject/genfiles.properties create mode 100644 JAVA/Clase8/ContextoEstatico/nbproject/private/private.properties create mode 100644 JAVA/Clase8/ContextoEstatico/nbproject/private/private.xml create mode 100644 JAVA/Clase8/ContextoEstatico/nbproject/project.properties create mode 100644 JAVA/Clase8/ContextoEstatico/nbproject/project.xml create mode 100644 JAVA/Clase8/ContextoEstatico/src/domain/Persona.java create mode 100644 JAVA/Clase8/ContextoEstatico/src/test/PersonaPrueba.java create mode 100644 JAVA/Clase8/herencia.uxf create mode 100644 JAVASCRIPT/Leccion01/01-01-holamundo.js create mode 100644 JAVASCRIPT/Leccion01/HolaMundo.js create mode 100644 JAVASCRIPT/Leccion01/index.html create mode 100644 JAVASCRIPT/Leccion02/02-01-ConcatenacionDeCadenas.js create mode 100644 JAVASCRIPT/Leccion02/02-01-TiposDatos.js create mode 100644 JAVASCRIPT/Leccion02/index.html create mode 100644 JAVASCRIPT/Leccion03/03-01-OperadoresJavaScript.js create mode 100644 JAVASCRIPT/Leccion03/index.html create mode 100644 JAVASCRIPT/Leccion04/04-01-Ejercicios.js create mode 100644 JAVASCRIPT/Sintaxis Js y Java.txt.txt create mode 100644 Python/Leccion4/EjercicioRango.py create mode 100644 Python/Leccion4/EjercicioTuplasListas create mode 100644 Python/Leccion4/Tuplas.py create mode 100644 Python/Leccion4/main.py create mode 100644 Python/Leccion5/EjercicioClase5.py create mode 100644 Python/Leccion5/main.py create mode 100644 Python/Leeccion6/Ejercicio01.py create mode 100644 Python/Leeccion6/Ejercicio02.py create mode 100644 Python/Leeccion6/Ejercicio3.py create mode 100644 Python/Leeccion6/EjercicioColecciones01.py create mode 100644 Python/Leeccion6/EjercicioColecciones02.py create mode 100644 Python/Leeccion6/EjercicioColecciones03.py diff --git a/JAVA/Clase1/CicloWhile/build.xml b/JAVA/Clase1/CicloWhile/build.xml new file mode 100644 index 00000000..ce2c321f --- /dev/null +++ b/JAVA/Clase1/CicloWhile/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CicloWhile. + + + diff --git a/JAVA/Clase1/CicloWhile/build/built-jar.properties b/JAVA/Clase1/CicloWhile/build/built-jar.properties new file mode 100644 index 00000000..ca5b64a2 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 28 Aug 2023 10:50:12 -0300 + + +C\:\\Users\\Santiago\\Clase1\\JAVA\\Leccion2\\CicloWhile= diff --git a/JAVA/Clase1/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class b/JAVA/Clase1/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class new file mode 100644 index 0000000000000000000000000000000000000000..0be4b61435ccd15d7a08120e8b41592f2ffbafbf GIT binary patch literal 1357 zcmaJ>O;Zy=5Pg#X822jL|i3E}cTGD7mn?QD5 zZpnfp-POXw<#lBR0&P>aYX>s|$+7XJcBIg5z)Yh9>3`srZ9h;|qVy(%ddd-ztqYGl z+YKs#r)0I5W6n$(oyZFGRpo{%Y1fj$V>?*m&JUy;_>3K!8;`@IIv8uat3?wzbQ?ID zMh|)gx|{F|7_~5)hWvz(C2i9Q}CBc2wcsy7DaBvSah|gg{G4 zuPA}evhAvc&FZr97Ui--Pp+&j=`2al4(+i;t~o5E{F4?8Y6#ihV5?Y4ONH-6OV9KT7mYq1zt7kUI)gc z_t}-B{E@QO8=JM_!S)+G{{${>*HjaDqa^WNEjC`8Iz>r3PQ?yXF@>uFW~|uo^sq?b znm{^Io5IDO8^1l&KlIR?b6w??9O?VYH*i~E^neb{+A}aEFmyPS1B|u6NgU^$41Wn; zQ2r6Q4$vy_EBI|a_X*;CbUes4Jf;(QuIc)I2q$Q@W0+)7u$UxS3w^XS3^dU1<|++n5%lw*PR zB0GGFAuO{u#lD`=evZ+o?@9K5mA+Fr%`8iQcI+1;#Dr3A;S5g&^E|~_?h?!fTIL=S yqHhmE?C~k-|AE$UpXuO+T;oyfIaUQ$n#2V%T#44nXuXb`JTd9L#Rqg6$A1BQHbce$ literal 0 HcmV?d00001 diff --git a/JAVA/Clase1/CicloWhile/manifest.mf b/JAVA/Clase1/CicloWhile/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase1/CicloWhile/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase1/CicloWhile/nbproject/build-impl.xml b/JAVA/Clase1/CicloWhile/nbproject/build-impl.xml new file mode 100644 index 00000000..3b4a4e52 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase1/CicloWhile/nbproject/genfiles.properties b/JAVA/Clase1/CicloWhile/nbproject/genfiles.properties new file mode 100644 index 00000000..9ed423fc --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0d2ac486 +build.xml.script.CRC32=0ab073dc +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=0d2ac486 +nbproject/build-impl.xml.script.CRC32=838beb1f +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase1/CicloWhile/nbproject/private/private.properties b/JAVA/Clase1/CicloWhile/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase1/CicloWhile/nbproject/private/private.xml b/JAVA/Clase1/CicloWhile/nbproject/private/private.xml new file mode 100644 index 00000000..898c258d --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase1/CicloWhile/src/CicloWhile/EjercicioWhile01.java + + + diff --git a/JAVA/Clase1/CicloWhile/nbproject/project.properties b/JAVA/Clase1/CicloWhile/nbproject/project.properties new file mode 100644 index 00000000..79a7c717 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/CicloWhile.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/CicloWhile +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=CicloWhile +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase1/CicloWhile/nbproject/project.xml b/JAVA/Clase1/CicloWhile/nbproject/project.xml new file mode 100644 index 00000000..4254fd21 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CicloWhile + + + + + + + + + diff --git a/JAVA/Clase1/CicloWhile/src/CicloWhile/EjercicioWhile01.java b/JAVA/Clase1/CicloWhile/src/CicloWhile/EjercicioWhile01.java new file mode 100644 index 00000000..4a1bb4bb --- /dev/null +++ b/JAVA/Clase1/CicloWhile/src/CicloWhile/EjercicioWhile01.java @@ -0,0 +1,39 @@ + +package CicloWhile; + + +public class EjercicioWhile01 { + public static void main(String[] args) { + var conteo = 0; //inferencia de tipos + while (conteo <7){ + System.out.println("conteo = " + conteo); + conteo++; //vamos aumentando en uno la variable + } + + var contador = 0; //CICLO DO WHILE + do { + System.out.println("contador = " + contador); + contador++; + } while (contador <7); + + //Uso de las palabras break y continue junto a las etiquetas (labels) + + + for (var contando = 0; contando < 7; contando++) { //CICLO FOR + if (contando % 2 == 0){ + System.out.println("contando = " + contando); + break; + } + } + inicio: + for (var contando = 0; contando < 7; contando++) { //CICLO FOR + if (contando % 2 != 0){ + continue inicio; //Vamos a la siguiente iteracion + } + System.out.println("contando = " + contando); + } + + + } + +} diff --git a/JAVA/Clase2/EjercicioCiclos01/build.xml b/JAVA/Clase2/EjercicioCiclos01/build.xml new file mode 100644 index 00000000..871e3f2a --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos01. + + + diff --git a/JAVA/Clase2/EjercicioCiclos01/manifest.mf b/JAVA/Clase2/EjercicioCiclos01/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/build-impl.xml b/JAVA/Clase2/EjercicioCiclos01/nbproject/build-impl.xml new file mode 100644 index 00000000..ab0fdf96 --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/genfiles.properties b/JAVA/Clase2/EjercicioCiclos01/nbproject/genfiles.properties new file mode 100644 index 00000000..406a419b --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7515729e +build.xml.script.CRC32=403e0d08 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=7515729e +nbproject/build-impl.xml.script.CRC32=73c5c1fb +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.properties b/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.xml b/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.xml new file mode 100644 index 00000000..8241670a --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/JAVA/Leccion2/EjercicioCiclos01/src/Ciclos01/Ciclos01.java + + + diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/project.properties b/JAVA/Clase2/EjercicioCiclos01/nbproject/project.properties new file mode 100644 index 00000000..fa098afc --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos01.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos01 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos01 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/project.xml b/JAVA/Clase2/EjercicioCiclos01/nbproject/project.xml new file mode 100644 index 00000000..f32955f2 --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos01 + + + + + + + + + diff --git a/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Ciclos01.java b/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Ciclos01.java new file mode 100644 index 00000000..23beae4d --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Ciclos01.java @@ -0,0 +1,14 @@ +// Ejercicio 1: Leer un numero y mostrar su cuadrado, repetir el proceso hasta que se instroduzca un numero negativo + +package Ciclos01; + +import java.util.Scanner; + +public class Ciclos01 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, cuadrado; + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + } +} diff --git a/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Interger.java b/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Interger.java new file mode 100644 index 00000000..8b78a6da --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Interger.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package Ciclos01; + +/** + * + * @author Santiago + */ +class Interger { + +} diff --git a/JAVA/Clase2/EjerciciosCiclos02/build.xml b/JAVA/Clase2/EjerciciosCiclos02/build.xml new file mode 100644 index 00000000..1c3dd3d4 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjerciciosCiclos02. + + + diff --git a/JAVA/Clase2/EjerciciosCiclos02/build/built-jar.properties b/JAVA/Clase2/EjerciciosCiclos02/build/built-jar.properties new file mode 100644 index 00000000..5cc9a997 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/build/built-jar.properties @@ -0,0 +1,4 @@ +#Thu, 14 Sep 2023 08:55:27 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Leccion2\\EjerciciosCiclos02= diff --git a/JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ciclos02.class b/JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ciclos02.class new file mode 100644 index 0000000000000000000000000000000000000000..9dd0b7e9372b96d013fdb9fbd7237ac8fc022d91 GIT binary patch literal 1356 zcmaJ>%Tg0T6g>?{9wY)0@qyxqfC)b01D`=r0%)uNR)vZSS50U`%cOg1rUUAi=*F#U zS5hwg0KdSGvDDj{iHu5FQ*~$V>)d%m9Mx_KU#F4AKmwTzvN+6e%!0fs2D_4A zo~(IBYW0*W!7vzX>D`L*+GbI5S2r1^^VPpgmI^Ub&G>{;N@EDa3FI<3f)R${{hW$2 zqA7faq{sb0kjij04jLg8Dmj{XG=pO}PA#_hwkT`W;O3b$Tl5teu1sKaD+kt3<75V7 zI7P+n5Gx`GcvE!8C`1+ct|^vv%hO6IQ;N+IvRNwBb6^-v;tWGBqEQ=PM?~gm8>0zK zP?551xH`CUt=Row=qu|@OJY?jvD$8J2!EY#xMayyb%VQg?n|pj#y+zpX`Un1F2HZ3 z5<#`NRMbfRd924SQ+4ulziE>XaMOthx6Z&S4B49DjqMfgMP<`9-S!(|S=z?3-P)J! z!sz5IXl(-Hb8khMExj2G_TzdQv$&DKO}m;~43qo2m1;+Ci(=SUxUFU0Fxr33@HW2V zC@=(l%+;nVg2}4Z+ifqtglNFn$bTfRzxKod;c*VSYy20Y%w4xee?=*YJ9NI5+-Ri^ zb41`gU8_~rEA_P`i2T2ut4og_hR%BoPCWC4RNR$sxFcN0^L5kbEn+cKQA+q_mj{6e z5_rHc^$%wUQIWs`!}$M0X}ckBI7?3t{W2iQ?Cn7E9BD;*GkPDI`2_Z{0;fm)JvU4})`K?=Um=9z$&GGmZj#IPn2ltDNpAx$!9O z!_RNl>U6BOY%grt2_#8osmNiHgBYfZVw^6CJb}&9fx3_5ot8$!vY5dIicjGtF5(h3 tb-APUeMgFoqy`AINQNFZF3V<6n<`6x@o$l?WUwa3oKeR0c~m(UkIQOT3AhAaBCdL(V5%rHNEX-Z)W#~ zvHlYI!dE`S2XJtPAK;8%{WmJ-?xw>sjV3c^_q;skKKGon=Z}A0yadp|HzgD>Vqw(A z35+pJ@AC(|9`dMD-`v?3fo2%HE+eULGK^GfZ3{()nKY=cWmxwE9z`M^M+p-aY#Wm} z`9>E1FwvsRP>>PBsaA@Vs_sR-zV>x2c(+l4g=usC48!T_(2!c&oKUtgi&I2I^@-Q( zWLvR}j*=BI$Kc$N9jS%ekKCx=6|uVJmT(4VEzH|kz&VEU5s@60!Rnbzp^nr0y z?@3}(X$?!(pln@k`d_Jjf4oq&Hu-tnA$)m=o1CFA)hcJu{Mb?Ev8=%i%ww4JH4hHf zd2c|gL^q$&Hrp9omgjK9rxNGWuk6|&Ll(ca& zdY}$OJsXFt6>B`uDn4ZRH9s(ez%1!K9_@xAS!^kF(C;;l7a(VO1Gs(I6GOuDHOjux zM!x-n6ipt6K79j?BEF>ISq%q`cbO{^cWcx4w!QXd5v}9Sjn%uiGUo<^n@9d6BOc0M zxGO@p7pqRpyHrKnGb^AO@+1+7h5HPbj@4{fDJ=L5=l?&H8l2S)7qLt;YkmcqY+6<% zS4gYVlhO0U<>z2eQul`>jT^KxJ|byn0l12fNgKx}_>?RL{1-;(5B&H$tnZ#;{5cK$ zQ#elL8BSk$hV#GSts4suadqJl9I`LGKoub0V@zf0d#P$5@8=+o|NS#_*HgD)H3GwG z2@@o3l9MRoB<3-N3z()=F++T2aT67+VGj3cTm68uDSJ0#h|h41uoLiUZC@w;^JwA* xAqx0B%{lrv<}FyPGT{*73$hh(3%BVxOL~(KUMjyz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/genfiles.properties b/JAVA/Clase2/EjerciciosCiclos02/nbproject/genfiles.properties new file mode 100644 index 00000000..865d7475 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ad87b7e8 +build.xml.script.CRC32=ad0e4110 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=ad87b7e8 +nbproject/build-impl.xml.script.CRC32=2b732e4d +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.properties b/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.xml b/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.xml new file mode 100644 index 00000000..6909ea55 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Leccion2/EjerciciosCiclos02/src/Ciclos02/Ejercicio02.java + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Leccion2/EjerciciosCiclos02/src/Ciclos02/Ciclos02.java + + + diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.properties b/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.properties new file mode 100644 index 00000000..0cde649f --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjerciciosCiclos02.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjerciciosCiclos02 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjerciciosCiclos02 +main.class=ejerciciosciclos02.EjerciciosCiclos02 +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.xml b/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.xml new file mode 100644 index 00000000..12341334 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjerciciosCiclos02 + + + + + + + + + diff --git a/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ciclos02.java b/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ciclos02.java new file mode 100644 index 00000000..2a76b9f7 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ciclos02.java @@ -0,0 +1,26 @@ +/* +Ejercicio 2: Leer un numero e indicar si es positivo o negativo. +El porceso se repetira hasta que se introduzca un cero 0 + +AHORA CON JOptionPane +*/ +package Ciclos02; + +import javax.swing.JOptionPane; + +public class Ciclos02 { + public static void main(String[] args) { + var numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + while(numero != 0){ + if(numero > 0){ + JOptionPane.showMessageDialog(null, "El numero " +numero+ " es POSITIVO"); + } + else { + JOptionPane.showMessageDialog(null, "El numero " +numero+ " es NEGATIVO"); + } + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro numero")); + } + JOptionPane.showMessageDialog(null, "El numero "+numero+ " finaliza el programa"); + } +} + diff --git a/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ejercicio02.java b/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ejercicio02.java new file mode 100644 index 00000000..b73d4458 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ejercicio02.java @@ -0,0 +1,29 @@ +/* +Ejercicio 2: Leer un numero e indicar si es positivo o negativo. +El porceso se repetira hasta que se introduzca un cero 0 +*/ +package Ciclos02; + +import java.util.Scanner; + + +public class Ejercicio02 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + System.out.println("Digite un numero: "); + var numero = Integer.parseInt(leer.nextLine()); + while(numero != 0){ + if(numero > 0){ + System.out.println("El numero " +numero+ " es POSITIVO"); + } + else { + System.out.println("El numero " + numero+ " es NEGATIVO"); + } + System.out.println("Digite otro numero"); + numero = Integer.parseInt(leer.nextLine()); + } + System.out.println("El numero "+numero+ " finaliza el programa"); + } +} + + diff --git a/JAVA/Clase3/EjercicioCiclos03/build.xml b/JAVA/Clase3/EjercicioCiclos03/build.xml new file mode 100644 index 00000000..f26938dc --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos03. + + + diff --git a/JAVA/Clase3/EjercicioCiclos03/build/built-jar.properties b/JAVA/Clase3/EjercicioCiclos03/build/built-jar.properties new file mode 100644 index 00000000..9aa8e473 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 25 Sep 2023 17:54:07 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase3\\EjercicioCiclos03= diff --git a/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ciclos03.class b/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ciclos03.class new file mode 100644 index 0000000000000000000000000000000000000000..ab759339027bad357ddb21593c6873f3312d8f2e GIT binary patch literal 1572 zcmaJ>ZFAE`5PmLiavX&uav*^i5N%Ry(#EvV(qf>1A&sa50S9+F{m@>Nt0N-cX{0mL z^p~{#1AHzYphIW)0qq~?pXtk#x4X|hx4YUu{(12dKphW@7{RE8F&pEU zV3>WxAM;wsWv6y;=aKL=!^D+92KpMqXrattJah$NQWTT9e45a~)Tr7hX8KlrK?ej=8K|BN5 zsaM;E>1i7-&M*|D_(3-VDH!G})r@uCyNGwOY+=R5dpJADS?b_PEjl75h=|9DAoYLl z^Bk&C)y6rjGAwlYzGx`vbNyAI_h^@BE_GsJy&?BIV5ka zW{toPRdW79ZLnb&Yp7j%*o=AK-ClP`#M^u)q!Xv9d>*!W92mWSIHvak;!$c20A3;0 z398FY>5o;uIh> zQSa9axWiDs9ri2kda@IXgzqYsxgv45ZagTU$#Ckm2laT~!`n=K?lP2lrkthb+GZUc^@+1+7h5HOEhf+B#Ll#;@=k2ak^emk?gY(qE<~Kr(PP2>T zN2JwgWwef;dk*$%YQ8|ym;oCXQ<*y8V|+r|Brf68e(+xyr9bf9@36jpipl5n1w4i0 z9D9bv)n_>M8{WBE{u!6b=Yi-9KS*@SfU2L ziffdR&*|L8*xy*PV6nw1ha#@i*$8gnCav?NHz>kO<(H}4#67YU>2wPZu#MyY0W(I6 AP5=M^ literal 0 HcmV?d00001 diff --git a/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ejercicio03.class b/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ejercicio03.class new file mode 100644 index 0000000000000000000000000000000000000000..f28a8447c3af1b9a561955f15ef023095d4a8337 GIT binary patch literal 1393 zcmaJ>-BJ`s6#kmO{b30(;1UASQBhe%7R4CD5)~IH*II-U3opEChOVVywtH&27oty+ zj!28L+&vJ1Wf)kNO4|Djy|bmAEV2yVs%%Ir{Fd@nt0`i=p)nJ=u(`)M|?>!7yz0^>Ix_ExRgts2dDdXX{@kt&~!xZ5tCyC65t|X5bYt zhH-|`Pcb!RMMK04*@(wRkjii_O`0&2Y994mEMNlPQ;AJ}D5_co+`f=@pZ*!kl{GH5 z)-`_~KNK*9X-e*z*bv6>hB$4blw{<`wp`WCNGqXiCDlh~o|V#$2Zmx67bsIQNNr=C zjM887Jz7aIgG&tKRT+fZEG(AS4n!QtKhQ6xabEB+FC7!mLyCQzhcSEvxbsg|< zhsVwP4}gKy7>2ej4-PkY zlw{6t>sB0yb?IswNwqNVmPe*XT3cgd9&HG_ulLOG02cGOgP$_E>(=x$!_22WOLe3V zMY&U2XLIX3usVLl@OygS39v)@n5(@|n3=lPhpi~Rkfg^{*PjJGe-()?@bnl?S9+GB z%ENG*?notzUl^v>!qfHER3jFK?`fa;!uVS&&$6H;oc}7Kw$aA?%24W#S(l23@-_EG z=tr>*gwYIzno=UJhTIroGI+>v<;)awpB8v + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/genfiles.properties b/JAVA/Clase3/EjercicioCiclos03/nbproject/genfiles.properties new file mode 100644 index 00000000..8501e540 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=65326ad2 +build.xml.script.CRC32=08ac13b5 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=65326ad2 +nbproject/build-impl.xml.script.CRC32=88b6bdca +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.properties b/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.xml b/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/project.properties b/JAVA/Clase3/EjercicioCiclos03/nbproject/project.properties new file mode 100644 index 00000000..541b8dc2 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos03.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos03 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos03 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/project.xml b/JAVA/Clase3/EjercicioCiclos03/nbproject/project.xml new file mode 100644 index 00000000..cd374fbd --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos03 + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ciclos03.java b/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ciclos03.java new file mode 100644 index 00000000..c118434e --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ciclos03.java @@ -0,0 +1,30 @@ +/* +Ejercicio 3: Leer numeros hasta que se instroduzca un cero +Para cada uno indicar si es par o impar. +Primero lo haremos con la clase Scanner +Luego con la clase JOptionpane +*/ +package Ciclos03; + +import java.util.Scanner; + + +public class Ciclos03 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero; + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + while (numero !=0){ + if (numero % 2 == 0){ + System.out.println("El numero Ingresado "+ numero + " es PAR"); + } + else { + System.out.println("El numero ingresado "+ numero + " es IMPAR"); + } + System.out.println("Digite otro numero: "); + numero = Integer.parseInt(leer.nextLine()); + } + System.out.println("El numero ingresado es " +numero+ " finaliza el proceso"); + } +} diff --git a/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ejercicio03.java b/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ejercicio03.java new file mode 100644 index 00000000..322245a9 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ejercicio03.java @@ -0,0 +1,29 @@ +/* +Ejercicio 3: Leer numeros hasta que se instroduzca un cero +Para cada uno indicar si es par o impar. +Primero lo haremos con la clase Scanner +Luego con la clase JOptionpane +*/ + +package Ciclos03; + +import javax.swing.JOptionPane; + + +public class Ejercicio03 { + public static void main(String[] args) { + int numero; + + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero: ")); + while (numero !=0){ + if (numero % 2 == 0){ + JOptionPane.showMessageDialog(null, "El numero Ingresado "+ numero + " es PAR"); + } + else { + JOptionPane.showMessageDialog(null, "El numero Ingresado "+ numero + " es IMPAR"); + } + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro numero : ")); + } + JOptionPane.showMessageDialog(null, "El numero Ingresado "+ numero + " Finaliza el proceso"); + } +} diff --git a/JAVA/Clase3/EjercicioCiclos04/build.xml b/JAVA/Clase3/EjercicioCiclos04/build.xml new file mode 100644 index 00000000..b28431cb --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos04. + + + diff --git a/JAVA/Clase3/EjercicioCiclos04/build/built-jar.properties b/JAVA/Clase3/EjercicioCiclos04/build/built-jar.properties new file mode 100644 index 00000000..d305f208 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 25 Sep 2023 18:22:37 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase3\\EjercicioCiclos04= diff --git a/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ciclos04.class b/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ciclos04.class new file mode 100644 index 0000000000000000000000000000000000000000..66b15462541e017602bf0b9f3b2b039e58bfa462 GIT binary patch literal 1537 zcmaJ>-Etc>6#itVS;yJ@*-e^4QnrwQozghaLLqKbsGHCQrw%w{hT%$C3rEdb^6Y9e z^HgkRg+iUVdAx-+2kS20#ydmNQh=|F=!l3?^mr5tGXG;g zzd%JQyV$@DhAUluB5GO%+&r6_=*>|l#X z)npLrcg2JhbT+B5rP8+-gOh#U z8}Q3FbrJ<)PudgA3`uU<>QkRS(AvZ%;=O%gj&(bpo5aIBcCqK+Gb{TehPAX&(z;1? zs!v3v-wpjr?D4?p=#1gV(S8{K`$->h)ec3xR@eF@=~XW(G2(e8@bIiB#=u9#>fh1o zX!QpvYCH^^RQYNSpHl^PLyu}n7r|q@v3JmD`iFk2kwcx~PMv#JK-uPATMU{c_If&& zMxN@}qZ<+Fb`r=o8Q&$8M0wjDV{m{yCaaF|Ne_ytLNBE z5tc_5md7ThX`H2TjvmE%EMftxD9~|=xJmEW7I{9x5^7jRgWe{~ccagV{2!AwO^vus zZ#1L0TeypRB)|;ecW9Qy{S=XTfmH_%W9#Jlgj^YXiU;(crCE(a{dD{S`{c`${TK)M H3RnLD@1cS@ literal 0 HcmV?d00001 diff --git a/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ejercicio04.class b/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ejercicio04.class new file mode 100644 index 0000000000000000000000000000000000000000..ba4d612e8098ae14e33192cbfd4213ab64b64e02 GIT binary patch literal 1365 zcmaJ>%Tg0T6g?e~gb)QHpa|-qs01HD#TUUB0n1oHtO^wuu9`_38YbOS(;d*gA7Par z;M$cG3qQaQ@h^PbCPO)D%2{;Jy|?e{oWA|_$Nm=pB`jr;LQfjKIUGSB!_XGr;l+Tf zW^rv}OZb+dZ&4~~A29UH6zUmd81l=qDXs9@%2Vx@i1dP&MHT~TCX`ZJa*Yn*STYyK=w zFOLxv~$g|NU9~Rt+5dgSB2fw4Kvt>n_0}`RvNb*Uw0U$e-kd%j@}lIiY~{KkQ{RRZ-_Dvf*K7= zDT8~&`byvtX*4n(^Hz-aVy#wLuhiEvATI7!x#vKX4c_n?BAzYdh1y6fceL@OqTAAF z`?5j8>o$c^-h#&%auuaSR1UZ?!lXgNdf^|qx}lK9BZf2oKT14zAj1?qdM(_SqFYMu z1+C{uD$>qqKQj9n?9+kyJgv?Q9K$rNxy}Jxz(tb!aS1b|an2vy14R4Hp8NUq9{Tq% zxH$2Frfgy#qre`<-=$dobZq(f^BbGo$JqmeOVtCH>Krn(4pFFK4A28Hh!KpF`y|FF z(Kv3<+`2NnPAU{IOVR+@F5?OnlEQUdrN0!ekv@aecMLE#NvDe>r!Yr$*Gh^a5m5*0 Q0v1V^CHX!c;xWd50ewSV4*&oF literal 0 HcmV?d00001 diff --git a/JAVA/Clase3/EjercicioCiclos04/manifest.mf b/JAVA/Clase3/EjercicioCiclos04/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/build-impl.xml b/JAVA/Clase3/EjercicioCiclos04/nbproject/build-impl.xml new file mode 100644 index 00000000..d8a617f3 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/genfiles.properties b/JAVA/Clase3/EjercicioCiclos04/nbproject/genfiles.properties new file mode 100644 index 00000000..f3e9ce74 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5d48ce20 +build.xml.script.CRC32=18ebbc0c +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=5d48ce20 +nbproject/build-impl.xml.script.CRC32=ce5302e0 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.properties b/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.xml b/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/project.properties b/JAVA/Clase3/EjercicioCiclos04/nbproject/project.properties new file mode 100644 index 00000000..bdfd9ada --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos04.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos04 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos04 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/project.xml b/JAVA/Clase3/EjercicioCiclos04/nbproject/project.xml new file mode 100644 index 00000000..32f110f4 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos04 + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ciclos04.java b/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ciclos04.java new file mode 100644 index 00000000..4a77fc96 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ciclos04.java @@ -0,0 +1,26 @@ +/* +Ejercicio 4: Pedir un numero hasta que se teclee uno negativo. +y mostrar cuantos numeros se han introducido +Lo hacemos primero con la clase Scanner +Luego lo hacemos con la clase JOptionpane + */ +package Ciclos04; + +import java.util.Scanner; + + +public class Ciclos04 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, cantVeces = 0; + System.out.println("Ingrese un numero: "); + numero = Integer.parseInt(leer.nextLine()); + while(numero >= 0) { + System.out.println("El Numero " + numero + " Es POSITIVO"); + cantVeces++; + System.out.println("Digite Otro numero: "); + numero = Integer.parseInt(leer.nextLine()); + } + System.out.println("La cantida de numeros positivos introducidos fueron : "+cantVeces); + } +} diff --git a/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java b/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java new file mode 100644 index 00000000..b710072c --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java @@ -0,0 +1,29 @@ +/* +Ejercicio 4: Pedir un numero hasta que se teclee uno negativo. +y mostrar cuantos numeros se han introducido +Lo hacemos primero con la clase Scanner +Luego lo hacemos con la clase JOptionpane + */ +package Ciclos04; + +import javax.swing.JOptionPane; + + + + +public class Ejercicio04 { + public static void main(String[] args) { + int numero, cantVeces = 0; + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero: ")); + + while(numero >= 0) { + JOptionPane.showMessageDialog(null, "El Numero " + numero + " Es POSITIVO"); + cantVeces++; + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro un numero: ")); + + } + JOptionPane.showMessageDialog(null, "La cantidad de numeros positivos introducidos fueron : "+cantVeces); + + } + +} diff --git a/JAVA/Clase3/EjercicioCiclos05/build.xml b/JAVA/Clase3/EjercicioCiclos05/build.xml new file mode 100644 index 00000000..b97d6f8e --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos05. + + + diff --git a/JAVA/Clase3/EjercicioCiclos05/build/built-jar.properties b/JAVA/Clase3/EjercicioCiclos05/build/built-jar.properties new file mode 100644 index 00000000..cb8425d8 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 25 Sep 2023 18:42:54 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase3\\EjercicioCiclos05= diff --git a/JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ciclos05.class b/JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ciclos05.class new file mode 100644 index 0000000000000000000000000000000000000000..cf3bc3fbd6f70520fb7124ce3a8c1f02de24d219 GIT binary patch literal 1686 zcmaJ>-&0#f6#kZk+z>8-1_CIA2Bng;wW-=4N+^~l&_+Y427|Qf%#!Sc+uZDC?%go* z?z7K6I*v0w+lRJOXMFL^KT15Cn@B3rJ9GE$*>m>W?|k>{`SY(=zXQnQn;1qAvJkd0 ziU`BhQ+~{IE|-nm?%`8W(+rVyM>=|gA(Y8hEkqeEbb~tDadVX#mr{6Rh+*7gY}Xh^mi!!%|rByG%Mjv;== zbBF6AV(D>NS9B1uEJp4gP`1{d zlgS3T4o1gt1y?P+YvUSneWkkrC8yY*`PXme`V)q5LDfl{Nh8t2PU}#3d;HL)l|)(9xLf6( zW9;5ySRXlb#&o$4@DCEfhg;m#+-&B_d6~0S@^i0YHV<)=(-lVR>0s+%sS|P}C=Ui! zVi@DD;97Z(B8O2)&}5>bd9As_+g+j-iVU%e>UcG=?U-yP`h>5UilPg1Pbuw_!0jEO zk5t{CjNr2vK1apEp3(RVhLy9DcjU2Zid;}(f$ZD7MkG!cei*F5USI(FfNqE@{FSm& z%}zUiUX_8B*Ea5*w8fC{LE(aCkstikJ%|E#-3nc+d=&c(%bRuQ*pZx?!dWFzd8HX$ zAtAM*KVp|mODVYA_l0laF~g;EsSnG@!dDDS{~t>KC`g|!_8PT5^NfI*=11c?SvmSL z`i@?H0rqRxeTPQl25f9}$8G>V#$B?;u!(!YW|l;lpaAh3tb=D5dqI^Px)pwj#0=(} z-)}s_n~A08NMCu5cV6Q1oyF8oh?~XhwD=1a7E?b5_WNCX+_-Mg^t&)yO#OKJ2ieK+ zE8GHT(U1$lkXu8X#yG|?N#hjekibQ1n5&qT~`}L7=DJNYzT|ckb;yz1JahDHdsY#L$Ndg8=4d}nA+pjkjzPjY-VzHCm{D; zd+nvi<2hdIg>rh)AK-<*z~9pPP7+RnjqaY^o%ds&_jx~d{(SY~C4dZ`M=^qsgRqM$ z7-g6`<|jPuaaBw2A03N|VHn+%N}4T(&}yn2MFe9GqAteaGQ8DyFLF~SXP>L8Zg!k= zqYs}`5V|6mVuy8%PzHiGGZDPUkXl+w z?(P)w*?ew0w^Jgi&V!^-6|IcVt2!yXUR$ELgS3Nn7a!m*!*r))mmwLPmJQ&k|EO6x zMqU5N#Rfj6wl;Y~WVNbr^GupLtpdZ93GCkdke)fX#}LoTil>A1jr7j3@GG(+_4)=w zIIF969tu*4r|ssE@DKTsN19kcSGZT^zO-^r88&rEVP*=$z%qo^Qgs=`guR0 zL(pC$VD=cK_opPK>C5PQW$h2JUpwae^tNVTf(}o>?K)r+4@err7Cs}5-TXJgbOTR9 zTjy}%m}q?eAU1i9tLK>AoKO5jr)O;895;T!+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/genfiles.properties b/JAVA/Clase3/EjercicioCiclos05/nbproject/genfiles.properties new file mode 100644 index 00000000..b0513b12 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=555b4206 +build.xml.script.CRC32=d11a3072 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=555b4206 +nbproject/build-impl.xml.script.CRC32=5e523fd8 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.properties b/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.xml b/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/project.properties b/JAVA/Clase3/EjercicioCiclos05/nbproject/project.properties new file mode 100644 index 00000000..aa77aa1d --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos05.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos05 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos05 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/project.xml b/JAVA/Clase3/EjercicioCiclos05/nbproject/project.xml new file mode 100644 index 00000000..50b67949 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos05 + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ciclos05.java b/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ciclos05.java new file mode 100644 index 00000000..a8af4779 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ciclos05.java @@ -0,0 +1,33 @@ +/* +Ejercicio 5: Ralizar un juego para adivinar un numero, para ello generar +un numero aleatorio entre 0-100 , y luego ir pidiendo numeros indicando "es mayor" +o "es menor" segun sea mayor o menor con respecto a N +El proceso termina cuando el usuario acierta y mostramos el numero de intentos hechos. + */ +package Ciclos05; + +import java.util.Scanner; + + +public class Ciclos05 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, aleatorio, conteo = 0; + aleatorio = (int)(Math.random()*100); // ESto genera un numero aleatorio de 0-100 + do{ + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + if (numero < aleatorio){ + System.out.println("Digite un numero mayor"); + } + else if (numero > aleatorio){ + System.out.println("Digite un numero menor"); + } + else { + System.out.println("!! FELICIDADES!! has encontrado el numero"); + } + conteo++; + }while (numero != aleatorio); + System.out.println("Adivinaste el numero en "+conteo+ " intentos"); + } +} diff --git a/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java b/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java new file mode 100644 index 00000000..61cd806b --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java @@ -0,0 +1,32 @@ +/* + Ejercicio 5: Ralizar un juego para adivinar un numero, para ello generar +un numero aleatorio entre 0-100 , y luego ir pidiendo numeros indicando "es mayor" +o "es menor" segun sea mayor o menor con respecto a N +El proceso termina cuando el usuario acierta y mostramos el numero de intentos hechos. + + */ +package Ciclos05; + +import javax.swing.JOptionPane; + + +public class Ejercicio05 { + public static void main(String[] args) { + int numero, aleatorio, conteo = 0; + aleatorio = (int)(Math.random()*100); // ESto genera un numero aleatorio de 0-100 + do{ + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero: ")); + if (numero < aleatorio){ + JOptionPane.showMessageDialog(null,"Digite un numero mayor"); + } + else if (numero > aleatorio){ + JOptionPane.showMessageDialog(null,"Digite un numero menor"); + } + else { + System.out.println("!! FELICIDADES!! has encontrado el numero"); + } + conteo++; + }while (numero != aleatorio); + JOptionPane.showMessageDialog(null,"Adivinaste el numero en "+conteo+ " intentos"); + } +} diff --git a/JAVA/Clase3/leccionClasesObjetos/build.xml b/JAVA/Clase3/leccionClasesObjetos/build.xml new file mode 100644 index 00000000..560a5e4e --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project leccionClasesObjetos. + + + diff --git a/JAVA/Clase3/leccionClasesObjetos/build/built-jar.properties b/JAVA/Clase3/leccionClasesObjetos/build/built-jar.properties new file mode 100644 index 00000000..0fb32885 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 15:50:40 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase3\\leccionClasesObjetos= diff --git a/JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/Persona.class b/JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/Persona.class new file mode 100644 index 0000000000000000000000000000000000000000..efde28337d2d9bbb095ca101d3ae271a75b27ee7 GIT binary patch literal 1069 zcmaJ=YflqF6g|@xwk=DG1w?#MP|$+P`hKmNU=t!qMNA2P@YA#%>Co*=vpXf>pZGU4 zMw5Q<2l%6mcOQ{9ZTvE`_s+d%?m2Vz_n*Np04`qSkwV%+#>Nz;8Rky-DR(@sj-B_7 z6VWsb(=Vlx<~2jQvU!w47C8%f8#Ay+%Ijx=5nZa%eQH{)ML<$J2fkFMZhXPJZVm+$ zEzH@tfD%KY>hVAX&Vld)tvFq!bhqIPhEm)f%|X3V9lIr(cfrOYE;1~2c}G;WYI5^Y znl^m}hAR^=+^mduZjPt&xP)a3mu+0ZRfhQq!!lUCaCA=*n@OmoMFA@|$|033?+MS7 zEnNb`0z;;%Tg0PSlS=IOyA9zV@`e{N(@pLjabJdUlFXR4q~Ygkqk_03gl-t2gukag zYro5zQqws3y6*c;u`5GBJ5g^tR3#7=HDSCCXG<~tq4@rjpD2mr8a%g9?Pi_4K`x+fzr!_nVGPpsj9T#97 z8x)a~|22Pz;DPctSXXf?B83Vz ZX%9JU(Ute2^#LAHE>H1eJjHV?{{>H?1>rN9v6#ju}1 z777eKc04D1D$t+FZW=HJhRd!DR8Uw~exN;>gn@n&rvwHUeMh+o@~15fBSm9RH>$o8 zuq#KNH$va>wu&Z31ax{h2=SeT5U*}57kPx&j}C+#<6 z&Cy;0XK~KJc?%bCu?PIdeh{h#G3ypnI1>kVbYY#5L&jIKQM6fsX$xsw7MN_vT~*dz zO@{BCaGO*>SYaSAld1HkTg)C$C5fw;F)(Z48mGZd zP2Awgx51ut>)J$KAoLhbJheC{rK=V0t~S$cI>1v3?`cU#Tk@r=79J%;c0o9cw)-9?FS zQP0eDT$H8jZaAUhJ$NZ#b!xVdev%d@UL8s1BMI3RkHa7Jo>$MnYk}Egd7qSyfr`MT z{~zT&jdRCk+~k80eSMrpJ_%e4 z(I(=LKrApc_)wVqhZ%SrNla0e#%bg!d4LoiV+19PVi`6n7;6Jg$DnWz_i4{A@Z>{6 kPO}D&NJXHF)b!E%3HM=APpN;=UYF<#j3lsvH(15lKd3%X9RL6T literal 0 HcmV?d00001 diff --git a/JAVA/Clase3/leccionClasesObjetos/build/classes/pasoporreferencia/PasoPorReferencia.class b/JAVA/Clase3/leccionClasesObjetos/build/classes/pasoporreferencia/PasoPorReferencia.class new file mode 100644 index 0000000000000000000000000000000000000000..a7d18b5b6a0e36727b4808e5493fc5c36c8a0d97 GIT binary patch literal 1758 zcma)7Yfl?T6g>lmwVmZrQ%p$<*(8t{L*q1U`oNI3p^!&y;$Z43>ZkECg$?T+cXy4% zKk3g%tF(zysb4GgM@2pRAch!KvE|vFJNKS@?qjb1ef{ch09E{u#}I}MWK4`;RABO{ zJdzbxdi#|}?Wf8P1xD8#&k64c440N#2C@R<8?FpgP-!SX(4Nf0z;G591V%Q4Q29CT z$4rc4g2tZiw0$K|sP&PXq3?M6)g0bK!N8P>_c49Ob@P}w9eUI~5|~a*9bIYAE~K@R zooa#nXH0y6S%I03JX9Onvt{_B6CUs_2&ESW0@q4|ewPMCd3=bE49uCB$0dQOnCn@G z0!BA-?|Ni(9%?I(%eZ3Ts)+?G3S8~VKzFt8tDlvxJlm0#1|<#c@4S%+n6~V+9qG5E zt9^Pd)y^ijy3{Iw5k}x86H6#F|EbNUn_68Nw0aw+z&g)l@iB{3m%byjs0b{^_ST-V zx=AT566)9_u+#b3C=(>$H`>E8A{dVQot? zA~^S{FcTg)EW={$9gEaiCl`qP`&dU9H0)^kuiM!UMe*OpM~YJT|dq;9k^{ z_XQUE?aqYiLsdz-KIzgeX@}ZB7WnmaC#8xB=zZz!xhhzwX?@u1RtNKON^-_<_qeOh zQ9qrsUxXB5L%MF$2~{nvn8003;xQ*`#MVj};VZ1hb`Lq} z*T{Dr)BLTGaW0xsX#}^qk0Le7g%vXIyN&)Ez~MZ~Ao@u#aEB045;%-fh$ksTvHTCl z7)Id+V;0ZKg_{H{Kcn_=oYEq*4qlK9W=a1dsm~FA{uFvKMgKas5#u!chOa~TmJvo| ZhOt4X590Ovc&+0RPx6#Du!CL9{s#f0s9yj8 literal 0 HcmV?d00001 diff --git a/JAVA/Clase3/leccionClasesObjetos/manifest.mf b/JAVA/Clase3/leccionClasesObjetos/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/build-impl.xml b/JAVA/Clase3/leccionClasesObjetos/nbproject/build-impl.xml new file mode 100644 index 00000000..136ebe87 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/genfiles.properties b/JAVA/Clase3/leccionClasesObjetos/nbproject/genfiles.properties new file mode 100644 index 00000000..03b0a9a9 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=79e6c7c1 +build.xml.script.CRC32=c2ff6fa1 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=79e6c7c1 +nbproject/build-impl.xml.script.CRC32=5b994aa8 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.properties b/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.xml b/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.xml new file mode 100644 index 00000000..167c3fc2 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase3/leccionClasesObjetos/src/Clases/PruebaPersona.java + + + diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/project.properties b/JAVA/Clase3/leccionClasesObjetos/nbproject/project.properties new file mode 100644 index 00000000..456611dd --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/leccionClasesObjetos.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/leccionClasesObjetos +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=leccionClasesObjetos +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/project.xml b/JAVA/Clase3/leccionClasesObjetos/nbproject/project.xml new file mode 100644 index 00000000..d3a08d14 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + leccionClasesObjetos + + + + + + + + + diff --git a/JAVA/Clase3/leccionClasesObjetos/src/Clases/Persona.java b/JAVA/Clase3/leccionClasesObjetos/src/Clases/Persona.java new file mode 100644 index 00000000..a984cde6 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/src/Clases/Persona.java @@ -0,0 +1,15 @@ + +package Clases; + +public class Persona { + //Atributos de la clase (caracteristica) + public String nombre; + public String apellido; + + //metodos de la clase (acciones) + public void obtenerInformacion(){ + System.out.println("Nombre = " + nombre); + System.out.println("Apellido = " + apellido); + } + +} diff --git a/JAVA/Clase3/leccionClasesObjetos/src/Clases/PruebaPersona.java b/JAVA/Clase3/leccionClasesObjetos/src/Clases/PruebaPersona.java new file mode 100644 index 00000000..6a8db572 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/src/Clases/PruebaPersona.java @@ -0,0 +1,20 @@ + +package Clases; + + +public class PruebaPersona { + public static void main(String[] args) { + Persona persona1 = new Persona(); //llamos al constructor + persona1.nombre = "Ariel"; + persona1.apellido = "Betancud"; + persona1.obtenerInformacion(); + + Persona persona2 = new Persona(); + System.out.println("persona2 = " + persona2); + System.out.println("persona1 = " + persona1); + persona2.obtenerInformacion(); + persona2.nombre = "Osvaldo"; + persona2.apellido = "Giordanini"; + persona2.obtenerInformacion(); + } +} diff --git a/JAVA/Clase3/leccionClasesObjetos/src/pasoporreferencia/PasoPorReferencia.java b/JAVA/Clase3/leccionClasesObjetos/src/pasoporreferencia/PasoPorReferencia.java new file mode 100644 index 00000000..182a4954 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/src/pasoporreferencia/PasoPorReferencia.java @@ -0,0 +1,35 @@ +//Paso por refencia +package pasoporreferencia; + +import Clases.Persona; + +public class PasoPorReferencia { + public static void main(String[] args) { + Persona persona1 = new Persona(); + persona1.nombre = "Ester"; + System.out.println("persona1 nombre = " + persona1.nombre); + cambiarValor(persona1); + System.out.println("El cambio que hicimos en el nombre es: " + persona1.nombre ); + persona1 = cambiarElValor(persona1); + //Persona persona2 = null; + Persona persona2 = new Persona(); + persona2 = cambiarElValor(persona2); + System.out.println("El nuevo valor del objeto es: " + persona2.nombre); + } + + public static void cambiarValor(Persona persona) { //Paso por referencia + persona.nombre = "Maria"; + + } + public static Persona cambiarElValor(Persona persona){ + if (persona==null){ + System.out.println("Valor de persona es invalido : Null " ); + return null; + } + else { + persona.nombre = "Monica"; + return persona; + } + + } +} diff --git a/JAVA/Clase4/Aritmetica/build.xml b/JAVA/Clase4/Aritmetica/build.xml new file mode 100644 index 00000000..a71512ac --- /dev/null +++ b/JAVA/Clase4/Aritmetica/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Aritmetica. + + + diff --git a/JAVA/Clase4/Aritmetica/build/built-jar.properties b/JAVA/Clase4/Aritmetica/build/built-jar.properties new file mode 100644 index 00000000..32ffb26b --- /dev/null +++ b/JAVA/Clase4/Aritmetica/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 21:01:35 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase4\\Aritmetica= diff --git a/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Aritmetica.class b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Aritmetica.class new file mode 100644 index 0000000000000000000000000000000000000000..5d70cdefa016c5ccad48face7163dfa66087f960 GIT binary patch literal 1480 zcma)5%We}f6g}>1+F{zz^pTd7GC=7gK*OUv(-ul3M5I6wfwEwOlUVK0i5<;2Nc|H& zf(0NbQWq>(@==KEnITEl2(hqdY~Op%xyRSPejoh+P(aZ}ANnl}I2gnb!|8YYJA46S?8)0+(a%PTu07{-VN+rcR~$HFTIp%x8_QY}iFDn~$`%0CZ0sVh1V zyipj&7{gLUxFXct6@=f?T-KE0D|P5ap2`yP{e_O+5CDhE&JNRdY+! z7mt+Ebe+8UROmfb4^u<9ZQ~B^TDWIyy3erCX*Ey2SNkF#-&*Y4V{SU(fZ;>;y(WP% z=o4xkUxW)~rS@CR!bxMhc8(>!JZOp@;cvR)Ek)xFpC*U%!(8_>aO~3?YnfQzW z%Vob|DmV8HSpz$N40f85fJuU#f_YJ6$k03!!Mia;0#9I(exorHRbce4w)Izt($tvA zeI>T9$i7`Cy6h2L;233G$vN0`GEMfFN@9yL36+ge*yg1rHLVf6A-CHEA88f4 zV@w1^c3iRBu3W?Q1mP7$M=o|8$sJ;$0~1TTOrBgJd8=J6q}nc|+AgFL7y5A{5^@u3 W^c^O$TQmyTpp{L3n|O#vnEeAH9zZ$( literal 0 HcmV?d00001 diff --git a/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Imprimir.class b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Imprimir.class new file mode 100644 index 0000000000000000000000000000000000000000..088447ad67b5703d20aa40ac311311dd3bb44c50 GIT binary patch literal 1174 zcmaJ=+invv5It_vZW@-Rq<1c5DJ>)^G(fqDATEuls1#_Wl<>flv$0yYyLPneRO+Ab z8}I;9ANT-13Ng+mG*Kh=!5+_^Ii5M=`TghY7k~<$XEBD9gS3lrOfXCz@e^JSxH>5B zHjjjF7$#myCCw{_RH4|ILF>=gVVMd1d5U>T%;&A@?coBNi8vyhOgcUDK?bRsJk6pW0)OGw2x*; zS9MD;B$dj*Wp9c*dNqg=&)8@8QDvN@*K|ZpEM0y zW}=hTelV*(h9O(moyZs4(q=NZ7j;CFzm22`g^@nru;Niix3o5~iFo^iFo(Jo=O$3h zqJ(t^_pD0y8CK69iBu>0Sd^1~B;DNRzR}Ss!`DH%d%%SBJy)$j#H%%}k2~$k#jXr^ zh649b+hPR#%K$!kwnH83QB-*l)TI%X49W~EJz>0-h+D!7xaS8v7G7WM7aq&tA;X&O zgox=a5;E{KO@+}O)!5;ISFo)s5|qK+QA$Kr;)q4;;4wvBkZDx)4xTbB{~t<2m`DW= zS7~7FH%8BvMwZs=blRky(LP@K3HGh~`v$Fcx`Ee7;|-R{auX145)sJ0g%w&Y!6!mm z?9z8Q>u0zO{J<5mOJ`W<+UKNGND*+0$f{VxyDss365Jyu8r;SzQKzs**fHF}UD~I} VDv)=hyFS1p@@46~i6?l5rN225GtK}2 literal 0 HcmV?d00001 diff --git a/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Persona.class b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Persona.class new file mode 100644 index 0000000000000000000000000000000000000000..9a6a7607b5634f64742fa1890d63f0183f47e389 GIT binary patch literal 1159 zcmaJ>?M@Rx6g^W)x71Y-sC+0`m5;U{Ra6j)B-(^XQiY_X#`tTxoxs5EOtU*B@+Q89 zCP0FT58y)?@3c)QY4yk4`Peh(-gD>P{r%_a7l0zRQ;1=}LEOb45)329{FE1bt_}-( zwPWEKhQyXs(rhyfWOG#qNrv&gh6uSQwGvTbH)w=1kYNfA2CTW|!o_Wdr0jfQn9P>D zuk4F3(ux;z)gcUH#KBz`qZnft>w}^Iln!d4U>Gf5M^`bSREI@Nkals;-cIs{@O@d= zLzu*rgJ~D{@!*E0%2{MYKvHy*l%?BzQWy4#%n+sEL2;B4Gwb3ZG7J*|KM^IZJZ?To zb407iaAhKf+&?7shM2-*JaI7RVjc^mv8CarPX>pQsEn^DsBAAquFA03=e$2MUea~S z)^J%W@v#}yM0mh!ek*_4<9?Ng((XHladRX|PrC05F{CQG8G2$zT7vX`*c3JXHk2k1 zMtXe3ilGd@)7nHPwzIp#J)^@j zhHu?6JHR&Sd#>ufh~~;#pEMiAUhQ2cH!dEWHAElymo9v}){D8WqYg!h`+h|lQA}c; zVa5WD&QSf^3eGem3QA{e3O6&1!QE9#ge9Lxk%$~@GR*hL?x)7V7Q^iSq0|U%>Bvyg z$EZr}puQms+W}-5jX^BZoTb%Q+uJlR`K5E*$uFN{{0AoTSC|1V z@aQ`sW5|)6MuO}r;#eb3>lnvtOksoScN2N~l4-MI3Cpx2{#F#$_d+WU>-8z^Vpu_e W<|M`QjK&)A04Z8+(68qWrv3s~n=l0c literal 0 HcmV?d00001 diff --git a/JAVA/Clase4/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class new file mode 100644 index 0000000000000000000000000000000000000000..6e6317f71ea2d38186e1bf2461d69ab38aead840 GIT binary patch literal 2214 zcmaJ@-&Y$&6#fQ6HiWIDi_lVOjg?YprC8Kj2~+_^QYq9@skQ!^BqJyuy97@^DoJq4s441p-Nm@-mnqb90KJmFtx( zF5*?==rw`UZ8q3$%MRglCTH^kW1~xLmMgT$RyS9A!^Q&MWX<`yS_%{+KIq>;8b#y% zvcO229sP&vB^y_a>x`@^&vPr;%aY9tq~>*nd+1$q zeZ_Jsso=USdGW4vS$bOhp?m={T`J-p6`^Sx!}@OST6_Zyk(nY>o3WSf`)9 zHq!zQ*y0)SQe2Hu*}7Ht1@oQ^Lls*1Lg3T^D%xe(!dI-||A(?W6FPXFW_aM3 zUnfr=-XD~2b2P!X;JfS04#Y3~=)g5fGfgE{DedO>b-cq-H`Z{28XAl5curZ={hiBB z=d79EU_F3+a|cf>kEidUcRXj^L*Mv)4DcDekopzJ`%?`(3*5))@tmDIb|2%9)aPS0 zG2?g9+rVVYu&;p^;-PV$$z^u%;#3!rgIzK7kTZnj^AovIUet&VU2ehn7K}doko_jhxeY10UW{*dXa~N5%h6){g|QlGH<<` z7{mrIxd_McE$_4Mnfo7c5`Y#P6to0LQxCjLF# z;@k*+!u!;v==Byp;L}B)=kOsuBHrw3m(Np8mb)3Tv%)-^U_{KR`TGEzVK`^$@?(B? pK%&I=Bz0w?+*oeKvKmVr%iFOGV_A>or`V=lmNuW`OMH#Ne*vU!8JGY7 literal 0 HcmV?d00001 diff --git a/JAVA/Clase4/Aritmetica/manifest.mf b/JAVA/Clase4/Aritmetica/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase4/Aritmetica/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase4/Aritmetica/nbproject/build-impl.xml b/JAVA/Clase4/Aritmetica/nbproject/build-impl.xml new file mode 100644 index 00000000..6fddd009 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase4/Aritmetica/nbproject/genfiles.properties b/JAVA/Clase4/Aritmetica/nbproject/genfiles.properties new file mode 100644 index 00000000..953686f7 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=76081a62 +build.xml.script.CRC32=6b4f2526 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=76081a62 +nbproject/build-impl.xml.script.CRC32=ff644ac0 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase4/Aritmetica/nbproject/private/private.properties b/JAVA/Clase4/Aritmetica/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase4/Aritmetica/nbproject/private/private.xml b/JAVA/Clase4/Aritmetica/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase4/Aritmetica/nbproject/project.properties b/JAVA/Clase4/Aritmetica/nbproject/project.properties new file mode 100644 index 00000000..2bd65c11 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Aritmetica.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/Aritmetica +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=Aritmetica +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase4/Aritmetica/nbproject/project.xml b/JAVA/Clase4/Aritmetica/nbproject/project.xml new file mode 100644 index 00000000..82ddac8e --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Aritmetica + + + + + + + + + diff --git a/JAVA/Clase4/Aritmetica/src/Operaciones/Aritmetica.java b/JAVA/Clase4/Aritmetica/src/Operaciones/Aritmetica.java new file mode 100644 index 00000000..039c8e5e --- /dev/null +++ b/JAVA/Clase4/Aritmetica/src/Operaciones/Aritmetica.java @@ -0,0 +1,48 @@ + +package Operaciones; + + +public class Aritmetica { + //Atributos de la clase + int a; + int b; + + //El constructo es un metodo especial (tiene 3 objetivos: + // 1-construye un objeto + // 2- Reserva un espacio en memoria + //3- Incializa los atributos de la clase + + public Aritmetica(){ //Constructor 1 vacio + System.out.println("Se esta ejecutando el constructor n°1 "); + } + + //estamos viendo lo que se llama sobrecarga de constructores + public Aritmetica(int a , int b){//constructor 2 + this.a= a; + this.b= b; + System.out.println("Se esta ejecutando el constructor n°2"); + } + + + + + //Metodo + public void sumarNumeros(){ + int resultado = a + b; + System.out.println("resultado = " + resultado); + } + + //otro metodo + + public int sumarConRetorno(){ + //int resultado = a + b; + return this.a + this.b; + } + + public int sumarConArgumentos(int a, int b){ + this.a = a; //El argumento "a" se asigna al atriburo "this.a" + this.b = b; + //return a+b; + return this.sumarConRetorno(); + } +} diff --git a/JAVA/Clase4/Aritmetica/src/Operaciones/PruebaAritmetica.java b/JAVA/Clase4/Aritmetica/src/Operaciones/PruebaAritmetica.java new file mode 100644 index 00000000..ec27dfe4 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/src/Operaciones/PruebaAritmetica.java @@ -0,0 +1,70 @@ + +package Operaciones; + + +public class PruebaAritmetica { + public static void main(String[] args) { + + var a =10; //variables locales + int b =7; //Memoria stack + miMetodo(); //llamamos el metodo nuevo + Aritmetica aritmetica1 = new Aritmetica(); + aritmetica1.a = 3; + aritmetica1.b = 7; + // aritmetica1= null; nunca utilizar esto, no se debe hacer para limpiar + aritmetica1.sumarNumeros(); + + //para almacenar un objeto o los atributos se utiliza la memoria "heap" + int resultado = aritmetica1.sumarConRetorno(); + System.out.println("resultado = " + resultado); + + resultado = aritmetica1.sumarConArgumentos(12, 26); + System.out.println("resultado con argumentos = " + resultado); + + System.out.println("aritmetica1 a: "+aritmetica1.a); + System.out.println("aritmetica1 b: " + aritmetica1.b); + + Aritmetica aritmetica2 =new Aritmetica(5,8); + + System.out.println("aritmetica2 = "+ aritmetica2.a); + System.out.println("aritmetica2 = "+ aritmetica2.b); + // aritmetica1= null; nunca utilizar esto, no se debe hacer para limpiar + //System.gc(); metodo para limpiar residuos, es pesado,no utilizar + Persona persona = new Persona("Ariel", "Betancud"); + System.out.println("persona = " + persona); + System.out.println("Persona nombre: "+ persona.nombre); + System.out.println("Persona apellido: "+ persona.apellido); + + } + //Mudulariedad creamos un nuevo metodo + public static void miMetodo(){ + // a = 10; //una variable esta limitada + System.out.println("Aqui hay otro metodo " ); + } +} +// Creamos una nueva clase +class Persona{ + String nombre; + String apellido; + + Persona(String nombre, String apellido){ //constructor + + // super();//llamada al constructur de la clase padre object + //Imprimir imprimir = new Imprimir(); + new Imprimir().imprimir(this); + this.nombre = nombre; + this.apellido= apellido; + System.out.println("Objeto persona usando this: "+this); + } +} + +class Imprimir{ + public Imprimir(){ + super(); //el constructor de la clase padre, para reservar memoria + } + public void imprimir(Persona persona){ + System.out.println("Persona desde la clase imprimir: " +persona ); + System.out.println("Impresion del objeto actual (this): " +this ); + + } +} \ No newline at end of file diff --git a/JAVA/Clase4/EjercicioCiclo06/build.xml b/JAVA/Clase4/EjercicioCiclo06/build.xml new file mode 100644 index 00000000..8c944419 --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclo06. + + + diff --git a/JAVA/Clase4/EjercicioCiclo06/build/built-jar.properties b/JAVA/Clase4/EjercicioCiclo06/build/built-jar.properties new file mode 100644 index 00000000..0c6532f6 --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 09 Oct 2023 10:14:49 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase4\\EjercicioCiclo06= diff --git a/JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ciclos06.class b/JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ciclos06.class new file mode 100644 index 0000000000000000000000000000000000000000..ce637be64feda6b9244dad10df05215ec8cf1ec2 GIT binary patch literal 1415 zcmaJ>+iuf95Ix(JIyDY$6Uwy#11%&48t#_{$|X=5NDER>5aNYxvPw;z-N;@e`X`7F z;2je>Z*nO`Fb*3#EjSJ`*!7o}`c|k#hhfB% z4AZsP(o?0X>_)n-1Hn6G8x|%_{3(Wgg`tpQ!$inA*o|o-q9Wq;$JwL6lYM7t>}AN^ z@!FmiZX{h9bwr@tMc2lD9I$ZE!3^>Q=`$HHX0W=(m2ar_h{UNNqMmG*iw#5dumcxI z7}8R_(lt*ChTVl?LVFNx;}~Ww%sDuY6aA#cfU4A@Edp}U+wK z_ICKDs3_Uw`iZAEXccNMb!cp>L*iRFO;Iae(^uh{OQrsTVYH%JM0&z-UyC~HB6!T# zeUfBrs>%HZ4?MH)2}kvYM=^4>zJuSM%H*oUOY6t>ic(VPB+JXZsa3GW@OrQpdcef#3YRTkgtIlJ zHluENdlCjDe;GdB>WU%o!8|4ZUwN>yJr@=3`*rH?avJv-7VH{#O@iE(aJ6cw(4~s^ z8b5TYaRU)@BNpMJ%NU%h`DH6U4?_`JxX&=REf2$vXQ9S$=>JeET#^eM!6~|0%rgRJ zE*BaXXjh_{(Y#~+BiOrGU82#bfpMIn(MbR}i*vE;JT8#L7{5gdqcorU0_*8}jDMsq zPA$DhHoNBo_MQBIL!WT;dVc2l(#)Hm-$|bTi~>M96DdW(ful&%xRc)aw!$$x;(R82&me6GAZT$RdskNKgoFs02J1q>L5BDkwa7v6*y*hDmp7x&w0XJuKhC zlN1LZz{m0K@;3>^C@JUA-T(Ie%QxNMf1Q2o83twNlt6BBCYW2%2)NOh;#}mbbCmr(Ss`tBM#(4&KyaCd9_)y zQmZ#y35JZ>(?>;BtJ^inLtSB*nJxXBGM|m9wroTw`4oE5=b=B10Sq$qUBncX6%`RN zBx^h}f<%U)IA{|gTkNNfhtn9rRVuN{4@5z$fZMmy?$OCuuB>sf#g_R~7)xUu6O`OF zu_27%6>;81wwaM1*<3+aYg!3q^RYe})68dgJWMhS7Gw}=v$&Ldu`i-P22w9BF|-$S z*-fb=m3UpR?uuxe?}nu5FX@1XJ3Nw3ZYtaDo}_|@ORd22gjVHJk$v`Etd8?(?2w&D z6^b8dVJ6la%rdYdd765aGxTg(9vp1&TC;%Emaa#ESeLHE-dHCKjvi7y*V-Bz@!E#4 zd%A2gomfoa9`1X1;D~t0Fm=JCREPRNQzfkr z>b3aDo2|y0|0{6&xF%Y-$ER^l+GU6W55q0G1NkI~xA_wH-H80M@U1Ru;}f~fyJ39# zehp|-)Nb&PO9&qIPRyXkqz;0j&g43*Y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/genfiles.properties b/JAVA/Clase4/EjercicioCiclo06/nbproject/genfiles.properties new file mode 100644 index 00000000..9dba631d --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=89c96ce1 +build.xml.script.CRC32=e4d6c432 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=89c96ce1 +nbproject/build-impl.xml.script.CRC32=8c897cb8 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.properties b/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.xml b/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/project.properties b/JAVA/Clase4/EjercicioCiclo06/nbproject/project.properties new file mode 100644 index 00000000..a171f6dc --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclo06.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclo06 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclo06 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/project.xml b/JAVA/Clase4/EjercicioCiclo06/nbproject/project.xml new file mode 100644 index 00000000..ada9f9b1 --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclo06 + + + + + + + + + diff --git a/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ciclos06.java b/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ciclos06.java new file mode 100644 index 00000000..cccfd6ec --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ciclos06.java @@ -0,0 +1,20 @@ +//Ejercicio 6: Pedir numeros hasta que se teclee un 0, mostrar la suma de todos +//los numeros intruducidos + +package Ciclos06; + +import java.util.Scanner; + + +public class Ciclos06 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero,suma = 0; + do { + System.out.println("Digite un numero : "); + numero = Integer.parseInt(leer.nextLine()); + suma += numero; + }while (numero != 0); + System.out.println("\nLa suma de todos los numeros ingresados es: " + suma); + } +} diff --git a/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ejercicio06.java b/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ejercicio06.java new file mode 100644 index 00000000..1834678f --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ejercicio06.java @@ -0,0 +1,17 @@ +//Ejercicio 6: Pedir numeros hasta que se teclee un 0, mostrar la suma de todos +//los numeros intruducidos +//JOptieonPane +package Ciclos06; + +import javax.swing.JOptionPane; + +public class Ejercicio06 { + public static void main(String[] args) { + int numero,suma = 0; + do { + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + suma += numero; + }while (numero != 0); + JOptionPane.showMessageDialog(null,"La suma de todos los numeros ingresados es: " + suma); + } +} diff --git a/JAVA/Clase4/EjerciciosCiclos07/build.xml b/JAVA/Clase4/EjerciciosCiclos07/build.xml new file mode 100644 index 00000000..faec4912 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjerciciosCiclos07. + + + diff --git a/JAVA/Clase4/EjerciciosCiclos07/build/built-jar.properties b/JAVA/Clase4/EjerciciosCiclos07/build/built-jar.properties new file mode 100644 index 00000000..b27c9035 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 13 Oct 2023 17:12:27 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase4\\EjerciciosCiclos07= diff --git a/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ciclos07.class b/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ciclos07.class new file mode 100644 index 0000000000000000000000000000000000000000..16744cf8d2e1bccadfddf1a2b7e35c3f566264ab GIT binary patch literal 1598 zcmaJ>>uwuG6#gc5ypFTE*>U31T(%^oc1!DUOG4ZPs2fv*)0R4zONGS59y!yjXRO_I z)ci+%1_Te#-}Fa|io^r(8oUSP%&x7vioud+XU^rDbG~!t{PoYvKLM1`NMQ^y3vnCc zNHEMk;-|dma@8*0J9;FV0Yl=ZR5I9Oh~*0n3rU8#(5M$kw^(m-rGz(u6eca$Hl{HB z21@7;^cMCWVH%A!B16Sqen=D6ZFF z_dTfwU`Z@8q;Jc%4208Dj_P%Ur+1tbF5oQ-7i}zInISU>WXPAn>KY{1MB0xdWP;+9 zs$D7&Sr%4pIJm@+RN`?^lS(km=L=EP!`3ORVco)I8}H!CfV0q`sshm#9zk@u=Lf#3a^vVfyevlByo+QklOb=?Kv)YTJlu-QY%L&qSR>$?I`Vt$C9{rcAYep`nru9 zC^9T|_=zZM)#Sl9GB~E4A8-};CWOj}G%UPF!Ix#z)zaT8h8urliy>atEy{hyP;j@` zITGF>KXOTuuIVOs8{CuT+!w}!V@Y>pYUhwj1l8fDI~MW}&(m0Fke+*O<2*u5N>>;z zGm-0XQxb9_DnA3O(xIt|c}*^Uufq-fp6-a2Bnhi9Ow|M4JUQUqFk}lm45_;Ac}-D~ zCay|&0KsALg@TG;CVf%n#J#4eE>QbHR6H$zMDJnpP zHv{dRG5kE-ZGFQC^bS`oSNQ8StxtO0(s_P{ByTt#o^{0t^I;032VNR3dLN?9UAImT zsFcJ#Drjoobp~8H!ryTigIzW6zU*?}7ruoD442R4Iw}PVhYTzKZ%U<#^2H@=(0nq# zF)%ZsXnmhfMfx)Oj$eHN_FJg_fL5ah4T=wGwIc(3giSh4U<=zMA!n9Dj4XlUKVW_L z3==P?iDP@Q&G_W@_%o!_3(t|e_8cp}`ugD=`;kE^fF-9D(PS2CaK555Lp__puq28hYUEHTrigsV2PB<6- E1xxCNwEzGB literal 0 HcmV?d00001 diff --git a/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ejercicio07.class b/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ejercicio07.class new file mode 100644 index 0000000000000000000000000000000000000000..52dd6828efb0417b128a61b0d27b58d209c7905d GIT binary patch literal 1414 zcmaJ>+j0{}5IrNwULh82$v2E`*d&HX+{DFThc)IRONml)NR=t`zzgHmlsxuoMm00C z;ho|eQppGKoTs>W$Oq&j@&);ZkX|Ggo1jXmG_%u}(|x*o=8wPM{|+ETy?_j|9&$d$ zFwQW!&kuPu=BiVDy1OqT$1uJwm2?{n*>Ytkk31P|%8qm*=&L~WyTa%K3OMb-_i+Yi z8Rim@S5 z*(p&6F8H{JfJ)Zo2co7`#NBi0_UOwxuAEJ{G)C0J!vE|`Uw)C|a8lD9 z(sR=x|EUpbnw`OXFt8>aB2B&0o;1wpu4qe=um;1KZO5a7E#CW>n1`zjg>Bt8 zk!Z*y`^gl^8%h63^h9fCo#DML;r4XfPK;x%fNyZ$Lzq-{oniUYs7Q6F4@7m4{Giwk z9yx7ZGyIeunW5nT^gFKFv9QZ6tq=OWbSH;ZNY&+Ej?Z5A#0c|rp-yJubBG#`<88WR zVIFk#iuE`+sa7ED{eUs}O{IjX#oSt9Jv?T(^cmGr3_R2rF8seKHETc@U(hc@g9=(% z@xNA)tTi5hf6F45`_3~(7=)9Dn-sE{Oa{*%DQX#Y0*AiHsT zEm!i6aq1Wo>kGeNc4^_|#+wW)%?xGlKK!-#GkjK>JI4Gw%q+cKe5=-SY%cd6O8^Oz z@L43`Z&T1DaE=}#4`=Don7}lx=TM{@TcSj!aTPOIAxVgNG)S7Hx-v)yS4a!8U&S?C zr(`pz;|6_Y2(d<-uTvZkk8l&WNOGHOr;z(V4r3nfFvh4-vwo3`R!Eh>UEHHRPe7~m Re}IQ{D$v&>Ji#XB{{iDTU*P}% literal 0 HcmV?d00001 diff --git a/JAVA/Clase4/EjerciciosCiclos07/manifest.mf b/JAVA/Clase4/EjerciciosCiclos07/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/build-impl.xml b/JAVA/Clase4/EjerciciosCiclos07/nbproject/build-impl.xml new file mode 100644 index 00000000..cfef785b --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/genfiles.properties b/JAVA/Clase4/EjerciciosCiclos07/nbproject/genfiles.properties new file mode 100644 index 00000000..41621c46 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=85da0b56 +build.xml.script.CRC32=db7f4edd +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=85da0b56 +nbproject/build-impl.xml.script.CRC32=b157c48a +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.properties b/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.xml b/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.properties b/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.properties new file mode 100644 index 00000000..e2bd4d8a --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjerciciosCiclos07.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjerciciosCiclos07 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjerciciosCiclos07 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.xml b/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.xml new file mode 100644 index 00000000..4a293f1b --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjerciciosCiclos07 + + + + + + + + + diff --git a/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ciclos07.java b/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ciclos07.java new file mode 100644 index 00000000..797d48c8 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ciclos07.java @@ -0,0 +1,32 @@ +/* + Ejercicio 07: Pedir numeros hasta que se intruduzca uno negativo y calcular el promedio + + */ +package Ciclois7; + +import java.util.Scanner; + + +public class Ciclos07 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, conteo = 0, suma = 0; + float promedio = 0; + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + while (numero >= 0){ //mientras el numero no sea negativo + suma+= numero; + conteo ++; + System.out.println("Digite otra numero"); + numero = Integer.parseInt(leer.nextLine()); + } + if (conteo ==0){ + System.out.println("\nError la division entre cero no existe = "); + } + else { + promedio = (float)suma/conteo; + System.out.println("\nEl promedio es: " + promedio); + } + } + +} diff --git a/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ejercicio07.java b/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ejercicio07.java new file mode 100644 index 00000000..bf4b583b --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ejercicio07.java @@ -0,0 +1,29 @@ +/* + Ejercicio 07: Pedir numeros hasta que se intruduzca uno negativo y calcular el promedio + + */ +package Ciclois7; + +import javax.swing.JOptionPane; + + +public class Ejercicio07 { + public static void main(String[] args) { + int numero, conteo = 0, suma = 0; + float promedio = 0; + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + while (numero >= 0){ //mientras el numero no sea negativo + suma+= numero; + conteo ++; + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro numero")); + } + if (conteo ==0){ + JOptionPane.showMessageDialog(null,"\nError la division entre cero no existe "); + } + else { + promedio = (float)suma/conteo; + JOptionPane.showMessageDialog(null,"El promedio es: " + promedio); + } + } + +} diff --git a/JAVA/Clase5/EjercicioCiclos08/build.xml b/JAVA/Clase5/EjercicioCiclos08/build.xml new file mode 100644 index 00000000..0ecf3aa2 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos08. + + + diff --git a/JAVA/Clase5/EjercicioCiclos08/build/built-jar.properties b/JAVA/Clase5/EjercicioCiclos08/build/built-jar.properties new file mode 100644 index 00000000..0792f247 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 13 Oct 2023 17:13:29 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase5\\EjercicioCiclos08= diff --git a/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ciclos08.class b/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ciclos08.class new file mode 100644 index 0000000000000000000000000000000000000000..b4caf5d523bf15f5796f60b1975ec46eb0b9376c GIT binary patch literal 952 zcmZ{jTW=CU6vzJqlm)u9TuQCBtF&5WsTRD~((+PcLV}kBLt=ayaDr2pS+eXJefOIf z5F2ZiYn*}&)qGia2DqbteRMZ#gLzZ%;Yi{1Fhs}(g{b{3F4HhSF_ui^n!^Z))^8? zyz!e-35KPTJ*J+GPT?Xh8Q3&&8CRw~3j-R;7d_#T#DIH4LCgQtYiMX&6PFocrG{?* zRgyZ8UB?|(cPi5l@*cP^h-6U%Jqr3A;XUOYhb+0K+vQH1ds43_#+d(74yg&vslacg z8cFrJKC9)@^M5yGx5>}Fo=!f+O-@JXo#n@=vsZ+a9xl3PB W`dezn$O$Y124h(Y+aps1`@aCZ(9PTc literal 0 HcmV?d00001 diff --git a/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ejercicio08.class b/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ejercicio08.class new file mode 100644 index 0000000000000000000000000000000000000000..7688b9fa177015f726bf6ba5cfba8a8d8416663b GIT binary patch literal 818 zcmZvaOK;Oa5Xb-Pq;(!{^JtouHnb^^5*Mg@tmMKa1t};cm4b5Nv@wgj!LcJh8g5+p zCLB0(BI3XY;M4F0c+57buuvmq)-$vF`_JyokKfG-j5 zMaYnw@GuhOGOVYe3xe5EjJkmhY%=JV+)G67EknK4N$V|eBv`9!puTyngUw=S(9=ddX?S?e9 zdEQC})}g;-Sn0>yd3VMq3-v-jNJ2+Em#V&U>Kcct8Q8;Z8YT79z|=62-6hYWmC?F% z@D=RKRk}%5r9p4JN7k5cz#ZHrFOPe;PZ4$agPKlScdPmg`58(l*(Z(dPpGiQ4C^!8 z`lzwbe|{=#22HYC1XjR2O=1zN)bSEF$?l+fCDokcu#X3{FOND}FiEV48V=}7!$XSa Qp#4ITu_|RAk+0$LU&N%gx&QzG literal 0 HcmV?d00001 diff --git a/JAVA/Clase5/EjercicioCiclos08/manifest.mf b/JAVA/Clase5/EjercicioCiclos08/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/build-impl.xml b/JAVA/Clase5/EjercicioCiclos08/nbproject/build-impl.xml new file mode 100644 index 00000000..3227826f --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/genfiles.properties b/JAVA/Clase5/EjercicioCiclos08/nbproject/genfiles.properties new file mode 100644 index 00000000..b540283a --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3d9a9f88 +build.xml.script.CRC32=70f6fdc3 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=3d9a9f88 +nbproject/build-impl.xml.script.CRC32=b8eb0085 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.properties b/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.xml b/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/project.properties b/JAVA/Clase5/EjercicioCiclos08/nbproject/project.properties new file mode 100644 index 00000000..9508c90b --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos08.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos08 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos08 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/project.xml b/JAVA/Clase5/EjercicioCiclos08/nbproject/project.xml new file mode 100644 index 00000000..928ea666 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos08 + + + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ciclos08.java b/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ciclos08.java new file mode 100644 index 00000000..3f7f5d83 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ciclos08.java @@ -0,0 +1,20 @@ +/* + Ejercicio 08: Pedir un numero N, y mostrar todos los numeros del 1 al N. + */ +package Ciclos08; + +import java.util.Scanner; + + +public class Ciclos08 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + System.out.println("Digite un numero: "); + int numero = Integer.parseInt(leer.nextLine()); + int i =1; + while (i <= numero){ + System.out.println(i); + i++; + } + } +} diff --git a/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ejercicio08.java b/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ejercicio08.java new file mode 100644 index 00000000..e52de4d9 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ejercicio08.java @@ -0,0 +1,19 @@ +/* + Ejercicio 08: Pedir un numero N, y mostrar todos los numeros del 1 al N. +con JOtionPane + */ +package Ciclos08; + +import javax.swing.JOptionPane; + + +public class Ejercicio08 { + public static void main(String[] args) { + int numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + int i = 1; + while (i <= numero){ + JOptionPane.showMessageDialog(null, i); + i++; + } + } +} diff --git a/JAVA/Clase5/EjercicioCiclos09/build.xml b/JAVA/Clase5/EjercicioCiclos09/build.xml new file mode 100644 index 00000000..02a4bd09 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos09. + + + diff --git a/JAVA/Clase5/EjercicioCiclos09/build/built-jar.properties b/JAVA/Clase5/EjercicioCiclos09/build/built-jar.properties new file mode 100644 index 00000000..2b8fc0b1 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 13 Oct 2023 17:13:57 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase5\\EjercicioCiclos09= diff --git a/JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ciclos09.class b/JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ciclos09.class new file mode 100644 index 0000000000000000000000000000000000000000..e8a69e3902b89ff9b31c7bc9d5b5df896add3cd4 GIT binary patch literal 1705 zcmaJ>-&Y$&6#j+;HY`gC34yi*Tz<7lp-q)qEoreOh{T2#8%(VpABN2srfha|b~ioZ ztH(!umS-M(ZXa4tJ*O|e`H%QtsCPDr2@;!}%-lP3?>G0m_vZfb*XuU`^7vB603sTq z1_m+25P!;_@tn<_TJGWgQ(*-RL${?PgLQ^TCR@=EV;B#Ont`-)Ws5tG@P?sdM1x^q z6z5K%l#l#C)ENe(!;mV4p3=<~oklY#2cF>dybcX<_5L`+`AlDvY(>40G%$e_1>!a- zt}fWFC!G#h3{wnao3bVYVG7%T+gGrb92R1;N26K9$#gc?_)@zowj?QVeY?nE2Y4KFd7_4VwWs+0RBbF z6I7k6#+%H1b+$;^3f*(Brkwj+)1@s`rIIbz-hL%?SofdfjtkeZ_%o*L4#+FR-qRxGRL}KzK&M&{j?5~)=qx4KyUsw8-u6{F` zKE`%BK6`?VnPaTZ#ElbNO+}9}lZuXOf1V&k9%)iuV+A0`UofXIu7~2J65k8O5hdOr zQL%_Xu~^3#tp-MDI45xq)1)sTj%AEv6$#=qfi0x4i%EQqDY&?Z?=XuWFpnRx6tch3 zVu+7$m#{|gJ?>$H_)o(}0h^T0Wmx!_qzK_XBD_t?$|q!-LiBHf9MrI_L1R>E=(%TgOh6g>@s8H5aC47P~`9?T;WCJcE8gz-a|cwEAE1sAE5SIwv`HH^AdGmVM= zB&=Cv?Nul*vdJ#LkwyN(l{=Cs23r+Psr&YQ%{lkp>Ayd`{}Vt3PqG-mpoL5hLl|br zAM!Wc3%P1|&kqhoU>JrsrIKcgVX#!*w_!6}+m;P!geyX~E_oJNj9SR$a1CP&HzpqkGsrF1nSt?oNF=4^U;W{Q6 zCN5)qWkf?n40fAGv7jTvR61!dL)o`+;|lPWh;7_r7`x=cmDCPZ<+B_LC=!zvKN3}~ z0&aemrb$w4xH2(WO1|&+1)9Zd4!7YF%7pE%h-2Om7ktY-X#B)@Ro!Z9C6uY82zP5< zN$PxuVSYyhP3}q+=qRFIaCgP!f4$R}8tvLxV7SxAkqBP(TVj~|*l#6iVA{<>iD9xT zgHXq7>)zu-5d|`kdTpH{Q`PmPjWwynv*Xr*h+gu8kTgzB2Rz*8kxb4#WyUlmmFh;V zU$P2iYjLT_UV4?{f6=aevh%1x@z?v9X%q=I1M^8Do{2N{j{3W2cyP4K+dT}~J$)Pn zVn-$@^C>c`$q13^k=7Axso499TE181(3=5ajCe<5#B)l%j?qKZj z!06~L!*A)S>p6ClKH;h!ig=->_0e%V-R&OR6#pxMFWKr*0}q+H%yI4#JtX35pTH6qlY2qD>$Y1Lv6e z9R=phbp(ew^BrM?Ig2DD$Oe%hTg51?V}xTI4&6-!S{LbV@-T@FOu@%3{DdN2!3D>B zhrx0eCD!mI#g5(X6g>SOOze8x literal 0 HcmV?d00001 diff --git a/JAVA/Clase5/EjercicioCiclos09/manifest.mf b/JAVA/Clase5/EjercicioCiclos09/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/build-impl.xml b/JAVA/Clase5/EjercicioCiclos09/nbproject/build-impl.xml new file mode 100644 index 00000000..b9c7ade4 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/genfiles.properties b/JAVA/Clase5/EjercicioCiclos09/nbproject/genfiles.properties new file mode 100644 index 00000000..031bc66e --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=358913ae +build.xml.script.CRC32=b90771bd +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=358913ae +nbproject/build-impl.xml.script.CRC32=28ea3dbd +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.properties b/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.xml b/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/project.properties b/JAVA/Clase5/EjercicioCiclos09/nbproject/project.properties new file mode 100644 index 00000000..dc75ff91 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos09.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos09 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos09 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/project.xml b/JAVA/Clase5/EjercicioCiclos09/nbproject/project.xml new file mode 100644 index 00000000..a3162fae --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos09 + + + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ciclos09.java b/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ciclos09.java new file mode 100644 index 00000000..602f22ab --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ciclos09.java @@ -0,0 +1,38 @@ +/* +Ejercicio n°09: Pedir el dia, mes y ali de una fecha e indicar si la fecha es +correcta . Suponiendo que todos los meses son de 30 dias. + */ +package Ciclos09; + +import java.util.Scanner; + + +public class Ciclos09 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + System.out.println("Digite el dia: "); + int dia = Integer.parseInt(leer.nextLine()); + System.out.println("Digite el mes: "); + int mes = Integer.parseInt(leer.nextLine()); + System.out.println("Digite el año: "); + int anio = Integer.parseInt(leer.nextLine()); + + if ((dia != 0) &&(dia <= 30) ){ + if ((mes !=0) && (mes <=12)){ + if ((anio !=0)&& (anio <=2023)){ + System.out.println("La fecha ingresada es: " +dia+ "/" + mes+ "/" + anio ); + } + else { + System.out.println("Fecha incorrecta , año incorrecto "); + } + } + else { + System.out.println("Fecha incorrecta , mes incorrecto "); + } + } + else { + System.out.println("Fecha incorrecta, dia incorrecto "); + } + + } +} diff --git a/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ejercicio09.java b/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ejercicio09.java new file mode 100644 index 00000000..f339aba6 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ejercicio09.java @@ -0,0 +1,35 @@ +/* + Ejercicio n°09: Pedir el dia, mes y ali de una fecha e indicar si la fecha es +correcta . Suponiendo que todos los meses son de 30 dias. + */ +package Ciclos09; + +import javax.swing.JOptionPane; + + + + +public class Ejercicio09 { + public static void main(String[] args) { + int dia = Integer.parseInt(JOptionPane.showInputDialog("Digite el dia")); + int mes = Integer.parseInt(JOptionPane.showInputDialog("Digite el mes")); + int anio = Integer.parseInt(JOptionPane.showInputDialog("Digite el anio")); + + if ((dia != 0) &&(dia <= 30) ){ + if ((mes !=0) && (mes <=12)){ + if ((anio !=0)&& (anio <=2023)){ + JOptionPane.showMessageDialog(null, "La fecha ingresada es: " +dia+ "/" + mes+ "/" + anio ); + } + else { + JOptionPane.showMessageDialog(null,"Fecha incorrecta , año incorrecto "); + } + } + else { + JOptionPane.showMessageDialog(null,"Fecha incorrecta , mes incorrecto "); + } + } + else { + JOptionPane.showMessageDialog(null,"Fecha incorrecta, dia incorrecto "); + } + } +} diff --git a/JAVA/Clase6/EjercicioCiclos10/build.xml b/JAVA/Clase6/EjercicioCiclos10/build.xml new file mode 100644 index 00000000..1309783c --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos10. + + + diff --git a/JAVA/Clase6/EjercicioCiclos10/build/built-jar.properties b/JAVA/Clase6/EjercicioCiclos10/build/built-jar.properties new file mode 100644 index 00000000..1c145367 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 16:06:55 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase6\\EjercicioCiclos10= diff --git a/JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ciclos10.class b/JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ciclos10.class new file mode 100644 index 0000000000000000000000000000000000000000..18ad06d013a00bc8d87181c0dc63ec995c64f6f7 GIT binary patch literal 1446 zcmaJ>&2ke*5dKDzz4EfgLc$mVh6N0kaDs3k1S}8<0)rA6s1hZL$|d8~lstGfquQON z;(Hz<_Z)H#2S|~sJV5dmd5jzaJ-c#6loh1f*_r9?ufP7;{`23re*kFUiHjWa4hkM- zFw0PS!C&%v$km|!c>9G248!a#sibK#;s0Cv=`FSNcB?hih5S?EZLhpFgn^}_-V2w z#)=u}L$3Ovh*vsV?!=ZzQIuPi80k3LBFJ9z(Qv73B=r8i)|rs6uSRt(JH3awtIfOUMH-d)8ty0ON8Ax}_1^LIGU zUt#VIHE_OJxL#N+l-!@O{0imrvDY}h_8O;u!@1kbr@n9gSYW@r`2V-EtE*6#itJY_e?roF7UP(rud1IBnUa&;oIiwm77iaSAhL(u>|yu{Dm8wY0O6 zNps(a=zXWdHC#Z33m$;S;4!!Wj%=rxiD73}(viONoj>WkeDnMTfFkbt$RO(>7vLNQ z7{(6xLmtIkHKKca2cl*f2G*sLc9S8yRM;KDAcj2n0nQ`%0A4*dRx}BvTck8qX%k5u z-A|>mRhtUlEDmCXA-^RX(u%O9Le*-DRIi0T#xU+7A7BEL3=@5H8N9?X#fr$6I_zyX ziCU^gv9Rl78W%i#7T_X2XSm=<{))^Iokn->C01&6pDV#IYWDR}StTvIC3&nH43~Qe zJ8>5aXKnbH#U&4O0lq-UF#bMQWo1P}qzr=zPmLh)BVLyCl=k@mUtxh0g4C-k47rl7yDU|t62G;Ydm??n_hQ<~S9FcXyF8Un?r!Gnz9fgI zEB(ld#Mb1JN;bXpM~@%>*Nkpg=MFHiGX0Vic-kPsi9UEbG_59Q7_M4gJKW((*9pI> zTWL*fOXucTPc&CtiD>JV*4EgRCp*IK>$({oz=n@a{N&+hSBzg67T#A=s)zbeL>(_X z_1We%tJ7nKe|oP<7uX@a!&N;NW}%|>VJqoPdpF#k1bm?Q;5ZR|;JpbrE!RV)1Hcsm14CHBD(yJs z|A;I{^GbFjw|QyI{}*#l;N^#(Vl+Q|f~gbCtk2H;x$$?FJ$n0!%|0hLaDqi=Cktn1 zo*Ec1OgtlGZ4`NGJu?`m7d?VSOp?W^whzl>XNC~p<0{$C5zjSRWu0yOfFEhjkbl={ pFM}H-ok!*k!5DjukYG34fHmr{AcG9+^xwi3Nj|M^<5!e%@g0xgXI=mR literal 0 HcmV?d00001 diff --git a/JAVA/Clase6/EjercicioCiclos10/manifest.mf b/JAVA/Clase6/EjercicioCiclos10/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/build-impl.xml b/JAVA/Clase6/EjercicioCiclos10/nbproject/build-impl.xml new file mode 100644 index 00000000..3a828a2d --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/genfiles.properties b/JAVA/Clase6/EjercicioCiclos10/nbproject/genfiles.properties new file mode 100644 index 00000000..1c083ce1 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=af0368c9 +build.xml.script.CRC32=3ebb2cc1 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=af0368c9 +nbproject/build-impl.xml.script.CRC32=cb564560 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.properties b/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.xml b/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.xml new file mode 100644 index 00000000..27eebe05 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ejercicio10.java + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ciclos10.java + + + diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/project.properties b/JAVA/Clase6/EjercicioCiclos10/nbproject/project.properties new file mode 100644 index 00000000..ee3d77a4 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos10.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos10 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos10 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/project.xml b/JAVA/Clase6/EjercicioCiclos10/nbproject/project.xml new file mode 100644 index 00000000..317ace2a --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos10 + + + + + + + + + diff --git a/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ciclos10.java b/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ciclos10.java new file mode 100644 index 00000000..320786e1 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ciclos10.java @@ -0,0 +1,21 @@ +/* + Ejercicio 10: Pedir 10 numeros y escribir la suma total +Hacer con la clase Scanner y JOptionPane + */ +package ciclos10; + +import java.util.Scanner; + +public class Ciclos10 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, suma = 0; + for(int i = 1; i <= 10; i++){ + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + suma += numero; + + } + System.out.println("\nLa suma de todos los numeros es: "+suma); + } +} diff --git a/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ejercicio10.java b/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ejercicio10.java new file mode 100644 index 00000000..25358435 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ejercicio10.java @@ -0,0 +1,23 @@ +/* + Ejercicio 10: Pedir 10 numeros y escribir la suma total +Hacer con la clase Scanner y JOptionPane + */ +package ciclos10; + +import javax.swing.JOptionPane; + + +public class Ejercicio10 { + public static void main(String[] args) { + + int numero, suma = 0; + for(int i = 1; i <= 10; i++){ + System.out.println("Digite un numero: "); + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero: ")); + suma += numero; + + } + JOptionPane.showMessageDialog(null, "La suma de todos los numeros es: " +suma); + } + +} \ No newline at end of file diff --git a/JAVA/Clase6/HolaMundo/build.xml b/JAVA/Clase6/HolaMundo/build.xml new file mode 100644 index 00000000..145ccb6a --- /dev/null +++ b/JAVA/Clase6/HolaMundo/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project HolaMundo. + + + diff --git a/JAVA/Clase6/HolaMundo/build/built-jar.properties b/JAVA/Clase6/HolaMundo/build/built-jar.properties new file mode 100644 index 00000000..fd01c53e --- /dev/null +++ b/JAVA/Clase6/HolaMundo/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 15:27:47 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase6\\HolaMundo= diff --git a/JAVA/Clase6/HolaMundo/build/classes/HolaMundo.class b/JAVA/Clase6/HolaMundo/build/classes/HolaMundo.class new file mode 100644 index 0000000000000000000000000000000000000000..22b2c79846f03af5cf41956f0a27066102e97405 GIT binary patch literal 540 zcmZvZ%TB^T6o&tSLTRajAb8i}3S8KwiyAj3#+Z6ZFl<~6bb>>AF{L%}v2>w{3m?FT zGM*_0HDMNKa{m9E@66@%>-__Oi+vLX6m@78N+>hbC;X8+0guMc^>89aDMR^KMlwBN zD0X`T0~HuLObb<5|H}JM(^Q016=&4c@^X-jots2PX+KQ_58Vou$vTe%ZeM1RAKSi| z`og}TnI`I3(b2Hb#41B`K|6!~pkP5nknU_ieo~^#Xzca|I@%0|;^%k-A)rh6#k|yY`ZM9wEPHFtP0wqvf{rkcwrMFN!2E8s)<+AGJ%2ZPP02D;Z1xE zy->r258y)?&vcuxgvOh*bIyF{JHNAk{+|B^;9=KB3TX=&2UD14C>--s?)p49bU${F zMNczK@5n&vHw@`&t&>9*ISaOf890~Vt+PmrKB3f*oE94+BB|VFC6{OGA}LL{ zrU9Lr^glDO{TR8;V7JsT?1?>T@|sVE-ZG7&$-PxdM>^z#_d*}3gD5|ZEgLQ#S=crs zdd#qXu?#XeRVTuYXAw_rkN30+<WYTRjHGr0;le;EQOzq14H6;9adPVY%ekJ{yP$ z@MQV%dV0xC8B^4`@3*8DUKUTO6LEJcyA_tjbA~Lna@%MO&VCSxuh3>#M} zo>Yhh8rj>C|YxJlAngI-yMq!R;( z;x=hH+`&3ojB}gNhIFB@u=5>O`5d#r56qW;VfliqhzwzD3Oqv-bx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase6/HolaMundo/nbproject/genfiles.properties b/JAVA/Clase6/HolaMundo/nbproject/genfiles.properties new file mode 100644 index 00000000..951bf88f --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c778461f +build.xml.script.CRC32=79d59106 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=c778461f +nbproject/build-impl.xml.script.CRC32=c67720df +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase6/HolaMundo/nbproject/private/private.properties b/JAVA/Clase6/HolaMundo/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase6/HolaMundo/nbproject/private/private.xml b/JAVA/Clase6/HolaMundo/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase6/HolaMundo/nbproject/project.properties b/JAVA/Clase6/HolaMundo/nbproject/project.properties new file mode 100644 index 00000000..eabaef94 --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/HolaMundo.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/HolaMundo +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=HolaMundo +main.class=HolaMundo +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase6/HolaMundo/nbproject/project.xml b/JAVA/Clase6/HolaMundo/nbproject/project.xml new file mode 100644 index 00000000..01a54b42 --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + HolaMundo + + + + + + + + + diff --git a/JAVA/Clase6/HolaMundo/src/HolaMundo.java b/JAVA/Clase6/HolaMundo/src/HolaMundo.java new file mode 100644 index 00000000..fa2294c7 --- /dev/null +++ b/JAVA/Clase6/HolaMundo/src/HolaMundo.java @@ -0,0 +1,6 @@ +//Nuestro primer programa Hola mundo +public class HolaMundo { + public static void main (String args[]){ + System.out.println("Hola Mundo desde Java"); + } +} diff --git a/JAVA/Clase6/HolaMundo/src/PasoPorValor/PasoPorValor.java b/JAVA/Clase6/HolaMundo/src/PasoPorValor/PasoPorValor.java new file mode 100644 index 00000000..c416e40b --- /dev/null +++ b/JAVA/Clase6/HolaMundo/src/PasoPorValor/PasoPorValor.java @@ -0,0 +1,17 @@ +/* +mostramos como funciona el paso por valor + */ +package PasoPorValor; + +public class PasoPorValor { + public static void main(String[] args) { + var valorX= 20; + System.out.println("valorX = " + valorX); + cambioValor(valorX); //solo le enviamos una copia + } + public static void cambioValor(int arg1){ //parametros por valor + System.out.println("arg1 = " + arg1); + arg1 =15; + } + +} diff --git a/JAVA/Clase6/ProyectoCaja/build.xml b/JAVA/Clase6/ProyectoCaja/build.xml new file mode 100644 index 00000000..e2f3df1a --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ProyectoCaja. + + + diff --git a/JAVA/Clase6/ProyectoCaja/build/built-jar.properties b/JAVA/Clase6/ProyectoCaja/build/built-jar.properties new file mode 100644 index 00000000..cf0dcb5e --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 13:11:05 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase6\\ProyectoCaja= diff --git a/JAVA/Clase6/ProyectoCaja/build/classes/caja/Caja.class b/JAVA/Clase6/ProyectoCaja/build/classes/caja/Caja.class new file mode 100644 index 0000000000000000000000000000000000000000..ad0701e0c446680756053a8188ccd92c5d0783dd GIT binary patch literal 561 zcmYLFO-sX25S-VfA8AvQ)>yv}-ZTe$@FW#4f)FTrP+4HTMpS&@g)bu7G=C_NR6IHIHqPhjw;6-J2QGE*nB0eV7>ag)^ zRNyhn`Gmkk8(VzY3lMtPW+enWj6#qQX)=34;P1~-_YdZ1`-gM5YrY;QM2HC&7CPAA z(Kh)Bx4)QQa+9ePE~30rx+wAF$ffjM>@7E+bF-iv|C38U(Vj54lXtcjCd4C1yEfpg J4D6SvgMZ)%ORWF^ literal 0 HcmV?d00001 diff --git a/JAVA/Clase6/ProyectoCaja/build/classes/caja/PruebaCaja.class b/JAVA/Clase6/ProyectoCaja/build/classes/caja/PruebaCaja.class new file mode 100644 index 0000000000000000000000000000000000000000..4e19524ec1d2d17b60805ae8ae70091a918a838b GIT binary patch literal 1419 zcmaJ>?M@p<6g>m$UF>YYm=Nj`5+@<8owRYGZQ5c&n>eL7H3^N8tE#^SdkPEd9cw?3 zc$2x#y@)T0asBh zgE(SrwN=Z))65y`1^bNx?qk`(0~a6QLxH(5`~uF3Ie(Lj0>b+h{OI8~-4;XXs>#<&Hp4OHLj%V$|H3!@!-C@|XWuz&2fId_Hl zOn^y&N9RKoC4MaXgr|sAhIMoj_SB|la+$eM`q&heU45=~9L1p=Zmak}_oEpb&kJbc zg@bQR`!)rZFRrE+9P1-h&-#>gbW`?X9i9mMdbtfFU`DzngTAk#<+j#G$*^&?E|)Ct z1n!;;)fo8Y(q$h@fK)`JUfeM?xj3N~|*cNzjr7+|2b?}L8-Kw0=?wWbt86Wv zqENPOonpFdEuCVvY`w*eC%ND8-hA#Hw}H2~XW%)fXrH0FX46x)i8;rk)On$0l?sfC z30#MTX`Wc*f0l1diBHHJ?%@V%SiloLEKMw;gQZmWR;CS~(__+pgD=RyF9kdJlB)^& zxA7HMljM7WH9nsfnI2)Cwj8-;@su{3{*9F3Ykb3bnvu`Q^IbZ&@I7q>?%Q}p=JLOj CDN7pw literal 0 HcmV?d00001 diff --git a/JAVA/Clase6/ProyectoCaja/manifest.mf b/JAVA/Clase6/ProyectoCaja/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/build-impl.xml b/JAVA/Clase6/ProyectoCaja/nbproject/build-impl.xml new file mode 100644 index 00000000..908b924f --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/genfiles.properties b/JAVA/Clase6/ProyectoCaja/nbproject/genfiles.properties new file mode 100644 index 00000000..5f5ff459 --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b04afa17 +build.xml.script.CRC32=2bd8cc04 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=b04afa17 +nbproject/build-impl.xml.script.CRC32=6f0f4672 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/private/private.properties b/JAVA/Clase6/ProyectoCaja/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/private/private.xml b/JAVA/Clase6/ProyectoCaja/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/project.properties b/JAVA/Clase6/ProyectoCaja/nbproject/project.properties new file mode 100644 index 00000000..3c5e800a --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ProyectoCaja.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/ProyectoCaja +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=ProyectoCaja +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/project.xml b/JAVA/Clase6/ProyectoCaja/nbproject/project.xml new file mode 100644 index 00000000..cceef7e3 --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ProyectoCaja + + + + + + + + + diff --git a/JAVA/Clase6/ProyectoCaja/src/caja/Caja.java b/JAVA/Clase6/ProyectoCaja/src/caja/Caja.java new file mode 100644 index 00000000..dd5f559f --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/src/caja/Caja.java @@ -0,0 +1,24 @@ + +package caja; //packeage + +public class Caja { //Clase publica caja + //atributos (caracteristicas) + int ancho; + int alto; + int profundo; + + //Metodos y constructores (acciones) + public Caja(){ //Constructor 1 = vacio + + } + //Constructor con parametros + public Caja(int ancho, int alto, int profundo) { //Constructor 2 + this.ancho = ancho; + this.alto = alto; + this.profundo = profundo; + } + + public int calcularVolumen() { //metodo para calcular + return ancho*alto*profundo; + } +} diff --git a/JAVA/Clase6/ProyectoCaja/src/caja/PruebaCaja.java b/JAVA/Clase6/ProyectoCaja/src/caja/PruebaCaja.java new file mode 100644 index 00000000..945c2ba6 --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/src/caja/PruebaCaja.java @@ -0,0 +1,31 @@ +/* +proyecto caja : +Ejercicio 1: Crear un proyecto segun las especificaciones mostradas a continuacion +la formula es: volumen = ancho*alto*profundidad + */ +package caja; + + +public class PruebaCaja { + public static void main(String[] args) { //metodo main + //variables locales + int medidaAncho = 3; //valores ingresados en codigo duro + int medidaAlto = 2; + int medidaProf = 6; + + Caja caja1 = new Caja(); //instanciamos el objeto, constructor vacio + caja1.ancho = medidaAncho; //le pasamos los valores al objeto + caja1.alto = medidaAlto; + caja1.profundo = medidaProf; + int resultado = caja1.calcularVolumen(); //llamamos al metodo + + //primer resultado + System.out.println("Resultado volumen de caja 1: " + resultado); + + Caja caja2 = new Caja(2, 4, 6); // Llamamos al constructor 2 con nuevos argumentos + //llamamos con el nuevo objeto al metodo para un nuevo calculo + System.out.println("Resultado volumen caja 2: "+ caja2.calcularVolumen()); + + } + +} diff --git a/JAVA/Clase7/EjercicioCiclos11/build.xml b/JAVA/Clase7/EjercicioCiclos11/build.xml new file mode 100644 index 00000000..3d94b70c --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos11. + + + diff --git a/JAVA/Clase7/EjercicioCiclos11/build/built-jar.properties b/JAVA/Clase7/EjercicioCiclos11/build/built-jar.properties new file mode 100644 index 00000000..e689c1dc --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 19:42:34 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase7\\EjercicioCiclos11= diff --git a/JAVA/Clase7/EjercicioCiclos11/build/classes/ciclos11/Ciclos11.class b/JAVA/Clase7/EjercicioCiclos11/build/classes/ciclos11/Ciclos11.class new file mode 100644 index 0000000000000000000000000000000000000000..f3fe7031cc5f0f90f5571e0e5e1ca17d31d959ab GIT binary patch literal 1083 zcmaJ=O-~a+7=ET*XsIofZ$Y7}g0`rvc(jHPt3*f7#L+%A! zHND;a1K}Hn;m1-*v(At#mg*B^mCj-W8HU*oZ;OgnJ~ywVY0)V*T$z|*y0~4co-@@< zBvrGVK^D0bMza`0p3E)ajTax$o436i8mZMwt^~t)+|oxoB93`eJe54qO@>mjN63$i zSJ9nNE1^tzz)3IMa;cue1X1|X4|Ke?=2iL!2B)GM#6DJ)O1$WH_C>VE_XE0_sA``F zbskBp_b(mOl9bA1^#W6ws5)FKhMD5)fe89(mg)>l(!WJG9yKk=B`}6`80kjWH=3~9 z47r-&etU<9{QxpG-Hm*)DQ$?kvouz1)u>NTv^KGcc(@}>OE==NVJv5G8+TGD+WwRn zmd-mM)uC<+uNPsjWt*HlN5>2w`jtIxdLP&$ea=-Q5b;t~>vlIBEOtNDf#m-&+&d1% zCGf#2oVDvBMTG}JO&U>7<1Rz-S>T@4$!!Rin(C@*e1VU=O|LIo~MEQJRQi~onx81$-u8yKgNv0nnr4h`*-qFXaR0!!&zU*PkqE_Vd1^pc$Z9k`tySoPLKk=;)>-> z!t%}&vt>*mN9?0CQaSRGM}fk#zFfjNbe_jGI$8ZX7Dy(rNUK18UD9a!f5CCsPqIu> aYWDpmZjnqAVu}70+&jfF+@}=RF!vXT%nlF$ literal 0 HcmV?d00001 diff --git a/JAVA/Clase7/EjercicioCiclos11/manifest.mf b/JAVA/Clase7/EjercicioCiclos11/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/build-impl.xml b/JAVA/Clase7/EjercicioCiclos11/nbproject/build-impl.xml new file mode 100644 index 00000000..97519412 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/genfiles.properties b/JAVA/Clase7/EjercicioCiclos11/nbproject/genfiles.properties new file mode 100644 index 00000000..7fa13619 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a710e4ef +build.xml.script.CRC32=f74aa0bf +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a710e4ef +nbproject/build-impl.xml.script.CRC32=5b577858 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.properties b/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.xml b/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.xml new file mode 100644 index 00000000..fc613fcb --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase7/EjercicioCiclos11/src/ciclos11/Ciclos11.java + + + diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/project.properties b/JAVA/Clase7/EjercicioCiclos11/nbproject/project.properties new file mode 100644 index 00000000..93f43a8a --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos11.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos11 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos11 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/project.xml b/JAVA/Clase7/EjercicioCiclos11/nbproject/project.xml new file mode 100644 index 00000000..b4d474bd --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos11 + + + + + + + + + diff --git a/JAVA/Clase7/EjercicioCiclos11/src/ciclos11/Ciclos11.java b/JAVA/Clase7/EjercicioCiclos11/src/ciclos11/Ciclos11.java new file mode 100644 index 00000000..0d23b816 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/src/ciclos11/Ciclos11.java @@ -0,0 +1,18 @@ +/* +Ejercicio 11: Diseñar un programa que muestre el producto de los 10 primeros +numeros impares +hacerlo con JOptionPane + */ +package ciclos11; + +import javax.swing.JOptionPane; + +public class Ciclos11 { + public static void main(String[] args) { + long producto = 1; + for(int i = 1; i<= 20; i+=2){ + producto *=i; + } + JOptionPane.showMessageDialog(null,"El producto de los numeros impares es: "+ producto); + } +} diff --git a/JAVA/Clase7/EjercicioCiclos12/build.xml b/JAVA/Clase7/EjercicioCiclos12/build.xml new file mode 100644 index 00000000..af8d84b0 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos12. + + + diff --git a/JAVA/Clase7/EjercicioCiclos12/build/built-jar.properties b/JAVA/Clase7/EjercicioCiclos12/build/built-jar.properties new file mode 100644 index 00000000..68919758 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 19:58:16 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase7\\EjercicioCiclos12= diff --git a/JAVA/Clase7/EjercicioCiclos12/build/classes/ciclos12/Ciclos12.class b/JAVA/Clase7/EjercicioCiclos12/build/classes/ciclos12/Ciclos12.class new file mode 100644 index 0000000000000000000000000000000000000000..eb2438bf3c0c9548222872ae6e5204eea98d19c1 GIT binary patch literal 1278 zcmaJ=O;Zy=5Pd@yHY_1P_!1OY6)-_1f{IEIDT9=uf>;#_51xi(3-px#E)5a)K6lKxV!OUzr+t@HzSzQWS zl$T1ps8zOvzrnXWvLy1l$h}SO%TR9^Ewe2t+ur;+rVLS4xKs=S$=6L8oc3Xpfl2yv zgyViWB)I^_(Ef%Oji#U;fmi7s)Mw4mSunh~yT+@HRGfmY`9-lJ!(=;83z`l`M0e$> z)+R7MudWHRtxG{y8)hBc#XTGM!(q%ZjGs+Ysy)3c()C>H^I17b124+0U`pn*-C>%c{Y*?7z_`hO_Rson)##R$Fa@M{4J zUpK8|q@_tRlC4u;!M>avyR?SKKnJ-2u{r?PaGkVvjAMcjUAyMIK)sGA_AAzQP{M`DW7f%)Pp`GFig@Vesh@s!gO+nxQ literal 0 HcmV?d00001 diff --git a/JAVA/Clase7/EjercicioCiclos12/manifest.mf b/JAVA/Clase7/EjercicioCiclos12/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/build-impl.xml b/JAVA/Clase7/EjercicioCiclos12/nbproject/build-impl.xml new file mode 100644 index 00000000..439e944f --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/genfiles.properties b/JAVA/Clase7/EjercicioCiclos12/nbproject/genfiles.properties new file mode 100644 index 00000000..8a1c0c7c --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=bf247085 +build.xml.script.CRC32=7629327c +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=bf247085 +nbproject/build-impl.xml.script.CRC32=30253951 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.properties b/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.xml b/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.xml new file mode 100644 index 00000000..72acee80 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/Ciclos12.java + + + diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/project.properties b/JAVA/Clase7/EjercicioCiclos12/nbproject/project.properties new file mode 100644 index 00000000..ec7f00a9 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos12.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos12 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos12 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/project.xml b/JAVA/Clase7/EjercicioCiclos12/nbproject/project.xml new file mode 100644 index 00000000..de9ec905 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos12 + + + + + + + + + diff --git a/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/Ciclos12.java b/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/Ciclos12.java new file mode 100644 index 00000000..dfd21991 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/Ciclos12.java @@ -0,0 +1,24 @@ +/* +Ejercicio 12: Pedir un numero y calcular su factorial hacerlo con las dos clases +Scanner y JOptionPane + */ +package ciclos12; + +// import java.util.Scanner; +import javax.swing.JOptionPane; + + +public class Ciclos12 { + public static void main(String[] args) { + //Scanner leer = new Scanner(System.in); + long factorial = 1; + //System.out.println("Digite un numero: "); + int numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + for(int i =1; i <= numero; i++){ + factorial *= i; + } + //System.out.println("\nEl factorial del numero ingresado es: "+ factorial); + JOptionPane.showMessageDialog (null, "El factorial del numero ingresado es : "+factorial); + } + +} diff --git a/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/JOptionpane.java b/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/JOptionpane.java new file mode 100644 index 00000000..84929d1c --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/JOptionpane.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package ciclos12; + +/** + * + * @author Santiago + */ +class JOptionpane { + +} diff --git a/JAVA/Clase7/Encapsulamiento/build.xml b/JAVA/Clase7/Encapsulamiento/build.xml new file mode 100644 index 00000000..80c330ec --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Encapsulamiento. + + + diff --git a/JAVA/Clase7/Encapsulamiento/build/built-jar.properties b/JAVA/Clase7/Encapsulamiento/build/built-jar.properties new file mode 100644 index 00000000..241bcf05 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 17 Oct 2023 10:30:46 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase7\\Encapsulamiento= diff --git a/JAVA/Clase7/Encapsulamiento/build/classes/dominio/Persona.class b/JAVA/Clase7/Encapsulamiento/build/classes/dominio/Persona.class new file mode 100644 index 0000000000000000000000000000000000000000..3a0a5234601d913ee0f3c7c243d79ee956b717de GIT binary patch literal 1601 zcmaJ>YflqF6g|^-%R*_TJOr_5k!`8e_k$uIY$cjhBq_n9#1Gqc0t?$6vb!bWpZFt8 z)I?&!2Y-M+%6MmYX$!4>*qxcXXYQPP&Yk`J=i(QDGF~MRKro7sf-oWslSkUARx&j6 zp!A`6#9IzSWJ5P~XOkhQ=J(==As$6S!59>VWLtFTt0?Vo%NC|aXj62W7H3G;`l;%U zrJDz3xp_iC5|a#ZZs@dCYYPU}kYCaYZeWTs*j;Y8;cA*VPAizfEW=DkJLVN(wlwFX z?i|w0b~Mwm8B}%nsA?lW9Hbf0+t9;Lf(M!IV0ZMcnQ~G9wt}iH}TE_k|$gs}!MKmywWKm7p=*e$$tc zU=0R^U<1LB+K|YYBRmrr5_QqFT6{~F)hWJlYtk&T|FsZ~?O58$d+r>Hww;XNK>`o) zD2m6@h$jrWzOTA@Dvo){%j|ixrL`PkoiThKEX)UbN#AN_+u(MtCd6^~q&)1?K;+8C z-Ln%u0=_?h_nNjmD7&Acq8UbAcX&C5XAH$1F8ejRpY{56JM#!04XN z(fcN?I)n_15=MB^<+TWc{N{G)h#s@B`6rGzmZ+6>)=8ZfY-0*iX%X65WS;!Hu82xR^8X+rt&v1l zd)92YRsm^g4LvD(#xKZ4T=%Isz$)#l97NIOejjTz%6^lDJ;ifcC1~~n>)62DUu2jv ABLDyZ literal 0 HcmV?d00001 diff --git a/JAVA/Clase7/Encapsulamiento/build/classes/test/PersonaPrueba.class b/JAVA/Clase7/Encapsulamiento/build/classes/test/PersonaPrueba.class new file mode 100644 index 0000000000000000000000000000000000000000..91a97b4154440f2825e0ae3b1aff4b466d4afbd2 GIT binary patch literal 2144 zcmaJ?TXR!Y6#h0%dy+J?TG z3@`ix9~|HO2kJwasWUph`k?>FaqWF_Ym*_FS;@M8Ywfl6{`!lr04j4vm*sdMiVi-!Liw2?$;}uyWnapem&zCNbBF?U zz&V^}nAC6&=c5|yD!bznpaBJ?i>l-c3A}<=8DdottjSu*6Aa1JfQ%*xn?iq);o_ih z{UD=AF(mFaxNEIcU0$}O%6K_}IfXgqw=w5 z{?kYoNzc71c~1^dQ~C99Kdv&I=$pZ=I?E6*$c9%I%eIEuTC1?0D{2yHHSS0m_<_gk zt0LHz6@PpLpT+SxzA(VmNt767x;tjOO}Q&F;i`pevCPYX^!6Bj>>ak2VHor-cPozY zXYx|+HtM5{~5wzu^R=wd&mC7D;@)8`{{RK6Z?? zUX}vk3QyUUq;v##!>}|L)A5#RmO>oCR;PhmYKJDkRz>IpUKew(*AdKg>9sLuRpu9B zZgw$e!1@=sR#!L7m%kLNPUjcB}Wen z(KX^S^vmdX`0{hGU$uIjs8WNrdxK~qG{8r=Ph1QIY?6eW*(%u$k?h~!VLUQpNsJCX z$MO7cn3y}jDPSLG)c<{02bj_9oOx*<>5g!|$L6&ITtQM5hnnrSVVNF7Rq_};oo6tLG>%ip zCUA@7t8{aIf+=ic8cotZqvz@eoW)P{T>Xsm_yrdJq`v<{rK>htVXN>lio}iKFFe3Q zYGf0S==)GT`q(1PF+8TYpd4|0O8T; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/genfiles.properties b/JAVA/Clase7/Encapsulamiento/nbproject/genfiles.properties new file mode 100644 index 00000000..315ecc70 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8bb31896 +build.xml.script.CRC32=bd535e09 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=8bb31896 +nbproject/build-impl.xml.script.CRC32=33e27fa5 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/private/private.properties b/JAVA/Clase7/Encapsulamiento/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/private/private.xml b/JAVA/Clase7/Encapsulamiento/nbproject/private/private.xml new file mode 100644 index 00000000..d868af82 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase7/Encapsulamiento/src/dominio/Persona.java + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase7/Encapsulamiento/src/test/PersonaPrueba.java + + + diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/project.properties b/JAVA/Clase7/Encapsulamiento/nbproject/project.properties new file mode 100644 index 00000000..a839adc3 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Encapsulamiento.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/Encapsulamiento +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=Encapsulamiento +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/project.xml b/JAVA/Clase7/Encapsulamiento/nbproject/project.xml new file mode 100644 index 00000000..f5740099 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Encapsulamiento + + + + + + + + + diff --git a/JAVA/Clase7/Encapsulamiento/src/dominio/Persona.java b/JAVA/Clase7/Encapsulamiento/src/dominio/Persona.java new file mode 100644 index 00000000..b1ea16ec --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/src/dominio/Persona.java @@ -0,0 +1,48 @@ + +package dominio; + + +public class Persona { + //Atributos + private String nombre; + private double sueldo; + private boolean eliminado; + + //Constructor + public Persona(String nombre, double sueldo, boolean eliminado){ + this.nombre = nombre; + this.eliminado = eliminado; + this.sueldo = sueldo; + } + //metodos set y get (lo abrimos con click derechos sobre la linea/insert code/elegimos + + public String getNombre() { + return nombre; + } + + public void setNombre(String nombre) { + this.nombre = nombre; + } + + public double getSueldo() { + return sueldo; + } + + public void setSueldo(double sueldo) { + this.sueldo = sueldo; + } + + public boolean isEliminado() { + return eliminado; + } + + public void setEliminado(boolean eliminado) { + this.eliminado = eliminado; + } + + public String toString(){//Convierte en una cadena cada atributo + return "Pesona [ nombre: "+ this.nombre + + ", sueldo: "+ this.sueldo+ + ", eliminado: " + this.eliminado+ "]"; + } +} diff --git a/JAVA/Clase7/Encapsulamiento/src/test/PersonaPrueba.java b/JAVA/Clase7/Encapsulamiento/src/test/PersonaPrueba.java new file mode 100644 index 00000000..f252e373 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/src/test/PersonaPrueba.java @@ -0,0 +1,37 @@ + +package test; + +import dominio.Persona; +//import dominio.*; //esto lo usamos para importar todas las clases dentro del paquete + +public class PersonaPrueba { + public static void main(String[] args) { + Persona persona1 = new Persona("Osvaldo", 57.000, false); + System.out.println("persona1 = " + persona1); // asi mostramos el toString + System.out.println("persona1 su nombre es: " + persona1.getNombre()); + //Modificamos a traves de los metodos + persona1.setNombre("Juan Ignacio"); //Esta es la unica forma de hacerlo cuando esta encapsulado el atributo + //persona1.nombre = "Juan Ignacio"; //asi lo hacemos cuando no esta encapsulado + //System.out.println("Nombre es: " + persona1.nombre()); esto tambien nos daria error + System.out.println("persona1 su nombre modificado: " + persona1.getNombre()); + System.out.println("persona1 el resultado para el sueldo: "+ persona1.getSueldo()); + System.out.println("persona1 para obtener el booleano: " + persona1.isEliminado()); + + //Tarea: Crear otro objeto de tipo Persona, asignar valores de manera inicial + //e imprimir, luego modificar sus valores y volver a imprimir + + System.out.println("persona1 = " + persona1);// asi mostramos el toString + + Persona persona2 = new Persona("Santiago", 45.000, true); + System.out.println("\npersona2 su nombre es: " + persona2.getNombre()); + System.out.println("El sueldo es de: "+ persona2.getSueldo()); + + persona2.setNombre("Pablo"); + persona2.setSueldo(74.000); + System.out.println("persona2 su nombre modificado: " + persona2.getNombre()); + System.out.println("persona2 el resultado para el sueldo: "+ persona2.getSueldo()); + System.out.println("persona2 para obtener el booleano: " + persona2.isEliminado()); + + + } +} diff --git a/JAVA/Clase8/ContextoEstatico/build.xml b/JAVA/Clase8/ContextoEstatico/build.xml new file mode 100644 index 00000000..ad71228b --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ContextoEstatico. + + + diff --git a/JAVA/Clase8/ContextoEstatico/build/built-jar.properties b/JAVA/Clase8/ContextoEstatico/build/built-jar.properties new file mode 100644 index 00000000..7409f48c --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 17 Oct 2023 11:06:21 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase8\\ContextoEstatico= diff --git a/JAVA/Clase8/ContextoEstatico/build/classes/domain/Persona.class b/JAVA/Clase8/ContextoEstatico/build/classes/domain/Persona.class new file mode 100644 index 0000000000000000000000000000000000000000..1458c3ed09a856e4b07f1abd5d143d5a4c0665ed GIT binary patch literal 1538 zcmaJ>+fEZv6kVqsI&B@=Qn`bO3euKKMZBOD9&AEvQqcs055~mPb^-(K95QntA;$mk zBYf~iOnC4E{3zo-GebM2)h2VU`?A*B`}Fspi(ddrc$!26Q5~9r0mK+Ghy0Wmo7~|7Be=;D&JhEn7-JY~@guV=>^hfkEO|gH zS8`jr3=6qRZ^C@<5yMEX_cXu9pp`{~aHp%5ZEl~mYNoTxYfX=dsPpC?cPzCJ4mEjT zQQAzkTYwS~-!~-z>n2CiRp`p?bEV}fDt(6cI2jbFaw!9YLEfQlf^N41v4?YgsV2zd z(j+d0Uj~NcjyQ4Z=9Z<{8G+0zs$2x)xe(Ho4nKZr$^+4G(=jY3v4WzGd#Vbn40D~z zTK1_pGK+p>zc5?8E`@W(@F^^GVCV;Z!R2lmXJ2v~6zYW>@ zU0Vw45rio7W^>1qW+{#}hM9o(hjycFu%%hQdpFoe5~gC?rc-Wm*EL-oj~M2Ac=w~D zW1XV^-;~~o&mFg@=OfhNQ5vc7X_ZtDgyx8PVKm3V=xL7AI6=F2bgt|t3O~ULi|5e4 zVNiSj9fJj0oMY&#=Q>H_D7k@xX%sGjEQT;lVMZ|J-FZPUjT^M1a9%Qcc9_AZeiQ&oncrs4?$!oGfPvybo%PW@S4tNjN$H)L#oIg+@tKQo}dGZI2(rop!3?Wq`sD z45?g^P_Ef7XCE;&VLSU~AW5t+)y3aWKSwIehd9UDoMWEg3i&+l(x~JO1JS=+0g~$r zWT9P~4iHtBt2!(ZkmY{>QI%Fea%~{%L`q4TQi{;0Ur_aM713%4Q7Rx7Mc%_*z#`46 UdzR?Cj|a3%(&`}|;|V7I0-v-r7XSbN literal 0 HcmV?d00001 diff --git a/JAVA/Clase8/ContextoEstatico/build/classes/test/PersonaPrueba.class b/JAVA/Clase8/ContextoEstatico/build/classes/test/PersonaPrueba.class new file mode 100644 index 0000000000000000000000000000000000000000..4a19ed5548f9628578a7901171c41a6306fa62aa GIT binary patch literal 1573 zcmaJ>Yi|=r6g?9sS$ng2ISCY6Ql|}II{`!bu6Y#P2HZNq#laNy)5IPnOV+#A?ieZm zq(7ok)v8LWAoU0IM^!!JU9gR#e%RTW`#AU9J9q9s|DOE~pp2hvOdw@p(!ms_1r}b) zSF+?u|Dg0_|D|eaf$2N0@9KL3seGYnAuTZ14m#5HOLY}SfiKgr1*RT^uJUYHa17L} zz)HS00Bh*b^$*I0W(M4J>opP3>R~%fx zMS+VQd88_V-;(;ds}H%0wDff(u%54tGAtLyso1!L%NE{u@PT2w)aN=HPQdD#;GUnx zs=(x~)W=znn~gPmWZ`26>$obA)hg0&s!|=4^_ce?y9Jz@yi&USu<;n5q4N zxs5X{11ET|FTFzP4yBuC_^>bC_zSsBey_3i;uP0*sk?E4>nGS4gulixCa{fJ_Q)J^ zoJ^Zoz%48?hb7!$gl%dJy<$v(vb#LlT<_sN3FdGe-*7iU%?uupe2S + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/genfiles.properties b/JAVA/Clase8/ContextoEstatico/nbproject/genfiles.properties new file mode 100644 index 00000000..29ec3a25 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7e4360fd +build.xml.script.CRC32=6efedea3 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=7e4360fd +nbproject/build-impl.xml.script.CRC32=ff84682e +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/private/private.properties b/JAVA/Clase8/ContextoEstatico/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/private/private.xml b/JAVA/Clase8/ContextoEstatico/nbproject/private/private.xml new file mode 100644 index 00000000..c0391235 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase8/ContextoEstatico/src/domain/Persona.java + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase8/ContextoEstatico/src/test/PersonaPrueba.java + + + diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/project.properties b/JAVA/Clase8/ContextoEstatico/nbproject/project.properties new file mode 100644 index 00000000..bf88db9a --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ContextoEstatico.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/ContextoEstatico +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=ContextoEstatico +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/project.xml b/JAVA/Clase8/ContextoEstatico/nbproject/project.xml new file mode 100644 index 00000000..e18d317e --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ContextoEstatico + + + + + + + + + diff --git a/JAVA/Clase8/ContextoEstatico/src/domain/Persona.java b/JAVA/Clase8/ContextoEstatico/src/domain/Persona.java new file mode 100644 index 00000000..13389db0 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/src/domain/Persona.java @@ -0,0 +1,52 @@ + +package domain; + + +public class Persona { + + + //Cargamos los atributos + private int idPersona; + private static int contadorPersona; + private String nombre; + + //Constructor + + public Persona(String nombre){ + this.nombre = nombre; + //Incrementar el contador por cada objeto nuevo + Persona.contadorPersona ++; //no utilziar el operador "this" + //Vamos a asignar un nuevo valor ala variable idPersona + this.idPersona = Persona.contadorPersona; + } + + public static int getContadorPersona() { + return contadorPersona; + } + + public static void setContadorPersona(int aContadorPersona) { + contadorPersona = aContadorPersona; + } + + public int getIdPersona() { + return this.idPersona; + } + + public void setIdPersona(int idPersona) { + this.idPersona = idPersona; + } + + public String getNombre() { + return this.nombre; + } + + public void setNombre(String nombre) { + this.nombre = nombre; + } + + @Override + public String toString() { + return "Persona{" + "idPersona=" + idPersona + ", nombre=" + nombre + '}'; + } + +} diff --git a/JAVA/Clase8/ContextoEstatico/src/test/PersonaPrueba.java b/JAVA/Clase8/ContextoEstatico/src/test/PersonaPrueba.java new file mode 100644 index 00000000..79960c53 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/src/test/PersonaPrueba.java @@ -0,0 +1,32 @@ + +package test; + +import domain.Persona; + + +public class PersonaPrueba { + + private int contador; + + public static void main(String[] args) { + Persona persona1 = new Persona("Ariel"); + System.out.println("persona1 = " + persona1); + Persona persona2 = new Persona("Naty"); + System.out.println("persona2 = " + persona2); + imprimir(persona1); + imprimir(persona2); + //this.contador = 10; // No se puede referenciar desde un contexto estatico + PersonaPrueba personaP1 = new PersonaPrueba(); + System.out.println(personaP1.getContador()); + + } + + public static void imprimir(Persona persona){ + System.out.println("persona = " + persona); + } + + public int getContador(){ + imprimir(new Persona ("Liliana")); + return this.contador; + } +} diff --git a/JAVA/Clase8/herencia.uxf b/JAVA/Clase8/herencia.uxf new file mode 100644 index 00000000..e69de29b diff --git a/JAVASCRIPT/Leccion01/01-01-holamundo.js b/JAVASCRIPT/Leccion01/01-01-holamundo.js new file mode 100644 index 00000000..3859124a --- /dev/null +++ b/JAVASCRIPT/Leccion01/01-01-holamundo.js @@ -0,0 +1,6 @@ + +var nombre = "Santiago"; +nombre = "Alberto \nAriel\n"; +var apellido = "Penafiel "; +console.log(nombre+apellido) + diff --git a/JAVASCRIPT/Leccion01/HolaMundo.js b/JAVASCRIPT/Leccion01/HolaMundo.js new file mode 100644 index 00000000..97adfbdb --- /dev/null +++ b/JAVASCRIPT/Leccion01/HolaMundo.js @@ -0,0 +1,4 @@ +var nombre = "Santiago"; +nombre = "Hola Mundo desde Javascript"; +console.log(nombre); + diff --git a/JAVASCRIPT/Leccion01/index.html b/JAVASCRIPT/Leccion01/index.html new file mode 100644 index 00000000..370302a2 --- /dev/null +++ b/JAVASCRIPT/Leccion01/index.html @@ -0,0 +1,12 @@ + + + + + + Javascript + + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion02/02-01-ConcatenacionDeCadenas.js b/JAVASCRIPT/Leccion02/02-01-ConcatenacionDeCadenas.js new file mode 100644 index 00000000..ec0fa75e --- /dev/null +++ b/JAVASCRIPT/Leccion02/02-01-ConcatenacionDeCadenas.js @@ -0,0 +1,33 @@ +var nombre = 'Jose'; +var apellido = ' Montes'; +var nombreCompleto = nombre + ' ' +apellido; // Primera concatenacion +console.log(nombreCompleto); +var nombreCompleto2 = 'Ariel' + ' ' + 'Betancud' ; // Segunda concatenacion +console.log(nombreCompleto2); +var juntos = nombre + 219; //Lee izquierda a derecha siguienda la cadena lee el numero como tipo Str +console.log(juntos); +juntos = nombre + (78+ 17); // Aqui se puede diferenciar a traves de parentesis +console.log(juntos); +juntos = 78 +17+ nombre; +console.log(juntos); + +nombre += apellido ; // Tercera Concatenacion usando el operador simplificado +console.log(nombre); + +//Hoy ya no se usa var, se utiliza let y const +let nombre2 = "Pedro"; +console.log(nombre2); + +const apellido2 = "Lepes"; +//apeliido2 = "Peres"; una constante no puede ser modificada +console.log(apellido2); + +let x, y; //Se puede crear varias variables dentro de una misma linea +x = 17, y = 21; // Se puede hacer asigancion de varios variables dentro de la misma +let z = x + y; // Se asigna el valor de la operacion +console.log(z); + +let _1num = 31; //No utilizar numeros para iniciar el nombre de la una variable +let $break = "rompe"; // no utilizar palabras reservadas para variables +console.log(_1num); +console.log($break); \ No newline at end of file diff --git a/JAVASCRIPT/Leccion02/02-01-TiposDatos.js b/JAVASCRIPT/Leccion02/02-01-TiposDatos.js new file mode 100644 index 00000000..e622ddb5 --- /dev/null +++ b/JAVASCRIPT/Leccion02/02-01-TiposDatos.js @@ -0,0 +1,62 @@ +//Tipos de Datos en JavaScript +/* +La sintaxis para los comentarios es muy similar a Java +*/ + +var nombre ='Ariel'; //Tipo Str +console.log(typeof nombre); +nombre = 7; +console.log(typeof nombre); +nombre = 12.3; +console.log(typeof nombre) + +var numero = 3000; //tipo numerico +console.log(numero); + +var objeto = { //creamos un objeto + nombre :"Ariel", + apellido : "Betancud", + telefono : "261456775" +} +console.log(objeto); + +//Tipo de dato boolean +var bandera = true; +console.log(typeof bandera); + +// Tipo de dato funcion +function miFuncion(){} +console.log(typeof miFuncion); + +//Tipo de dato symbol + +var simbolo = Symbol("Mi simbolo"); +console.log(simbolo); + +//Tipo de dato clase +class Persona{ + constructor(nombre,apellido){ + this.nombre = nombre; + this.apellido = apellido; + } +} +console.log(typeof Persona); + +//Tipo de dato undefined +var x; +console.log(typeof x); + +x = undefined; +console.log(typeof x); +// null: significa ausencia de valor +var y = null; //null no es un tipo de dato, pero su origen es de tipo object +console.log(typeof y); + +//Tipo de dato array y Empty String +var autos = ['Citroen','Audi','Bmw','Ford']; +console.log(autos); +console.log(typeof autos); //preguntamos que tipo de datos es + +var z = ''; +console.log(z); //Esto se refiere a que es una cadena vacia: +console.log(typeof z); diff --git a/JAVASCRIPT/Leccion02/index.html b/JAVASCRIPT/Leccion02/index.html new file mode 100644 index 00000000..f8a15a65 --- /dev/null +++ b/JAVASCRIPT/Leccion02/index.html @@ -0,0 +1,12 @@ + + + + + + JavaScript + + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion03/03-01-OperadoresJavaScript.js b/JAVASCRIPT/Leccion03/03-01-OperadoresJavaScript.js new file mode 100644 index 00000000..551eacbc --- /dev/null +++ b/JAVASCRIPT/Leccion03/03-01-OperadoresJavaScript.js @@ -0,0 +1,28 @@ +//Ejercicio para encontrar numeros pares e impares +let parImpar = 1; +if(parImpar %2 == 0){ + console.log("Es un numero Par") + } + else { + console.log("Es un numero Impar") + } + + //Ejercicio: Es mayor de edad + let edad = 18, adulto = 18; + if(edad >= adulto) { + console.log ("Usted es una persona adulta") + } + else { + console.log("Usted es una persona menor de edad") + } + +//Ejercico : Dentro de un rango + +let dentroRango = 10; +let valMin =0,valMax= 10; +if(dentroRango >=valMin && dentroRango <= valMax){ + console.log("Esta dentro del rango establecido") +} +else{ + console.log("Esta fuera del rango establecido") +} \ No newline at end of file diff --git a/JAVASCRIPT/Leccion03/index.html b/JAVASCRIPT/Leccion03/index.html new file mode 100644 index 00000000..9857d0a3 --- /dev/null +++ b/JAVASCRIPT/Leccion03/index.html @@ -0,0 +1,11 @@ + + + + + + JavaScript + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion04/04-01-Ejercicios.js b/JAVASCRIPT/Leccion04/04-01-Ejercicios.js new file mode 100644 index 00000000..85de5adb --- /dev/null +++ b/JAVASCRIPT/Leccion04/04-01-Ejercicios.js @@ -0,0 +1,51 @@ + + + + +/* +Ampliando el uso de Var, let y const + +con var puedes reasignar en cualquier momento este forma parte del ambito global +Un error es que se sobreecriba +*/ + +var nombre = "Ariel"; +nombre = "Osvaldo"; +console.log(nombre); + +function saludar(){ + var nombre = "Natalia" + console.log(nombre); +} +console.log(nombre) // Aqui no lee el dato en la funcion + +if (true){ + var edad = 34; + console.log(edad); + } +console.log(edad) //En la funcion funciono correctamente, en la estructura if fallo + +/* +let: esta puede ser reasignada en cualquier momento, la diferencia es que su ambito es de bloque, +solo disponible dentro de un bloque de llaves o de una funcion +*/ + +function saludar2(){ + let nombre2 = "Ariel" + console.log(nombre2); +} +//console.log(nombre2) + +if (true){ + let edad2 = 33; + console.log(edad2); +} +//console.log(edad2); + +/* +const se utiliza para valores constantes que no se pueden ser reasignados +*/ +const fechaNacimiento = 2006; +console.log(fechaNacimiento); +///fechaNacimiento = 2003; +//console.log(fechaNacimiento); //solo se ejecuta el console anterior \ No newline at end of file diff --git a/JAVASCRIPT/Sintaxis Js y Java.txt.txt b/JAVASCRIPT/Sintaxis Js y Java.txt.txt new file mode 100644 index 00000000..f18f9fc0 --- /dev/null +++ b/JAVASCRIPT/Sintaxis Js y Java.txt.txt @@ -0,0 +1,70 @@ +Sintaxis similares entre Java y JavaScript +Operadores Simplificados / Compuestos + ++= +-= +*= +/= +%= +**= + +Operadores Aritmeticos + ++ +- +* +/ +% //Residuo +** // exponente + +Operadores de Asignacion += + +Los opreadores simplificados tambien asignan + +Operadores de comparacion (booleano) + +== Revisa el valor sin importar el tipo de dato +=== Revisa el valor y el tipo tambien + + +Documentar +// = para una linea de comentarios +/* */ = para multiples lineas de comentarios + +Secuencias de Escape +\' = Mostrar una comilla simple dentro de una cadena en la salida de informacion +\" = Mostrar doble comilla dentro de una cadena en la salida de informacion +\\ = Barra invertida, diagonal inversa , es para mostrar un back slash +\n = es es un salto de linea +\r = Retorno +\t = Tabulacion +\b = Retroceso +\f = Salto de pagina + +Operador de Aumento +++ +Ejemplo : Let z = ++a; // pre incremento +Ejemplo : z = a++; //post incremento + +Operador Decremento +-- +Ejemplo : Let z = --a; // pre decremento +Ejemplo : z = a--; //post decremento + +Operador Distinto (booleano) + +!= comprueba el valor y sin revisar el tipo +!== comprueba el valor y tambien el tipo + +Operadores Relacionales (booleano) + +< +> +<= +>= + +Operadores Logicos + +And -> && Doble aspersan +Or -> \ No newline at end of file diff --git a/Python/Leccion4/EjercicioRango.py b/Python/Leccion4/EjercicioRango.py new file mode 100644 index 00000000..3d4e00db --- /dev/null +++ b/Python/Leccion4/EjercicioRango.py @@ -0,0 +1,26 @@ +""" +Sintaxis de range (inicio, fin , incremento ) + + +""" +#Ejercicio 1: Iterar un rango de 0 a 10 e imprimir numeros divisibles entre 3 +#Ejemplo de ejecucion : 0,3,6,9 + +print('Rango de 0 a 10 con numeros divisibles entre 3') +for i in range(10): + if i % 3 ==0: + print(i) + +#Ejercicio 2: Crear un rango de numeros de 2 a 6 e imprimirlos +#Ejemplo de ejecucion : 2,3,4,5,6 +print('Rango con valores de inicio de =2 y fin =6') +rango = range(2,7) +for i in rango: + print(i) + +# Ejercicio 3 : Crear un rango de 3 a 10 pero con incremento de 2 en 2 en lugar de 1 en 1 +# Ejemplo: 3,5,7,9 + +print('Rango con valores de inicio =3, fin = 10m incremento 2') +for i in range(3,11,2): + print(i) \ No newline at end of file diff --git a/Python/Leccion4/EjercicioTuplasListas b/Python/Leccion4/EjercicioTuplasListas new file mode 100644 index 00000000..995102e5 --- /dev/null +++ b/Python/Leccion4/EjercicioTuplasListas @@ -0,0 +1,23 @@ +import math # importamos la clase math para hacer uso de la funcion sqrt(raiz cuadrada) + +# Dada la siguiente Tupla +tupla = (13,1,8,3,2,5,8) # Definimos la tupla + +# Crear una lista que solo incluya los numeros menosres a 5 +# e imprimir por consola [1,3,2] + +lista =[] #definimos la lista +#filtramos los elemenos menores de 5 de la tupla +for elemento in tupla: + if elemento < 5: + lista.append(elemento) +print(lista) + +#Ejercicio Matematicas +#para sacar la raiz cuadrada de un numero positivo + +numero = int(input('Digite un numero positivo :')) +while numero < 0: + print("Error -> Deberia ser un numero positivo") + numero = int(input('Digite un numero positivo: ')) +print(f'\nSu raiz cuadrada es: {math.sqrt(numero):.2f}') \ No newline at end of file diff --git a/Python/Leccion4/Tuplas.py b/Python/Leccion4/Tuplas.py new file mode 100644 index 00000000..96890be8 --- /dev/null +++ b/Python/Leccion4/Tuplas.py @@ -0,0 +1,14 @@ +#Definimos un tupla +cocina = ('cuchara', 'cuchillo', 'tenedor') +print(len(cocina)) #funcion "len" sirve para saber cuantos elementos tenemos dentro de una tupla + +#Acceder a un elemento, para esto si usamos corchetes y no parentesis +print(cocina[0]) +#Mostrar de manera inversa +print(cocina[-1]) + +#Acceder a un rango +print(cocina[0:2]) + +#ejemplo para que sea si o si una tupla necesita llevar la "," despues del primer elemento, sino es un tipo string +verduras = ('papa') #esto no es una tupla diff --git a/Python/Leccion4/main.py b/Python/Leccion4/main.py new file mode 100644 index 00000000..bd6269d6 --- /dev/null +++ b/Python/Leccion4/main.py @@ -0,0 +1,32 @@ + +""" +#lista = Ariel, Lilinana, Natalia, Osvaldo +nombres = ['Naty', 'Osvaldo', 'Lily', 'Ariel'] + +print(nombres) +print(nombres[0]) +print(nombres[1]) + +print(nombres[-1]) #De esta forma utilizando un numero negativo vas a compenzar a ver la lista de atras para adelante +print(nombres[-2]) + +""" +nombres = ['Naty', 'Osvaldo', 'Lily', 'Ariel'] +print(nombres) +print(nombres[0:2]) # Solo nos muestra el indice 0,1 pero no el indice 2 + +#Para ir del inicio de la lista al indice (sin incluirlo) +print(nombres[:3]) # si dejamos vacio siginifica que es desde el inicio +print(nombres[1:]) + +# Modificamos un valor +nombres[2] = 'Liliana' +nombres[0] = 'Natalia' +print(nombres) + +#iterar una lista + +for nombre in nombres : #nombre es singular, la lista es plural + print(nombre) +else: + print('Se acabaron los nombres de la lista') \ No newline at end of file diff --git a/Python/Leccion5/EjercicioClase5.py b/Python/Leccion5/EjercicioClase5.py new file mode 100644 index 00000000..d4c0e3e9 --- /dev/null +++ b/Python/Leccion5/EjercicioClase5.py @@ -0,0 +1,19 @@ +# ingresar elementos al diccionario llamado seleccionArgentina, lo elementos a ingresar deben ser como mínimo 4 +# estos elementos son los jugadores con su número de camiseta, nombre, apellido, edad, altura, precio y posición de juego. + +seleccionArgentina ={ + 10:{'Nombre':'Lionel Messi', 'Edad': 35,'Altura': 1.70, 'Precio' : '50 Millones' , 'Posicion': 'Extremo Derecho'} , + 11:{'Nombre':'Angel Di Maria', 'Edad': 34,'Altura': 1.80, 'Precio' : '12 Millones' , 'Posicion': 'Extremo Derecho' }, + 24:{'Nombre':'Paulo Dybala', 'Edad': 28,'Altura': 1.77, 'Precio' : '35 Millones' , 'Posicion': 'Media Punta' }, + 19:{'Nombre':'Nicolas Otamendi', 'Edad': 34,'Altura': 1.83, 'Precio' : '3.5 Millones' , 'Posicion': 'Defensa Central' }, + 1:{'Nombre':'Franco Armani', 'Edad': 35,'Altura': 1.89, 'Precio' : '3.5 Millones' , 'Posicion': 'Portero' }, + 3:{'Nombre':'Nicolas Tagliafico', 'Edad': 31,'Altura': 1.72, 'Precio' : '25 Millones' , 'Posicion': 'Lateral Izquierdo' }, + 27:{'Nombre':'Julian Alvarez', 'Edad': 23,'Altura': 1.70, 'Precio' : '40 Millones' , 'Posicion': 'Delantero Central' }, + 7:{'Nombre':'Rodrigo De Paul', 'Edad': 29,'Altura': 1.80, 'Precio' : '33 Millones' , 'Posicion': 'Centrocampista' }, + 5:{'Nombre':'Leandro Paredes', 'Edad': 29,'Altura': 1.82, 'Precio' : '23 Millones' , 'Posicion': 'Centrocampista' }, +} +for llave, valor in seleccionArgentina.items(): + print(llave, valor) + +print ('Tenemos cargados en el diccionario la cantidad de jugadores: ', end= ' ') +print(len(seleccionArgentina)) \ No newline at end of file diff --git a/Python/Leccion5/main.py b/Python/Leccion5/main.py new file mode 100644 index 00000000..6c536fca --- /dev/null +++ b/Python/Leccion5/main.py @@ -0,0 +1,322 @@ +# Todas estas pertenecen a las colecciones en Python (listas, tuplas, diccionarios) +# las listas son lo que se conocen en otro lenguajes como arreglos o arrays, o vectores + + +#lista = Ariel, Lilinana, Natalia, Osvaldo +nombres = ['Naty', 'Osvaldo', 'Lily', 'Ariel'] + +print(nombres) +print(nombres[0]) +print(nombres[1]) + +print(nombres[-1]) #De esta forma utilizando un numero negativo vas a compenzar a ver la lista de atras para adelante +print(nombres[-2]) + + +nombres = ['Naty', 'Osvaldo', 'Lily', 'Ariel'] +print(nombres) +print(nombres[0:2]) # Solo nos muestra el indice 0,1 pero no el indice 2 + +#Para ir del inicio de la lista al indice (sin incluirlo) +print(nombres[:3]) # si dejamos vacio siginifica que es desde el inicio +print(nombres[1:]) + +# Modificamos un valor +nombres[2] = 'Liliana' +nombres[0] = 'Natalia' +print(nombres) + +#iterar una lista + +for nombre in nombres : #nombre es singular, la lista es plural + print(nombre) +else: + print('Se acabaron los nombres de la lista') + + + #Definimos un tupla +cocina = ('cuchara', 'cuchillo', 'tenedor') +print(len(cocina)) #funcion "len" sirve para saber cuantos elementos tenemos dentro de una tupla + +#Agregamos elementos + +nombres.append('Marcelo') +nombres.append([1, 2, 3]) +nombres.append(True) +nombres.append(10.45) +nombres.append([4, 5]) +nombres.append(7) + +print(nombres) + +#Acceder a un elemento, para esto si usamos corchetes y no parentesis +print(cocina[0]) +#Mostrar de manera inversa +print(cocina[-1]) + +#Acceder a un rango +print(cocina[0:2]) + +#ejemplo para que sea si o si una tupla necesita llevar la "," despues del primer elemento, sino es un tipo string +verduras = ('papa') #esto no es una tupla + +# Tipo set +# (el orde es aleatorio ,por lo tanto los elemento no tienen indice y por lo tanto sin orden) + +planetas ={'Marte', 'Jupiter', 'Venus'} +print(planetas) +print(len(planetas)) #usamos la funcion len para saber el largo de nuestra coleccion + +#revisar si un elemento existe o no dentro de set (coleccion) +print('Marte' in planetas) + +#Agregamos un elemento +planetas.add('Tierra') #add es una funcion para agregar +planetas.add('Tierra') # Si queremos volver a agregar un elemento el cual sea repetido no nos va a mostrar, ya que no lo permite tener elementos repetidos + +print(planetas) + +# Eliminar elementos, puede arrojar error si el elemento no existe +planetas.remove('Jupiter') +print(planetas) + +planetas.discard('Tierra') #sirve para eliminar un elemento tambien, si no ponemos bien el nombre del elemento no lo elimina, pero no nos va a dar error como cuando usamos "remove" +print(planetas) + +#limpiar set +planetas.clear() +print(planetas) + +#eliminar set o conjunto +del planetas +#print(planetas) #al eliminar nos muestra un error porque ya no existe + +# 'Maradona' : 10 un diccionario esta compuesto por dos elementos, "una llave" y un "valor" +#dict(key, value) +diccionario = { + 'IDE': 'Integrated Development environment', #siempre al final lleva , + 'POO': 'Programacion orientada a objetos', + 'SABD': 'Sistema de administracion de base de datos' #menos el ultimo elemento + +} +#Verificamos la cantidad de elementos de un diccionario +print(len(diccionario)) +print(diccionario) + +#Acceder a un diccionario con la llave key +print(diccionario['IDE']) + +#otra forma de recuperar un elemento +print(diccionario.get('POO')) +print(diccionario.get('SABD')) + +#MODIFICAR LOS ELEMENTOS +diccionario['IDE'] = 'Entorno de desarrollo integrado' # LOS DICCIONARIOS SI SE PUEDEN CAMBIAR LOS ELEMENTOS + +print(diccionario) + +#como recorrer los elementos +for termino in diccionario: #recorremos unicamente las llaves + print(termino) + +#Necesitamos una funccion para recorrer un diccionario "esta es ITEMS()" +for termino, valor in diccionario.items(): + print(termino,valor) + +#otras maneras de accerder a un diccionario +for termino in diccionario.keys(): #estamos usando una funcion + print(termino) #muestra solo las llaves + + +#usamos una funcion para acceder al valor +for valor in diccionario.values(): + print(valor) + +#comprobamos la existencia de algun elemento +print('IDE' in diccionario) # devuevle un booleano + +#agregamos un elemento al diccionario +diccionario['PK'] = 'Primary Key' +print(diccionario) + +#eliminar un elemento +diccionario.pop('SABD') +print(diccionario) + +#vaciar un diccionario +diccionario.clear() +print(diccionario) + +#eliminar diccionario +del diccionario + +#concatenamos listas +lista1 =[1, 2, 3, 1] +lista2 = [4, 5 ,6, 1 ] +lista3= lista1+ lista2 # asi concatenamos + +print(lista3) + +lista3.extend([7, 8 , 9, 1 ]) # funcion para agregar varios elementos a una lista +print(lista3) + +print(lista3.index(5)) # funcion para ubicar en que indice se encuentra el valor que buscamos ,( si lo colocamos mal va a dar un error al igual que si no esta) + +#como saber cuantos valores repetidos hay en una lista +print(lista3.count(1)) + +#para poner una lista al reves o darla vuelta +lista3.reverse() +print(lista3) + +# Para que una lista se multiplique repitiendo sus elementos +lista3 = lista3 * 2 +print(lista3) + +# Metodos de ordenamiento +lista3.sort() # ordena todos los elementos ascendentemente +lista3.sort(reverse=True) # ordena todos los elementos descendentemente +print(lista3) + + +# las tuplas son listas INMUTABLES, ( no se pueden modificar ) y pueden tener diferentes tipos de datos dentro + +tupla = (3, 'hola', 6.78, [1, 2, 78,], 4, 'Hola') # puede tener diferentes tipos de datos dentro +print(tupla) + +print( 4 in tupla) # Accion booleana para buscar un elemento dentro ,y nos reponde de forma booleana + +#LO QUE PODEMOS USAR DENTRO DE TUPLAS: index, count, len +# En tuplas se puede vconverti de tupla a lista y lista a tupla + + +#Repaso de set o conjunto +#para definir un conjunto + +conjunto= set() # de esta forma le podremos agregar con la funcion .add, por mas que lo inicializamos vacio +conjunto1 = {'Bye'} # una vez inicializado asi el conjunto con las {} estando vacio no se le pueden agregar mas elementos, si o si tiene que tener al menos uno + + +conjunto.add(7) +conjunto.add('Hola') +print(conjunto) + +conjunto1.add('Hola') +print(conjunto1) +print(3 not in conjunto1) # preguntamos si el numero 3 no esta en el conjunto1 + +#como hacer la igualdad de dos conjuntos +print(conjunto == conjunto1) # nos devuelve como respuesta un booleano + +#operaciones en conjuntos +conjunto3 = conjunto1| conjunto # la linea | une los dos conjuntos +print(conjunto3) # si se repitiera un elemento , el mismo quedaria borrado + +conjunto3= conjunto & conjunto1 #que elemento tienen en comun +print(conjunto3) + +conjunto3 = conjunto - conjunto1 #Asigna el valor dque esta en el conjunto y no en el conjunto2 +print(conjunto3) +conjunto3= conjunto1 - conjunto +print(conjunto3) + +conjunto3= conjunto ^ conjunto1 # Elementos que no comparten o son diferentes entre ambos +print(conjunto3) + +conjunto3 = conjunto | conjunto1 +print(conjunto.issubset(conjunto3)) # aqui preguntamos si un conjunto es un subonjunto dentro de otro +print(conjunto1.issubset(conjunto3)) +print(conjunto3.issubset(conjunto)) +print(conjunto3.issubset(conjunto1)) + +print(conjunto3.issuperset(conjunto)) #preguntamos si los elementos del conjunto1 estan dentro del 3 +print(conjunto3.issuperset(conjunto1)) # Si es verdadero quiere decir que el conjunto3 es superconjunto +print(conjunto1.issuperset(conjunto3)) + +#como saber si ambos conjuntos son disconexos, esto es si no comparten ningun elemento en comun +print(conjunto.isdisjoint(conjunto1)) # no hay cosas en comun + +#convertir un conjunto totalmente en inmutable +conjunto = frozenset #esto hace que el conjunto sea totalmente inmutable +#no se puede agregar, modificar, ni eliminar elementos del conjunto + + +#Repaso diccionarios +diccionarioNuevo = {'azul': 'blue', 'rojo' : 'red', 'verde' :'green', 'amarillo' : 'yellow'} +print(diccionarioNuevo) + +#como eliminar un elemento +del (diccionarioNuevo['azul']) +print(diccionarioNuevo) + +#los diccionarios pueden almacenar diferentes tipos de datos +diccionario2 = {'Ariel' : {'Edad': 40, 'Altura' :1.83}, 'Osvaldo':[45, 1.85], 'Natalia': [35, 1.67]} +print(diccionario2) + + +# ingresar elementos al diccionario llamado seleccionArgentina, lo elementos a ingresar deben ser como mínimo 4 +# estos elementos son los jugadores con su número de camiseta, nombre, apellido, edad, altura, precio y posición de juego. + +seleccionArgentina ={ + 10:{'Nombre':'Lionel Messi', 'Edad': 35,'Altura': 1.70, 'Precio' : '50 Millones' , 'Posicion': 'Extremo Derecho'} , + 11:{'Nombre':'Angel Di Maria', 'Edad': 34,'Altura': 1.80, 'Precio' : '12 Millones' , 'Posicion': 'Extremo Derecho' }, + 21:{'Nombre':'Paulo Dybala', 'Edad': 28,'Altura': 1.77, 'Precio' : '35 Millones' , 'Posicion': 'Media Punta' }, + 19:{'Nombre':'Nicolas Otamendi', 'Edad': 34,'Altura': 1.83, 'Precio' : '3.5 Millones' , 'Posicion': 'Defensa Central' }, + 1:{'Nombre':'Franco Armani', 'Edad': 35,'Altura': 1.89, 'Precio' : '3.5 Millones' , 'Posicion': 'Portero' }, +} +for llave, valor in seleccionArgentina.items(): + print(llave, valor) + +#como tarea agregar por lo menos 4 jugadores mas al diccionario: seleccionArgentina +print ('Tenemos cargados en el diccionario la cantidad de jugadores: ', end= ' ') +print(len(seleccionArgentina)) + +#Pilas usando Listas +pila =[1, 2 , 3] + +#Agregamos elementos a la pila por el final +pila.append(4) +pila.append(5) +print(pila) + +#Sacamos elementos desde el final +pila.pop() +print(pila) + +elementoBorrado =pila.pop() # quita el ultimo elemento ylo guarda en la variable +print(f'Sacamos el elemento: {elementoBorrado}') +print(f'La pila ahora quedo asi : {pila} ') + +#colas con listas +#Estructura de datos de tipo fifo (first input /first output) + +cola = ['Ariel', 'Osvaldo', 'Liliana', 'Pilar'] +#Agregamos elementos al final de la cola +cola.append('Natalia') +cola.append('Jose') +print(cola) + +#Sacamos elementos de la cola +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +#Seguimos mostrando como recorrer un diccionario con el ciclo for +for i in seleccionArgentina: + print(f'{i} -> {seleccionArgentina[i]}') \ No newline at end of file diff --git a/Python/Leeccion6/Ejercicio01.py b/Python/Leeccion6/Ejercicio01.py new file mode 100644 index 00000000..8f70bc80 --- /dev/null +++ b/Python/Leeccion6/Ejercicio01.py @@ -0,0 +1,13 @@ +#Ejercicio 1 : Llenar una lista +#Llenar una lista con los numeros del 1 al 50, luego mostrar +# laa lista con el bucle for, los elementos deben mostrarse de la siguiente forma +#1-2-3-4-5....-50 + +# lista = [] +# i=1 +# while i <= 50: +# lista.append(i) +# i += 1 +lista = list(range(1, 51)) #forma de hacerlo en un algortirmo mas eficas , en vez de 5 lineas +for i in lista: + print(i, end= '-') \ No newline at end of file diff --git a/Python/Leeccion6/Ejercicio02.py b/Python/Leeccion6/Ejercicio02.py new file mode 100644 index 00000000..ddcdca84 --- /dev/null +++ b/Python/Leeccion6/Ejercicio02.py @@ -0,0 +1,16 @@ +#Ejercicio 2 : Modificar los elementos de una lista +# Llenar la lista con los numeros del 1 al 10 , luego modificar los +#elementos de la lista multiplicandolos por un valor ingresado por el usuario + +lista= list(range(1,11)) +print('Lista Original') +for i in lista: + print(i, end= '-') +valor =int(input('\nDigite un valor a multiplicar')) +#multiplicamos todos los elementos de la lista +for indice, i in enumerate(lista): #funcion para modificar los indices de la lista + lista[indice] *=valor #El iterador solo recorre los indicies, en esta linea se multiplica + +print(f'Lista final con los elementos multiplicados por {valor}') +for i in lista: + print(i, end= '-') \ No newline at end of file diff --git a/Python/Leeccion6/Ejercicio3.py b/Python/Leeccion6/Ejercicio3.py new file mode 100644 index 00000000..131129b6 --- /dev/null +++ b/Python/Leeccion6/Ejercicio3.py @@ -0,0 +1,16 @@ +#Ejercicio 3: Insertar elementos y ordenarlos +#Pedir numeros y meterlos en una lista, cuando el usuario +#Introduzca un numero 0, nuestro programa dejaria de insertar +#Por ultimo, mostrar los numeros ordenados de menor a mayor + +lista= [] +salir = False +while not salir: + numero= int(input('Digite un numero : ')) + if numero == 0: + salir = True + else: + lista.append(numero) + +lista.sort() # la lista esta ordenada con esta funcion +print(f'\nLista ordenada: \n{lista}') \ No newline at end of file diff --git a/Python/Leeccion6/EjercicioColecciones01.py b/Python/Leeccion6/EjercicioColecciones01.py new file mode 100644 index 00000000..bba5bf2f --- /dev/null +++ b/Python/Leeccion6/EjercicioColecciones01.py @@ -0,0 +1,15 @@ +#Ejercicio 1: Eliminar duplicados de una lista +#Escriba un programa donde tenga una lista y que a continuacion +#elimine los elementos repetidos, por ultimo mostrar la lista + +#Creamos una lista + +lista =[1, 2, 3, "Ariel", 7, 7, 3, "santiago", 5, "Franco", "santiago"] +conjunto = set(lista) #Convertimos la lista a un conjunto de tipo set +lista = list(conjunto) #Convertimos el conjunto a una lista +print(lista) + +#otra forma de hacerlo y acortar el codigo es + +#lista = list(set(lista)) +#print(lista) diff --git a/Python/Leeccion6/EjercicioColecciones02.py b/Python/Leeccion6/EjercicioColecciones02.py new file mode 100644 index 00000000..d203d050 --- /dev/null +++ b/Python/Leeccion6/EjercicioColecciones02.py @@ -0,0 +1,26 @@ +#Ejercicio 2: Operaciones de conjuntos con listas +#Escriba un programa que tenga 2 listas y que a continuacion +#cree las siguientes listas (en las que no deben haber repeticion) +# 1 Lista de palabras que aperecen en las listas +# 2 Lista de palabras que aperecen en la primera lista, pero no en la segunda +# 3 Lista de palabras que aprecen en la segunda lista, pero no en la primera +# 4 Lista de palabras que aprecen en ambas listas + +lista1 = [1, 2, 3, 4, 5, 4, 3, 2, 2, 1, 5] +lista2 = [4, 5, 6, 7, 8, 4, 5, 6, 7, 7, 8] + +# Eliminamos los elementos repetidos de ambas listas de conjuntos + +conjunto1 = set(lista1) +conjunto2 = set(lista2) + + +union = list(conjunto1 | conjunto2) # unimos los dos conjuntos +solo1 = list (conjunto1 - conjunto2) #solo muesta el conjunto1 +solo2 = list(conjunto2 - conjunto1) #solo muestra el conjunto2 +interseccion =list(conjunto1 & conjunto2) #mostramos ambas listas + +print(f"Lista de palabras que aperecen en las listas: {union}") +print(f"Lista de palabras que aperecen en la primera lista, pero no en la segunda: {solo1}") +print(f"Lista de palabras que aprecen en la segunda lista, pero no en la primera: {solo2}") +print(f"Lista de palabras que aprecen en ambas listas: {interseccion}") \ No newline at end of file diff --git a/Python/Leeccion6/EjercicioColecciones03.py b/Python/Leeccion6/EjercicioColecciones03.py new file mode 100644 index 00000000..de8e5e21 --- /dev/null +++ b/Python/Leeccion6/EjercicioColecciones03.py @@ -0,0 +1,34 @@ +#Ejercicio 3 : Agregar personajes a una lista +# Escriba un programa donde cree una lista con los siguientes personajes del señor de los anillos +#Nombre: Aragon +#Clase: Guerrero +#Raza: Dunadan del Norte + +#Nombre: Gandalf +#Clase: Mago +#Raza: Istar + +#Nombre: Legolas +#Clase: Arquero +#Raza: Elfon Sindar + +personajes= [] #creamos una lista vacia +#creamos diccionarios +P ={'Nombre' : 'Aragon', 'Clase' : 'Guerrero', 'Raza' : 'Dunudan del Norte'} +personajes.append(P) +P ={'Nombre' : 'Gandalf', 'Clase' : 'Mago', 'Raza' : 'Istar'} +personajes.append(P) +P ={'Nombre' : 'Legolas', 'Clase' : 'Arquero', 'Raza' : 'Elfo Sindar'} +personajes.append(P) + +print(personajes) +#Tarea: Agregar por lo menos otros tres personajes, que sean a tu eleccion + +P ={'Nombre' : 'Frodo Bolson', 'Clase' : 'Saqueador', 'Raza' : 'Hobbit'} +personajes.append(P) +P ={'Nombre' : 'Galadriel', 'Clase' : 'Guerrera', 'Raza' : 'Elfo Sindar'} +personajes.append(P) +P ={'Nombre' : 'Radagast', 'Clase' : 'Mago', 'Raza' : 'Istari'} +personajes.append(P) + +print(personajes) \ No newline at end of file From 3791633a585360c3eabd3d017a563249ca989596 Mon Sep 17 00:00:00 2001 From: JEsposito95 Date: Mon, 30 Oct 2023 13:23:58 -0300 Subject: [PATCH 3/5] Leccion 5 de JS --- JAVASCRIPT/Leccion05/05-01.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 JAVASCRIPT/Leccion05/05-01.js diff --git a/JAVASCRIPT/Leccion05/05-01.js b/JAVASCRIPT/Leccion05/05-01.js new file mode 100644 index 00000000..b9b36aa8 --- /dev/null +++ b/JAVASCRIPT/Leccion05/05-01.js @@ -0,0 +1,17 @@ +//Tipo de dato undefined +var x; +console.log(typeof x); + +//null: significa ausencia de valor +var y=null; //null no es un tipo de dato, pero su origen es de tipo object +console.log( typeof y); + +//tipo de dato Array y Empty string +var autos = ['Citroen','Audi','BMW', 'Ford'] +console.log(autos); +console.log(typeof autos); //preguntamos que tipo de dato es + +var z = ''; +console.log(typeof z); + + From f42fe698ea44a798c3cc100a2dedc50c5d07f922 Mon Sep 17 00:00:00 2001 From: JEsposito95 Date: Tue, 31 Oct 2023 19:13:12 -0300 Subject: [PATCH 4/5] leccion 7 de js --- JAVASCRIPT/Leccion05/index.html | 11 ++++++++++ .../Leccion06/06-01-ConcatenacionDeCadenas.js | 20 +++++++++++++++++++ JAVASCRIPT/Leccion06/index.html | 11 ++++++++++ JAVASCRIPT/Leccion07/07-01.js | 17 ++++++++++++++++ JAVASCRIPT/Leccion07/07-03-ParImpar.js | 6 ++++++ JAVASCRIPT/Leccion07/07-04-MayorDeEdad.js | 6 ++++++ JAVASCRIPT/Leccion07/index.html | 11 ++++++++++ 7 files changed, 82 insertions(+) create mode 100644 JAVASCRIPT/Leccion05/index.html create mode 100644 JAVASCRIPT/Leccion06/06-01-ConcatenacionDeCadenas.js create mode 100644 JAVASCRIPT/Leccion06/index.html create mode 100644 JAVASCRIPT/Leccion07/07-01.js create mode 100644 JAVASCRIPT/Leccion07/07-03-ParImpar.js create mode 100644 JAVASCRIPT/Leccion07/07-04-MayorDeEdad.js create mode 100644 JAVASCRIPT/Leccion07/index.html diff --git a/JAVASCRIPT/Leccion05/index.html b/JAVASCRIPT/Leccion05/index.html new file mode 100644 index 00000000..062cf7d1 --- /dev/null +++ b/JAVASCRIPT/Leccion05/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion06/06-01-ConcatenacionDeCadenas.js b/JAVASCRIPT/Leccion06/06-01-ConcatenacionDeCadenas.js new file mode 100644 index 00000000..59122b7c --- /dev/null +++ b/JAVASCRIPT/Leccion06/06-01-ConcatenacionDeCadenas.js @@ -0,0 +1,20 @@ +var nombre= 'Jose'; +var apellido = 'Monte'; +var nombreCompleto= nombre+' '+apellido; +console.log(nombreCompleto); + +var nombreCompleto2= 'Joaquin'+ ' '+ 'Esposito'; +console.log(nombreCompleto2); + +var juntos= nombre + 219; +console.log(juntos); + +juntos= nombre + 78 + 17; +console.log(jnutos); + +juntos= 78+17+ nombre; +console.log(juntos); +// + +nombre += apellido; +console.log(nombre); diff --git a/JAVASCRIPT/Leccion06/index.html b/JAVASCRIPT/Leccion06/index.html new file mode 100644 index 00000000..5ca66ed1 --- /dev/null +++ b/JAVASCRIPT/Leccion06/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion07/07-01.js b/JAVASCRIPT/Leccion07/07-01.js new file mode 100644 index 00000000..1f82324d --- /dev/null +++ b/JAVASCRIPT/Leccion07/07-01.js @@ -0,0 +1,17 @@ +let nombre2 = "pedro"; +console.log(nombre2) + +const apellido2= "lepes"; +console.log(apellido2) + +let x,y; +x= 17, y= 21; + +let z= x + y; +console.log(y); + +let _1num= 31; +let rompiendo = "rompe"; + +console.log(_1num) +console.log(rompiendo) \ No newline at end of file diff --git a/JAVASCRIPT/Leccion07/07-03-ParImpar.js b/JAVASCRIPT/Leccion07/07-03-ParImpar.js new file mode 100644 index 00000000..02a63e5c --- /dev/null +++ b/JAVASCRIPT/Leccion07/07-03-ParImpar.js @@ -0,0 +1,6 @@ +let parImpar=10; +if(parImpar % 2 == 0){ + console.log("es un numero PAR") +}else{ + console.log("es un numero IMPAR") +} \ No newline at end of file diff --git a/JAVASCRIPT/Leccion07/07-04-MayorDeEdad.js b/JAVASCRIPT/Leccion07/07-04-MayorDeEdad.js new file mode 100644 index 00000000..23b617e9 --- /dev/null +++ b/JAVASCRIPT/Leccion07/07-04-MayorDeEdad.js @@ -0,0 +1,6 @@ +let edad=20, adulto =18; +if(edad >= adulto){ + console.log("es una persona adulta") +}else{ + console.log("es una persona menor de edad") +} \ No newline at end of file diff --git a/JAVASCRIPT/Leccion07/index.html b/JAVASCRIPT/Leccion07/index.html new file mode 100644 index 00000000..b19f32d2 --- /dev/null +++ b/JAVASCRIPT/Leccion07/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + + + + \ No newline at end of file From 169bf63f476a60fbd06c68644f721be4fcebd716 Mon Sep 17 00:00:00 2001 From: JEsposito95 Date: Tue, 31 Oct 2023 19:29:36 -0300 Subject: [PATCH 5/5] ejercicios finales --- JAVASCRIPT/Leccion08/08-01.js | 7 ++ JAVASCRIPT/Leccion10/Ejercicios-finales.js | 94 ++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 JAVASCRIPT/Leccion08/08-01.js create mode 100644 JAVASCRIPT/Leccion10/Ejercicios-finales.js diff --git a/JAVASCRIPT/Leccion08/08-01.js b/JAVASCRIPT/Leccion08/08-01.js new file mode 100644 index 00000000..7bcc16c7 --- /dev/null +++ b/JAVASCRIPT/Leccion08/08-01.js @@ -0,0 +1,7 @@ +let dentroDeRango= 5; +let valMin= 0, valMax=10; +if(dentroRango >= valMin && dentroRango <=valMax){ + console.log("esta dentro del rango establecido") +}else{ + console.log("esta fuera del rango establecido") +} \ No newline at end of file diff --git a/JAVASCRIPT/Leccion10/Ejercicios-finales.js b/JAVASCRIPT/Leccion10/Ejercicios-finales.js new file mode 100644 index 00000000..35e3ee68 --- /dev/null +++ b/JAVASCRIPT/Leccion10/Ejercicios-finales.js @@ -0,0 +1,94 @@ +//Estacion del año +let mes=4; +let estacion; + +if(mes== 1 || mes == 2 || mes == 12){ + estacion="verano"; +}else if( mes == 3 || mes == 4 || mes == 5){ + estacion="otoño" +}else if( mes == 6 || mes == 7 || mes == 8){ + estacion="invierno" +}else if( mes == 9 || mes == 10 || mes == 11){ + estacion="primavera" +}else{ + estacion="valor incorrecto" +} +console.log("la estacion es "+estacion) + +// Hora del dia + +let horaDia = 22; +let mensaje; +if(horaDia >=6 && horaDia <=11){ + mensaje= "Good morning"; +} +else if(horaDia >=12 && horaDia <=16){ + mensaje= "Good afternoon"; +} +else if(horaDia >=17 && horaDia <=19){ + mensaje= "Good evening"; +} +else if(horaDia >=20 && horaDia <=23){ + mensaje= "Good night"; +} +else{ + mensaje= "Valor Incorrecto"; +} +console.log(mensaje) + +//estructura switch + +//Estructura switch(la sintaxis es igual a Java) +switch(mes){ + case 1: case 2: case 12: + estacion="Verano"; + break; + case 3: case 4: case 5: + estacion="Otoño"; + break; + case 6: case 7: case 8: + estacion="Invierno"; + break; + case 9: case 10: case 11: + estacion="Primavera"; + break; + default: + estacion = "Valor incorrecto"; +} +console.log("Bienvenido a la estacion de: "+estacion); + +// + +var nombre = "Ariel"; +nombre = "Osvaldo"; +console.log(nombre); + +function saludar(){ + var nombre = "Natalia" + console.log(nombre); +} +console.log(nombre) + +if (true){ + var edad = 34; + console.log(edad); + } +console.log(edad) + +// + +function saludar2(){ + let nombre2 = "Ariel" + console.log(nombre2); +} + + +if (true){ + let edad2 = 33; + console.log(edad2); +} + + + +const fechaNacimiento = 2006; +console.log(fechaNacimiento); \ No newline at end of file