diff --git a/03-HTML Y CSS/01- CLASE 1/miprimerweb.html b/03-HTML Y CSS/01- CLASE 1/miprimerweb.html new file mode 100644 index 0000000..fdaa916 --- /dev/null +++ b/03-HTML Y CSS/01- CLASE 1/miprimerweb.html @@ -0,0 +1,19 @@ + + + + Ejercicio de Introducción a HTML en OpenBootcamp + + + +

Este es mi primer comentario de dos líneas

+

Aprendiendo a documentar mi código con OpenBootcamp

+ +

Videos favoritos

+ + + + diff --git a/03-HTML Y CSS/02- CLASE 2 FORMULARIO/formulario2.html b/03-HTML Y CSS/02- CLASE 2 FORMULARIO/formulario2.html new file mode 100644 index 0000000..ff14aa2 --- /dev/null +++ b/03-HTML Y CSS/02- CLASE 2 FORMULARIO/formulario2.html @@ -0,0 +1,40 @@ + + + + Ejercicio 02/2 - Tablas en HTML + + + +

+ LIBROS FAVORITOS +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
TituloAutorAño de publicacionEnlace de amazon
Las venas abiertas de america latinaEduardo Galeano2006Link
Don quijote de la manchaMiguel de Cervantes2017Link
El alquimistaPaulo Coelho2022Link
+ + \ No newline at end of file diff --git a/03-HTML Y CSS/02- CLASE 2 FORMULARIO/formularios.html b/03-HTML Y CSS/02- CLASE 2 FORMULARIO/formularios.html new file mode 100644 index 0000000..72e0bd0 --- /dev/null +++ b/03-HTML Y CSS/02- CLASE 2 FORMULARIO/formularios.html @@ -0,0 +1,32 @@ + + + + Ejercicio 02 - Formularios en HTML + + + +

Formulario

+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + + +
+ + + + + \ No newline at end of file diff --git a/03-HTML Y CSS/02- CLASE 2 FORMULARIO/resultado.htm b/03-HTML Y CSS/02- CLASE 2 FORMULARIO/resultado.htm new file mode 100644 index 0000000..0d01234 --- /dev/null +++ b/03-HTML Y CSS/02- CLASE 2 FORMULARIO/resultado.htm @@ -0,0 +1,12 @@ + + + + Resultados + + +

+ Aqui se mostraran los resultados +

+ + + \ No newline at end of file diff --git a/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/INDICE.html b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/INDICE.html new file mode 100644 index 0000000..dcccb4a --- /dev/null +++ b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/INDICE.html @@ -0,0 +1,9 @@ + + + Ejercicio multimedia + + +

01-Aprendiendo a utilizar imágenes

+

02- Aprendiendo a ultilizar los videos

+

03- Aprendiendo a utilizar los audios

+ \ No newline at end of file diff --git a/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/audios.html b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/audios.html new file mode 100644 index 0000000..5d8eb9b --- /dev/null +++ b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/audios.html @@ -0,0 +1,13 @@ + + + + Aprendiendo a usar los audios + + + +

Argentina campeon, Relato Bocha Houriet

+ + + \ No newline at end of file diff --git a/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/bocha.mp3 b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/bocha.mp3 new file mode 100644 index 0000000..a6f92f3 Binary files /dev/null and b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/bocha.mp3 differ diff --git a/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/golazo.mp4 b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/golazo.mp4 new file mode 100644 index 0000000..694a3f7 Binary files /dev/null and b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/golazo.mp4 differ diff --git a/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/imagenes.html b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/imagenes.html new file mode 100644 index 0000000..d9bf2ab --- /dev/null +++ b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/imagenes.html @@ -0,0 +1,12 @@ + + + + Aprendiendo a utilizar imágenes + + + +

+ Videojuego Favorito +

+ LOGO FIFA 23 + \ No newline at end of file diff --git a/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/videos.html b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/videos.html new file mode 100644 index 0000000..e207f22 --- /dev/null +++ b/03-HTML Y CSS/03-MULTIMEDIA/EJERCICIO 1/videos.html @@ -0,0 +1,13 @@ + + + + Aprendiendo a usar audios + + + +

Gol del campeonato coky suvieller

+ + \ No newline at end of file diff --git a/03-HTML Y CSS/04-CSS/EJERCICIO CSS/Estilos.css b/03-HTML Y CSS/04-CSS/EJERCICIO CSS/Estilos.css new file mode 100644 index 0000000..6183d73 --- /dev/null +++ b/03-HTML Y CSS/04-CSS/EJERCICIO CSS/Estilos.css @@ -0,0 +1,9 @@ +h2 { + color: blue; +} + + +.elemento-1 { + font-size: 2rem; + color: red +} \ No newline at end of file diff --git a/03-HTML Y CSS/04-CSS/EJERCICIO CSS/ejercicioscss.html b/03-HTML Y CSS/04-CSS/EJERCICIO CSS/ejercicioscss.html new file mode 100644 index 0000000..0a8cd9f --- /dev/null +++ b/03-HTML Y CSS/04-CSS/EJERCICIO CSS/ejercicioscss.html @@ -0,0 +1,61 @@ + + + + + + + Ganando precisión con los selectores en CSS + + + + +

Lista de Compras

+

Articulos de compras

+ + + +

Supermercados cerca

+
    +
  1. carrefour
  2. +
  3. walmark
  4. +
  5. dino
  6. +
  7. disco
  8. +
  9. vea
  10. + +
