Une agence web, un chef gourmand et une équipe passionnée de chocolat !
Bienvenue chez Web And Chocolate ! Une célèbre agence web dans laquelle il fait bon coder et manger du chocolat !
Ici c’est une tradition, tout le monde mange du chocolat ! Après tout, le chocolat contribue à la stimulation cérébrale, à la réduction du stress et apporte un boost énergétique non négligeable.
Voyons voir un peu combien de kg de chocolat sont consommés chaque année chez WAC !
On considère qu’un.e salarié.e travaille 45 semaines par an (52 semaines – 5 semaines de congés – RTT et jours fériés).
La variable members contient la composition des salarié.e.s de WAC :
Chez WAC, chaque semaine, il y a un petit déjeuner où l’on déguste des pains au chocolat (ou parfois des chocolatines). Tout le monde mange 1 pain au chocolat, sauf le chef, qui en mange 2…
Chez WAC, c’est schoko-bons en libre service permanent, avec une consommation moyenne de 2 schoko-bons mangés par heure de réunion, sachant que :
Et il y a environ :
Tu dois retourner, en kilogrammes, la quantité totale de chocolat de consommée par toute l’équipe WAC sur une année.
Au format suivant : 12.34kg (2 chiffres après la virgule, séparateur . et « kg » juste après)
challenge code for resolution via API: WAC_1
Some resources to help you:
Data and algorithmic logic Methodologies Corrections
Progress through challenges using our resolution aids: tools, techniques and advice to help you overcome the most complex programming challenges with methodology, confidence and creativity.
Dataset and algorithmic logic
Based on the data and the expected response, use the process to determine the logic to implement.
Show data and progressDevelop a structured approach with our solving guides. Work on specific concepts such as object-oriented programming or unit testing to improve your coding style and progress.
No methodology yet for this challenge, but we are working on it! Follow us to be informed of the release!
The corrections allow you to discover certain technical concepts but will also give you a solution to the challenge. Code the challenge yourself before consulting the corrections ;)
No answer yet for this challenge, but we&'re working on it! Follow us to be informed of the release!
Other challenges to complete