Challenge: Weather Adviser
Swipe to start coding
You are developing a weather application that classifies the current outdoor temperature and provides suitable advice based on the temperature category. You have a variable temperature, representing the current outdoor temperature in degrees Celsius.
- If
temperatureis above30, assign'Hot'toweather_status. - If
temperatureis between15and30(inclusive), assign'Warm'toweather_status. - If
temperatureis between0and14(inclusive), assign'Cool'toweather_status.
Based on the determined weather_status, assign suitable outdoor advice
- If
weather_statusis'Hot', assign'Stay hydrated'tooutdoor_advice. - If
weather_statusis'Warm'or'Cool', assign'Great weather for a walk'tooutdoor_advice. - Otherwise (
weather_statusis'Cold'), assign'Wear a coat'tooutdoor_advice.
Oplossing
Bedankt voor je feedback!
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 1.67
Challenge: Weather Adviser
Veeg om het menu te tonen
Swipe to start coding
You are developing a weather application that classifies the current outdoor temperature and provides suitable advice based on the temperature category. You have a variable temperature, representing the current outdoor temperature in degrees Celsius.
- If
temperatureis above30, assign'Hot'toweather_status. - If
temperatureis between15and30(inclusive), assign'Warm'toweather_status. - If
temperatureis between0and14(inclusive), assign'Cool'toweather_status.
Based on the determined weather_status, assign suitable outdoor advice
- If
weather_statusis'Hot', assign'Stay hydrated'tooutdoor_advice. - If
weather_statusis'Warm'or'Cool', assign'Great weather for a walk'tooutdoor_advice. - Otherwise (
weather_statusis'Cold'), assign'Wear a coat'tooutdoor_advice.
Oplossing
Bedankt voor je feedback!
single