diff --git b/Ejercicio01/.idea/.gitignore a/Ejercicio01/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio01/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio01/.idea/description.html a/Ejercicio01/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio01/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio01/.idea/encodings.xml a/Ejercicio01/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio01/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio01/.idea/misc.xml a/Ejercicio01/.idea/misc.xml new file mode 100644 index 0000000..b7632b7 --- /dev/null +++ a/Ejercicio01/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio01/.idea/modules.xml a/Ejercicio01/.idea/modules.xml new file mode 100644 index 0000000..9b6b753 --- /dev/null +++ a/Ejercicio01/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio01/.idea/project-template.xml a/Ejercicio01/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio01/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio01/.idea/uiDesigner.xml a/Ejercicio01/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ a/Ejercicio01/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio01/Ejercicio01.iml a/Ejercicio01/Ejercicio01.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio01/Ejercicio01.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio01/out/production/Ejercicio01/com/company/Ejercicio01.class a/Ejercicio01/out/production/Ejercicio01/com/company/Ejercicio01.class new file mode 100644 index 0000000..fe4f000 Binary files /dev/null and a/Ejercicio01/out/production/Ejercicio01/com/company/Ejercicio01.class differ diff --git b/Ejercicio01/src/com/company/Ejercicio01.java a/Ejercicio01/src/com/company/Ejercicio01.java new file mode 100644 index 0000000..03fecde --- /dev/null +++ a/Ejercicio01/src/com/company/Ejercicio01.java @@ -0,0 +1,21 @@ +package com.company; + +public class Ejercicio01 { + + public static void main(String[] args) { + //ejercicio 1 + int primerNumero = 50; + int segundoNumero = 5; + int suma, resta, multiplicacion, division, modulo; + suma = primerNumero + segundoNumero; + System.out.println("la suma es\n" + suma); + resta = primerNumero - segundoNumero; + System.out.println("la resta es\n" + resta); + multiplicacion = primerNumero * segundoNumero; + System.out.println("la nultiplicacion es\n" + multiplicacion); + division = primerNumero / segundoNumero; + System.out.println("la nultiplicacion es\n" +division); + modulo = primerNumero % segundoNumero; + System.out.println("el resto es\n" +modulo); + } +} diff --git b/Ejercicio010/.idea/.gitignore a/Ejercicio010/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio010/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio010/.idea/description.html a/Ejercicio010/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio010/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio010/.idea/encodings.xml a/Ejercicio010/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio010/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio010/.idea/misc.xml a/Ejercicio010/.idea/misc.xml new file mode 100644 index 0000000..b7632b7 --- /dev/null +++ a/Ejercicio010/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio010/.idea/modules.xml a/Ejercicio010/.idea/modules.xml new file mode 100644 index 0000000..f866c17 --- /dev/null +++ a/Ejercicio010/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio010/.idea/project-template.xml a/Ejercicio010/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio010/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio010/.idea/uiDesigner.xml a/Ejercicio010/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ a/Ejercicio010/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio010/Ejercicio010.iml a/Ejercicio010/Ejercicio010.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio010/Ejercicio010.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio010/out/production/Ejercicio010/com/company/Ejercicio010.class a/Ejercicio010/out/production/Ejercicio010/com/company/Ejercicio010.class new file mode 100644 index 0000000..51d4382 Binary files /dev/null and a/Ejercicio010/out/production/Ejercicio010/com/company/Ejercicio010.class differ diff --git b/Ejercicio010/src/com/company/Ejercicio010.java a/Ejercicio010/src/com/company/Ejercicio010.java new file mode 100644 index 0000000..1ff9e1d --- /dev/null +++ a/Ejercicio010/src/com/company/Ejercicio010.java @@ -0,0 +1,18 @@ +package com.company; +import java.util.Scanner; +import java.util.*; +public class Ejercicio010 { + + public static void main(String[] args) { + String[] V = {"Lunes", "Martes", "Miercoles","Jueves","Viernes"}; + System.out.println("Ingrese un dia de la semana, para determinar si es o no dia laboral"); + Scanner input = new Scanner(System.in); + String dia = input.nextLine(); + String resultado = Arrays.stream(V).filter(s->s.equals(dia)).findFirst().orElse(null); + if (resultado != null) { + System.out.println("Dia Laboral \n" + dia); + }else{ + System.out.println("No es Dia Laboral\n" +dia); + } + } +} diff --git b/Ejercicio02/.idea/.gitignore a/Ejercicio02/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio02/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio02/.idea/description.html a/Ejercicio02/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio02/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio02/.idea/encodings.xml a/Ejercicio02/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio02/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio02/.idea/misc.xml a/Ejercicio02/.idea/misc.xml new file mode 100644 index 0000000..1811b61 --- /dev/null +++ a/Ejercicio02/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio02/.idea/modules.xml a/Ejercicio02/.idea/modules.xml new file mode 100644 index 0000000..7ac30c7 --- /dev/null +++ a/Ejercicio02/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git b/Ejercicio02/.idea/project-template.xml a/Ejercicio02/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio02/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio02/.idea/uiDesigner.xml a/Ejercicio02/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ a/Ejercicio02/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio02/Ejercicio02.iml a/Ejercicio02/Ejercicio02.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ a/Ejercicio02/Ejercicio02.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio02/out/production/untitled104/com/company/Ejercicio02.class a/Ejercicio02/out/production/untitled104/com/company/Ejercicio02.class new file mode 100644 index 0000000..ba83036 Binary files /dev/null and a/Ejercicio02/out/production/untitled104/com/company/Ejercicio02.class differ diff --git b/Ejercicio02/src/com/company/Ejercicio02.java a/Ejercicio02/src/com/company/Ejercicio02.java new file mode 100644 index 0000000..f53173d --- /dev/null +++ a/Ejercicio02/src/com/company/Ejercicio02.java @@ -0,0 +1,20 @@ +package com.company; + +public class Ejercicio02 { + + public static void main(String[] args) { + int num1, num2; + num1 = 10; + num2 = 5; + if (num1 > num2) { + System.out.println(num1); + System.out.println("el numero1 es mayor que el numero2\n" + num1 + num2); + } else if (num1 == num2) { + System.out.println(num1); + System.out.println("el numero1 es igual al numero2 \n" + num1 + num2); + } else { + System.out.println(num2); + System.out.println("el numero2 es mayor que el numero1\n" + num1 + num2); + } + } +} diff --git b/Ejercicio02/untitled104.iml a/Ejercicio02/untitled104.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio02/untitled104.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio03/.idea/.gitignore a/Ejercicio03/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio03/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio03/.idea/description.html a/Ejercicio03/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio03/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio03/.idea/encodings.xml a/Ejercicio03/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio03/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio03/.idea/misc.xml a/Ejercicio03/.idea/misc.xml new file mode 100644 index 0000000..b7632b7 --- /dev/null +++ a/Ejercicio03/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio03/.idea/modules.xml a/Ejercicio03/.idea/modules.xml new file mode 100644 index 0000000..eb20691 --- /dev/null +++ a/Ejercicio03/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio03/.idea/project-template.xml a/Ejercicio03/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio03/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio03/.idea/uiDesigner.xml a/Ejercicio03/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ a/Ejercicio03/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio03/Ejercicio03.iml a/Ejercicio03/Ejercicio03.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio03/Ejercicio03.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio03/out/production/Ejercicio03/com/company/Ejercicio03.class a/Ejercicio03/out/production/Ejercicio03/com/company/Ejercicio03.class new file mode 100644 index 0000000..a2d8619 Binary files /dev/null and a/Ejercicio03/out/production/Ejercicio03/com/company/Ejercicio03.class differ diff --git b/Ejercicio03/src/com/company/Ejercicio03.java a/Ejercicio03/src/com/company/Ejercicio03.java new file mode 100644 index 0000000..baa20ca --- /dev/null +++ a/Ejercicio03/src/com/company/Ejercicio03.java @@ -0,0 +1,10 @@ +package com.company; + +public class Ejercicio03 { + + public static void main(String[] args) { + //ejercicio3 + String nombre = "Jose"; + System.out.println("Bienvenido "+nombre); + } +} diff --git b/Ejercicio04/.idea/.gitignore a/Ejercicio04/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio04/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio04/.idea/description.html a/Ejercicio04/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio04/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio04/.idea/encodings.xml a/Ejercicio04/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio04/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio04/.idea/misc.xml a/Ejercicio04/.idea/misc.xml new file mode 100644 index 0000000..b7632b7 --- /dev/null +++ a/Ejercicio04/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio04/.idea/modules.xml a/Ejercicio04/.idea/modules.xml new file mode 100644 index 0000000..79d8356 --- /dev/null +++ a/Ejercicio04/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio04/.idea/project-template.xml a/Ejercicio04/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio04/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio04/.idea/uiDesigner.xml a/Ejercicio04/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ a/Ejercicio04/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio04/Ejercicio04.iml a/Ejercicio04/Ejercicio04.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio04/Ejercicio04.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio04/out/production/Ejercicio04/com/company/Ejercicio04.class a/Ejercicio04/out/production/Ejercicio04/com/company/Ejercicio04.class new file mode 100644 index 0000000..5b1484c Binary files /dev/null and a/Ejercicio04/out/production/Ejercicio04/com/company/Ejercicio04.class differ diff --git b/Ejercicio04/src/com/company/Ejercicio04.java a/Ejercicio04/src/com/company/Ejercicio04.java new file mode 100644 index 0000000..5c62f60 --- /dev/null +++ a/Ejercicio04/src/com/company/Ejercicio04.java @@ -0,0 +1,10 @@ +package com.company; +import java.util.Scanner; +public class Ejercicio04 { + public static void main(String[] args) { + Scanner inputNombre = new Scanner(System.in); + System.out.println("Ingrese el Nombre"); + String Nombre = inputNombre.nextLine(); + System.out.println("Bienvenido \n" +Nombre); + } +} diff --git b/Ejercicio05/.idea/.gitignore a/Ejercicio05/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio05/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio05/.idea/description.html a/Ejercicio05/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio05/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio05/.idea/encodings.xml a/Ejercicio05/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio05/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio05/.idea/misc.xml a/Ejercicio05/.idea/misc.xml new file mode 100644 index 0000000..b7632b7 --- /dev/null +++ a/Ejercicio05/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio05/.idea/modules.xml a/Ejercicio05/.idea/modules.xml new file mode 100644 index 0000000..baacd7b --- /dev/null +++ a/Ejercicio05/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio05/.idea/project-template.xml a/Ejercicio05/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio05/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio05/Ejercicio05.iml a/Ejercicio05/Ejercicio05.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio05/Ejercicio05.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio05/out/production/Ejercicio05/com/company/Main.class a/Ejercicio05/out/production/Ejercicio05/com/company/Main.class new file mode 100644 index 0000000..b0369c9 Binary files /dev/null and a/Ejercicio05/out/production/Ejercicio05/com/company/Main.class differ diff --git b/Ejercicio05/src/com/company/Main.java a/Ejercicio05/src/com/company/Main.java new file mode 100644 index 0000000..30784d9 --- /dev/null +++ a/Ejercicio05/src/com/company/Main.java @@ -0,0 +1,16 @@ +package com.company; +import java.util.Scanner; +public class Main { + + public static void main(String[] args) { + Scanner inputNumero = new Scanner(System.in); + System.out.println("ingrese un numero para determinar si es o no divisible entre 2"); + int numInp = inputNumero.nextInt(); + if(numInp % 2 == 0){ + System.out.println("el numero ingresado es divisible entre 2\n" +numInp); + } + else{ + System.out.println("el numero ingresado no es divisible entre 2\n"+ numInp); + } + } +} diff --git b/Ejercicio06/.idea/.gitignore a/Ejercicio06/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio06/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio06/.idea/description.html a/Ejercicio06/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio06/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio06/.idea/encodings.xml a/Ejercicio06/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio06/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio06/.idea/misc.xml a/Ejercicio06/.idea/misc.xml new file mode 100644 index 0000000..b7632b7 --- /dev/null +++ a/Ejercicio06/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio06/.idea/modules.xml a/Ejercicio06/.idea/modules.xml new file mode 100644 index 0000000..11b9405 --- /dev/null +++ a/Ejercicio06/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio06/.idea/project-template.xml a/Ejercicio06/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio06/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio06/.idea/uiDesigner.xml a/Ejercicio06/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ a/Ejercicio06/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio06/Ejercicio06.iml a/Ejercicio06/Ejercicio06.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio06/Ejercicio06.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio06/out/production/Ejercicio06/com/company/Ejercicio06.class a/Ejercicio06/out/production/Ejercicio06/com/company/Ejercicio06.class new file mode 100644 index 0000000..02637c6 Binary files /dev/null and a/Ejercicio06/out/production/Ejercicio06/com/company/Ejercicio06.class differ diff --git b/Ejercicio06/src/com/company/Ejercicio06.java a/Ejercicio06/src/com/company/Ejercicio06.java new file mode 100644 index 0000000..eee5ebb --- /dev/null +++ a/Ejercicio06/src/com/company/Ejercicio06.java @@ -0,0 +1,15 @@ +package com.company; +import java.util.Scanner; +public class Ejercicio06 { + + public static void main(String[] args) { + Scanner inputPrecio = new Scanner(System.in); + System.out.println("ingrese el precio del producto para calcular si IVA"); + float numFInp = inputPrecio.nextFloat(); + float iva = numFInp * 10 / 100; + System.out.println("el iva del producto es\n" + iva); + float precioF = iva + numFInp; + System.out.println("el precio final del producto es\n" + precioF); + + } +} diff --git b/Ejercicio07/.idea/.gitignore a/Ejercicio07/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio07/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio07/.idea/description.html a/Ejercicio07/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio07/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio07/.idea/encodings.xml a/Ejercicio07/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio07/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio07/.idea/misc.xml a/Ejercicio07/.idea/misc.xml new file mode 100644 index 0000000..b7632b7 --- /dev/null +++ a/Ejercicio07/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio07/.idea/modules.xml a/Ejercicio07/.idea/modules.xml new file mode 100644 index 0000000..2e0e384 --- /dev/null +++ a/Ejercicio07/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio07/.idea/project-template.xml a/Ejercicio07/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio07/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio07/.idea/uiDesigner.xml a/Ejercicio07/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ a/Ejercicio07/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio07/Ejercicio07.iml a/Ejercicio07/Ejercicio07.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio07/Ejercicio07.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio07/out/production/Ejercicio07/com/company/Ejercicio07.class a/Ejercicio07/out/production/Ejercicio07/com/company/Ejercicio07.class new file mode 100644 index 0000000..624f2fc Binary files /dev/null and a/Ejercicio07/out/production/Ejercicio07/com/company/Ejercicio07.class differ diff --git b/Ejercicio07/src/com/company/Ejercicio07.java a/Ejercicio07/src/com/company/Ejercicio07.java new file mode 100644 index 0000000..0605549 --- /dev/null +++ a/Ejercicio07/src/com/company/Ejercicio07.java @@ -0,0 +1,14 @@ +package com.company; + +public class Ejercicio07 { + + public static void main(String[] args) { + System.out.println("los numeros divisibles entre 2 y 3 son:\n"); + for (int i= 1; i<=100; i++ ){ + if(i % 2 == 0 && i % 3 == 0) { + System.out.println(+i); + } + } + + } +} diff --git b/Ejercicio08/.idea/.gitignore a/Ejercicio08/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio08/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio08/.idea/description.html a/Ejercicio08/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio08/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio08/.idea/encodings.xml a/Ejercicio08/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio08/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio08/.idea/misc.xml a/Ejercicio08/.idea/misc.xml new file mode 100644 index 0000000..b7632b7 --- /dev/null +++ a/Ejercicio08/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio08/.idea/modules.xml a/Ejercicio08/.idea/modules.xml new file mode 100644 index 0000000..943b473 --- /dev/null +++ a/Ejercicio08/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio08/.idea/project-template.xml a/Ejercicio08/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio08/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio08/.idea/uiDesigner.xml a/Ejercicio08/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ a/Ejercicio08/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio08/Ejercicio08.iml a/Ejercicio08/Ejercicio08.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio08/Ejercicio08.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio08/out/production/Ejercicio08/com/company/Ejercicio08.class a/Ejercicio08/out/production/Ejercicio08/com/company/Ejercicio08.class new file mode 100644 index 0000000..3675e44 Binary files /dev/null and a/Ejercicio08/out/production/Ejercicio08/com/company/Ejercicio08.class differ diff --git b/Ejercicio08/src/com/company/Ejercicio08.java a/Ejercicio08/src/com/company/Ejercicio08.java new file mode 100644 index 0000000..062ad81 --- /dev/null +++ a/Ejercicio08/src/com/company/Ejercicio08.java @@ -0,0 +1,14 @@ +package com.company; +import java.util.Scanner; +public class Ejercicio08 { + + public static void main(String[] args) { + int NumL; + Scanner inputNum = new Scanner(System.in); + do { + System.out.println("ingrese un numero"); + NumL = inputNum.nextInt(); + } while (NumL < 0); + System.out.println("el numero ingresado es, y si es mayor a cero" + NumL); + } +} diff --git b/Ejercicio09/.idea/.gitignore a/Ejercicio09/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ a/Ejercicio09/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git b/Ejercicio09/.idea/description.html a/Ejercicio09/.idea/description.html new file mode 100644 index 0000000..db5f129 --- /dev/null +++ a/Ejercicio09/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git b/Ejercicio09/.idea/encodings.xml a/Ejercicio09/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ a/Ejercicio09/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git b/Ejercicio09/.idea/misc.xml a/Ejercicio09/.idea/misc.xml new file mode 100644 index 0000000..b7632b7 --- /dev/null +++ a/Ejercicio09/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio09/.idea/modules.xml a/Ejercicio09/.idea/modules.xml new file mode 100644 index 0000000..b2abf14 --- /dev/null +++ a/Ejercicio09/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git b/Ejercicio09/.idea/project-template.xml a/Ejercicio09/.idea/project-template.xml new file mode 100644 index 0000000..1f08b88 --- /dev/null +++ a/Ejercicio09/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git b/Ejercicio09/.idea/uiDesigner.xml a/Ejercicio09/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ a/Ejercicio09/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git b/Ejercicio09/Ejercicio09.iml a/Ejercicio09/Ejercicio09.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ a/Ejercicio09/Ejercicio09.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git b/Ejercicio09/out/production/Ejercicio09/com/company/Ejercicio09.class a/Ejercicio09/out/production/Ejercicio09/com/company/Ejercicio09.class new file mode 100644 index 0000000..8930bf4 Binary files /dev/null and a/Ejercicio09/out/production/Ejercicio09/com/company/Ejercicio09.class differ diff --git b/Ejercicio09/src/com/company/Ejercicio09.java a/Ejercicio09/src/com/company/Ejercicio09.java new file mode 100644 index 0000000..c836958 --- /dev/null +++ a/Ejercicio09/src/com/company/Ejercicio09.java @@ -0,0 +1,27 @@ +package com.company; +import java.util.Scanner; +public class Ejercicio09{ + + public static void main(String[] args) { + String ctr = "Roshka"; + ctr.toUpperCase(); + System.out.println(ctr); + String palabra =""; + int contador = 0; + System.out.println("Introduzca una contrasena para adivinar"); + do{ + Scanner input = new Scanner(System.in); + palabra= input.nextLine(); + palabra.toUpperCase(); + System.out.println(palabra); + if(!(palabra.equals(ctr))){ + contador++; + System.out.println("Fallaste jaja!!\n este es el intento" +contador); + + }else{ + contador = 3; + System.out.println("Correcto!"); + } + }while(contador!= 3); + } +} diff --git b/README.md.txt a/README.md.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ a/README.md.txt