File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/6S10-uwn2Mm3j.js
import{r as S}from"./reperes-MjYMQS1W.js";import{t as $}from"./diagrammes-QnJBnD2K.js";import{E as D,r as d,h as b,by as x,o as G,c as R,b4 as y,p as M}from"./index-hc8lvKav.js";import"./style-0IaNCtso.js";const P="Read a bar chart",W=!0,X="AMCHybride",j=!0,K="qcm",U="17bce",Y="6S10";function Z(){D.call(this),this.consigne="Answer the questions using the graph.",this.nbQuestions=1,this.nbQuestionsModifiable=!1,this.nbCols=1,this.nbColsCorr=1,this.sup=1,this.sup2=1,this.spacing=2,this.spacingCorr=2,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];const L=[0,10,20,30,40,50,60,70,80,90],B=["giraffes","zebras","wildebeest","buffaloes","gazelles","crocodiles","rhinoceros","leopards","cheetahs","hyenas","wild dogs","servals","warthogs"];let i=4,t=1;switch(this.sup2){case 1:t=1;break;case 2:t=10;break}const u=S({grilleX:!1,grilleY:!0,xThickListe:!1,xLabelListe:!1,yUnite:.1/t,yThickDistance:10*t,yMax:100*t,xMin:0,xMax:10,yMin:0,axeXStyle:"",yLegende:"Number of individuals"});switch(parseInt(this.sup)){case 1:i=4;break;case 2:i=5;break;case 3:i=6;break;default:i=4}const p=[],m=[],c=[],s=[],o=[];let a=[10,20,30,40,50,60,70,80,90,100],n=0,C;switch(parseInt(this.sup2)){case 1:for(let e=0;e<i;e++)n=d(2,100,a),o.push(n),a=a.concat([n-1,n,n+1]);break;case 2:for(let e=0;e<i;e++)n=d(2,100,a),o.push(10*n),a=a.concat([n-1,n,n+1]);break}for(let e=0;e<i;e++)C=b(B,s),s.push(C);const w=Math.min(...o),g=Math.max(...o),N=["Dramve","Fatenmin","Batderfa","Vihi","Genser","Barbetdou","Dramrendu","Secai","Cipeudram","Cigel","Lisino","Fohenlan","Farnfoss","Kinecardin","Zeffari","Barmwich","Swadlincote","Swordbreak","Loshull","Ruyron","Fluasall","Blueross","Vlane"];this.introduction="In the natural park of "+b(N)+", there are a lot of animals.<br>Here is a bar chart which gives the number of individuals for each species.<br>",this.listeQuestions[0]="What are the most numerous animals?",this.listeQuestions[1]="What are the least numerous animals?";const r=d(0,i-1);this.listeQuestions[2]=this.sup2===1?"Give an estimate, to the dozen, of the number of "+s[r]+" ?":"Give an estimate, to the hundred, of the number of "+s[r]+" ?";const Q=[],h=[10*t*Math.floor(o[s.indexOf(s[r])]/(10*t))];for(let e=0,l,A,v,f;e<i;e++)Q.push($((u.xMax-u.xMin)/(i+1)*(e+1),o[e],x(s[e]),{unite:.1/t})),A=e===0?{texte:"1) Most numerous animals:"}:{},p.push({texte:x(s[e]),statut:e===o.indexOf(g),reponse:A}),v=e===0?{texte:"2) Least numerous animals:"}:{},m.push({texte:x(s[e]),statut:e===o.indexOf(w),reponse:v}),f=e===0?{texte:`3) control of the number of ${s[r]}s:`}:{},e===r?c.push({texte:`between ${h[0]} and ${h[0]+10*t}`,statut:!0,reponse:f}):(l=b(L,h),h.push(l),c.push({texte:`between ${l} and ${l+10*t}`,statut:!1,reponse:f}));this.introduction+=G({xmin:-5,xmax:11,ymin:-4,ymax:11,pixelsParCm:30,scale:.5},u,Q),this.listeCorrections[0]="The most numerous animals are"+s[o.indexOf(g)]+".<br>",this.listeCorrections[1]="The least numerous animals are"+s[o.indexOf(w)]+".<br>";const q=o[s.indexOf(s[r])],k=10*t*Math.floor(q/(10*t)),T=k+10*t;this.listeCorrections[2]="There are between"+k+" And"+T+" "+s[r]+".<br>",R.isAmc?this.autoCorrection[0]={enonce:"",propositions:[{type:"mthMono",propositions:p,options:{ordered:!1},enonce:this.introduction+y(0)+this.listeQuestions[0]},{type:"mthMono",options:{ordered:!1},enonce:y(1)+this.listeQuestions[1],propositions:m},{type:"mthMono",options:{ordered:!1},enonce:y(2)+this.listeQuestions[2],propositions:c}]}:(this.autoCorrection[0]={type:"mthMono",propositions:p,options:{ordered:!1}},this.autoCorrection[1]={type:"mthMono",propositions:m,options:{ordered:!1}},this.autoCorrection[2]={type:"mthMono",propositions:c,options:{ordered:!1}});const E=M(this,0),F=M(this,1),O=M(this,2);this.listeQuestions[0]+=E.texte,this.listeQuestions[1]+=F.texte,this.listeQuestions[2]+=O.texte},this.besoinFormulaireNumerique=["Number of different species",3,`1: 4 species
2: 5 species
3: 6 species`],this.besoinFormulaire2Numerique=["Numerical values",2,`1: Between 1 and 100
2: Between 100 and 1000`]}export{W as amcReady,X as amcType,Z as default,j as interactifReady,K as interactifType,Y as ref,P as titre,U as uuid};
//# sourceMappingURL=6S10-uwn2Mm3j.js.map