https://github.com/memosainz/marathonexercise-java
Solving an exercise in Java
https://github.com/memosainz/marathonexercise-java
java
Last synced: about 2 months ago
JSON representation
Solving an exercise in Java
- Host: GitHub
- URL: https://github.com/memosainz/marathonexercise-java
- Owner: MemoSainz
- Created: 2024-08-01T10:13:35.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-01T14:38:35.000Z (10 months ago)
- Last Synced: 2025-02-07T13:40:18.858Z (3 months ago)
- Topics: java
- Language: Java
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ejercicio en Java:
En la ciudad de Guasave, Sinaloa se realiza año a año la “Maratón del Inmigrante” en el marco de la Fiesta Nacional del Inmigrante. El evento cuenta con un día de inscripciones el día anterior a la carrera, por lo que se desconoce la cantidad exacta de inscriptos que puede llegar a haber.
Desde la Federación de Maratones (Organismo que organiza), manifestaron que se solicitan los siguientes datos para la inscripción de cada participante: dni, nombre y edad.
En cuanto a las categorías posibles para una inscripción, se manejan las siguientes:
Menores A (de 6 a 10 años)
Menores B (de 11 a 17 años)
Juveniles (de 18 a 30 años)
Adultos (de 31 a 50 años)
Adultos mayores (mayores de 50 años)Se necesita un programa que, a partir del ingreso de los datos y edad de cada participante, se muestre por pantalla a qué categoría debe ser inscripto.
Al final, se debe ingresar un dni con el valor "0" o un nombre con la palabra "fin" para finalizar el programa.
# Exercise in Java
In the city of Guasave, Sinaloa, the “Immigrant Marathon” is held every year within the framework of the National Immigrant Festival. The event has one day of registration the day before the race, so the exact number of registrants that may occur is unknown.
The Federation of Marathons (organizing body) stated that the following data is requested for the registration of each participant: ID, name and age.
Regarding the possible categories for registration, the following are handled:
Minors A (6 to 10 years old)
Minors B (11 to 17 years old)
Youth (18 to 30 years old)
Adults (31 to 50 years old)
Seniors (over 50 years old)A program is needed that, based on the entry of the data and age of each participant, shows on the screen which category they should be registered for.
At the end of the day.
At the end, you must enter an ID with the value "0" or a name with the word "end" to end the program.
All lefts reserved © Memo Sainz 2024