[PDF] Corrigés bac pratique informatique





Previous PDF Next PDF



Corrigés Bac pratique Informatique

Corrigés Bac pratique Informatique. Sections Scientifiques(math sciences et technique). 24 mai 2011 (8h30



Corrigés Bac pratique Informatique

Corrigés Bac pratique Informatique. Sections Math Sciences et Technique. 28 mai 2012(8h30) lundi 28 mai 2012 à 8h30 program lundi_8h30; uses wincrt;.



Corrigés Bac pratique Informatique

Corrigés Bac pratique Informatique. Sections Math Sciences et Technique. 28 mai 2012(8h30



Corrigés Bac pratique Informatique

Corrigés Bac pratique Informatique. Sections Scientifiques (math sciences et technique) mai 2014 (). Mardi Mai 27 à 8H program B2705148H; uses wincrt;.



Corrigés bac pratique informatique

Corrigés bac pratique informatique. Sections Science de l'informatique. 26 Mai 2011(10h30). Corrigé Sujet le 26 Mai 2011 à 10h30 program sujet2;.



Corrigés Bac pratique Informatique - Kiteb.net

Corrigés Bac pratique Informatique. Sections Scientifiques (math sciences et technique). 25 mai 2010 8h30 program bac2010_25Mai_8h30; uses wincrt;.



Corrigés bac pratique informatique

Corrigés bac pratique informatique. Sections Science de l'informatique. 22 Mai 2014(14h30). Corrigé Sujet le 22 Mai 2014 à 14h30 program mai_14h;.



Corrigés bac pratique informatique

Corrigés bac pratique informatique. Sections Math Sciences et Technique. 28 Mai 2012(8h30



Corrigés bac pratique informatique

Corrigés bac pratique informatique. Sections Science de l'informatique. 26 Mai 2011(14h30). Corrigé Sujet le 26 Mai 2011 à 14h30 program sujet3;.



Corrigés bac pratique informatique

21 mai 2008 Corrigés bac pratique informatique. Sections Science de l'informatique ... Correction devoir pratique : sujet n°1 (8 h:30) program sujet1;.

Mme Rania CHAKROUN & Mme Fayrouz JALLOULI Page 1/5

Corrigés bac pratique informatique

Sections Math, Sciences et Technique

28 Mai 2012(8h30, 10h, 14h)

Corrigé Sujet le 28 Mai 2012 à 8h30

program sujet_28_05_2012_8h30; uses wincrt; type tab=array[1..20]of integer; var t:tab; n,p,i:integer; {** Procedure saisir N **} procedure saisie_n(var n: integer); begin repeat write("n="); readln(n) ; until n in[5..20]; end; {** Procedure remplir T **} procedure remplissage(var t:tab;n:integer); begin randomize; for i:=1 to n do repeat t[i]:=random (10000); until (t[i]>=1000) ; end; {** Procedure pour afficher T **} procedure affiche( t:tab;n:integer); begin for i:=1 to n do writeln(t[i]); end; {** Procedure saisir P **} procedure saisie_p (var p:integer); begin repeat write("p="); read(p); until (p>=1000) and (p<=9999); end; {** Procedure qui permet d"afficher l"appartenance de P dans T **} procedure appartenance (t:tab; n:integer;p:integer); var gp,gt:integer; test1, test2, test3:boolean; begin test1:=false; { contient la valeur Vrai si p appartient totalement à T } test2:=false; { contient la valeur Vrai si p appartient partiellement à T } i:=0; repeat i:=i+1; gp:= p div 10; { gp contient les 3 chiffres de gauche de P } gt:= t[i] div 10; { gt contient les 3 chiffres de gauche de t[i]} if t[i]=p then test1:=true ; if gt=gp then test2:=true ;

Devoirs et examens sur : www.kiteb.net

Mme Rania CHAKROUN & Mme Fayrouz JALLOULI Page 2/5 until(test1)or(test2)or(i=n); if test1 then begin writeln("p appartient totalement à T "); write(p," existe à la position : ", i); end else if test2 then write(p ," appartient partiellement à T.") else write(p, " n""appartient pas à T."); end; {** Programme Principal **} begin saisie_n (n); remplissage(t,n); affiche(t,n); saisie_p (p); appartenance(t,n,p); end.

Devoirs et examens sur : www.kiteb.net

Mme Rania CHAKROUN & Mme Fayrouz JALLOULI Page 3/5

Corrigé Sujet le 28 Mai 2012 à 10h

program sujet28_05_2012_10h; uses wincrt; type tab1=array[1..20] of string[20]; {tableau contenant les noms} tab2=array[1..20] of integer; {tableau contenant le nombre de voyelles pour chaque nom} var t:tab1; B:tab2; i,n:integer; {** fonction permet de verifier si l"élémént t[i] ne contient que des majuscules ou bien des espaces**} function verif (ch:string):boolean; var test:boolean; j:integer; begin j:=1; test:=false; repeat if (ch[j] in ["A".."Z", " "] ) then begin test:= true; j:=j+1; end else test:=false; until (test=false ) or (j>length(ch)); verif:=test; end; {**Procedure qui permet de remplir le tableau T**} procedure remplir( var t:tab1; var n:integer); begin repeat write("N="); read(n); until n in [3..20]; for i:=1 to n do repeat write("T[",i,"]=");readln(t[i]); until (length(t[i]) in [1..20]) and (verif(t[i])); end; {**Procedure qui permet d"afficher le nombre max des voyelles et les chaines contenant ce nombre**} procedure affiche (t:tab1;n:integer); var nb_voy,max,j:integer;ch:string; begin max:=0; for i:=1 to n do { cette boucle permet de parcourir T} begin ch:=t[i] ; nb_voy:=0; for j:=1 to length(ch) do { cette boucle permet de parcourir un element de T } if ch[j] in ["A","E","I","U","Y","O"] then nb_voy:=nb_voy+1;

B[i]:=nb_voy;

{ affecter dans B[i] le nombre de voyelles de t[i] } if nb_voy > max then max:= nb_voy; { chercher le nombre max des voyelles} end; writeln("le nombre max de voyelles est: ",max); writeln("les chaines contenant le plus grand nombre de voyelles sont: "); if max<>0 then begin for i:=1 to n do if B[i] = max then writeln(t[i]); end else write("les chaines de ce tableau ne contiennent pas de voyelles");

Devoirs et examens sur : www.kiteb.net

Mme Rania CHAKROUN & Mme Fayrouz JALLOULI Page 4/5 end; {** Programme Principal**} begin remplir (t,n); affiche(t,n); end.

Devoirs et examens sur : www.kiteb.net

Mme Rania CHAKROUN & Mme Fayrouz JALLOULI Page 5/5

Corrigé Sujet le 28 Mai 2012 à 14h

program sujet_28_05_2012_14h; uses wincrt; var n:string; procedure saisie ( var n:string); var l:integer; begin repeat write("donner un entier de 15 chiffres:"); read(n); l:=length(n); until l=15; end;

Procedure cryptage (var n:string);

var i,a,e,ss:integer; chss:string; begin for i:=1 to length(n) do begin ss:=0; chss:=""; val (n[i],a,e); if i mod 2 =0 then begin if a*2 >=10 then begin ss:= a*2 div 10 + a*2 mod 10; str(ss,chss); delete(n,i,1); insert (chss, n,i); end else begin str(a*2,chss); delete(n,i,1); insert (chss, n,i); end; end; end; writeln("apres modification n = ",n); end;

Procedure affiche(n:string);

var i,s,a,e:integer; begin s:=0; for i:=1 to length(n) do begin val (n[i],a,e); s:=s+a; end; writeln("s=",s); if s MOD 10 = 0 then write(n, " est un IMEI") else write( n," n"" est pas IMEI"); end; {** Programme principal**} begin saisie(n); cryptage(n); affiche(n); end. Devoirs et examens sur : www.kiteb.netquotesdbs_dbs49.pdfusesText_49
[PDF] bac pratique informatique scientifique corrigé

[PDF] bac pratique informatique tunisie 2011

[PDF] bac pratique tic 2013

[PDF] bac pro agronomie

[PDF] bac pro après seconde générale

[PDF] bac pro arcu 2017 etude de cas

[PDF] bac pro assp combien de points

[PDF] bac pro assp en alternance

[PDF] bac pro assp lycée

[PDF] bac pro assp sujet e2 2016

[PDF] bac pro commerce etude de cas 2016

[PDF] bac pro commercialisation et services en restauration

[PDF] bac pro composite alternance

[PDF] bac pro csr coefficients

[PDF] bac pro eco droit 2016 corrigé