[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;.

Page 1/2

Corrigés bac pratique informatique

Sections Science de linformatique

26 Mai 2011(14h30)

Corrigé Sujet le 26 Mai 2011 à 14h30

program sujet3; uses wincrt; type nombre = record nb_dec:string; mention:string; end; fnombre = file of nombre; var f:text; fd:fnombre; n:integer; {************** Remplissage *******} procedure remplir(var f:text;n:integer); var i:integer;ligne:string; begin assign(f,'chaines.txt'); rewrite(f); for i:=1 to n do begin repeat write('Saisir une chaine: '); readln(ligne); until (length(ligne) in [1..9]); writeln(f,ligne); end; close(f); end; {************* divisibilité par 11 **********} function div11(ch:string):boolean; var spaire,simpaire,i,v,e:integer; begin spaire:=0;simpaire:=0; for i:=1 to length(ch) do begin val(ch[i],v,e); if(i mod 2=0)then spaire:=spaire+v else simpaire:=simpaire+v; end; if(abs(spaire-simpaire)mod 11=0)then div11:=true else div11:=false; end; {******** Extraire un nombre d'une chaine ***} function extraction(ch:string):string; var i:integer;res:string ; begin res:=''; for i:=1 to length(ch) do if(ch[i] in ['0'..'9'])then res:=res+ch[i]; extraction:=res; end; {********* Extraction **********} procedure extraire(var f:text; var fd:fnombre;n:integer); var nb:nombre;i:integer;ligne,v:string; begin reset(f); assign(fd,'nombres.dat'); rewrite(fd); for i:=1 to n do begin readln(f,ligne); v:=extraction(ligne); with nb do if(v='')then begin nb_dec:='1999999999'; mention:='Ce n''est pas un nombre décimal.'; end else begin nb_dec:=v; if(div11(v))then mention:=' est divisible par 11.' else mention:=' n''est pas divisible par 11.' end; write(fd,nb); end; close(f); close(fd); end; procedure affiche(var fd:fnombre;n:integer); var i:integer; nb:nombre; begin reset(fd);

Page 2/2

for i:=1 to n do begin read(fd,nb); with nb do writeln('Nb_dec: ',nb_dec,' ',mention); end; close(fd); end; {************** pp *************} begin repeat write('Donner le nombre de chaines: '); readln(n); until (n<50); remplir(f,n); extraire(f,fd,n); writeln; writeln; writeln('----- CONTENU DU FICHIER

NOMBRES.DAT -----');

writeln; writeln; affiche(fd,n); end.quotesdbs_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é