✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Algorithme feu_route
Variables
couleur_feu : Chaîne de caractère
temps_restant : Entier
Début
Lire(couleur_feu) // "vert" ou "rouge"
Si couleur_feu = "vert" alors
Lire(temps_restant) // temps en secondes
Ecrire("Vous pouvez traverser")
Si temps_restant ≤ 5 alors
Ecrire("-- Dépêchez-vous, temps limité !")
Finsi
Sinon
Ecrire("Attendez le feu vert")
Finsi
Fin
Que fait l’algorithme