Back
Close

Learning algorithmics with Ada

Zwifi
4,602 views
Previous: Mission space meteo Next: Mission statistics

Mission 1 : Felt temperature

Function prototype

                                    +----------------------+
Observation : T_Observation ------> | Apparent_Temperature | ------> Float
                                    +----------------------+

Formula

A_T = 13.12 + 0.6215*T + (0.3965T-11.37)*WS, where A_T is the apparent temperature, T the temperature, and WS the wind speed.

An important detail : the apparent temperature can only be computed when it is not raining. Otherwise, by convention, your function should return -42.0;

Apparent temperature
procedure Mission_Apparent_Temperature is
begin
null;
end Mission_Apparent_Temperature;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants