File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/6N10-q2W4cfK4.js
import{E as d,aj as u,ag as m,ai as $,r as e,c as o,h as p,s as b,w as h,a as w,l as g}from"./index-hc8lvKav.js";import{n}from"./nombreEnLettres-tMvhJKkf.js";const v="Write a whole number in numbers or letters",N=!0,Q="AMCOpen",k=!0,T="mathLive",y="19/09/2021",E="14/09/2022",A="0688e",R="6N10";function F(){d.call(this),this.nbQuestions=5,this.besoinFormulaireTexte=["Type of numbers",`Numbers separated by hyphens
2: Two-digit
3: Three-digit
4: Four-digit
5: Five-digit
6: Six-digit
7: Nine-digit
8: Twelve-digit`],this.sup=4,this.besoinFormulaire2Texte=["Special request",`Numbers separated by hyphens
0: No special request.
1: Numbers end in 80.
2: Numbers contain a number between 81 and 99.
3: Numbers end in a multiple of 100.
4 : Numbers start with a thousand.
5: Numbers do not have hundreds or hundreds of thousands.`],this.sup2=0,this.besoinFormulaire3Numerique=["Type of questions",3,`1: Write in letters a given number in digits
2: Write in digits a given number in letters
3: Switch from one writing to another`],this.sup3=1,this.nbCols=1,this.nbColsCorr=1,this.tailleDiaporama=3,this.video="",this.nouvelleVersion=function(){let c=[];this.sup3===1?(this.consigne="Write the number in letters.",c=u([1],this.nbQuestions)):this.sup3===2?(this.consigne="Write the number in digits.",c=u([2],this.nbQuestions),this.interactif&&(this.consigne="Write the number in digits without forgetting the spaces.")):(this.consigne="Switch from writing in numbers to writing in letters and vice versa.",c=u([1,2],this.nbQuestions)),this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];const s=m({min:2,max:8,defaut:8,nbQuestions:this.nbQuestions,saisie:this.sup}),l=m({min:0,max:5,defaut:0,nbQuestions:this.nbQuestions,saisie:this.sup2,shuffle:!1});for(let i=l.length;i<this.nbQuestions;i++)l[i]=0;const M=$(l);for(let i=0,r,a,f=0;i<this.nbQuestions&&f<50;){let t;switch(M[i]){case 0:s[i]<7?t=e(1+Math.pow(10,s[i]-1),Math.pow(10,s[i])-1):s[i]===7?t=e(1+Math.pow(10,8),Math.pow(10,9)-1):t=e(1+Math.pow(10,11),Math.pow(10,12)-1),o.isHtml||(this.canEnonce=`Écrire le nombre en chiffres.
${n(t)}`,this.correction=this.listeCorrections[0],this.canReponseACompleter="");break;case 1:s[i]===2?t=80:s[i]<7?t=80+100*Math.trunc(e(1+Math.pow(10,s[i]-3),Math.pow(10,s[i]-2)-1)):s[i]===7?t=80+100*Math.trunc(e(1+Math.pow(10,6),Math.pow(10,7)-1)):t=80+100*Math.trunc(e(1+Math.pow(10,9),Math.pow(10,10)-1)),o.isHtml||(this.canEnonce=`Écrire le nombre en chiffres.
${n(t)}`,this.correction=this.listeCorrections[0],this.canReponseACompleter="");break;case 2:if(s[i]===2)t=80+e(1,19);else if(s[i]<5)t=80+e(1,19)+100*Math.trunc(e(1+Math.pow(10,s[i]-3),Math.pow(10,s[i]-2)-1));else if(s[i]<7)p([!0,!1])?t=Math.pow(10,3)*(80+e(1,19)+100*(s[i]-5)*e(1,9))+e(0,999):t=80+e(1,19)+100*Math.trunc(e(1+Math.pow(10,s[i]-3),Math.pow(10,s[i]-2)-1));else if(s[i]===7)switch(p([1,2,3])){case 1:t=Math.pow(10,6)*(80+e(1,19)+100*e(1,9))+e(0,999999);break;case 2:t=Math.pow(10,6)*e(101,999)+Math.pow(10,3)*(80+e(1,19)+100*Math.trunc(e(11,99)))+e(0,999);break;case 3:t=Math.pow(10,3)*e(100001,999999)+(80+e(1,19)+100*e(1,9));break}else switch(p([1,2,3,4])){case 1:t=Math.pow(10,9)*(80+e(1,19)+100*e(1,9))+e(0,999999999);break;case 2:t=Math.pow(10,9)*e(101,999)+Math.pow(10,6)*(80+e(1,19)+100*e(1,9))+e(0,999999);break;case 3:t=Math.pow(10,6)*e(100001,999999)+Math.pow(10,3)*(80+e(1,19)+100*e(1,9))+e(0,999);break;case 4:t=Math.pow(10,3)*e(100000001,999999999)+80+e(1,19)+100*e(1,9);break}o.isHtml||(this.canEnonce=`Écrire le nombre en chiffres.
${n(t)}`,this.correction=this.listeCorrections[0],this.canReponseACompleter="");break;case 3:s[i]<7?t=100*Math.trunc(10*e(1+Math.round(Math.pow(10,Math.max(s[i]-4,-1))),Math.pow(10,Math.max(s[i]-3,0))-1)+e(2,8)):s[i]===7?t=100*(e(Math.pow(10,5),Math.pow(10,6))*10+e(2,9)):t=100*(e(Math.pow(10,8),Math.pow(10,9))*10+e(2,9)),o.isHtml||(this.canEnonce=`Écrire le nombre en chiffres.
${n(t)}`,this.correction=this.listeCorrections[0],this.canReponseACompleter="");break;case 4:t=1e3+e(1,999);break;case 5:s[i]===7?t=Math.trunc(Math.pow(10,7)*e(1,9))+e(1,99999):s[i]>3?t=1e3*e(Math.pow(10,s[i]-4),Math.pow(10,s[i]-3)-1)+e(1,99):t=e(1+Math.pow(10,1),Math.pow(10,2)-1),o.isHtml||(this.canEnonce=`Écrire le nombre en chiffres.
${n(t)}`,this.correction=this.listeCorrections[0],this.canReponseACompleter="");break}c[i]===1?(b(this,i,n(t)),o.vue!=="slide"?r=`$${h(t)} ${this.interactif?"$ <br>"+w(this,i,"alphanumeric"):": \\dotfill $"}`:r=`$${h(t)}$`,o.vue!=="slide"?a=`$${h(t)}$: ${n(t)}`:a=`${n(t)}`):(b(this,i,h(t),{formatInteractif:"text"}),o.vue!=="slide"?r=`${n(t)} ${this.interactif?" <br>"+w(this,i,"college6th"):" : $\\dotfill$"}`:r=`${n(t)}`,o.vue!=="slide"?a=`${n(t)}: $${h(t)}$`:a=`$${h(t)}$`),o.isAmc&&(this.autoCorrection[i]={enonce:r+"<br>",propositions:[{texte:a,statut:1,sanscadre:!0}]}),this.questionJamaisPosee(i,r)&&(this.listeQuestions.push(r),this.listeCorrections.push(a),i++),f++}g(this)}}export{N as amcReady,Q as amcType,E as dateDeModifImportante,y as dateDePublication,F as default,k as interactifReady,T as interactifType,R as ref,v as titre,A as uuid};
//# sourceMappingURL=6N10-q2W4cfK4.js.map