Skip to content

Commit 59ddd72

Browse files
Merge branch 'mouredev:main' into main
2 parents f9230f8 + adfc34a commit 59ddd72

File tree

223 files changed

+21791
-1008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+21791
-1008
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
## Corrección y próximo ejercicio
2929

30-
> #### Lunes 6 de mayo de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/33hUYsY9?event=12321116576777544390)** por país y crea un **[recordatorio](https://discord.gg/33hUYsY9?event=1232111657677754439)**
30+
> #### Lunes 20 de mayo de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/QhTwYW7P?event=1237107397391024128)** por país y crea un **[recordatorio](https://discord.gg/QhTwYW7P?event=1237107397391024128)**
3232
3333
## Roadmap
3434

@@ -52,7 +52,9 @@
5252
|15|[ASINCRONÍA](./Roadmap/15%20-%20ASINCRONÍA/ejercicio.md)|[📝](./Roadmap/15%20-%20ASINCRONÍA/python/mouredev.py)|[▶️](https://youtu.be/YA8Ssd3AUwA)|[👥](./Roadmap/15%20-%20ASINCRONÍA/)
5353
|16|[EXPRESIONES REGULARES](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/ejercicio.md)|[📝](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/python/mouredev.py)|[▶️](https://youtu.be/0L7IfEF19ow)|[👥](./Roadmap/16%20-%20EXPRESIONES%20REGULARES/)
5454
|17|[ITERACIONES](./Roadmap/17%20-%20ITERACIONES/ejercicio.md)|[📝](./Roadmap/17%20-%20ITERACIONES/python/mouredev.py)|[▶️](https://youtu.be/X1ROaPH_ci8)|[👥](./Roadmap/17%20-%20ITERACIONES/)
55-
|18|[CONJUNTOS](./Roadmap/18%20-%20CONJUNTOS/ejercicio.md)|[🗓️ 06/05/24](https://discord.gg/33hUYsY9?event=1232111657677754439)||[👥](./Roadmap/18%20-%20CONJUNTOS/)
55+
|18|[CONJUNTOS](./Roadmap/18%20-%20CONJUNTOS/ejercicio.md)|[📝](./Roadmap/18%20-%20CONJUNTOS/python/mouredev.py)|[▶️](https://youtu.be/0auuM4GROVA)|[👥](./Roadmap/18%20-%20CONJUNTOS/)
56+
|19|[ENUMERACIONES](./Roadmap/19%20-%20ENUMERACIONES/ejercicio.md)|[📝](./Roadmap/19%20-%20ENUMERACIONES/python/mouredev.py)||[👥](./Roadmap/19%20-%20ENUMERACIONES/)
57+
|20|[PETICIONES HTTP](./Roadmap/20%20-%20PETICIONES%20HTTP/ejercicio.md)|[🗓️ 20/05/24](https://discord.gg/QhTwYW7P?event=1237107397391024128)||[👥](./Roadmap/20%20-%20PETICIONES%20HTTP/)
5658

5759
## Instrucciones
5860

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
// https://isocpp.org
7+
8+
// Comentario de una sola línea
9+
10+
/*
11+
Este es un comentario
12+
compuesto
13+
de varias líneas
14+
*/
15+
16+
//VARIABLES
17+
int entero = 5;
18+
float flotante = 4.5f;
19+
string cadena = "Cadena en C++";
20+
double Double = 5.6;
21+
bool boolean = true;
22+
char caracter = 'D';
23+
24+
//CONSTANTE
25+
const float constante = 3.14f;
26+
27+
//SALIDA POR TERMINAL
28+
cout << entero << endl;
29+
cout << flotante << endl;
30+
cout << cadena << endl;
31+
cout << Double << endl;
32+
cout << boolean << endl;
33+
cout << caracter << endl;
34+
cout << constante << endl;
35+
36+
//TERMINAL
37+
string cPlusPlus = "C++";
38+
cout << "Hola " + cPlusPlus << endl;
39+
40+
return 0;
41+
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
public class AngelDev {
2+
public static void main(String[] args) {
3+
4+
// caracteres
5+
char caracter = '\u0040';
6+
char decimal = 64;
7+
System.out.println("caracter = " + caracter);
8+
System.out.println("decimal = " + decimal);
9+
System.out.println("decimal = caracter: " + (decimal == caracter));
10+
11+
char simbolo = '@';
12+
System.out.println("simbolo = " + simbolo);
13+
System.out.println("simbolo = caracter: " + (simbolo == caracter));
14+
15+
char espacio = '\u0020';
16+
char retroceso = '\b';
17+
char tabulador = '\t';
18+
char nuevaLinea = '\n';
19+
char retornoCarro = '\r';
20+
21+
System.out.println("char corresponde en byte:" + System.lineSeparator() + Character.BYTES);
22+
System.out.println("Char corresponde en bites = " + Character.SIZE);
23+
System.out.println("Character.MIN_VALUE = " + Character.MIN_VALUE);
24+
System.out.println("Character.MAX_VALUE = " + Character.MAX_VALUE);
25+
26+
27+
// Enteros y flotantes
28+
byte numeroByte = 127;
29+
System.out.println("numeroByte = " + numeroByte);
30+
System.out.println("tipo byte corresponde en byte a " + Byte.BYTES);
31+
System.out.println("tipo byte corresponde en bites a " + Byte.SIZE);
32+
System.out.println("valor máximo de un byte: " + Byte.MAX_VALUE);
33+
System.out.println("valor mínimo de un byte: " + Byte.MIN_VALUE);
34+
35+
short numeroShort = 32767;
36+
System.out.println("numeroShort = " + numeroShort);
37+
System.out.println("tipo short corresponde en byte a " + Short.BYTES);
38+
System.out.println("tipo short corresponde en bites a " + Short.SIZE);
39+
System.out.println("valor máximo de un short: " + Short.MAX_VALUE);
40+
System.out.println("valor mínimo de un short: " + Short.MIN_VALUE);
41+
42+
int numeroInt = 2147483647;
43+
System.out.println("numeroInt = " + numeroInt);
44+
45+
System.out.println("tipo int corresponde en byte a " + Integer.BYTES);
46+
System.out.println("tipo int corresponde en bites a " + Integer.SIZE);
47+
System.out.println("valor máximo de un int: " + Integer.MAX_VALUE);
48+
System.out.println("valor mínimo de un int: " + Integer.MIN_VALUE);
49+
50+
long numeroLong = 9223372036854775807L;
51+
System.out.println("numeroLong = " + numeroLong);
52+
53+
System.out.println("tipo long corresponde en byte a " + Long.BYTES);
54+
System.out.println("tipo long corresponde en bites a " + Long.SIZE);
55+
System.out.println("valor máximo de un long: " + Long.MAX_VALUE);
56+
System.out.println("valor mínimo de un long: " + Long.MIN_VALUE);
57+
58+
var numeroVar = 9223372036854775808f;
59+
60+
61+
// boleanos
62+
boolean datoLogico = true;
63+
System.out.println("datoLogico = " + datoLogico);
64+
65+
double d = 98765.43e-3; // 98.76543
66+
System.out.println("d = " + d);
67+
68+
float f = 1.2345e2f; // 123.45
69+
System.out.println("f = " + f);
70+
71+
datoLogico = d < f;
72+
System.out.println("datoLogico = " + datoLogico);
73+
74+
boolean esIgual = (3-2 == 1);
75+
System.out.println("esIgual = " + esIgual);
76+
77+
String nombre = "AngelDev";
78+
79+
80+
}
81+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
public class DiegoPardoMontero {
2+
public static void main(String[] args) {
3+
/*
4+
Comentario con URL de mi lenguaje:
5+
https://www.java.com/es/
6+
7+
Tres Formas de hacer comentarios:
8+
1. Usando // para comentarios de una sola linea
9+
2. Usando / * Contenido del comentario * / para comentarios de
10+
varias lineas
11+
3. Usando /** * / para comentarios de JavaDoc:
12+
Compuestos por:
13+
@author [nombreAutor]
14+
@param [nombreParametro] [descripcion]
15+
@return [descripcionDelRetorno]
16+
@exception o @throws [tipoExcepcion] [razonExcepcion]
17+
@version [versionSoftware]
18+
@deprecated [razonObsolescencia]
19+
*/
20+
21+
//Variable ejemplo
22+
String miVariable = "¡Hola,";
23+
24+
//Constante ejemplo
25+
final String miConstante = " Java!";
26+
27+
//Variables con tipos de datos primitivos
28+
byte miDatoByte = 1;
29+
short miDatoShort = 2;
30+
int miDatoEntero = 4;
31+
long miDatoLong = 8;
32+
double miDatoDouble = 3.2;
33+
float miDatoFloat = 4.5f;
34+
boolean miDatoBooleano = true;
35+
char miDatoChar = 'A';
36+
37+
//Impresión normal:
38+
System.out.println(miVariable + miConstante);
39+
}
40+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
public class IGuerreroV {
2+
//Reto de programacion por MoureDev
3+
4+
/*
5+
6+
EJERCICIO:
7+
- Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.
8+
- Representa las diferentes sintaxis que existen para crear comentarios en el lenguaje (en una línea, varias...).
9+
- Crea una variable (y una constante si el lenguaje lo soporta).
10+
- Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...).
11+
- Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!
12+
*/
13+
14+
// URL SITIO WEB OFICIAL: https://www.java.com/es/
15+
16+
public static void main(String[] args) {
17+
18+
// Variable
19+
var miVariable = "variable";
20+
21+
// Constante
22+
final String miConstante = "Constante";
23+
24+
// Datos primitivos
25+
byte datoPequeño = 8; // Almaneca valores pequeños
26+
short datoMasGrandeQueByte = 120; // Almcaena mas datos que byte
27+
int miEntero = 2000; // Es el mas comun
28+
long miEnteroGrande = 200000; // Es para almacenar enteros mas grandes
29+
double miFlotante = 120.5d; // Se usa para almacenar valores flotantes, mas precision
30+
float miDecimal = 120.6f; // Se usa para almacenar valores flotantes, menos precision
31+
char miChat = 'a'; // Se usa para almacenar caracteres (unicode) con comillas simples
32+
boolean miBoolean = true; // Se usa para almacenar valores de verdad (true / false)
33+
34+
System.out.println("¡Hola, Java ");
35+
}
36+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//Sitio oficial del lenguaje de Java url: https://www.java.com/es/
2+
3+
/*En Java puedes comentar utilizando / y asterisco * cerrando finalmente con el asterisco y la barra, nuevamente */
4+
//También puedes usar doble barra si lo que quieres comentar se encuentra en una misma línea
5+
6+
7+
public class JehiselRuth {
8+
9+
//Variable
10+
int variableNumber = 9;
11+
//Constante
12+
final int MY_AGE = 38;
13+
14+
//Tipos de datos primitivos
15+
int fingers = 5;
16+
float weight = 53.4f;
17+
double average = 4.95;
18+
char character = 'J';
19+
boolean isComplete = true;
20+
String myLanguaje = "Jehisel";
21+
22+
public static void main(String[] args) {
23+
String myLanguaje = "Java";
24+
System.out.println("¡Hola, "+ myLanguaje + "!");
25+
}
26+
27+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/* EJERCICIO 00:
2+
*/
3+
4+
public class Worlion {
5+
6+
// https://www.java.com/es/
7+
8+
// Esto es un comentario de una línea
9+
10+
/*
11+
* Esto es un comentario de bloque
12+
*/
13+
14+
// Esto es una variable
15+
int variable = 2;
16+
17+
// Esto es una constante
18+
static final int CONSTANTE = 1;
19+
20+
//Tipos primitivos
21+
22+
//byte
23+
byte byteVariable = 10;
24+
25+
//short
26+
short shortVariable = 20;
27+
28+
//int
29+
int intVariable = 30;
30+
31+
//long
32+
long longVariable = 40L;
33+
34+
//float
35+
float floatVariable = 3.14f;
36+
37+
//double
38+
double doubleVariable = 2.71828;
39+
40+
//char
41+
char charVariable = 'A';
42+
43+
//boolean
44+
boolean booleanVariable = true;
45+
46+
// El tipo String NO es un tipo primitivo
47+
static String stringVariable = "¡Hola, Java!";
48+
49+
public static void main(String[] args) {
50+
System.out.println(stringVariable);
51+
}
52+
53+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
public class Main {
2+
public static void main(String[] args) {
3+
// URL del sitio web oficial de Java: https://docs.oracle.com/en/java/
4+
5+
// Comentario en una línea de código
6+
/*
7+
Comentario
8+
en varias
9+
líneas de código
10+
*/
11+
12+
var variable = 1;
13+
final int constante = 5;
14+
15+
// Tipos de datos primitivos
16+
byte numeroByte = 1;
17+
short numeroShort = 10;
18+
int entero = 15;
19+
long numeroLong = 100;
20+
double doble = 15.64;
21+
float flotante = 15.64f;
22+
char caracter = 'C';
23+
boolean booleano = true;
24+
25+
System.out.println("¡Hola, Java!");
26+
}
27+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* EJERCICIO:
3+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
4+
* lenguaje de programación que has seleccionado.
5+
* - Representa las diferentes sintaxis que existen de crear comentarios
6+
* en el lenguaje (en una línea, varias...).
7+
* - Crea una variable (y una constante si el lenguaje lo soporta).
8+
* - Crea variables representando todos los tipos de datos primitivos
9+
* del lenguaje (cadenas de texto, enteros, booleanos...).
10+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
11+
*
12+
* ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y
13+
* debemos comenzar por el principio.
14+
*/
15+
16+
//https://developer.mozilla.org/es/docs/Web/JavaScript
17+
18+
//Comentario en una linea
19+
20+
/*Comentario
21+
en varias
22+
lineas
23+
*/
24+
//asi se crea una variable
25+
26+
let EstoesUnavariable = "Hola Mundo"
27+
28+
//asi se crea una constante
29+
const EstaesunaConstante = "Hi world"
30+
31+
//Distintos tipos de variables representando datos primitivos
32+
33+
let number = 9
34+
let float = 0.8
35+
36+
let boolean = true
37+
let booleano = false
38+
let mystring = "Hola mundo"
39+
let bigInt = 9000000000000000
40+
let miSyimbol = Symbol("foo")
41+
//input
42+
console.log("holaaa mundoooo");
43+
44+

0 commit comments

Comments
 (0)