File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/6M31-2-YN-M8Bdn.js
import{D as c,E as q,aj as D,r,w as a,f as i,s as f,bI as g,bJ as v,az as A,p as E,a as R,c as M,l as T}from"./index-ajJ0B2-K.js";import{getDigitFromNumber as p}from"./_ExerciceConversionsLongueurs-ei7PHBty.js";import"./texTexte-OFaJDKFQ.js";const J="Convert volumes or capacities",O=!0,W="qcmMono",z=!0,H=["qcm","mathLive"],U="05/06/2023",B="f4d29",G="6M31-2";function K(){c.set({toExpNeg:-10}),q.call(this),this.sup=1,this.sup2=!1,this.sup3=4,this.sup4=2,this.spacing=2,this.nbQuestions=8,this.nbColsCorr=1,this.nouvelleVersion=function(){this.consigne=this.interactif&&this.sup4===1?"Check the right answer.":"Complete.",this.interactifType=this.sup4===2?"mathLive":"mth",this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];let k;this.sup===1&&(k=D(["dam3toL","m3toL","dm3toL","cm3toL"],this.nbQuestions)),this.sup===2&&(k=D(["Ltodm3","Ltocm3","Ltom3"],this.nbQuestions)),this.sup===3&&(k=D(["dam3toL","m3toL","dm3toL","cm3toL","mm3toL","Ltodm3","Ltocm3","Ltom3"],this.nbQuestions));let C=[],$,e,y;this.sup2?C=D([1,2,3,4],this.nbQuestions):C=D([1,2,3,4,5,6],this.nbQuestions);for(let h=0,s,b,n,d,Q=0;h<this.nbQuestions&&Q<50;){if(this.sup2)switch(C[h]){case 1:s=new c(r(2,9)).div(10);break;case 2:s=new c(r(11,99)).div(10);break;case 3:s=new c(r(1,9)).div(10).add(r(1,9)*10);break;case 4:s=new c(r(11,99,[10,20,30,40,50,60,70,80,90])).div(100);break}else switch(C[h]){case 1:s=new c(r(2,9));break;case 2:s=new c(r(11,99));break;case 3:s=new c(r(1,9)*10);break;case 4:s=new c(r(1,9)*100);break;case 5:s=new c(r(11,99)*100);break;case 6:s=new c(r(1,9)*1e3);break}switch(k[h]){case"dam3toL":n=`$${a(s,3)}${i()}\\text{dam}^3=\\dotfill${i()}\\text{L}$`,$=s<1e3?r(0,1):0,e=s.mul(1e6),f(this,h,e,{digits:A(g(e)+r(0,1)+$,10),decimals:v(e)+$,signe:!1}),d=`$${a(s,3)}${i()}\\text{dam}^3=${a(s,3)}\\times1${i()}000\\times1${i()}000${i()}\\text{dm}^3=${a(e,0)}${i()}\\text{L}$`,d+=this.sup3===1||this.sup3===4?"":"<br>"+L(s,"dam",e,"dm",2,!0);break;case"m3toL":n=`$${a(s,3)}${i()}\\text{m}^3=\\dotfill${i()}\\text{L}$`,$=r(0,1),e=s.mul(1e3),f(this,h,e,{digits:g(e)+r(0,1)+$,decimals:v(e)+$,signe:!1}),d=`$${a(s,3)}${i()}\\text{m}^3=${a(s,3)}\\times1${i()}000${i()}\\text{dm}^3=${a(e,0)}${i()}\\text{L}$`,d+=this.sup3===1||this.sup3===4?"":"<br>"+L(s,"m",e,"dm",2,!0);break;case"dm3toL":n=`$${a(s,3)}${i()}\\text{dm}^3=\\dotfill${i()}\\text{L}$`,$=r(0,1),e=s.mul(1),f(this,h,e,{digits:g(e)+r(0,1)+$,decimals:v(e)+$,signe:!1}),d=`$${a(s,3)}${i()}\\text{dm}^3=${a(e,3)}${i()}\\text{L}$`,d+=this.sup3===1||this.sup3===4?"":"<br>"+L(s,"dm",e,"dm",2,!0);break;case"cm3toL":n=`$${a(s,3)}${i()}\\text{cm}^3=\\dotfill${i()}\\text{L}$`,$=r(0,1),e=s.div(1e3),f(this,h,e,{digits:g(e)+r(0,1)+$,decimals:v(e)+$,signe:!1}),d=`$${a(s,3)}${i()}\\text{cm}^3=${a(s,3)}\\div 1${i()}000${i()}\\text{dm}^3=${a(e,6)}${i()}\\text{L}$`,d+=this.sup3===1||this.sup3===4?"":"<br>"+L(s,"cm",e,"dm",2,!0);break;case"mm3toL":n=`$${a(s,3)}${i()}\\text{mm}^3=\\dotfill${i()}\\text{L}$`,$=r(0,1),e=s.div(1e6),f(this,h,e,{digits:g(e)+r(0,1)+$,decimals:v(e)+$,signe:!1}),d=`$${a(s,3)}${i()}\\text{mm}^3=${a(s,3)}\\div1${i()}000\\div 1${i()}000${i()}\\text{dm}^3=${a(e,9)}${i()}\\text{L}$`,d+=this.sup3===1||this.sup3===4?"":"<br>"+L(s,"mm",e,"dm",2,!0);break;case"Ltodm3":n=`$${a(s,3)}${i()}\\text{L}=\\dotfill${i()}\\text{dm}^3$`,$=r(0,1),e=s.mul(1),f(this,h,e,{digits:g(e)+r(0,1)+$,decimals:v(e)+$,signe:!1}),d=`$${a(s,3)}${i()}\\text{L}=${a(e,3)}${i()}\\text{dm}^3$`,d+=this.sup3===1||this.sup3===4?"":"<br>"+L(s,"dm",e,"dm",2,!0);break;case"Ltocm3":n=`$${a(s,3)}${i()}\\text{L}=\\dotfill${i()}\\text{cm}^3$`,$=r(0,1),e=s.mul(1e3),f(this,h,e,{digits:g(e)+r(0,1)+$,decimals:v(e)+$,signe:!1}),d=`$${a(s,3)}${i()}\\text{L}=${a(s,0)}${i()}\\text{dm}^3=${a(s,0)}\\times1${i()}000${i()}\\text{cm}^3=${a(s*1e3)}${i()}\\text{cm}^3$`,d+=this.sup3===1||this.sup3===4?"":"<br>"+L(s,"dm",e,"cm",2,!0);break;case"Ltom3":n=`$${a(s,3)}${i()}\\text{L}=\\dotfill${i()}\\text{m}^3$`,$=r(0,1),e=s.div(1e3),f(this,h,e,{digits:g(e)+r(0,1)+$,decimals:v(e)+$,signe:!1}),d=`$${a(s,3)}${i()}\\text{L}=${a(s,3)}${i()}\\text{dm}^3=${a(s,3)}\\div1${i()}000${i()}\\text{m}^3=${a(e,6)}${i()}\\text{m}^3$`,d+=this.sup3===1||this.sup3===4?"":"<br>"+L(s,"dm",e,"m",2,!0);break}this.autoCorrection[h].enonce=`${n}
`,y=D([e.div(1e6),e.div(1e4),e.div(1e3),e.mul(1e6),e.mul(1e4),e.mul(1e3)],6),this.autoCorrection[h].propositions=[{texte:`$${a(e,20)}$`,statut:!0},{texte:`$${a(y[0],20)}$`,statut:!1},{texte:`$${a(y[1],20)}$`,statut:!1},{texte:`$${a(y[2],20)}$`,statut:!1},{texte:`$${a(y[3],20)}$`,statut:!1}],this.interactif&&this.interactifType==="mth"?n+=E(this,h).texte:this.interactif&&this.interactifType==="mathLive"&&(b=k[h].split("to")[1],b=b==="L"?"$\\text{L}$":`$\\text{${b.split("3")[0]}}^3$`,n=n.replace("\\dotfill",`$${R(this,h,"inline",{tailleExtensible:!0,texteApres:b})}$`),f(this,h,e)),(this.sup3===1||this.sup3===3)&&h===this.nbQuestions-1&&(n+="<br><br>"+L(0,"",0,"",Math.min(8,this.nbQuestions),!0)),this.questionJamaisPosee(h,b,e)&&(M.vue==="slide"&&(n=n.replace("= \\dotfill","\\text{ en }")),M.isHtml&&(n=n.replace("\\dotfill",".................................................")),this.listeQuestions.push(n),this.listeCorrections.push(d),h++),Q++}T(this)},this.besoinFormulaireNumerique=["Difficulty level",3,`1: Volume units to liters
2: Liters to volume units
3: Mixture`],this.besoinFormulaire2CaseACocher=["With decimal numbers"],this.besoinFormulaire3Numerique=["With table",4,`Only in the statement
Only in the correction
In the statement and in the correction
Neither in the statement nor in the correction`],M.vue!=="slide"&&(this.besoinFormulaire4Numerique=["Interactive exercise",2,`1: MCQ
2: Numerical`])}function L(k,C,$,e,y=2,h=!1){const s=function(m,w){const x=[];let u;for(let t=0;t<21;t++)x.push("");switch(w.replaceAll(" ","")){case"dam":for(let t=0;t<21;t++)u=t%3===1?p(m,c.pow(10,5-t))!==""?"\\hspace*{0.2cm}"+p(m,c.pow(10,5-t))+"\\hspace*{0.2cm}":"\\hspace*{0.6cm}":p(m,c.pow(10,5-t))===""?"\\hspace*{0.2cm}":p(m,c.pow(10,5-t)),x[t]=(5-t===0?"\\color{red}{":"")+u+(5-t===0?new c(m).decimalPlaces()===0?"}":",}":"");break;case"m":for(let t=0;t<21;t++)u=t%3===1?p(m,c.pow(10,8-t))!==""?"\\hspace*{0.2cm}"+p(m,c.pow(10,8-t))+"\\hspace*{0.2cm}":"\\hspace*{0.6cm}":p(m,c.pow(10,8-t))===""?"\\hspace*{0.2cm}":p(m,c.pow(10,8-t)),x[t]=(8-t===0?"\\color{red}{":"")+u+(8-t===0?new c(m).decimalPlaces()===0?"}":",}":"");break;case"dm":for(let t=0;t<21;t++)u=t%3===1?p(m,c.pow(10,11-t))!==""?"\\hspace*{0.2cm}"+p(m,c.pow(10,11-t))+"\\hspace*{0.2cm}":"\\hspace*{0.6cm}":p(m,c.pow(10,11-t))===""?"\\hspace*{0.2cm}":p(m,c.pow(10,11-t)),x[t]=(11-t===0?"\\color{red}{":"")+u+(11-t===0?new c(m).decimalPlaces()===0?"}":",}":"");break;case"cm":for(let t=0;t<21;t++)u=t%3===1?p(m,c.pow(10,14-t))!==""?"\\hspace*{0.2cm}"+p(m,c.pow(10,14-t))+"\\hspace*{0.2cm}":"\\hspace*{0.6cm}":p(m,c.pow(10,14-t))===""?"\\hspace*{0.2cm}":p(m,c.pow(10,14-t)),x[t]=(14-t===0?"\\color{red}{":"")+u+(14-t===0?new c(m).decimalPlaces()===0?"}":",}":"");break;case"mm":for(let t=0;t<21;t++)u=t%3===1?p(m,c.pow(10,17-t))!==""?"\\hspace*{0.2cm}"+p(m,c.pow(10,17-t))+"\\hspace*{0.2cm}":"\\hspace*{0.6cm}":p(m,c.pow(10,17-t))===""?"\\hspace*{0.2cm}":p(m,c.pow(10,17-t)),x[t]=(17-t===0?"\\color{red}{":"")+u+(17-t===0?new c(m).decimalPlaces()===0?"}":",}":"");break}return x},b=function(m,w,x,u,t,F=!1){let l="$\\def\\arraystretch{1.5}\\begin{array}{|";for(let o=x;o<=u;o++)l+="c|";l+="}";const P=["\\hspace*{0.4cm}","\\text{dam}^3","\\text{m}^3","\\text{dm}^3","\\text{cm}^3","\\text{mm}^3","\\hspace*{0.4cm}"];l+="\\hline";for(let o=x;o<u;o++)l+=`${P[o]} ${o<u-1?" &":" \\\\"}`;for(let o=x;o<x+3;o++)l+="&";l+="\\begin{array}{c:c:c}",l+="\\text{hL} & \\text{daL} & \\text{L}\\hspace*{0.2cm}\\\\",l+="\\end{array}&",l+="\\begin{array}{c:c:c}",l+="\\hspace*{0.1cm}\\text{dL} & \\hspace*{0.1cm}\\text{cL}\\hspace*{0.1cm} & \\text{mL}\\\\",l+="\\end{array}&";for(let o=x+5;o<u;o++)l+=o!==u-1?" &":"";if(F){l+="\\\\",l+="\\hline";for(let o=x;o<u;o++)l+="\\begin{array}{c:c:c}",l+=`${m[3*o]} & ${m[3*o+1]}& ${m[3*o+2]} \\\\`,l+=`${w[3*o]} & ${w[3*o+1]}& ${w[3*o+2]} \\\\`,l+=F?"":` ${w[3*o]} & ${w[3*o+1]}& ${w[3*o+2]} \\\\`,l+="\\end{array}",l+=o!==u-1?" &":""}else for(let o=1;o<=t;o++){l+="\\\\ \\hline";for(let N=x;N<u;N++)l+="\\begin{array}{c:c:c}",l+="\\hspace*{0.6cm} & \\hspace*{0.6cm} & \\hspace*{0.6cm} \\\\",l+="\\end{array}",l+=N!==u-1?" &":""}return l+="\\\\ \\hline",l+=" \\end{array}$",l},n=s(k,C),d=s($,e);return b(n,d,0,6,y,h)}export{O as amcReady,W as amcType,U as dateDeModifImportante,K as default,z as interactifReady,H as interactifType,G as ref,J as titre,B as uuid};
//# sourceMappingURL=6M31-2-YN-M8Bdn.js.map