+ + + + + diff --git a/03-HTML Y CSS/05-CLASE5/belgranos.css b/03-HTML Y CSS/05-CLASE5/belgranos.css new file mode 100644 index 0000000..087cacb --- /dev/null +++ b/03-HTML Y CSS/05-CLASE5/belgranos.css @@ -0,0 +1,11 @@ +.flexbelgrano{ + display: flex; + background-color: white; + height: 600px; + flex-wrap: wrap; +} + +.img1{ + height: 300px; + width: 300px; +} diff --git a/03-HTML Y CSS/05-CLASE5/ejercicio.html b/03-HTML Y CSS/05-CLASE5/ejercicio.html new file mode 100644 index 0000000..7978b43 --- /dev/null +++ b/03-HTML Y CSS/05-CLASE5/ejercicio.html @@ -0,0 +1,21 @@ + + + + + + + Club Atletico Belgrano + + + +
+ guille + juanca + franco + pablo + picante + ruso +
+ + + \ No newline at end of file diff --git a/03-HTML Y CSS/05-CLASE5/fvasquez.jpeg b/03-HTML Y CSS/05-CLASE5/fvasquez.jpeg new file mode 100644 index 0000000..413405e Binary files /dev/null and b/03-HTML Y CSS/05-CLASE5/fvasquez.jpeg differ diff --git a/03-HTML Y CSS/05-CLASE5/guille.jpg b/03-HTML Y CSS/05-CLASE5/guille.jpg new file mode 100644 index 0000000..bc01037 Binary files /dev/null and b/03-HTML Y CSS/05-CLASE5/guille.jpg differ diff --git a/03-HTML Y CSS/05-CLASE5/juanca.jpeg b/03-HTML Y CSS/05-CLASE5/juanca.jpeg new file mode 100644 index 0000000..4b5a7ea Binary files /dev/null and b/03-HTML Y CSS/05-CLASE5/juanca.jpeg differ diff --git a/03-HTML Y CSS/05-CLASE5/pablo.jpg b/03-HTML Y CSS/05-CLASE5/pablo.jpg new file mode 100644 index 0000000..ebeec43 Binary files /dev/null and b/03-HTML Y CSS/05-CLASE5/pablo.jpg differ diff --git a/03-HTML Y CSS/05-CLASE5/picante.jpg b/03-HTML Y CSS/05-CLASE5/picante.jpg new file mode 100644 index 0000000..ec148d8 Binary files /dev/null and b/03-HTML Y CSS/05-CLASE5/picante.jpg differ diff --git a/03-HTML Y CSS/05-CLASE5/ruso.jpg b/03-HTML Y CSS/05-CLASE5/ruso.jpg new file mode 100644 index 0000000..b672319 Binary files /dev/null and b/03-HTML Y CSS/05-CLASE5/ruso.jpg differ diff --git a/03-HTML Y CSS/06-ANIDACION DE SELECTORES/05-EJERCICIO/ejer6.css b/03-HTML Y CSS/06-ANIDACION DE SELECTORES/05-EJERCICIO/ejer6.css new file mode 100644 index 0000000..9c7fc5c --- /dev/null +++ b/03-HTML Y CSS/06-ANIDACION DE SELECTORES/05-EJERCICIO/ejer6.css @@ -0,0 +1,14 @@ +span.idbtn::before { + content:'pasa por encima'; + font-size: small; +} + +.btn1:hover{ + color: white; + background-color: green; +} + +span:active::before{ + content: '¡hecho! ---->'; + font-size: small; +} \ No newline at end of file diff --git a/03-HTML Y CSS/06-ANIDACION DE SELECTORES/05-EJERCICIO/ejercicio.html b/03-HTML Y CSS/06-ANIDACION DE SELECTORES/05-EJERCICIO/ejercicio.html new file mode 100644 index 0000000..e834842 --- /dev/null +++ b/03-HTML Y CSS/06-ANIDACION DE SELECTORES/05-EJERCICIO/ejercicio.html @@ -0,0 +1,28 @@ + + + + + + + Selectores,pseudo-clases y pseudo.ekementos en CSS + + + + +
+ + + + + \ No newline at end of file diff --git a/03-HTML Y CSS/07-FORMULARIO/LOGIN-FORM/login.html b/03-HTML Y CSS/07-FORMULARIO/LOGIN-FORM/login.html new file mode 100644 index 0000000..a30741a --- /dev/null +++ b/03-HTML Y CSS/07-FORMULARIO/LOGIN-FORM/login.html @@ -0,0 +1,71 @@ + + + + + + + Login + + + +
+

Registrate en los formularios

