Skip to content

Commit f9ba374

Browse files
author
jtovart
committed
2 parents 7064dbe + 6014b30 commit f9ba374

File tree

85 files changed

+9673
-1294
lines changed

Some content is hidden

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

85 files changed

+9673
-1294
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
## Corrección y próximo ejercicio
2929

30-
> #### Lunes 16 de septiembre de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/8cxgGTxm?event=1280229634524450877)** por país y crea un **[recordatorio](https://discord.gg/8cxgGTxm?event=1280229634524450877)**
30+
> #### Lunes 30 de septiembre de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/Ak6SdZZ8?event=1285336208586833930)** por país y crea un **[recordatorio](https://discord.gg/Ak6SdZZ8?event=1285336208586833930)**
3232
3333
## Roadmap
3434

@@ -72,7 +72,8 @@
7272
|35|[REPARTIENDO LOS ANILLOS DE PODER](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/ejercicio.md)|[📝](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/python/mouredev.py)|[▶️](https://youtu.be/10i2dnaMLj8)|[👥](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/)
7373
|36|[EL SOMBRERO SELECCIONADOR](./Roadmap/36%20-%20EL%20SOMBRERO%20SELECCIONADOR/ejercicio.md)|[📝](./Roadmap/36%20-%20EL%20SOMBRERO%20SELECCIONADOR/python/mouredev.py)|[▶️](https://youtu.be/_UjOD587elY)|[👥](./Roadmap/36%20-%20EL%20SOMBRERO%20SELECCIONADOR/)
7474
|37|[OASIS VS LINKIN PARK](./Roadmap/37%20-%20OASIS%20VS%20LINKIN%20PARK/ejercicio.md)|[📝](./Roadmap/37%20-%20OASIS%20VS%20LINKIN%20PARK/python/mouredev.py)|[▶️](https://youtu.be/q-zBKriHupY)|[👥](./Roadmap/37%20-%20OASIS%20VS%20LINKIN%20PARK/)
75-
|38|[MOUREDEV PRO](./Roadmap/38%20-%20MOUREDEV%20PRO/ejercicio.md)|[🗓️ 23/09/24](https://discord.gg/xeebRweK?event=1283082037917519985)||[👥](./Roadmap/38%20-%20MOUREDEV%20PRO/)
75+
|38|[MOUREDEV PRO](./Roadmap/38%20-%20MOUREDEV%20PRO/ejercicio.md)|[📝](./Roadmap/38%20-%20MOUREDEV%20PRO/python/mouredev.py)|[▶️](https://youtu.be/AbGROLoAVLs)|[👥](./Roadmap/38%20-%20MOUREDEV%20PRO/)
76+
|39|[BATMAN DAY](./Roadmap/39%20-%20BATMAN%20DAY/ejercicio.md)|[🗓️ 30/09/24](https://discord.gg/Ak6SdZZ8?event=1285336208586833930)||[👥](./Roadmap/39%20-%20BATMAN%20DAY/)
7677

7778
## Cursos en YouTube
7879

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
// url: isocpp.org (no hay sitio oficial)
3+
4+
// Esto es un comentario
5+
6+
/* Esto también es un comentario */
7+
8+
#include <iostream>
9+
using namespace std;
10+
11+
#define constante 1
12+
13+
int main(){
14+
char variable = 'variable';
15+
const int constant2 = 2;
16+
17+
int numero = 10;
18+
short numeroCorto = 5;
19+
long numeroLargo = 100000;
20+
long long numeroMuyLargo = 1000000000;
21+
unsigned int numeroPositivo = 100;
22+
23+
char caracter = 'a';
24+
char string = 'string';
25+
wchar_t letraUnicode = L'Ω';
26+
27+
bool verdad = true;
28+
bool falso = false;
29+
30+
float flotante = 1.2f;
31+
double float_largo = 1.22222222; // 15 decimales o menos
32+
long double numeroLargoDoble = 3.14159265358979323846L;
33+
34+
cout << "¡Hola, C++!";
35+
return 0;
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* EJERCICIO : Crea un comentario en el código y coloca la URL del sitio web oficial del
2+
lenguaje de programación que has seleccionado.Representa las diferentes sintaxis que existen de crear comentarios
3+
en el lenguaje(en una línea, varias...)
4+
.Crea una variable(y una constante si el lenguaje lo soporta)
5+
.Crea variables representando todos los tipos de datos primitivos del lenguaje(cadenas de texto, enteros, booleanos...)
6+
.Imprime por terminal el texto : "¡Hola, [y el nombre de tu lenguaje]!" */
7+
8+
#include <iostream>
9+
#include <stdio.h>
10+
11+
#define MaxValue 256 // Constante
12+
13+
using namespace std;
14+
15+
int main()
16+
{
17+
int value = 3; // enteros
18+
float pi = 3.14; // decimales
19+
bool verdadero = true; // booleanos
20+
bool falso = false;
21+
char letter = 'a'; // de caracter
22+
string hello = "Hola C++!\n"; // cadena de caracteres
23+
24+
cout << hello;
25+
26+
system("pause");
27+
return 0;
28+
}
29+
30+
/*
31+
comentario
32+
en varias
33+
lineas
34+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// URL del sitio web oficial de C++: https://isocpp.org/
2+
// Generado por Chatgpt
3+
4+
// Comentarios en una línea
5+
6+
/*
7+
Comentarios
8+
en varias
9+
líneas
10+
*/
11+
12+
#include <iostream> // Para poder usar std::cout
13+
#include <string> // Para poder usar el tipo std::string
14+
15+
// Constante (en C++)
16+
const double PI = 3.14159;
17+
18+
int main() {
19+
// Variables con diferentes tipos de datos primitivos
20+
int numeroEntero = 42;
21+
float numeroDecimal = 3.14f;
22+
double numeroDoble = 2.718281828;
23+
bool esVerdadero = true;
24+
char letra = 'C';
25+
std::string cadenaDeTexto = "¡Hola, C++!";
26+
27+
// Imprimir por terminal
28+
std::cout << "¡Hola, C++!" << std::endl;
29+
30+
// Imprimir el valor de las variables
31+
std::cout << "Número Entero: " << numeroEntero << std::endl;
32+
std::cout << "Número Decimal (float): " << numeroDecimal << std::endl;
33+
std::cout << "Número Doble (double): " << numeroDoble << std::endl;
34+
std::cout << "Booleano: " << (esVerdadero ? "Verdadero" : "Falso") << std::endl;
35+
std::cout << "Carácter: " << letra << std::endl;
36+
std::cout << "Cadena de Texto: " << cadenaDeTexto << std::endl;
37+
38+
return 0;
39+
}

Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/c/d1d4cum.c

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <stdio.h>
2-
2+
#include <stdbool.h>
33

44
// https://www.w3schools.com/c/index.php
55
// Comentario de una sola línea
@@ -12,7 +12,23 @@ líneas
1212
int age = 28;
1313
const char letter = 'D';
1414

15+
// Tipos de datos
16+
char caracter = 'A';
17+
int numero = 10;
18+
float decimalPequeño = 10.191283;
19+
double decimalGrande = 10.192845671829345;
20+
bool boolean = true;
21+
1522
int main() {
1623
printf("¡Hola, C!\n");
24+
printf("%c\n", caracter);
25+
printf("%d\n", numero);
26+
printf("%f\n", decimalPequeño);
27+
printf("%.1f\n", decimalPequeño);
28+
printf("%.2f\n", decimalPequeño);
29+
printf("%lf\n", decimalGrande);
30+
printf("%.1lf\n", decimalGrande);
31+
printf("%.2lf\n", decimalGrande);
32+
1733
return 0;
1834
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
* -Crea un comentario en el código y coloca la URL del sitio
2+
* web oficial del lenguaje de programación que has seleccionado
3+
* -Representa las diferentes sintaxis que existen de crear
4+
* comentarios en el lenguaje (en una línea, varias...).
5+
* -Crea una variable (y una constante).
6+
* -Crea variables representando todos los tipos de datos
7+
* primitivos del lenguaje (cadenas de texto, enteros...)
8+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu
9+
* lenguaje]!"
10+
**************************************************************************
11+
* commentaire
12+
**************************************************************************
13+
* Voici un commentaire en Cobol
14+
* URL officielle de GnuCOBOL: https://gnucobol.sourceforge.io/
15+
IDENTIFICATION DIVISION.
16+
PROGRAM-ID. RETO-O.
17+
DATA DIVISION.
18+
WORKING-STORAGE SECTION.
19+
**************************************************************************
20+
* Variables
21+
**************************************************************************
22+
77 MY-VARIABLE PIC 9(5) VALUE 12345.
23+
77 MY-STRING PIC X(20) VALUE "COBOL Language".
24+
**************************************************************************
25+
* Type de données primitifs
26+
**************************************************************************
27+
77 MY-INTEGER PIC 9(5) VALUE 12345.
28+
77 MY-TEXT PIC X(20) VALUE "HOLA COBOL".
29+
77 MY-DECIMAL PIC 99V99 VALUE 13.14.
30+
77 MY-BOOLEAN PIC X VALUE "T".
31+
**************************************************************************
32+
* Afficher un message dans le terminal
33+
**************************************************************************
34+
PROCEDURE DIVISION.
35+
DISPLAY "***************************".
36+
DISPLAY "¡Hola, COBOL!".
37+
DISPLAY "Valor de MY-VARIABLE : " MY-VARIABLE.
38+
DISPLAY "Texto en MY-TEXT : " MY-TEXT.
39+
DISPLAY "Valor de MY-INTEGER : " MY-INTEGER.
40+
DISPLAY "Valor de MY-DECIMAL : " MY-DECIMAL.
41+
DISPLAY "Booleano MY-BOOLEAN : " MY-BOOLEAN.
42+
DISPLAY "***************************".
43+
STOP RUN.
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package RetosJava;
2+
3+
public class Reto1 {
4+
5+
public static void main(String args[]) {
6+
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+
9+
//https://www.java.com/es/
10+
/*
11+
//https://www.java.com/es/
12+
*/
13+
14+
//- Crea una variable (y una constante si el lenguaje lo soporta).
15+
int variable1 = 0;
16+
final int const1 = 1;
17+
18+
//- Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...).
19+
20+
byte varByte = 127;
21+
short varShort = 32767;
22+
int varInt = 999999999;
23+
long varLong = 999999999;
24+
float varFloat = 1.26f;
25+
double varDouble = 1.25;
26+
boolean varBoolean = true;
27+
boolean varBoolean2 = false;
28+
char varChar = 'A';
29+
30+
//- Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
31+
String varString ="Hola soy una variable de tipo String";
32+
33+
System.out.println("¡Hola JAVA!");
34+
35+
}
36+
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
public class Raghnus {
2+
// URL: https://www.java.com/es/
3+
4+
// Comentario de una línea
5+
6+
/*
7+
* Comentario
8+
* de
9+
* varias
10+
* líneas
11+
*/
12+
13+
// Variable
14+
int variable = 5;
15+
16+
// Constante
17+
final double CONSTANTE = 3.689;
18+
19+
// Tipos de variables
20+
int x = 5;
21+
byte y = 10;
22+
short z = 9;
23+
long a = 58090;
24+
double f = 89.6;
25+
float g = 98.64f;
26+
char i = 'h';
27+
boolean k = true;
28+
String l = "Java";
29+
30+
public static void main(String[] args) {
31+
String lenguaje = "Java";
32+
System.out.println("Hola, " + lenguaje);
33+
}
34+
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// https://developer.mozilla.org/en-US/docs/Web/javascript
2+
3+
// Esto es un comentario en Javascript
4+
5+
/*
6+
Esto también es un comentario, pero
7+
en múltiples líneas.
8+
*/
9+
10+
// Esto es una variable
11+
let variable = "Soy una variable.";
12+
const CONSTANTE = "Soy una constante.";
13+
14+
let stringVar = "Soy un String.";
15+
let integerVar = 230;
16+
let bigIntegerVar = BigInt("12345678901234567890");
17+
let floatVar = 0.23;
18+
let booleanVar = true;
19+
let undefinedVar;
20+
let symbolVar = Symbol("Redd");
21+
22+
console.log("¡Hola, Javascript!");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/* 1.Crea un comentario en el código y coloca la URL del sitio web oficial del
2+
lenguaje de programación que has seleccionado.*/
3+
4+
// https://developer.mozilla.org/es/docs/Web/JavaScript
5+
6+
/* 2.Representa las diferentes sintaxis que existen de crear comentarios
7+
en el lenguaje (en una línea, varias...)*/
8+
9+
function comment() {
10+
// Este es un comentario JavaScript de una línea
11+
console.log("¡Hola mundo!");
12+
}
13+
comment();
14+
15+
function comment() {
16+
/*Este es un comentario
17+
JavaScript de varias líneas*/
18+
console.log("¡Hola mundo!");
19+
}
20+
comment();
21+
22+
// 3.Crea una variable (y una constante si el lenguaje lo soporta).
23+
24+
//antes del ES6 las variables solo se declaraban con VAR
25+
26+
var javascript = true;
27+
var edad = 18;
28+
var precio = 9.99;
29+
var nombre = 'Juan';
30+
31+
let javascript = true;
32+
let edad = 18;
33+
let precio = 9.99;
34+
let nombre = 'Juan';
35+
36+
const nombre = 'Juan'; // Es necesario agregar un valor
37+
// const nombre; Si la constante no tiene valor genera error
38+
39+
/* 4.Crea variables representando todos los tipos de datos primitivos
40+
del lenguaje (cadenas de texto, enteros, booleanos...)*/
41+
42+
let javascript = true; // boolean
43+
let edad = 18; // Entero
44+
let precio = 9.99; // Float
45+
let nombre = 'Juan'; // String
46+
47+
// 5.Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
48+
49+
let nombre = 'JavaScript';
50+
console.log("Hola" + nombre)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# url: https://www.python.org/
2+
3+
# comentario
4+
5+
'''
6+
También un comentario
7+
'''
8+
9+
"""
10+
Otro comentario
11+
"""
12+
13+
variable = "Hola"
14+
CONSTANTE = "Constante?" # Es por convención, no es una contante real
15+
16+
var_int = 1
17+
var_str = "string"
18+
var_bool = True
19+
var_float = 1.0
20+
21+
print("¡Hola, Python!")

0 commit comments

Comments
 (0)