diff --git a/.gitignore b/.gitignore index b1bf8808..5834bfce 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ !.gitpod.Dockerfile !bc.json !README.md +!README.*.md !/exercises !/exercises/* diff --git a/README.md b/README.md index 56cadfeb..e33da38a 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds 1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) :computer: (idea) 🤔, (build-tests) :warning:, (pull-request-review) :eyes: (build-tutorial) :white_check_mark: (documentation) :book: 2. [Paolo (plucodev)](https://github.com/plucodev), contribution: (bug reports) :bug:, contribution: (coder), (translation) :earth_americas: +3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribution: (bug reports) :bug:, (translation) :earth_africa: This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) diff --git a/exercises/01-welcome/README.es.md b/exercises/01-welcome/README.es.md new file mode 100644 index 00000000..9635c1a9 --- /dev/null +++ b/exercises/01-welcome/README.es.md @@ -0,0 +1,4 @@ +# Bienvenid@ a Python! + +¡¡Nos estusiasma mucho tenerte aquí!! 🎉 😂 +Presiona `Next` `Next →` de arriba a la derecha cuando quieras empezar. diff --git a/exercises/01-welcome/README.md b/exercises/01-welcome/README.md index 803a35e3..2fbac070 100644 --- a/exercises/01-welcome/README.md +++ b/exercises/01-welcome/README.md @@ -1 +1,4 @@ -# Welcome to Python! \ No newline at end of file +# Welcome to Python! + +We are very excited to have you here !! 🎉 😂 +Click `next` on the top right of this instructions when you are ready to start. \ No newline at end of file diff --git a/exercises/02-hello-world/README.es.md b/exercises/02-hello-world/README.es.md new file mode 100644 index 00000000..cf046d23 --- /dev/null +++ b/exercises/02-hello-world/README.es.md @@ -0,0 +1,19 @@ +# `02` Hola, Mundo + +En Python, usamos `print` para hacer que el computador escriba cualquier cosa que queramos (el contenido de una variable, un texto dado, etc.) in algo llamado `la consola`. + +Cada idioma tiene funciones para integrarse con la consola, ya que al principio era la única forma de interactuar con los usuarios (antes de que llegara Windows o MacOS o Linux). Hoy en día, la impresión en la consola se utiliza sobre todo como herramienta de monitorización, ideal para dejar un rastro del contenido de las variables durante la ejecución del programa. + +Este es un ejemplo de cómo usarlo: +```py +print("How are you?") +``` + +## 📝 Instrucciones: + +Usa la función `print()` para escribir "Hello World!" en la consola. Siéntete libre de intentar otras cosas también. + +## 💡 Información adicional: + +Video de 5 minutos sobre la consola: +https://www.youtube.com/watch?v=vROGBvX_MHQ diff --git a/exercises/02-hello-world/README.md b/exercises/02-hello-world/README.md index 5273e055..a1ee2c1c 100644 --- a/exercises/02-hello-world/README.md +++ b/exercises/02-hello-world/README.md @@ -9,12 +9,13 @@ This is an example of how to use it: print("How are you?") ``` -📝 Instructions: +## 📝 Instructions: ```md Use the `print()` function to print `"Hello World"` on the console. Feel free to try other things as well. ``` -💡 Additional info: +## 💡 Additional info: + 5 minutes video about the console: https://www.youtube.com/watch?v=1RlkftxAo-M \ No newline at end of file diff --git a/exercises/03-sum_of_three_numbers/README.es.md b/exercises/03-sum_of_three_numbers/README.es.md new file mode 100644 index 00000000..761cb3b8 --- /dev/null +++ b/exercises/03-sum_of_three_numbers/README.es.md @@ -0,0 +1,15 @@ +# `03` Sum of three numbers + +## 📝 Instrucciones: + +**Planteamiento** +Obteniendo tres números de la entrada, imprime su suma. Cada número es dado en una línea aparte. + +**Ejemplo de entrada** +- 2 +- 3 +- 6 + +**Ejemplo de salida** +- 11 + diff --git a/exercises/03-sum_of_three_numbers/README.md b/exercises/03-sum_of_three_numbers/README.md index 41c6dd6b..29cddf6e 100644 --- a/exercises/03-sum_of_three_numbers/README.md +++ b/exercises/03-sum_of_three_numbers/README.md @@ -1,6 +1,6 @@ # `03` Sum of three numbers -📝 Instructions: +## 📝 Instructions: **Statement** Taking 3 numbers from the input, print their sum. Every number is given on a separate line. diff --git a/exercises/04-area_of_right_triangle/README.es.md b/exercises/04-area_of_right_triangle/README.es.md new file mode 100644 index 00000000..4ffd7a88 --- /dev/null +++ b/exercises/04-area_of_right_triangle/README.es.md @@ -0,0 +1,22 @@ +# `04` Área de un triángulo rectángulo + +## 📝 Instrucciones: + +Escribe un programa que lea la longitud de la base y la altura de un triángulo rectángulo e imprima su área. Cada número es dado en una línea por separado. + +![Imagen descriptiva](http://i.imgur.com/6EkzVxA.jpg) + +**Ejemplo de entrada** +* 3 +* 5 + +**Ejemplo de salida** +* 7.5 + +**Teoría** + +Si no sabes cómo empezar la solución a este problema, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/print_input_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/print_input_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/04-area_of_right_triangle/README.md b/exercises/04-area_of_right_triangle/README.md index 17cf0735..a0ae218e 100644 --- a/exercises/04-area_of_right_triangle/README.md +++ b/exercises/04-area_of_right_triangle/README.md @@ -1,6 +1,6 @@ # `04` Area of right triangle -📝 Instructions: +## 📝 Instructions: Write a program that reads the length of the base and the height of a right-angled triangle and prints the area. Every number is given on a separate line. diff --git a/exercises/05-hello_harry/README.es.md b/exercises/05-hello_harry/README.es.md new file mode 100644 index 00000000..4539c20d --- /dev/null +++ b/exercises/05-hello_harry/README.es.md @@ -0,0 +1,20 @@ +# `05` Hola Harry + +## 📝 Instrucciones: + +Escribe un programa que salude al usuario imprimiendo la palabra "Hola", una coma, el nombre del usuario y un signo de exclamación después de él. Ve los ejemplos a continuación. + +**Advertencia.** La salida de tu programa debe coincidir estrictamente con la deseada, caracter por caracter. No debe haber ningún espacio entre el nombre y el signo de exclamación. Puedes usar el operador + para concatenar dos cadenas de texto. Ve la lección para más detalles. + +**Ejemplo de entrada** +* Harry + +**Ejemplo de salida** +* Hello, Harry! + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/print_input_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/print_input_numbers/steps/1/ diff --git a/exercises/05-hello_harry/README.md b/exercises/05-hello_harry/README.md index d06df4b2..d947fc90 100644 --- a/exercises/05-hello_harry/README.md +++ b/exercises/05-hello_harry/README.md @@ -1,6 +1,6 @@ # `05` Hello Harry -📝 Instructions: +## 📝 Instructions: Write a program that greets the user by printing the word "Hello", a comma, the name of the user and an exclamation mark after it. See the examples below. diff --git a/exercises/06-previous_and_next/README.es.md b/exercises/06-previous_and_next/README.es.md new file mode 100644 index 00000000..c2c88c89 --- /dev/null +++ b/exercises/06-previous_and_next/README.es.md @@ -0,0 +1,20 @@ +# `06` Anterior y siguiente + +## 📝 Instrucciones: + +Escribe un programa que lea un número entero y devuelva sus números anteriores y siguientes. Ve el ejemplo a continuación. + +**Ejemplo de entrada** +* 179 + +**Ejemplo de salida** +* (178, 180) + +Ayuda: Puedes devolver múltiples parámetros: `return a, b` + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/print_input_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/print_input_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/06-previous_and_next/README.md b/exercises/06-previous_and_next/README.md index d899324d..f8ffc4d7 100644 --- a/exercises/06-previous_and_next/README.md +++ b/exercises/06-previous_and_next/README.md @@ -1,6 +1,6 @@ # `06` Previous and Next -📝 Instructions: +## 📝 Instructions: Write a program that reads an integer number and returns its previous and next numbers. See the example below. @@ -12,9 +12,9 @@ Write a program that reads an integer number and returns its previous and next n * (178, 180) -**Theory** Hint: You can return multiple parameters: return a, b +**Theory** If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/print_input_numbers/ diff --git a/exercises/07-Apple_sharing/README.es.md b/exercises/07-Apple_sharing/README.es.md new file mode 100644 index 00000000..477b50aa --- /dev/null +++ b/exercises/07-Apple_sharing/README.es.md @@ -0,0 +1,21 @@ +# `07` Compartiendo una manzana + +## 📝 Instrucciones: + +N estudiantes cogen K manzanas y las distribuyen entre ell@s de manera uniforme. La parte restante (la indivisible) permanece en la cesta. ¿Cuántas manzanas recibirá cada estudiante? ¿Cuántas manzanas quedarán en la cesta? +El programa lee los números N y K. Debería devolver las dos respuestas a las preguntas anteriores. + +**Ejemplo de entrada** +* (6, 50) + +**Ejemplo de salida** +* (8, 2) + +Ayuda: Puedes devolver múltiples parámetros: `return a, b` + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/print_input_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/print_input_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/07-Apple_sharing/README.md b/exercises/07-Apple_sharing/README.md index 17dece5c..f9305845 100644 --- a/exercises/07-Apple_sharing/README.md +++ b/exercises/07-Apple_sharing/README.md @@ -1,6 +1,6 @@ # `07` Apple Sharing -📝 Instructions: +## 📝 Instructions: N students take K apples and distribute them among each other evenly. The remaining (the indivisible) part remains in the basket. How many apples will each single student get? How many apples will remain in the basket? The program reads the numbers N and K. It should return the two answers for the questions above. @@ -11,9 +11,9 @@ The program reads the numbers N and K. It should return the two answers for the **Example output** * (8, 2) -**Theory** Hint: You can return multiple parameters: return a, b +**Theory** If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/print_input_numbers/ diff --git a/exercises/07.1-square-value/README.es.md b/exercises/07.1-square-value/README.es.md new file mode 100644 index 00000000..9d4842ae --- /dev/null +++ b/exercises/07.1-square-value/README.es.md @@ -0,0 +1,8 @@ +# 07.1 El cuadrado de un número + +# 📝 Instrucciones + +Escribe un método llamado `square` que calculará el valor cuadrado de un número + +## 💡 Ayuda: +Usa el operador `**` \ No newline at end of file diff --git a/exercises/08-hours_and_minutes/README.es.md b/exercises/08-hours_and_minutes/README.es.md new file mode 100644 index 00000000..2cba201e --- /dev/null +++ b/exercises/08-hours_and_minutes/README.es.md @@ -0,0 +1,23 @@ +# `08` Horas y minutos + +## 📝 Instrucciones: + +Dado el número entero N - el número de segundos que pasan desde la medianoche - ¿cuántas horas y minutos completos pasan desde la medianoche? + +El programa debe imprimir dos números: el número de horas (entre 0 y 23) y el número de minutos (entre 0 y 1339). + +Por ejemplo, si N = 3900, entonces han pasado 3900 segundos desde la medianoche - es decir, ahora es la 1:05am. Así que el programa debe imprimir 1 65 - 1 hora completa ha pasado desde la medianoche, 65 minutos completos han pasado desde la medianoche. + + +**Ejemplo de entrada** +* 3900 + +**Ejemplo de salida** +* (1, 65) + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/print_input_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/print_input_numbers/steps/1/ diff --git a/exercises/08-hours_and_minutes/README.md b/exercises/08-hours_and_minutes/README.md index e9a36c38..b240d13f 100644 --- a/exercises/08-hours_and_minutes/README.md +++ b/exercises/08-hours_and_minutes/README.md @@ -1,6 +1,6 @@ # `08` Hours and Minutes -📝 Instructions: +## 📝 Instructions: Given the integer N - the number of seconds that is passed since midnight - how many full hours and full minutes are passed since midnight? diff --git a/exercises/09-Two_timestamps/README.es.md b/exercises/09-Two_timestamps/README.es.md new file mode 100644 index 00000000..83e87f51 --- /dev/null +++ b/exercises/09-Two_timestamps/README.es.md @@ -0,0 +1,35 @@ +# `09` Dos marcas de tiempo + +## 📝 Instrucciones: + +Dadas dos marcas de tiempo del mismo día: un número de horas, minutos y segundos para ambas marcas de tiempo. El momento de la primera marca de tiempo ocurrió antes del momento de la segunda. Calcula cuántos segundos pasaron entre ellos. + + +**Ejemplo de entrada #1** +* 1 +* 1 +* 1 +* 2 +* 2 +* 2 + +**Ejemplo de salida #1** +* 3661 + +**Ejemplo de entrada #2** +* 1 +* 2 +* 30 +* 1 +* 3 +* 20 + +**Ejemplo de salida #2** +* 50 + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/print_input_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/print_input_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/09-Two_timestamps/README.md b/exercises/09-Two_timestamps/README.md index 5217e6d9..fc3871f9 100644 --- a/exercises/09-Two_timestamps/README.md +++ b/exercises/09-Two_timestamps/README.md @@ -1,6 +1,6 @@ # `09` Two Timestamp -📝 Instructions: +## 📝 Instructions: Given two timestamps of the same day: a number of hours, minutes and seconds for both of the timestamps. The moment of the first timestamp happened before the moment of the second one. Calculate how many seconds passed between them. diff --git a/exercises/10-Two_digits/README.es.md b/exercises/10-Two_digits/README.es.md new file mode 100644 index 00000000..a7f5366b --- /dev/null +++ b/exercises/10-Two_digits/README.es.md @@ -0,0 +1,18 @@ +# `10` Dos dígitos + +## 📝 Instrucciones: + +Dado un entero de dos dígitos, devuelve su dígito izquierdo (las decenas) y luego su dígito derecho (las unidades). Utiliza el operador de división de enteros para obtener el dígito de las decenas y el operador de residuo/resto para obtener el dígito de las unidades. + +**Ejemplo de entrada** +* 79 + +**Ejemplo de salida** +* (7, 9) + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/10-Two_digits/README.md b/exercises/10-Two_digits/README.md index b8534b8e..d66f430d 100644 --- a/exercises/10-Two_digits/README.md +++ b/exercises/10-Two_digits/README.md @@ -1,6 +1,6 @@ # `10` Two Digits -📝 Instructions: +## 📝 Instructions: Given a two-digit integer, return its left digit (a tens digit) and then its right digit (a ones digit). Use the operator of integer division for obtaining the tens digit and the operator of taking remainder for obtaining the ones digit. diff --git a/exercises/11-Swap_digits/README.es.md b/exercises/11-Swap_digits/README.es.md new file mode 100644 index 00000000..49078fd8 --- /dev/null +++ b/exercises/11-Swap_digits/README.es.md @@ -0,0 +1,18 @@ +# `11` Intercambiar dígitos + +## 📝 Instrucciones: + +Dado un entero de dos dígitos, intercambia sus dígitos de posición e imprime el resultado. + +**Ejemplo de entrada** +* 79 + +**Ejemplo de salida** +* 97 + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/11-Swap_digits/README.md b/exercises/11-Swap_digits/README.md index 816d07c8..d0cf7e23 100644 --- a/exercises/11-Swap_digits/README.md +++ b/exercises/11-Swap_digits/README.md @@ -1,6 +1,6 @@ # `11` Swap Digits -📝 Instructions: +## 📝 Instructions: Given a two-digit integer, swap its digits and print the result. diff --git a/exercises/12-Last_two_digits/README.es.md b/exercises/12-Last_two_digits/README.es.md new file mode 100644 index 00000000..c3f5e77b --- /dev/null +++ b/exercises/12-Last_two_digits/README.es.md @@ -0,0 +1,18 @@ +# `12` Últimos dos dígitos + +## 📝 Instrucciones: + +Dado un número entero mayor que 9, imprime sus últimos dos dígitos. + +**Ejemplo de entrada** +1234 + +**Ejemplo de salida** +34 + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/12-Last_two_digits/README.md b/exercises/12-Last_two_digits/README.md index d0257ca2..297c086d 100644 --- a/exercises/12-Last_two_digits/README.md +++ b/exercises/12-Last_two_digits/README.md @@ -1,6 +1,6 @@ # `12` Last two digits -📝 Instructions: +## 📝 Instructions: Given an integer greater than 9, print its last two digits. diff --git a/exercises/13-Tens_digit/README.es.md b/exercises/13-Tens_digit/README.es.md new file mode 100644 index 00000000..7ee1e037 --- /dev/null +++ b/exercises/13-Tens_digit/README.es.md @@ -0,0 +1,24 @@ +# `13` Decenas + +## 📝 Instrucciones: + +Dado un entero, devuelve sus decenas. + +**Ejemplo de entrada** +1234 + +**Ejemplo de salida** +3 + +**Ejemplo de entrada** +179 + +**Ejemplo de salida** +7 + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/13-Tens_digit/README.md b/exercises/13-Tens_digit/README.md index d10306fe..ce4fb263 100644 --- a/exercises/13-Tens_digit/README.md +++ b/exercises/13-Tens_digit/README.md @@ -1,6 +1,6 @@ # `13` Tens Digits -📝 Instructions: +## 📝 Instructions: Given an integer, return its tens digit. diff --git a/exercises/14-sum_of_digits/README.es.md b/exercises/14-sum_of_digits/README.es.md new file mode 100644 index 00000000..6bef059d --- /dev/null +++ b/exercises/14-sum_of_digits/README.es.md @@ -0,0 +1,18 @@ +# `14` Suma de dígitos + +## 📝 Instrucciones: + +Dado un número de tres dígitos. Encuentra la suma de sus dígitos. + +**Ejemplo de entrada** +123 + +**Ejemplo de salida** +6 + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/14-sum_of_digits/README.md b/exercises/14-sum_of_digits/README.md index 5a92d7e7..56e28b73 100644 --- a/exercises/14-sum_of_digits/README.md +++ b/exercises/14-sum_of_digits/README.md @@ -1,6 +1,6 @@ # `14` Sum of digits -📝 Instructions: +## 📝 Instructions: Given a three-digit number. Find the sum of its digits. diff --git a/exercises/15-Digit_after_decimal_point/README,es.md b/exercises/15-Digit_after_decimal_point/README,es.md new file mode 100644 index 00000000..16d4dbec --- /dev/null +++ b/exercises/15-Digit_after_decimal_point/README,es.md @@ -0,0 +1,18 @@ +# `15` Dígito decimal + +## 📝 Instrucciones: + +Dado un número real positivo, devuelve su primer decimal (a la derecha del punto). + +**Ejemplo de entrada** +1.79 + +**Ejemplo de salida** +7 + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/15-Digit_after_decimal_point/README.md b/exercises/15-Digit_after_decimal_point/README.md index 72fcba69..1ea036c5 100644 --- a/exercises/15-Digit_after_decimal_point/README.md +++ b/exercises/15-Digit_after_decimal_point/README.md @@ -1,6 +1,6 @@ # `15` Digit after decimal -📝 Instructions: +## 📝 Instructions: Given a positive real number, return its first digit to the right of the decimal point. diff --git a/exercises/16-Car_route/README.es.md b/exercises/16-Car_route/README.es.md new file mode 100644 index 00000000..21d5c26a --- /dev/null +++ b/exercises/16-Car_route/README.es.md @@ -0,0 +1,20 @@ +# `16` Ruta de un vehículo + +## 📝 Instrucciones: + +Un vehículo puede cubrir una distancia de N kilómetros por día. ¿Cuántos días le tomará cubrir una ruta de M kilómetros de longitud? +El programa recibe dos números: N y M. + +**Ejemplo de entrada** +* 700 +* 750 + +**Ejemplo de salida** +* 2 + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/16-Car_route/README.md b/exercises/16-Car_route/README.md index fc1a88f0..b630d241 100644 --- a/exercises/16-Car_route/README.md +++ b/exercises/16-Car_route/README.md @@ -1,6 +1,6 @@ # `16` Car route -📝 Instructions: +## 📝 Instructions: A car can cover distance of N kilometers per day. How many days will it take to cover a route of length M kilometers? The program gets two numbers: N and M. diff --git a/exercises/17-Century/README.es.md b/exercises/17-Century/README.es.md new file mode 100644 index 00000000..209fae6d --- /dev/null +++ b/exercises/17-Century/README.es.md @@ -0,0 +1,18 @@ +# `17` Siglo + +## 📝 Instrucciones: + +Dado un año (como un entero positivo), encuentra su posición respectiva dentro del siglo. Ten en cuenta que, por ejemplo, el s.XX (siglo 20) comienza con el año 1901. + +**Ejemplo de entrada** +2000 + +**Ejemplo de salida** +20 + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/17-Century/README.md b/exercises/17-Century/README.md index 5e52861b..4908afd9 100644 --- a/exercises/17-Century/README.md +++ b/exercises/17-Century/README.md @@ -1,6 +1,6 @@ # `17` Century -📝 Instructions: +## 📝 Instructions: Given a year (as a positive integer), find the respective number of the century. Note that, for example, 20th century began with the year 1901. diff --git a/exercises/18-Total_cost/README.es.md b/exercises/18-Total_cost/README.es.md new file mode 100644 index 00000000..fa519492 --- /dev/null +++ b/exercises/18-Total_cost/README.es.md @@ -0,0 +1,20 @@ +# `18` Importe total + +## 📝 Instrucciones: + +Un _cupcake_ cuesta D dólares y C centavos. Determina, cuántos dólares y centavos debería pagar una persona por N _cupcakes_. El programa recibe tres números: D, C, N. Debería devolver dos números: importe total en dólares y centavos + +**Ejemplo de entrada** +* 10 +* 15 +* 2 + +**Ejemplo de salida** +(20, 30) + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/18-Total_cost/README.md b/exercises/18-Total_cost/README.md index af1e7dfb..47380d13 100644 --- a/exercises/18-Total_cost/README.md +++ b/exercises/18-Total_cost/README.md @@ -1,6 +1,6 @@ # `18` Total Cost -📝 Instructions: +## 📝 Instructions: A cupcake costs D dollars and C cents. Determine, how many dollars and cents should one pay for N cupcakes. A program gets three numbers: D, C, N. It should return two numbers: total cost in dollars and cents. diff --git a/exercises/19-Day_of_week/README.es.md b/exercises/19-Day_of_week/README.es.md new file mode 100644 index 00000000..06dc77c7 --- /dev/null +++ b/exercises/19-Day_of_week/README.es.md @@ -0,0 +1,18 @@ +# `19` Día de la semana + +## 📝 Instrucciones: + +Los días de la semana son enumerados como: 0 — Domingo, 1 — Lunes, 2 — Martes, ... , 6 — Sábado. Dado un entero K en el rango comprendido entre [1, 365], encuentra el número del día de la semana para el k-ésimo día del año si este año el 1 de enero ha sido Jueves. + +**Ejemplo de entrada** +1 + +**Ejemplo de salida** +4 + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/19-Day_of_week/README.md b/exercises/19-Day_of_week/README.md index 234ec208..c7541a61 100644 --- a/exercises/19-Day_of_week/README.md +++ b/exercises/19-Day_of_week/README.md @@ -1,6 +1,6 @@ # `19` Day of week -📝 Instructions: +## 📝 Instructions: Days of week are numbered as: 0 — Sunday, 1 — Monday, 2 — Tuesday, ..., 6 — Saturday. An integer K in the range 1 to 365 is given. Find the number of day of week for K-th day of year provided that in this year January 1 was Thursday. diff --git a/exercises/20-Digital_clock/README.es.md b/exercises/20-Digital_clock/README.es.md new file mode 100644 index 00000000..a069d863 --- /dev/null +++ b/exercises/20-Digital_clock/README.es.md @@ -0,0 +1,22 @@ +# `20` Reloj digital + +## 📝 Instrucciones: + +Dado un entero N como el número de minutos que pasa desde media noche, ¿cuántas horas y minutos se han mostrado en un reloj digital con formato 24 horas? + +El programa debería imprimir dos números: el número de horas (entre [0,23]) y el número de minutos (entre [0,59]). + +Por ejemplo, si N = 150, entonces son 150 minutos que han pasado desde medianoche. Por ejemplo, ahora son las 2:30 am, así que el programa debería imprimir 2 30 + +**Ejemplo de entrada** +150 + +**Ejemplo de salida** +(2, 30) + +**Teoría** +Si no sabes cómo empezar la solución a esta asignación, por favor, revisa la teoría en esta lección: +https://snakify.org/lessons/integer_float_numbers/ + +También puedes intentar paso a paso con trozos de la teoría: +https://snakify.org/lessons/integer_float_numbers/steps/1/ \ No newline at end of file diff --git a/exercises/20-Digital_clock/README.md b/exercises/20-Digital_clock/README.md index e510dc0b..fffd4950 100644 --- a/exercises/20-Digital_clock/README.md +++ b/exercises/20-Digital_clock/README.md @@ -1,6 +1,6 @@ # `20` Digital Clock -📝 Instructions: +## 📝 Instructions: Given the integer N - the number of minutes that is passed since midnight - how many hours and minutes are displayed on the 24h digital clock?

AltStyle によって変換されたページ (->オリジナル) /