+
+ + + +
+ +
+
+ o.... +
+
+ +
+
+ + + + +
+ + + + + + + + + +
+ +
+ + \ No newline at end of file diff --git a/03-HTML Y CSS/07-FORMULARIO/LOGIN-FORM/logincs.css b/03-HTML Y CSS/07-FORMULARIO/LOGIN-FORM/logincs.css new file mode 100644 index 0000000..b7ffc34 --- /dev/null +++ b/03-HTML Y CSS/07-FORMULARIO/LOGIN-FORM/logincs.css @@ -0,0 +1,202 @@ + +.cuerpo{ + display: flex; + justify-content: center; + +} + +.container { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 30px; + background-color: #161717; + width: 40%; + padding: 20pt; + border-radius: 10px; + + +} + +.google-btn { + background-color: rgb(0, 140, 255); + border-radius: 4px; + border: none; + height: 40px; + display: flex; + align-items: center; + padding: 2px; + cursor: pointer; + align-self: flex-start; +} + +.buttons{ + align-self: flex-start; + display: flex; + gap: 20px; +} + +.google-btn:hover{ + opacity: 0.6; +} + +.google-btn picture { + width: 35px; + height: 35px; + background-color: white; + border-radius: 2px; +} + +.google-btn span { + color: white; + padding: 15px; + font-weight: 500; + +} + +.google-btn picture img{ + width: 100%; + display: flex; + align-items: center; + justify-content: center; +} + +.Twiter-btn { + color: #bbb; + background-color: #eee; + border: none; + width: 40px; + border-radius: 5px; + cursor: pointer; +} + +.Twiter-btn picture{ + width: 35px; + height: 35px; + background-color: #161717; + border-radius: 2px; + +} + +.Twiter-btn picture img{ + width: 100%; + display: flex; + align-items: center; + justify-content: center; +} + +.Twiter-btn:hover{ + opacity: 0,5; +} + +.separator { + display: flex; + width: 100%; + gap: 1; +} + +.separator hr { + flex-grow: 1; + border: none; + border-top: 1px solid #ccc; +} + +.separator span{ + color: #241717 +} + +.seccion-inputs{ + display: flex; + gap: 20px; + width: 100%; + +} + + + +label { + color: white; + flex-direction: column; + display: flex; + gap: 5px; +} + +label span{ + font-weight: 700; +} + +.seccion-inputs label input{ + width: 80%; + background-color:#212121; + border: none; + padding: 10px 20px; + border-radius: 10px; + outline: none; + font-size: 14pt; +} + +label input{ + width: 90%; + background-color: #212121; + border: none; + padding: 10px 20px; + border-radius: 10px; + outline: none; + font-size: 14pt; + transition: background-color 0.5s, border 0.2s, box-shadow 0.2s; + +} + +form{ + display: flex; + flex-direction: column; + align-items: stretch; + width: 100%; +} + +label input:hover{ + color: white; + background-color: #454045; + border: solid 1px #f3f3f4; + box-shadow: 0 0 4px #be1fd3; +} + +label input:focus{ + background-color:#454045; + border: solid 1px #f3f3f4; + box-shadow: 0 0 4px #be1fd3; +} + + + + +.checkbox-label{ + display: flex; + flex-direction: row; + +} + +.checkbox-label input[type="checkbox"]{ + width: 20px; +} + +.checkbox-label span{ + font-weight: 400; +} + +.submit-btn { + + background-color: #b8099b; + color: white; + text-align: center; + padding: 10px; + border: none; + border-radius: 10px; + font-size: 14pt; + font-weight: 500; + cursor: pointer; +} + + + diff --git a/03-HTML Y CSS/08-BOOTSTRAP/boot.html b/03-HTML Y CSS/08-BOOTSTRAP/boot.html new file mode 100644 index 0000000..3b48ad2 --- /dev/null +++ b/03-HTML Y CSS/08-BOOTSTRAP/boot.html @@ -0,0 +1,19 @@ + + + + + + + + + Bootstrap + + + +

Introducción a Bootstrap

+ + + + + \ No newline at end of file diff --git a/03-HTML Y CSS/09-ANIMACIONES/animaciones.css b/03-HTML Y CSS/09-ANIMACIONES/animaciones.css new file mode 100644 index 0000000..cb0c51e --- /dev/null +++ b/03-HTML Y CSS/09-ANIMACIONES/animaciones.css @@ -0,0 +1,25 @@ +.anima{ + display: flex; + justify-content: center; + +} + +.btn-modern{ + background-color: aqua; + width: 66pt; + height: 30pt; + border-radius: 8px; + + +} + +.btn-modern:hover{ + background-color: rgb(21, 194, 21); + color: rgb(251, 255, 13); + transform: translateY(-5px); + transition: all 0,4s; + border-bottom: 5px solid rgb(25, 99, 2); + + + +} diff --git a/03-HTML Y CSS/09-ANIMACIONES/animaciones.html b/03-HTML Y CSS/09-ANIMACIONES/animaciones.html new file mode 100644 index 0000000..9908c8f --- /dev/null +++ b/03-HTML Y CSS/09-ANIMACIONES/animaciones.html @@ -0,0 +1,22 @@ + + + + + + + ANIMACIONES + + + + +
+ +
+ + + + + \ No newline at end of file diff --git a/EJ_TEMA9/.idea/.gitignore b/EJ_TEMA9/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/EJ_TEMA9/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/EJ_TEMA9/.idea/misc.xml b/EJ_TEMA9/.idea/misc.xml new file mode 100644 index 0000000..2a824a2 --- /dev/null +++ b/EJ_TEMA9/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/EJ_TEMA9/.idea/modules.xml b/EJ_TEMA9/.idea/modules.xml new file mode 100644 index 0000000..a0af3c5 --- /dev/null +++ b/EJ_TEMA9/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/EJ_TEMA9/EJ_TEMA9.iml b/EJ_TEMA9/EJ_TEMA9.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/EJ_TEMA9/EJ_TEMA9.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/EJ_TEMA9/out/production/EJ_TEMA9/Cliente.class b/EJ_TEMA9/out/production/EJ_TEMA9/Cliente.class new file mode 100644 index 0000000..0059c2c Binary files /dev/null and b/EJ_TEMA9/out/production/EJ_TEMA9/Cliente.class differ diff --git a/EJ_TEMA9/out/production/EJ_TEMA9/Main.class b/EJ_TEMA9/out/production/EJ_TEMA9/Main.class new file mode 100644 index 0000000..40f52cf Binary files /dev/null and b/EJ_TEMA9/out/production/EJ_TEMA9/Main.class differ diff --git a/EJ_TEMA9/out/production/EJ_TEMA9/Persona.class b/EJ_TEMA9/out/production/EJ_TEMA9/Persona.class new file mode 100644 index 0000000..a874e86 Binary files /dev/null and b/EJ_TEMA9/out/production/EJ_TEMA9/Persona.class differ diff --git a/EJ_TEMA9/out/production/EJ_TEMA9/Trabajador.class b/EJ_TEMA9/out/production/EJ_TEMA9/Trabajador.class new file mode 100644 index 0000000..fcb0c81 Binary files /dev/null and b/EJ_TEMA9/out/production/EJ_TEMA9/Trabajador.class differ diff --git a/EJ_TEMA9/src/Cliente.java b/EJ_TEMA9/src/Cliente.java new file mode 100644 index 0000000..05cd678 --- /dev/null +++ b/EJ_TEMA9/src/Cliente.java @@ -0,0 +1,4 @@ +class Cliente extends Persona { + + int credito; +} diff --git a/EJ_TEMA9/src/Main.java b/EJ_TEMA9/src/Main.java new file mode 100644 index 0000000..cb7bcfa --- /dev/null +++ b/EJ_TEMA9/src/Main.java @@ -0,0 +1,32 @@ +public class Main { + public static void main(String[] args) { + + Cliente cliente = new Cliente(); + cliente.nombre = "Nicolas"; + cliente.edad = 20; + cliente.telefono = 2113123; + cliente.credito= 123131; + + System.out.println("Nombre: "+cliente.nombre); + System.out.println("Edad: "+cliente.edad); + System.out.println("Telefono: "+cliente.telefono); + System.out.println("Credito: "+cliente.credito); + + System.out.println("------------"); + + Trabajador trabajador = new Trabajador(); + trabajador.nombre = "juan"; + trabajador.edad = 22; + trabajador.telefono = 123123123; + trabajador.salario = 1231231231; + + System.out.println("Nombre: "+ trabajador.nombre); + System.out.println("Edad: "+ trabajador.edad); + System.out.println("Telefono: "+ trabajador.telefono); + System.out.println("Salario: "+ trabajador.salario); + + + + + } +} \ No newline at end of file diff --git a/EJ_TEMA9/src/Persona.java b/EJ_TEMA9/src/Persona.java new file mode 100644 index 0000000..66acffb --- /dev/null +++ b/EJ_TEMA9/src/Persona.java @@ -0,0 +1,7 @@ +public class Persona { + + int edad; + String nombre; + int telefono; + +} diff --git a/EJ_TEMA9/src/Trabajador.java b/EJ_TEMA9/src/Trabajador.java new file mode 100644 index 0000000..f740433 --- /dev/null +++ b/EJ_TEMA9/src/Trabajador.java @@ -0,0 +1,5 @@ +class Trabajador extends Persona{ + + int salario; + +} diff --git a/EjTema4/.idea/.gitignore b/EjTema4/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/EjTema4/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/EjTema4/.idea/misc.xml b/EjTema4/.idea/misc.xml new file mode 100644 index 0000000..2a824a2 --- /dev/null +++ b/EjTema4/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/EjTema4/.idea/modules.xml b/EjTema4/.idea/modules.xml new file mode 100644 index 0000000..59ffd90 --- /dev/null +++ b/EjTema4/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/EjTema4/EjTema4.iml b/EjTema4/EjTema4.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/EjTema4/EjTema4.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/EjTema4/out/production/EjTema4/EJ_If.class b/EjTema4/out/production/EjTema4/EJ_If.class new file mode 100644 index 0000000..1816121 Binary files /dev/null and b/EjTema4/out/production/EjTema4/EJ_If.class differ diff --git a/EjTema4/out/production/EjTema4/Ej_Dowhile.class b/EjTema4/out/production/EjTema4/Ej_Dowhile.class new file mode 100644 index 0000000..e1d044c Binary files /dev/null and b/EjTema4/out/production/EjTema4/Ej_Dowhile.class differ diff --git a/EjTema4/out/production/EjTema4/Ej_For.class b/EjTema4/out/production/EjTema4/Ej_For.class new file mode 100644 index 0000000..45fa4a9 Binary files /dev/null and b/EjTema4/out/production/EjTema4/Ej_For.class differ diff --git a/EjTema4/out/production/EjTema4/Ej_Switch.class b/EjTema4/out/production/EjTema4/Ej_Switch.class new file mode 100644 index 0000000..eac893b Binary files /dev/null and b/EjTema4/out/production/EjTema4/Ej_Switch.class differ diff --git a/EjTema4/out/production/EjTema4/Ej_Whilee.class b/EjTema4/out/production/EjTema4/Ej_Whilee.class new file mode 100644 index 0000000..e1e33fa Binary files /dev/null and b/EjTema4/out/production/EjTema4/Ej_Whilee.class differ diff --git a/EjTema4/out/production/EjTema4/Main.class b/EjTema4/out/production/EjTema4/Main.class new file mode 100644 index 0000000..fac1972 Binary files /dev/null and b/EjTema4/out/production/EjTema4/Main.class differ diff --git a/EjTema4/src/EJ_If.java b/EjTema4/src/EJ_If.java new file mode 100644 index 0000000..89d815e --- /dev/null +++ b/EjTema4/src/EJ_If.java @@ -0,0 +1,19 @@ +public class EJ_If { + + public void ejercicio1(){ + + System.out.println("Positivo o Negativo"); + System.out.println(); + + int valor = 5; + + if (valor > 0){ + System.out.println("Es un numero positivo"); + } else if (valor < 0) { + System.out.println("El valor es Negativo"); + }else { + System.out.println("El valor es 0"); + } + +} +} diff --git a/EjTema4/src/Ej_Dowhile.java b/EjTema4/src/Ej_Dowhile.java new file mode 100644 index 0000000..260af3e --- /dev/null +++ b/EjTema4/src/Ej_Dowhile.java @@ -0,0 +1,14 @@ +public class Ej_Dowhile { + + public void ejercicio3(){ + + System.out.println(); + int numeroWhile = 3; + + do { + System.out.println(numeroWhile); + numeroWhile-- ; + } while (numeroWhile > 3); + + } +} diff --git a/EjTema4/src/Ej_For.java b/EjTema4/src/Ej_For.java new file mode 100644 index 0000000..27911e1 --- /dev/null +++ b/EjTema4/src/Ej_For.java @@ -0,0 +1,11 @@ +public class Ej_For { + + public void Ejercicio4(){ + + for (int v = 0; v <= 3; v++){ + System.out.println(v); + + } + + } +} diff --git a/EjTema4/src/Ej_Switch.java b/EjTema4/src/Ej_Switch.java new file mode 100644 index 0000000..7270e0a --- /dev/null +++ b/EjTema4/src/Ej_Switch.java @@ -0,0 +1,29 @@ +public class Ej_Switch { + + public void ejercicio5(){ + + var estacion = "primavera"; + + switch (estacion){ + case "verano": + System.out.println("ESTAMOS EN VERANO"); + break; + case "otoño": + System.out.println("ESTAMOS EN OTOÑO"); + break; + case "invierno": + System.out.println("ESTAMOS EN INVIERNO"); + break; + case "primavera": + System.out.println("ESTAMOS EN PRIMAVERA"); + break; + default: + System.out.println("NO ES UNA ESTACION VALIDA"); + + } + + + + + } +} diff --git a/EjTema4/src/Ej_Whilee.java b/EjTema4/src/Ej_Whilee.java new file mode 100644 index 0000000..03be473 --- /dev/null +++ b/EjTema4/src/Ej_Whilee.java @@ -0,0 +1,13 @@ +public class Ej_Whilee { + + public void ejercico2(){ + + int numeroWhile = -4; + + while (numeroWhile < 3){ + System.out.println(numeroWhile); + numeroWhile++; + } + + } +} diff --git a/EjTema4/src/Main.java b/EjTema4/src/Main.java new file mode 100644 index 0000000..d50f769 --- /dev/null +++ b/EjTema4/src/Main.java @@ -0,0 +1,31 @@ +public class Main { + public static void main(String[] args) { + + EJ_If ej1 = new EJ_If(); + Ej_Whilee ej2 = new Ej_Whilee(); + Ej_Dowhile ej3 = new Ej_Dowhile(); + Ej_For ej4 = new Ej_For(); + Ej_Switch ej5= new Ej_Switch(); + + ej1.ejercicio1(); + + System.out.println("--------------------------------"); + System.out.println("WHILE"); + ej2.ejercico2(); + + System.out.println("--------------------------------"); + System.out.println("DO WHILE"); + ej3.ejercicio3(); + + System.out.println("--------------------------------"); + System.out.println("FOR"); + ej4.Ejercicio4(); + + System.out.println("--------------------------------"); + System.out.println("SWITCH"); + ej5.ejercicio5(); + + } + + + } diff --git a/PYTHON/EJERCICIO 1/Screenshot_2.jpg b/PYTHON/EJERCICIO 1/Screenshot_2.jpg new file mode 100644 index 0000000..ffaa0af Binary files /dev/null and b/PYTHON/EJERCICIO 1/Screenshot_2.jpg differ diff --git a/PYTHON/EJERCICIO 1/ej2.jpg b/PYTHON/EJERCICIO 1/ej2.jpg new file mode 100644 index 0000000..7e632c2 Binary files /dev/null and b/PYTHON/EJERCICIO 1/ej2.jpg differ diff --git a/PYTHON/EJERCICIO 1/ejer3.jpg b/PYTHON/EJERCICIO 1/ejer3.jpg new file mode 100644 index 0000000..9b3a9e3 Binary files /dev/null and b/PYTHON/EJERCICIO 1/ejer3.jpg differ diff --git a/PYTHON/bisiesto/.idea/.gitignore b/PYTHON/bisiesto/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/bisiesto/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/bisiesto/.idea/misc.xml b/PYTHON/bisiesto/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/bisiesto/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/bisiesto/.idea/modules.xml b/PYTHON/bisiesto/.idea/modules.xml new file mode 100644 index 0000000..0a48158 --- /dev/null +++ b/PYTHON/bisiesto/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/bisiesto/bisiesto.iml b/PYTHON/bisiesto/bisiesto.iml new file mode 100644 index 0000000..6946f97 --- /dev/null +++ b/PYTHON/bisiesto/bisiesto.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/bisiesto/ej5.py b/PYTHON/bisiesto/ej5.py new file mode 100644 index 0000000..3d44717 --- /dev/null +++ b/PYTHON/bisiesto/ej5.py @@ -0,0 +1,10 @@ +def comprobar(ano): + valor = ano % 4 + return valor + + +esBiciesto = comprobar(2029) +if esBiciesto == 0: + print("Es un año Biciesto") +else: + print("No es un año Biciesto") diff --git a/PYTHON/clase 10/ejercicio1/.idea/.gitignore b/PYTHON/clase 10/ejercicio1/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/clase 10/ejercicio1/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/clase 10/ejercicio1/.idea/misc.xml b/PYTHON/clase 10/ejercicio1/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clase 10/ejercicio1/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 10/ejercicio1/.idea/modules.xml b/PYTHON/clase 10/ejercicio1/.idea/modules.xml new file mode 100644 index 0000000..8e086b8 --- /dev/null +++ b/PYTHON/clase 10/ejercicio1/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 10/ejercicio1/ejercicio1.iml b/PYTHON/clase 10/ejercicio1/ejercicio1.iml new file mode 100644 index 0000000..f4eb1db --- /dev/null +++ b/PYTHON/clase 10/ejercicio1/ejercicio1.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 10/ejercicio1/ejercicio2.py b/PYTHON/clase 10/ejercicio1/ejercicio2.py new file mode 100644 index 0000000..776728b --- /dev/null +++ b/PYTHON/clase 10/ejercicio1/ejercicio2.py @@ -0,0 +1,24 @@ +# En este segundo ejercicio, tendréis que crear una interfaz sencilla +# la cual debe de contener una lista de elementos seleccionables, +# también debe de tener un label con el texto que queráis. + +import tkinter +from tkinter import ttk + +ventana = tkinter.Tk() +ventana.title("EJERCICIO 2") +ventana.geometry("300x300+0+0") + +lblmensaje = tkinter.Label(text="Bienvenidos a la lista") +lblmensaje.place(x=110,y=20) + + +# CREANDO UNA LISTA +lst1 = tkinter.Listbox(ventana,width=30) +lst1.insert(0,"BELGRANO DE CORDOBA") +lst1.insert(1,"BARCELONA") +lst1.insert(2,"REAL MADRID") +lst1.insert(4,"PSG") +lst1.place(x=50,y=100) + +ventana.mainloop() \ No newline at end of file diff --git a/PYTHON/clase 10/ejercicio1/main.py b/PYTHON/clase 10/ejercicio1/main.py new file mode 100644 index 0000000..df374ef --- /dev/null +++ b/PYTHON/clase 10/ejercicio1/main.py @@ -0,0 +1,46 @@ + +#En este ejercicio tenéis que crear una lista de RadioButton que muestre +# la opción que se ha seleccionado +#y que contenga un botón de reinicio para que deje todo como al principio. +#Al principio no tiene que haber una opción seleccionada. + +import tkinter +from tkinter import ttk + +ventana = tkinter.Tk() +ventana.geometry("300x300+0+0") + +def mostrar(): + if seleccionado.get()==1: + mensaje="Has seleccionado si" + if seleccionado.get()==2: + mensaje="Has selecionado no" + if seleccionado.get()==3: + mensaje= "Has selecionado tal vez" + + lblMensaje.config(text=mensaje) + +def reiniciar(): + seleccionado.set(None) + lblMensaje.config(text="") + +ventana.columnconfigure(0,weight=1) +ventana.columnconfigure(1,weight=3) + +seleccionado = tkinter.IntVar() +seleccionado.set(None) + +r1 = ttk.Radiobutton(ventana, text='si', value=1, variable = seleccionado, command=mostrar).place(x=100,y=70) +r2 = ttk.Radiobutton(ventana, text='no', value=2, variable = seleccionado, command=mostrar).place(x=100,y=90) +r3 = ttk.Radiobutton(ventana, text='tal vez', value=3, variable = seleccionado, command=mostrar).place(x=100,y=110) + + +lblMensaje = tkinter.Label(ventana) +lblMensaje.place(x=100,y=150) + +btnReiniciar= tkinter.Button(ventana, text= "reiniciar" , command=reiniciar) +btnReiniciar.pack +btnReiniciar.place(x=100,y=200) + +ventana.mainloop() + diff --git a/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/.gitignore b/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/misc.xml b/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/modules.xml b/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/modules.xml new file mode 100644 index 0000000..dd1b1ea --- /dev/null +++ b/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/vcs.xml b/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/vcs.xml new file mode 100644 index 0000000..c2365ab --- /dev/null +++ b/PYTHON/clase 6 - ejercicio2/ejercicio2/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 6 - ejercicio2/ejercicio2/ejercicio2.iml b/PYTHON/clase 6 - ejercicio2/ejercicio2/ejercicio2.iml new file mode 100644 index 0000000..5f2f029 --- /dev/null +++ b/PYTHON/clase 6 - ejercicio2/ejercicio2/ejercicio2.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 6 - ejercicio2/ejercicio2/main.py b/PYTHON/clase 6 - ejercicio2/ejercicio2/main.py new file mode 100644 index 0000000..d3ee0ef --- /dev/null +++ b/PYTHON/clase 6 - ejercicio2/ejercicio2/main.py @@ -0,0 +1,23 @@ +class Alumno: + nombre : "" + nota : 0 + + def calcular(self, nuevaNota): + self.nota = nuevaNota + if nuevaNota >= 4: + resultado = "Aprobado" + else: + resultado = "Aplazado" + return resultado + + def cambiarNombre(self, nuevoNombre): + self.nombre = nuevoNombre + return nuevoNombre + + +a1 = Alumno() +nombre1 = a1.cambiarNombre("Nicolas") +nota1 = a1.calcular(3) +print("Nombre del alumno:" , nombre1) +print("Nota del alumno:", a1.nota) +print("La condicion del alumno es : ",nota1) \ No newline at end of file diff --git a/PYTHON/clase 7 ejercicio-1/untitled/.idea/.gitignore b/PYTHON/clase 7 ejercicio-1/untitled/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/clase 7 ejercicio-1/untitled/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/clase 7 ejercicio-1/untitled/.idea/misc.xml b/PYTHON/clase 7 ejercicio-1/untitled/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clase 7 ejercicio-1/untitled/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 7 ejercicio-1/untitled/.idea/modules.xml b/PYTHON/clase 7 ejercicio-1/untitled/.idea/modules.xml new file mode 100644 index 0000000..3007dae --- /dev/null +++ b/PYTHON/clase 7 ejercicio-1/untitled/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 7 ejercicio-1/untitled/__pycache__/calculadora.cpython-36.pyc b/PYTHON/clase 7 ejercicio-1/untitled/__pycache__/calculadora.cpython-36.pyc new file mode 100644 index 0000000..0522402 Binary files /dev/null and b/PYTHON/clase 7 ejercicio-1/untitled/__pycache__/calculadora.cpython-36.pyc differ diff --git a/PYTHON/clase 7 ejercicio-1/untitled/calculadora.py b/PYTHON/clase 7 ejercicio-1/untitled/calculadora.py new file mode 100644 index 0000000..22e6589 --- /dev/null +++ b/PYTHON/clase 7 ejercicio-1/untitled/calculadora.py @@ -0,0 +1,33 @@ +class operaciones: + +## DEFINIMOS LOS VALORES + def valores(self, valor1, valor2): + self.valor1=valor1 + self.valor2=valor2 + +## REALIZAMOS LA OPERACION SUMA + def sumar(self): + print(self.valor1," + ",self.valor2," = ", self.valor1 + self.valor2) + return + + +## REALIZAMOS LA OPERACION RESTA + def restar(self): + print(self.valor1," - ",self.valor2," = ", self.valor1 - self.valor2 ) + return + + +## REALIZAMOS LA OPERACION DE MULTIPLICAR + def multiplicar(self): + print(self.valor1," * ",self.valor2," = ", self.valor1 * self.valor2) + return + + +## REALIZAMOS LA OPERACION DE DIVIDIR + def dividir (self): + print(self.valor1," / ",self.valor2," = ", self.valor1 / self.valor2) + return + + + + diff --git a/PYTHON/clase 7 ejercicio-1/untitled/main.py b/PYTHON/clase 7 ejercicio-1/untitled/main.py new file mode 100644 index 0000000..b47eab6 --- /dev/null +++ b/PYTHON/clase 7 ejercicio-1/untitled/main.py @@ -0,0 +1,20 @@ +import calculadora +## CARGAMOS LOS VALORES +valor1= calculadora.operaciones() +valor1.valores(5,2) + +valor2 = calculadora.operaciones() +valor2.valores(10,5) + +## LLAMAMOS A LOS OPERACIONES CORRESPONDIENTES + +valor1.sumar() +valor1.restar() +valor1.multiplicar() +valor1.dividir() + +print("") +valor2.sumar() +valor2.restar() +valor2.multiplicar() +valor2.dividir() diff --git a/PYTHON/clase 7 ejercicio-1/untitled/untitled.iml b/PYTHON/clase 7 ejercicio-1/untitled/untitled.iml new file mode 100644 index 0000000..fa4f4b7 --- /dev/null +++ b/PYTHON/clase 7 ejercicio-1/untitled/untitled.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 7 ejercicio-2/.idea/.gitignore b/PYTHON/clase 7 ejercicio-2/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/clase 7 ejercicio-2/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/clase 7 ejercicio-2/.idea/.name b/PYTHON/clase 7 ejercicio-2/.idea/.name new file mode 100644 index 0000000..11a5d8e --- /dev/null +++ b/PYTHON/clase 7 ejercicio-2/.idea/.name @@ -0,0 +1 @@ +main.py \ No newline at end of file diff --git a/PYTHON/clase 7 ejercicio-2/.idea/misc.xml b/PYTHON/clase 7 ejercicio-2/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clase 7 ejercicio-2/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 7 ejercicio-2/.idea/modules.xml b/PYTHON/clase 7 ejercicio-2/.idea/modules.xml new file mode 100644 index 0000000..ec48d7e --- /dev/null +++ b/PYTHON/clase 7 ejercicio-2/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 7 ejercicio-2/clase 7 ejercicio-2.iml b/PYTHON/clase 7 ejercicio-2/clase 7 ejercicio-2.iml new file mode 100644 index 0000000..381b36d --- /dev/null +++ b/PYTHON/clase 7 ejercicio-2/clase 7 ejercicio-2.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 7 ejercicio-2/main.py b/PYTHON/clase 7 ejercicio-2/main.py new file mode 100644 index 0000000..90da338 --- /dev/null +++ b/PYTHON/clase 7 ejercicio-2/main.py @@ -0,0 +1,13 @@ +import time + +hora = time.strftime('%H') +minutos = time.strftime('%M') + +print("Hora actual =",hora,":",minutos) + +print() +if int(hora) >= 7: + print("Es hora de irse a casa") +else: + print("Restan {} horas y {} minutos para terminar la jornada laboral".format(6- int(hora), 59 - int(minutos))) + diff --git a/PYTHON/clase 8/c8-ej1/.idea/.gitignore b/PYTHON/clase 8/c8-ej1/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/clase 8/c8-ej1/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/clase 8/c8-ej1/.idea/misc.xml b/PYTHON/clase 8/c8-ej1/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clase 8/c8-ej1/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 8/c8-ej1/.idea/modules.xml b/PYTHON/clase 8/c8-ej1/.idea/modules.xml new file mode 100644 index 0000000..c5609ac --- /dev/null +++ b/PYTHON/clase 8/c8-ej1/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 8/c8-ej1/c8-ej1.iml b/PYTHON/clase 8/c8-ej1/c8-ej1.iml new file mode 100644 index 0000000..cbf6eb5 --- /dev/null +++ b/PYTHON/clase 8/c8-ej1/c8-ej1.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 8/c8-ej1/main.py b/PYTHON/clase 8/c8-ej1/main.py new file mode 100644 index 0000000..7399215 --- /dev/null +++ b/PYTHON/clase 8/c8-ej1/main.py @@ -0,0 +1,13 @@ +#ENUNCIADO +#En este ejercicio, tendréis que crear un archivo py donde creéis un archivo txt, lo abráis y escribáis dentro +# del archivo. Para ello, tendréis que acceder dos veces al archivo creado. + +f = open('nuevodocumento.txt', 'w') +f.write("Se creo nuevo documento\n") +f.close() + +f = open('nuevodocumento.txt','r+') +f.readline() +f.write('se modifica nuevamente el documento.\n') +f.close() + diff --git a/PYTHON/clase 8/c8-ej1/nuevodocumento.txt b/PYTHON/clase 8/c8-ej1/nuevodocumento.txt new file mode 100644 index 0000000..825f25d --- /dev/null +++ b/PYTHON/clase 8/c8-ej1/nuevodocumento.txt @@ -0,0 +1,2 @@ +Se creo nuevo documento +se modifica nuevamente el documento. diff --git a/PYTHON/clase 8/c8-ej2/.idea/c8-ej2.iml b/PYTHON/clase 8/c8-ej2/.idea/c8-ej2.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/PYTHON/clase 8/c8-ej2/.idea/c8-ej2.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 8/c8-ej2/.idea/misc.xml b/PYTHON/clase 8/c8-ej2/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clase 8/c8-ej2/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 8/c8-ej2/.idea/modules.xml b/PYTHON/clase 8/c8-ej2/.idea/modules.xml new file mode 100644 index 0000000..788a9fe --- /dev/null +++ b/PYTHON/clase 8/c8-ej2/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 8/c8-ej2/.idea/vcs.xml b/PYTHON/clase 8/c8-ej2/.idea/vcs.xml new file mode 100644 index 0000000..c2365ab --- /dev/null +++ b/PYTHON/clase 8/c8-ej2/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 8/c8-ej2/.idea/workspace.xml b/PYTHON/clase 8/c8-ej2/.idea/workspace.xml new file mode 100644 index 0000000..93c5ae0 --- /dev/null +++ b/PYTHON/clase 8/c8-ej2/.idea/workspace.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + 1667764570101 + + + + \ No newline at end of file diff --git a/PYTHON/clase 8/c8-ej2/datos.bin b/PYTHON/clase 8/c8-ej2/datos.bin new file mode 100644 index 0000000..de909dd Binary files /dev/null and b/PYTHON/clase 8/c8-ej2/datos.bin differ diff --git a/PYTHON/clase 8/c8-ej2/main.py b/PYTHON/clase 8/c8-ej2/main.py new file mode 100644 index 0000000..0982a33 --- /dev/null +++ b/PYTHON/clase 8/c8-ej2/main.py @@ -0,0 +1,32 @@ +#En este segundo ejercicio, tendréis que crear un archivo py y dentro crearéis una clase Vehículo, +# haréis un objeto de ella, lo guardaréis en un archivo y luego lo cargamos. + +import pickle + +class vehiculo: + + def __init__(self, ruedas, puertas, asientos): + self.ruedas = ruedas + self.puertas = puertas + self.asientos= asientos + + def getInfo(self): + return self.ruedas, self.puertas, self.asientos + + +auto = vehiculo(4,2,5) +print(auto) +print(auto.getInfo()) + +f= open('datos.bin', 'wb') +pickle.dump(auto, f) +f.close() + + +f = open('datos.bin', 'rb') +miAuto = pickle.load(f) +f.close() + +print(miAuto.getInfo()) + + diff --git a/PYTHON/clase 9- ejercicio 1/.idea/.gitignore b/PYTHON/clase 9- ejercicio 1/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/clase 9- ejercicio 1/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/clase 9- ejercicio 1/.idea/misc.xml b/PYTHON/clase 9- ejercicio 1/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clase 9- ejercicio 1/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 9- ejercicio 1/.idea/modules.xml b/PYTHON/clase 9- ejercicio 1/.idea/modules.xml new file mode 100644 index 0000000..aab9510 --- /dev/null +++ b/PYTHON/clase 9- ejercicio 1/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 9- ejercicio 1/ej2/.idea/.gitignore b/PYTHON/clase 9- ejercicio 1/ej2/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/clase 9- ejercicio 1/ej2/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/clase 9- ejercicio 1/ej2/.idea/misc.xml b/PYTHON/clase 9- ejercicio 1/ej2/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clase 9- ejercicio 1/ej2/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 9- ejercicio 1/ej2/.idea/modules.xml b/PYTHON/clase 9- ejercicio 1/ej2/.idea/modules.xml new file mode 100644 index 0000000..f30c81b --- /dev/null +++ b/PYTHON/clase 9- ejercicio 1/ej2/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 9- ejercicio 1/ej2/ej2.iml b/PYTHON/clase 9- ejercicio 1/ej2/ej2.iml new file mode 100644 index 0000000..345c536 --- /dev/null +++ b/PYTHON/clase 9- ejercicio 1/ej2/ej2.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase 9- ejercicio 1/ej2/main.py b/PYTHON/clase 9- ejercicio 1/ej2/main.py new file mode 100644 index 0000000..eea85e5 --- /dev/null +++ b/PYTHON/clase 9- ejercicio 1/ej2/main.py @@ -0,0 +1,19 @@ +#En este segundo ejercicio, tenéis que crear una aplicación +# que obtendrá los elementos impares de una lista pasada por parámetro con filter +# y realizará una suma de todos estos elementos obtenidos mediante reduce. + +from functools import reduce + +valor = [11, 20, 30, 10, 5, 2, 4, 8, 9, 22, 31, 13] +resultado = list(filter(lambda x: x % 2!=0, valor)) +print(resultado) + +def suma(a,b): + return a + b + +res = reduce(suma, resultado) +print(res) + + + + diff --git a/PYTHON/clase 9- ejercicio 1/ejercicio1.py b/PYTHON/clase 9- ejercicio 1/ejercicio1.py new file mode 100644 index 0000000..ce45245 --- /dev/null +++ b/PYTHON/clase 9- ejercicio 1/ejercicio1.py @@ -0,0 +1,11 @@ +# Crea un script que le pida al usuario una lista de países (separados por comas). +# Éstos se deben almacenar en una lista. No debería haber países repetidos (#haz uso de set). +# Finalmente, muestra por consola la lista de países ordenados +# alfabéticamente y separados por comas. + +paises = input("Ingresa paises separado por comas : ") + +conjuntoPaises = [ p1 for p1 in paises.split(",")] + +print(",".join(sorted(list(set(conjuntoPaises))))) + diff --git a/PYTHON/clase11/.idea/.gitignore b/PYTHON/clase11/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/clase11/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/clase11/.idea/dbnavigator.xml b/PYTHON/clase11/.idea/dbnavigator.xml new file mode 100644 index 0000000..b659043 --- /dev/null +++ b/PYTHON/clase11/.idea/dbnavigator.xml @@ -0,0 +1,519 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ \ No newline at end of file diff --git a/PYTHON/clase11/.idea/misc.xml b/PYTHON/clase11/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clase11/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase11/.idea/modules.xml b/PYTHON/clase11/.idea/modules.xml new file mode 100644 index 0000000..f8f270b --- /dev/null +++ b/PYTHON/clase11/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase11/.idea/vcs.xml b/PYTHON/clase11/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/PYTHON/clase11/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clase11/clase11.iml b/PYTHON/clase11/clase11.iml new file mode 100644 index 0000000..e9c5327 --- /dev/null +++ b/PYTHON/clase11/clase11.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clase11/conexion.py b/PYTHON/clase11/conexion.py new file mode 100644 index 0000000..263788d --- /dev/null +++ b/PYTHON/clase11/conexion.py @@ -0,0 +1,26 @@ +import mysql +import mysql.connector + +cone = mysql.connector.connect(user='root', host='Localhost',database='openb',port='3306') + +cursor = cone.cursor() + +cursor.execute("CREATE TABLE Alumnos(Id INT, Nombre TEXT, Apellido TEXT)") + +cursor.execute("INSERT INTO Alumnos VALUES(1,'Nicolas', 'Gaitan')") +cursor.execute("INSERT INTO Alumnos VALUES(2,'Angel', 'Di maria')") +cursor.execute("INSERT INTO Alumnos VALUES(3,'Diego', 'Milito')") +cursor.execute("INSERT INTO Alumnos VALUES(4,'Leo', 'Messi')") +cursor.execute("INSERT INTO Alumnos VALUES(5,'Cristiano', 'Ronaldo')") +cursor.execute("INSERT INTO Alumnos VALUES(6,'Roman', 'Riquelme')") +cursor.execute("INSERT INTO Alumnos VALUES(7,'Pablo', 'Vegetti')") +cursor.execute("INSERT INTO Alumnos VALUES(8,'Javier', 'Zanetti')") + +cone.commit() + +cursor.execute("SELECT * FROM Alumnos WHERE Nombre = 'Leo'") +mostrar = cursor.fetchall() +print(mostrar) + +cone.close() + diff --git a/PYTHON/clase11/main.py b/PYTHON/clase11/main.py new file mode 100644 index 0000000..15db205 --- /dev/null +++ b/PYTHON/clase11/main.py @@ -0,0 +1,12 @@ +# En este ejercicio tendréis que crear una tabla llamada Alumnos que constará de tres columnas: +# la columna id de tipo entero, la columna nombre que será de tipo texto +# y la columna apellido que también será de tipo texto. + +#Una vez creada la tabla, tenéis que insertarle datos, como mínimo tenéis que insertar 8 alumnos a la tabla. + +#Por último, tienes que realizar una búsqueda de un alumno por nombre y mostrar los datos por consola. + + + + + diff --git a/PYTHON/clase11/miaplicacion.db b/PYTHON/clase11/miaplicacion.db new file mode 100644 index 0000000..e69de29 diff --git a/PYTHON/clases 6-ej1/.idea/.gitignore b/PYTHON/clases 6-ej1/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/PYTHON/clases 6-ej1/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/PYTHON/clases 6-ej1/.idea/misc.xml b/PYTHON/clases 6-ej1/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/PYTHON/clases 6-ej1/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PYTHON/clases 6-ej1/.idea/modules.xml b/PYTHON/clases 6-ej1/.idea/modules.xml new file mode 100644 index 0000000..1f804c2 --- /dev/null +++ b/PYTHON/clases 6-ej1/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clases 6-ej1/clasespython.iml b/PYTHON/clases 6-ej1/clasespython.iml new file mode 100644 index 0000000..f6db210 --- /dev/null +++ b/PYTHON/clases 6-ej1/clasespython.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/PYTHON/clases 6-ej1/main.py b/PYTHON/clases 6-ej1/main.py new file mode 100644 index 0000000..b41d228 --- /dev/null +++ b/PYTHON/clases 6-ej1/main.py @@ -0,0 +1,16 @@ +class Vehiculo: + color = "azul" + ruedas = 4 + puertas = 2 + +class Coche(Vehiculo): + velocidad = 130 + cilindrada = 150 + +auto = Coche() +print("El color del auto es :", auto.color) +print("Cantidad de ruedas es : ", auto.ruedas) +print("Cantidad de puertas : ", auto.puertas) +print("Velocidad Max : ", auto.velocidad) +print("Cilindrada : ", auto.cilindrada) + diff --git a/TEMA8/tema8/.idea/.gitignore b/TEMA8/tema8/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/TEMA8/tema8/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/TEMA8/tema8/.idea/misc.xml b/TEMA8/tema8/.idea/misc.xml new file mode 100644 index 0000000..2a824a2 --- /dev/null +++ b/TEMA8/tema8/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/TEMA8/tema8/.idea/modules.xml b/TEMA8/tema8/.idea/modules.xml new file mode 100644 index 0000000..dab8d43 --- /dev/null +++ b/TEMA8/tema8/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/TEMA8/tema8/out/production/tema8/Main.class b/TEMA8/tema8/out/production/tema8/Main.class new file mode 100644 index 0000000..e66476d Binary files /dev/null and b/TEMA8/tema8/out/production/tema8/Main.class differ diff --git a/TEMA8/tema8/out/production/tema8/Persona.class b/TEMA8/tema8/out/production/tema8/Persona.class new file mode 100644 index 0000000..a8289c1 Binary files /dev/null and b/TEMA8/tema8/out/production/tema8/Persona.class differ diff --git a/TEMA8/tema8/src/Main.java b/TEMA8/tema8/src/Main.java new file mode 100644 index 0000000..eafdaa7 --- /dev/null +++ b/TEMA8/tema8/src/Main.java @@ -0,0 +1,23 @@ +public class Main { + public static void main(String[] args) { + + Persona persona = new Persona(); + + persona.setEdad(22); + int edad = persona.getEdad(); + System.out.println(edad); + + persona.setNombre("Nicolas"); + String nombre = persona.getNombre(); + System.out.println(nombre); + + persona.setTelefono(123123123); + int telefono = persona.getTelefono(); + System.out.println(telefono); + + + + } + + +} \ No newline at end of file diff --git a/TEMA8/tema8/src/Persona.java b/TEMA8/tema8/src/Persona.java new file mode 100644 index 0000000..583a2fb --- /dev/null +++ b/TEMA8/tema8/src/Persona.java @@ -0,0 +1,29 @@ +public class Persona { + + private int edad; + private String nombre; + private int telefono; + + public void setEdad(int edad){ + this.edad = edad; + } + public int getEdad(){ + return this.edad; + } + + public void setNombre(String nombre){ + this.nombre = nombre; + } + public String getNombre(){ + return this.nombre; + } + + public void setTelefono(int telefono){ + this.telefono = telefono; + } + public int getTelefono(){ + return this.telefono; + } + + +} diff --git a/TEMA8/tema8/tema8.iml b/TEMA8/tema8/tema8.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/TEMA8/tema8/tema8.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/contador/.idea/.gitignore b/contador/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/contador/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/contador/.idea/misc.xml b/contador/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/contador/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/contador/.idea/modules.xml b/contador/.idea/modules.xml new file mode 100644 index 0000000..aa0900f --- /dev/null +++ b/contador/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/contador/contador.iml b/contador/contador.iml new file mode 100644 index 0000000..2db0d8a --- /dev/null +++ b/contador/contador.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/contador/ejercicio4.py b/contador/ejercicio4.py new file mode 100644 index 0000000..9da2a64 --- /dev/null +++ b/contador/ejercicio4.py @@ -0,0 +1,3 @@ +for numero in range (1, 101 ): + orden = 101-numero + print(orden) \ No newline at end of file diff --git a/nuevo.txt b/nuevo.txt new file mode 100644 index 0000000..e69de29