File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/6N20-FyzAzZi5.js
import{E as x,ag as C,h as f,r as p,bB as D,s as $,a as v,c as y,bO as m,F,l as A}from"./index-ajJ0B2-K.js";import{d as c}from"./deprecatedFractions-MjvQvhWQ.js";const M="Decompose a fraction (integer part + fraction less than 1)",T=!0,N="mathLive",w=!0,L="AMCHybride",R="14/05/2023",k="6c8a1",B="6N20";function I(){x.call(this),this.consigne="Write as the sum of a whole number and a fraction less than 1.",this.spacing=2,this.spacingCorr=2,this.sup=!1,this.sup2=!1,this.sup3="11",this.besoinFormulaire2CaseACocher=["A la carte exercise (to configure in the following form)",!1],this.besoinFormulaire3Texte=["Denominators to choose",`Numbers separated by hyphens
2: halves
4: quarters
5: fifths
8: eighths
10: tenths
11: Blend`],this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];const d=C({saisie:this.sup3,min:2,max:10,defaut:11,melange:11,nbQuestions:this.nbQuestions});let a=[],u=[];if(!this.sup2)a=[[1,2,".5"],[1,4,".25"],[3,4,".75"],[1,5,".2"],[2,5,".4"],[3,5,".6"],[4,5,".8"],[1,8,".125"],[3,8,".375"],[1,10,".1"],[3,10,".3"],[7,10,".7"],[9,10,".9"]],u=[[1,2,".5"],[1,4,".25"],[3,4,".75"],[1,8,".125"]],u.push(f([[1,10,".1"],[2,10,".2"],[3,10,".3"],[7,10,".7"],[9,10,".9"]])),u.push(f([[1,5,".2"],[2,5,".4"],[3,5,".6"],[4,5,".8"]]));else{const r=new Set(d).size,o=Math.ceil(this.nbQuestions/r);for(let e=0,n=0;e<this.nbQuestions&&n<200;){const t=p(1,o),s=d[e];let l=p(1,s-1)*1e3/s;l=","+l.toString().match(/[1-9]+/g)[0];const g=t*s+p(1,s-1);a.filter(b=>b[0]===g&&b[1]===s).length===0?(a.push([g,s,t,l]),e++):n++}}for(let i=0,r,o,e,n,t,s,h,l;i<this.nbQuestions;i++)this.sup2?(o=a[i][0],e=a[i][1],t=a[i][2],n=o-t*e):(i<6?(r=f(u),D(u,r)):r=f(a),n=r[0],e=r[1],t=p(1,4),o=t*e+n),s="$"+c(o,e)+" = \\ldots\\ldots +"+c("\\ldots\\ldots","\\ldots\\ldots")+" $",h="$"+c(o,e)+" = "+t+"+"+c(n,e)+" $",l=`${t} + ${c(n,e)}`,$(this,i,l),this.interactif&&(s=`$${c(o,e)} = $`,s+=v(this,i)),y.isAmc&&(this.autoCorrection[i]={enonceAvant:!1,enonceAvantUneFois:!1,melange:!1,options:{multicols:!0,barreseparation:!0,numerotationEnonce:!0},propositions:[{type:"AMCNum",propositions:[{texte:h,statut:!0,feedback:"",reponse:{texte:"Decompose $"+c(o,e)+`$ as a sum of an integer and a fraction less than 1. \\\\
\\\\
Integer`,valeur:t,alignement:"flushleft",param:{digits:m(t)+1,decimals:0,signe:!1}},options:{ordered:!1,lastChoice:!1}}]},{type:"AMCNum",propositions:[{texte:h,statut:!0,feedback:"",reponse:{texte:"Fraction less than 1",valeur:new F(n,e),alignement:"flushleft",param:{digits:3,decimals:0,signe:!1,digitsNum:m(n)+1,digitsDen:m(e)+1}},options:{ordered:!1,lastChoice:!1}}]}]}),this.listeQuestions.push(s),this.listeCorrections.push(h);A(this)}}export{w as amcReady,L as amcType,R as dateDeModifImportante,I as default,T as interactifReady,N as interactifType,B as ref,M as titre,k as uuid};
//# sourceMappingURL=6N20-FyzAzZi5.js.map