logo

Crowdly

Browser

Add to Chrome

Algorithme feu_route Variables       couleur_feu : Chaîne de caractère     te...

✅ 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

More questions like this

Want instant access to all verified answers on moodle.e-polytechnique.ma?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome