Académique Documents
Professionnel Documents
Culture Documents
MINESEC
Enseignante d’Informatique
TROISIEME
EXECUTION D’UN ALGORITHME
Date
Date :13/05/2020
: 2020 16:34 Copyright MINESEC 2020
Copyright Mai IP-INFO
2020 MINESEC IP-INFO
3 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
Date
Date :13/05/2020
: 2020 16:34 Copyright MINESEC 2020 IP-INFO IP-INFO
Copyright Mai 2020 MINESEC
4 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
LEÇON 2
Date
Date ::13/05/2020
2020 16:34 Copyright MINESECMai
Copyright 2020 IP-INFO
2020 MINESEC IP-INFO
5 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
OBJECTIFS
Date ::13/05/2020
Date : 2020 16:34 Copyright MINESEC 2020
Copyright Mai IP-INFO
2020 MINESEC IP-INFO
6 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
PLAN DE LA LECON
I. SITUATION PROBLEME
III. APPLICATION
IV. RESUME
Date
Date ::13/05/2020
2020 16:34 CopyrightCopyright
MINESEC 2020
Mai IP-INFO
2020 MINESEC IP-INFO
7 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
Date
Date ::13/05/2020
2020 16:34 Copyright MINESEC 2020
Copyright Mai IP-INFO
2020 MINESEC IP-INFO
9 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
CORRECTION
Date
Date ::13/05/2020
2020 16:34 Copyright MINESEC 2020
Copyright Mai IP-INFO
2020 MINESEC IP-INFO
10 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
SITUATION PROBLEME
Date
Date ::13/05/2020
2020 16:34 Copyright MINESEC 2020
Copyright Mai IP-INFO
2020 MINESEC IP-INFO
11 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
CORRECTION
4. Les variables du problème sont:
Réponse: Prix et M
Réponse: L, l et S
Date
Date ::13/05/2020
2020 16:34 Copyright MINESEC Mai
Copyright 2020 IP-INFO
2020 MINESEC IP-INFO
12 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
VARIABLES ET CONSTANTES
Définitions
Une variable est une donnée dont le contenu peut changer lors de
l’exécution d’un algorithme.
Une constante est une donnée dont le contenu ne peut pas changer
lors de l’exécution d’un algorithme.
Date
Date ::13/05/2020
2020 16:34 CopyrightCopyright
MINESEC 2020
Mai IP-INFO
2020 MINESEC IP-INFO
13 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
VARIABLES ET CONSTANTES
Caractéristiques des variables et des constantes
Une variable est caractérisée par son nom et son type de données.
Date
Date ::13/05/2020
2020 16:34 CopyrightCopyright
MINESEC 2020
Mai IP-INFO
2020 MINESEC IP-INFO
14 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
VARIABLES ET CONSTANTES
VARIABLES ET CONSTANTES
Exemples d’écriture des variables et des constantes
Algorithme: Terrain
Variable Prix, M : Entier;
Constante L=10, l=5;
Début
…….
Fin
Date
Date ::13/05/2020
2020 16:34 CopyrightCopyright
MINESEC 2020
Mai IP-INFO
2020 MINESEC IP-INFO
16 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
VARIABLES ET CONSTANTES
Date
Date ::13/05/2020
2020 16:34 CopyrightCopyright
MINESEC 2020
Mai IP-INFO
2020 MINESEC IP-INFO
17 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
APPLICATION
On vous donne l’algorithme suivant:
Algorithme: Surface_du_cercle
Variables: R, Surface: Réels;
Constante Pi = 3,14;
Début
…….
Fin
Observer attentivement l’algorithme ci-dessus puis répondre
aux questions qui suivent:
Date
Date ::13/05/2020
2020 16:34 CopyrightCopyright
MINESEC 2020
Mai IP-INFO
2020 MINESEC IP-INFO
18 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
APPLICATION
Date
Date ::13/05/2020
2020 16:34 CopyrightCopyright
MINESEC 2020
Mai IP-INFO
2020 MINESEC IP-INFO
19 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
CORRECTION
Réponse: Pi=3,14
Date
Date ::13/05/2020
2020 16:34 CopyrightCopyright
MINESEC 2020
Mai IP-INFO
2020 MINESEC IP-INFO
20 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
RESUME
Au terme de cette leçon, nous avons pu par rapport à un problème
les variables et les constantes sont des données qu’on retrouve dans
Date
Date ::13/05/2020
2020 16:34 Copyright MINESEC 2020
Copyright Mai IP-INFO
2020 MINESEC IP-INFO
21 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
BIBLIOGRAPHIE
- Excellence en Informatique Classe de 3e , NMI Education,…
Date
Date ::13/05/2020
2020 16:34 CopyrightCopyright
MINESEC 2020
Mai IP-INFO
2020 MINESEC IP-INFO
22 SESSION INTERMEDIAIRE 2 Variables et constantes en algorithmique
Date
Date ::13/05/2020
2020 16:34 Copyright MINESEC 2020
Copyright Mai IP-INFO
2020 MINESEC IP-INFO