From 2a7de24423937471600db6b7373a9b31ff8af22d Mon Sep 17 00:00:00 2001 From: Dom Sec <54043553+dom-sec@users.noreply.github.com> Date: Sat, 25 Mar 2023 19:02:44 -0400 Subject: [PATCH] Add files via upload --- Week-15/Day-100_Final-Hello-World/README.md | 15 +++++++++ Week-15/Day-99_How-Is-The-Weather/README.md | 36 +++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 Week-15/Day-100_Final-Hello-World/README.md create mode 100644 Week-15/Day-99_How-Is-The-Weather/README.md diff --git a/Week-15/Day-100_Final-Hello-World/README.md b/Week-15/Day-100_Final-Hello-World/README.md new file mode 100644 index 0000000..99c1644 --- /dev/null +++ b/Week-15/Day-100_Final-Hello-World/README.md @@ -0,0 +1,15 @@ +## Final Hello World + +Your boss asks you to write a **"hello world"** program. Since you get paid for lines of code, you want to make it as complex as possible. However if you just add nonsense lines, or obviously useless or obfuscating stuff, you will never get it through code review. Therefore the challenge is: + +Write a **"hello world"** program which is as complex as possible under the condition that you can give a "_justification_" for every complexity in the code. + +The required behavior of the program is to just output a single line "Hello world" (without the quotes, but with a newline at the end) and then exit successfully. + +"Justifications" include: + + - buzzword compatibility ("Modern software is object oriented!") + - generally accepted good programming practices ("Everyone knows that you should separate model and view") + - maintainability ("If we do it this way, we can more easily do XXX later") + - and of course any other justification you can imagine using (in other situations) for real code. + diff --git a/Week-15/Day-99_How-Is-The-Weather/README.md b/Week-15/Day-99_How-Is-The-Weather/README.md new file mode 100644 index 0000000..0e8fb8c --- /dev/null +++ b/Week-15/Day-99_How-Is-The-Weather/README.md @@ -0,0 +1,36 @@ +## How is the Weather? + +You intend to visit **Brazil** and get to know its main tourist spots on your well-deserved vacation. + +To make the most of this period, from the list of municipalities in your travel itinerary, you would like to know the weather conditions for the next 5 days (including the current day) of each municipality informed. + +Write a function that displays the weather forecast for a municipality informed for the next 5 days (including the current day). + +### Input parameters: +- Name of the municipality (it can be a partial name, the system must do a best guess) +- State abbreviation (all uppercase, 2 characters long) + +## Output: +Object with the following structure: +- Name of the municipality +- State abbreviation +- List/Vector/Array containing 5 forecasts (one for each day, including today). Each forecast has: + - Morning: + - Minimum Temperature (° C) + - Maximum Temperature (° C) + - Resume + - Afternoon: + - Minimum Temperature (° C) + - Maximum Temperature (° C) + - Resume + - Evening: + - Minimum Temperature (° C) + - Maximum Temperature (° C) + - Resume + +### Notes: +- You can make use of the public [API](https://servicodados.ibge.gov.br/api/v1/localidades/municipios) of the Brazilian Institute of Geography and Statistics (IBGE) to get more information about municipalities and states. This API was used on [day-98 challenge](../../Week-14/day-98/README.md). + +- You can make use of the public [weather forecast API](https://portal.inmet.gov.br/manual/manual-de-uso-da-api-de-previs%C3%A3o) of the Brazilian Institute of Geography and Statistics (IBGE). + +- If the forecast is not available in all three times of the day, use a single forecast for the whole day. This is specially common for days after day 3. \ No newline at end of file