logo

Crowdly

Browser

Add to Chrome

Que fait l’algorithme si une personne a 15 ans et un abonnement actif ? Algori...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Que fait l’algorithme si une personne a 15 ans et un abonnement actif ?

Algorithme abonnement

Variables 

       age : Réel

       abonnement_actif : Booléen 

Debut

       lire(age)

       lire(abonnement_actif)  // booléen : true si actif, false sinon

       si age ≥ 16 alors

             si abonnement_actif = true alors

                     afficher "Accès autorisé"

             sinon

                     afficher "Abonnement invalide"

       sinon

             afficher "Accès refusé – âge insuffisant"

       Finsi

Fin

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