HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/3S14-BfOSUi_M.js
import{E as L,ag as F,aj as R,r as d,b4 as f,a as T,W as p,s as C,h as A,c as O,bI as W,bJ as P,l as j}from"./index-ajJ0B2-K.js";import{l as Q,u as B,t as H}from"./aleatoires-mDu76THU.js";import{O as c}from"./outilsStat-intqigPV.js";import"./dateEtHoraires-L3F4WBTY.js";import"./deprecatedFractions-MjvQvhWQ.js";import"./message-pLsPPsNT.js";import"./modales-xge8ru8I.js";import"./Personne-zmVSe1SX.js";import"./style-YtQgMMZt.js";const J="Calculate characteristics of a series",V=!0,G="mathLive",ie=!0,se="AMCHybride",ae="19/08/2023",ne="b8afd",re="3S14";function oe(){L.call(this),this.titre=J,this.interactifReady=V,this.interactifType=G,this.consigne="",this.nbQuestions=4,this.spacing=1,this.spacingCorr=1,this.nbColsCorr=1,this.nbCols=1,this.sup=7,this.sup2=4,this.sup3=!0,this.listePackages="bclogo",this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[];const E=F({saisie:this.sup,min:1,max:6,melange:7,defaut:7,nbQuestions:this.nbQuestions}),x=F({saisie:this.sup2,min:1,max:3,melange:4,defaut:4,nbQuestions:3,enleveDoublons:!0}),v=R(["peer","odd"],this.nbQuestions);for(let a=0,q=0,b,w,l,u,S,M;a<this.nbQuestions&&q<50;q++){const o=x.length;b="",M="",l=[],u=[],S=[];let y,i,I;switch(E[a]){case 1:{const r=E.reduce((s,h,n)=>h===1&&n<=a?s+1:s,0)%2===1?1:2,m=A([4,6,8,10]);let t;v[a]==="peer"?t=A([50,100,200,500,1e3,2e3]):t=A([49,99,199,299,999,1999]);const g=H(t,m,r);w=c.texteTirages2D(r,t,m,g,this.sup3)+"<br>",b+=w;let e=0;for(let s=0;s<x.length;s++)if(S[e]=0,x[s]===1){l[e]=f(e)+"Calculate the average of the throws rounded to the tenth."+T(this,a*o+e,"width15 inline")+"<br>",b+=l[e];const[,h]=c.computeMoyenneTirages2D(g);y=p(h/t,1),C(this,a*o+e,y,{formatInteractif:"calculation"}),u[e]=y,M+=f(e++)+c.texteCorrMoyenneNotes(g,h,t,"throws")}else if(x[s]===2){l[e]=f(e)+"Calculate the median of the throws."+T(this,a*o+e,"width15 inline")+"<br>",b+=l[e];const[h,n]=c.computeMedianeTirages2D(t,g);h.length===1?(i=n,C(this,a*o+e,i,{formatInteractif:"calculation"}),u[e]=i):h[0]===h[1]?(i=h[0],C(this,a*o+e,i,{formatInteractif:"calculation"}),u[e]=i):(i=[...h],C(this,a*o+e,[i[0],i[1]],{formatInteractif:"intervalStrict"}),u[e]=p((i[0]+i[1])/2,1),S[e]=p(10*(i[1]-i[0])/2,0)-.1),M+=f(e++)+c.texteCorrMedianeTirages2D(t,n,h,g)}else{l[e]=f(e)+"Calculate the range of throws."+T(this,a*o+e,"width15 inline")+"<br>",b+=l[e];const[h,n]=[g[0][0],g[g.length-1][0]];I=n-h,u[e]=I,C(this,a*o+e,I,{formatInteractif:"calculation"}),M+=f(e++)+c.texteCorrEtendueNotes(h,n,"throw")}break}case 2:{let r;v[a]==="peer"?r=A([8,10,12]):r=A([7,9,11]);const m=Q(r,d(0,7),d(13,20));w=c.texteNotes(m)+"<br>",b+=w;let t=0;for(let g=0;g<x.length;g++)if(S[t]=0,x[g]===1){l[t]=f(t)+"Calculate the average of these scores rounded to the tenth."+T(this,a*o+t,"width15 inline")+"<br>",b+=l[t];const[,e]=c.computeMoyenne(m);y=p(e/r,1),C(this,a*o+t,y,{formatInteractif:"calculation"}),u[t]=y,M+=f(t++)+c.texteCorrMoyenneNotes(m,e,r)}else if(x[g]===2){l[t]=f(t)+"Calculate the median of these scores."+T(this,a*o+t,"width15 inline")+"<br>",b+=l[t];const[e,s]=c.computeMediane(m);Array.isArray(e)?e[0]===e[1]?(i=e[0],C(this,a*o+t,i,{formatInteractif:"calculation"}),u[t]=i):(i=[...e],C(this,a*o+t,[i[0],i[1]],{formatInteractif:"intervalStrict"}),u[t]=p((i[0]+i[1])/2,1),S[t]=p(10*(i[1]-i[0])/2,0)-.1):(i=e,C(this,a*o+t,i,{formatInteractif:"calculation"}),u[t]=i),M+=f(t++)+c.texteCorrMedianeNotes(m,s,e)}else{l[t]=f(t)+"Calculate the range of these notes."+T(this,a*o+t,"width15 inline")+"<br>",b+=l[t];const[e,s]=c.computeEtendue(m);I=s-e,u[t]=I,C(this,a*o+t,I,{formatInteractif:"calculation"}),M+=f(t++)+c.texteCorrEtendueNotes(e,s)}break}case 3:{const r=d(1980,2019);let m;v[a]==="peer"?m=[4,6,9,11]:m=[1,3,5,7,8,10,12],((r%4===0&&r%100!==0||r%400===0)&&v[a]==="odd"||!(r%4===0&&r%100!==0||r%400===0)&&v[a]==="peer")&&m.push(2);const t=m[d(0,m.length-1)],e=B([3,5,9,13,19,24,26,25,23,18,10,5][t-1],t,r);w=c.texteTemperatures(r,t,e),b+=w;let s=0;for(let h=0;h<x.length;h++)if(x[h]===1){l[s]=f(s)+"Calculate the average temperature rounded to the nearest tenth."+T(this,a*o+s,"width15 inline")+"<br>",b+=l[s];const[,n]=c.computeMoyenne(e);y=p(n/e.length,1),C(this,a*o+s,y,{formatInteractif:"calculation"}),u[s]=y,M+=f(s++)+c.texteCorrMoyenneNotes(e,n,e.length,"temperatures")}else if(x[h]===2){l[s]=f(s)+"Calculate the median of the temperatures."+T(this,a*o+s,"width15 inline")+"<br>",b+=l[s];const[n,D]=c.computeMediane(e);Array.isArray(n)?n[0]===n[1]?(i=n[0],C(this,a*o+s,i,{formatInteractif:"calculation"}),u[s]=i):(i=[...n],C(this,a*o+s,[i[0],i[1]],{formatInteractif:"intervalStrict"}),u[s]=p((i[0]+i[1])/2,1),S[s]=p(10*(i[1]-i[0])/2,0)-.1):(i=n,C(this,a*o+s,i,{formatInteractif:"calculation"}),u[s]=i),M+=f(s++)+c.texteCorrMedianeTemperatures(e,D,n)}else{l[s]=f(s)+"Calculate the temperature range."+T(this,a*o+s,"width15 inline")+"<br>",b+=l[s];const[n,D]=c.computeEtendue(e);I=D-n,u[s]=I,C(this,a*o+s,I,{formatInteractif:"calculation"}),M+=f(s++)+c.texteCorrEtendueNotes(n,D,"temperature")}break}case 4:{const r=d(80,99);let m=[];switch(d(1,3)){case 1:m=[p(r/2,0)+d(2,5),p(r/5,0)+d(2,5),p(r/6,0)-d(2,5)];break;case 2:m=[p(r/3,0)+d(2,5),p(r/4,0)+d(2,5),p(r/6,0)-d(2,5)];break;case 3:m=[p(r/4,0),p(r/5,0),p(r/5,0)-d(2,5)];break}m=[p(r/4,0),p(r/5,0),p(r/5,0)-d(2,5)];const t=[[1250+d(2,8)*10,m[0]],[1450+d(2,8)*10,m[1]],[1700+d(2,8)*10,m[2]],[3500+d(2,8)*10,r-1-m[0]-m[1]-m[2]],[8e3+d(2,8)*100,1]],g=t.reduce((s,h)=>s+h[1],0);v[a]==="peer"&&g%2===1&&t[0][1]++,v[a]==="odd"&&g%2===0&&t[0][1]++,w=c.texteSalaires(t,["\\hspace{0.3cm}Worker\\hspace{0.3cm}","Qualified worker","\\hspace{0.5cm}Frame\\hspace{0.5cm}","Senior","Leader"]),b+=w;let e=0;for(let s=0;s<x.length;s++)if(x[s]===1){l[e]=f(e)+"Calculate the average salary rounded to the tenth."+T(this,a*o+e,"width15 inline")+"<br>",b+=l[e];const[,h,n]=c.computeMoyenneTirages2D(t);y=p(h/n,1),C(this,a*o+e,y,{formatInteractif:"calculation"}),u[e]=y,M+=f(e++)+c.texteCorrMoyenneNotes(t,h,n,"wages")}else if(x[s]===2){l[e]=f(e)+"Calculate the median salary."+T(this,a*o+e,"width15 inline")+"<br>",b+=l[e];const[,,h]=c.computeMoyenneTirages2D(t),[n,D]=c.computeMedianeTirages2D(h,t);n.length===1?(i=D,C(this,a*o+e,i,{formatInteractif:"calculation"}),u[e]=i):n[0]===n[1]?(i=n[0],C(this,a*o+e,i,{formatInteractif:"calculation"}),u[e]=i):(i=[...n],C(this,a*o+e,[i[0],i[1]],{formatInteractif:"intervalStrict"}),u[e]=p((i[0]+i[1])/2,1),S[e]=p(10*(i[1]-i[0])/2,0)-.1),M+=f(e++)+c.texteCorrMedianeTirages2DSalaires(h,D,n,t,["\\hspace{0.3cm}Worker\\hspace{0.3cm}","Qualified worker","\\hspace{0.5cm}Frame\\hspace{0.5cm}","Senior","Leader"])}else{l[e]=f(e)+"Calculate the salary range."+T(this,a*o+e,"width15 inline")+"<br>",b+=l[e];const[h,n]=[t[0][0],t[t.length-1][0]];I=n-h,u[e]=I,C(this,a*o+e,I,{formatInteractif:"calculation"}),M+=f(e++)+c.texteCorrEtendueNotes(h,n,"salary")}break}case 5:{const r=d(5,8),m=d(33,35),t=d(m+r,m+r+3),g=Q(r,m,t,!0).sort(),e=Q(r,d(2,4),d(8,12)),s=Array.from(g,(D,N)=>[D,e[N]]),h=s.reduce((D,N)=>D+N[1],0);v[a]==="peer"&&h%2===1&&s[0][1]++,v[a]==="odd"&&h%2===0&&s[0][1]++,w=c.texteSalaires(s,[],"sizes"),b+=w;let n=0;for(let D=0;D<x.length;D++)if(x[D]===1){l[n]=f(n)+"Calculate the average of these sizes rounded to the tenth."+T(this,a*o+n,"width15 inline")+"<br>",b+=l[n];const[,N,k]=c.computeMoyenneTirages2D(s);y=p(N/k,1),C(this,a*o+n,y,{formatInteractif:"calculation"}),u[n]=y,M+=f(n++)+c.texteCorrMoyenneNotes(s,N,k,"sizes")}else if(x[D]===2){l[n]=f(n)+"Calculate the median of these sizes."+T(this,a*o+n,"width15 inline")+"<br>",b+=l[n];const[,,N]=c.computeMoyenneTirages2D(s),[k,z]=c.computeMedianeTirages2D(N,s);k.length===1?(i=z,C(this,a*o+n,i,{formatInteractif:"calculation"}),u[n]=i):k[0]===k[1]?(i=k[0],C(this,a*o+n,i,{formatInteractif:"calculation"}),u[n]=i):(i=[...k],C(this,a*o+n,[i[0],i[1]],{formatInteractif:"intervalStrict"}),u[n]=p((i[0]+i[1])/2,1),S[n]=p(10*(i[1]-i[0])/2,0)-.1),M+=f(n++)+c.texteCorrMedianeTirages2DSalaires(N,z,k,s,[],"shoe size")}else{l[n]=f(n)+"Calculate the range of these sizes."+T(this,a*o+n,"width15 inline")+"<br>",b+=l[n];const[N,k]=[s[0][0],s[s.length-1][0]];I=k-N,u[n]=I,C(this,a*o+n,I,{formatInteractif:"calculation"}),M+=f(n++)+c.texteCorrEtendueNotes(N,k,"shoe size")}break}case 6:{const r=[[5+d(0,2),d(1,3)],[8+d(0,2),d(1,3)],[11+d(0,2),d(1,4)],[14+d(0,2),d(1,3)],[18+d(0,2),d(1,3)]],m=r.reduce((g,e)=>g+e[1],0);v[a]==="peer"&&m%2===1&&r[0][1]++,v[a]==="odd"&&m%2===0&&r[0][1]++,w=c.texteSalaires(r,[],"notes"),b+=w;let t=0;for(let g=0;g<x.length;g++)if(x[g]===1){l[t]=f(t)+"Calculate the average of these scores rounded to the tenth."+T(this,a*o+t,"width15 inline")+"<br>",b+=l[t];const[,e,s]=c.computeMoyenneTirages2D(r);y=p(e/s,1),C(this,a*o+t,y,{formatInteractif:"calculation"}),u[t]=y,M+=f(t++)+c.texteCorrMoyenneNotes(r,e,s,"notes")}else if(x[g]===2){l[t]=f(t)+"Calculate the median of these scores."+T(this,a*o+t,"width15 inline")+"<br>",b+=l[t];const[,,e]=c.computeMoyenneTirages2D(r),[s,h]=c.computeMedianeTirages2D(e,r);s.length===1?(i=h,C(this,a*o+t,i,{formatInteractif:"calculation"}),u[t]=i):s[0]===s[1]?(i=s[0],C(this,a*o+t,i,{formatInteractif:"calculation"}),u[t]=i):(i=[...s],C(this,a*o+t,[i[0],i[1]],{formatInteractif:"intervalStrict"}),u[t]=p((i[0]+i[1])/2,1),S[t]=p(10*(i[1]-i[0])/2,0)-.1),M+=f(t++)+c.texteCorrMedianeTirages2DSalaires(e,h,s,r,[],"note")}else{l[t]=f(t)+"Calculate the range of these notes."+T(this,a*o+t,"width15 inline")+"<br>",b+=l[t];const[e,s]=[r[0][0],r[r.length-1][0]];I=s-e,u[t]=I,C(this,a*o+t,I,{formatInteractif:"calculation"}),M+=f(t++)+c.texteCorrEtendueNotes(e,s,"note")}break}}if(O.isAmc){this.autoCorrection[a]={enonce:w,options:{multicols:!0,barreseparation:!0,numerotationEnonce:!0},propositions:[]};for(let r=0;r<x.length;r++)this.autoCorrection[a].propositions.push({type:"AMCNum",propositions:[{texte:"",statut:"",reponse:{texte:l[r],valeur:u[r],param:{digits:W(u[r]),decimals:P(u[r]),signe:!1,approx:S[r]}}}]})}this.listeQuestions.indexOf(b)===-1&&(this.listeQuestions.push(b),this.listeCorrections.push(M),a++)}j(this)},this.besoinFormulaireTexte=["Type of series",`Numbers separated by hyphens
1: Dice rolls
2: Notes
3: Temperatures
4: Salaries
5: Shoe sizes
6: Notes with coefficients
7: Mixture`],this.besoinFormulaire2Texte=["Choice of questions",`Numbers separated by hyphens
1: Mean
2: Median
3: Range
4: All`],this.besoinFormulaire3CaseACocher=["With explanatory vocabulary"]}export{ie as amcReady,se as amcType,ae as dateDeModifImportante,oe as default,V as interactifReady,G as interactifType,re as ref,J as titre,ne as uuid};
//# sourceMappingURL=3S14-BfOSUi_M.js.map