Académique Documents
Professionnel Documents
Culture Documents
1èreanée LMD ST
2018/2019
Module : Informatique i
Exercice 1 (5 pts)
(3025)7 = (………..)5
(236)8 = (………..)3
(258,24)4 = (………) 7
(302,25)6 = (………) 9
(A26E,B5)16 = (……..)4
Exercice 2 (8pts)
Program exo3 :
Var
Moy : real;
Begin
Read ( Moy ) ;
Else
End.
La correction:
Exo 1:
(3025)7 = (13143)5
La method:
Le développement en polynome:
(3025)7 = 3*73+0*72+2*71+5*70
= (1048)10
La division:
1048 5
3 209 5
4 41 5
1 8 5
3 1 5
1 0
(1048)10 = (13143)5
(236)8 = (12212)3
= (158)10
158 3
2 52 3
1 17 3
2 5 3
2 1 3
1 0
(158)10 = (12212)3
(258.24)4 = (impossible)7
Conversion impossible car 258.24 n’existe pas dans la base 4.
(302.25)6 = (132.4205)9
= (110.47)10
110 9
2 12 9
3 1 9
1 0
(110)10 = (132)9
0.23 *9 = 2.07
0.07 * 9 = 0.63
0.63 * 9 = 5.67
(A26E.B5)16 = (22021232.2311 ) 4
16 = 42
HEXADECIMALE BASE 4
0 0 0
1 0 1
2 0 2
3 0 3
4 1 0
5 1 1
6 1 2
7 1 3
8 2 0
9 2 1
A 2 2
B 2 3
C 3 0
D 3 1
E 3 2
F 3 3
(A26E.B5)16 = (22021232.2311 ) 4
Exo 2 :
Program moyenne ;
Var
Begin
Else
Write (‘ merci ’ ) ;
End.
Exo 3 :
Algorithme exo3;
Variable
Moy: reel:
Début
Lire ( Moy ) ;
Si ( Moy ≥ 10 ) alors
sinon
Finsi ;
Fin.