File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/6M22-2-TY0EJ9dZ.js
import{E as I,c as $,ag as Q,q as _,r as B,B as D,aE as d,Q as x,m as a,w as n,W as r,aM as C,G as g,s as M,a as A,o as E,aa as N,l as H}from"./index-hc8lvKav.js";const j=!0,F="mathLive",R=!0,V="AMCHybride",O="Calculate perimeter and area of disk portions",S="20/11/2023",z="ff386",G="6M22-2";function J(){I.call(this),this.sup=3,this.sup2=4,this.spacing=2,$.isHtml?this.spacingCorr=3:this.spacingCorr=2,this.nbQuestions=3,this.nouvelleVersion=function(){this.listeCorrections=[],this.listeQuestions=[],this.autoCorrection=[];const P=Q({saisie:this.sup2,max:3,melange:4,defaut:4,nbQuestions:this.nbQuestions});this.sup===1?this.consigne="Calculate the perimeter of":this.sup===2?this.consigne="Calculate the area of":this.consigne="Calculate the perimeter and area of",this.consigne+=this.nbQuestions===1?" the following figure.":" each of the following figures.";for(let s=0,b=0,l,t;s<this.nbQuestions&&b<50;){l="",t="";const m=[],i=_(0,0),e=B(2,10),o=D(i,e,0),w=d(o,i,90),k=d(o,i,180),q=d(o,i,270),T=x(o,i,90,!0,"white","black",.2),v=x(o,i,180,!0,"white","black",.2),y=x(o,i,270,!0,"white","black",.2);let c,u,h,p;switch(P[s]){case 1:this.sup!==2&&(t=`The figure is a quarter of a disk, its perimeter is composed of a quarter of a circle of radius ${e} cm and 2 rays which close the figure.<br>`,t+=`$\\mathcal{P}_1=(\\dfrac{1}{4}\\times2\\times${e}\\times\\pi)+${e}+${e}=
${a(`${n(e/2,1)}\\pi+${2*e}`)}\\text{ cm}
\\approx
${a(`${n(e*Math.PI/2+2*e,1)}`)}\\text{ cm}$<br>`,c=this.sup===2?0:r(Math.trunc((e*Math.PI/2+2*e)*10)/10),h=this.sup===2?0:r(c+.1)),this.sup!==1&&(t+=`The figure is a quarter disk of radius ${e} cm.<br>`,t+=`$\\mathcal{A}_1=\\dfrac{1}{4}\\times${e}\\times${e}\\times\\pi=
${a(`${n(e*e/4,2)}\\pi`)}\\text{ cm}^2
\\approx
${a(`${n(e*e/4*Math.PI,1)}`)}\\text{ cm}^2$<br>`,u=this.sup===1?0:r(Math.trunc(e*e/4*Math.PI*10)/10),p=this.sup===1?0:r(u+.1)),m.push(T,C("//",$.isHtml?"blue":"black",o,i,i,w),g(o,i));break;case 2:this.sup!==2&&(t=`The figure is a half-disk, its perimeter is composed of a semi-circle with a diameter of ${2*e} cm and a diameter which closes the figure.<br>`,t+=`$\\mathcal{P}_2=\\dfrac{1}{2}\\times${2*e}\\times\\pi+${2*e}=
${a(`${e}\\pi+${2*e}`)}\\text{ cm}
\\approx
${a(`${n(e*Math.PI+2*e,1)}`)}\\text{ cm}$<br>`,c=this.sup===2?0:r(Math.trunc((e*Math.PI+2*e)*10)/10),h=this.sup===2?0:r(c+.1)),this.sup!==1&&(t+=`The figure is half of a disk with a diameter of ${2*e} cm and therefore a radius of ${e} cm.`,t+=`$\\mathcal{A}_2=\\dfrac{1}{2}\\times${e}\\times${e}\\times\\pi=
${a(`${n(e*e/2,2)}\\pi`)}\\text{ cm}^2
\\approx
${a(`${n(e*e/2*Math.PI,1)}`)}\\text{ cm}^2$<br>`,u=this.sup===1?0:r(Math.trunc(e*e/2*Math.PI*10)/10),p=this.sup===1?0:r(u+.1)),m.push(v,g(o,k));break;case 3:this.sup!==2&&(t=`The figure is three quarters of a disk, its perimeter is composed of three quarters of a circle of radius ${e} cm and 2 rays which close the figure.<br>`,t+=`$\\mathcal{P}_3=\\dfrac{3}{4}\\times2\\times${e}\\times\\pi+${e}+${e}=
${a(`${n(6*e/4,2)}\\pi+${2*e}`)}\\text{ cm}
\\approx
${a(`${n(6*e/4*Math.PI+2*e,1)}`)}\\text{ cm}$<br>`,c=this.sup===2?0:r(Math.trunc((6*e/4*Math.PI+2*e)*10)/10),h=this.sup===2?0:r(c+.1)),this.sup!==1&&(t+=`The figure is three-quarters of a disk of radius ${e} cm.<br>`,t+=`$\\mathcal{A}_3=\\dfrac{3}{4}\\times${e}\\times${e}\\times\\pi=
${a(`${n(3*e*e/4,2)}\\pi`)}\\text{ cm}^2
\\approx
${a(`${n(3*e*e/4*Math.PI,1)}`)}\\text{ cm}^2$<br>`,u=this.sup===1?0:r(Math.trunc(3*e*e/4*Math.PI*10)/10),p=this.sup===1?0:r(u+.1)),m.push(y,C("O",$.isHtml?"green":"black",o,i,i,q),g(o,i));break}if(this.sup!==2&&(M(this,this.sup===3?2*s:s,[c,h]),l=(this.sup===3?"<br>":"")+"Value approximated to the tenth of $\\text{cm}$ of the perimeter:"+A(this,this.sup===3?2*s:s,"width10 inline nospacebefore nospacebefore",{texteApres:" $\\text{cm}$"})),this.sup!==1&&(M(this,this.sup===3?2*s+1:s,[u,p]),l+=(this.sup===3?"<br>":"")+"Value approximated to the tenth of $\\text{cm}^2$ of the area:"+A(this,this.sup===3?2*s+1:s,"width10 inline nospacebefore nospacebefore",{texteApres:" $\\text{cm}^2$"})),this.questionJamaisPosee(s,e)){const f=E(Object.assign({zoom:1,scale:.6},N(m)),m);this.listeQuestions.push(f+l),this.listeCorrections.push(t),$.isAmc&&(this.sup===1?this.autoCorrection[s]={enonce:"",propositions:[{type:"AMCNum",propositions:[{texte:t,reponse:{texte:"Calculate the perimeter of the following figure.<br>"+f+"<br>Perimeter in $\\text{cm}$ (value approximated to the nearest 0.1)",valeur:[c],alignement:"center",param:{digits:1,signe:!1,decimals:1,aussiCorrect:h}}}]}]}:this.sup===2?this.autoCorrection[s]={enonce:"",propositions:[{type:"AMCNum",propositions:[{texte:t,reponse:{texte:"Calculate the area of the following figure.<br>"+f+"<br>Area in $\\text{cm}^2$ (value approximated to the nearest 0.1)",valeur:[u],alignement:"center",param:{digits:1,signe:!1,decimals:1,aussiCorrect:p}}}]}]}:this.autoCorrection[s]={enonce:"Calculate the perimeter of the following figure.<br>"+f,enonceAvant:!1,enonceApresNumQuestion:!0,options:{barreseparation:!0},propositions:[{type:"AMCNum",propositions:[{texte:t,multicolsBegin:!0,reponse:{texte:"Perimeter in $\\text{cm}$ (value approximated to the nearest 0.1)",valeur:[c],alignement:"center",param:{digits:1,signe:!1,decimals:1,aussiCorrect:h}}}]},{type:"AMCNum",propositions:[{texte:t,multicolsEnd:!0,reponse:{texte:"Area in $\\text{cm}^2$ (value approximated to the nearest 0.1)",valeur:[u],alignement:"center",param:{digits:1,signe:!1,decimals:1,aussiCorrect:p}}}]}]}),s++}b++}H(this)},this.besoinFormulaireNumerique=["Difficulty level",3,`1: Perimeters
2: Areas
3: Both`],this.besoinFormulaire2Texte=["Type of figures",`1: Quarter disc
2: Half disc
3: Three quarter disc
4: Mixture`]}export{R as amcReady,V as amcType,S as dateDeModifImportante,J as default,j as interactifReady,F as interactifType,G as ref,O as titre,z as uuid};
//# sourceMappingURL=6M22-2-TY0EJ9dZ.js.map