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/5N11-3-9qePKBHR.js
import{E as w,aj as g,h as y,r as p,bK as C,w as h,c as E,a as Q,s as S,l as v,bA as P}from"./index-XCg2QAX4.js";const D="Write a fraction out of 100 then as a percentage",L=!0,V=["mathLive","custom"],M="AMCNum",q=!0,N="06/02/2021",A="19/11/2023",o=new P,F="0e58f",K="5N11-3";function O(){w.call(this),this.consigne="Complete.",this.nbQuestions=6,this.nbCols=2,this.nbColsCorr=2,this.besoinFormulaireNumerique=["Difficulty",2,`1: Starting from a fraction with a denominator other than 100
2: Starting from a fraction with a denominator 100`],this.sup=1,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[],this.introduction=this.interactif?"The first fraction is optional: it will be corrected, but will not be taken into account in the scale.":"";const l=g([10,20,50,1e3,2,4,5,200],this.nbQuestions);for(let r=0,e,c,s,t,i,u=0;r<this.nbQuestions&&u<50;)t=l[r],t===2?i=y([1,3,5]):t===1e3?i=10*p(1,99):t===200?i=2*p(1,99):i=p(1,t-1),s=Math.round(i*100/t),this.sup===1?(this.interactifType="custom",e=C(this,r,`\\dfrac{${i}}{${t}}=\\dfrac{%{num1}}{%{den1}}=\\dfrac{%{num2}}{100}=%{percent}\\%`,"college6e","\\ldots\\ldots"),t<100?c=`$\\dfrac{${i}}{${h(t)}}=\\dfrac{${i}{\\color{blue}\\times${100/t}}}{${t}{\\color{blue}\\times${100/t}}}=\\dfrac{${s}}{ 100}=${s}~\\%$`:c=`$\\dfrac{${i}}{${h(t)}}=\\dfrac{${i}{\\color{blue}\\div${t/100}}}{${t}{\\color{blue}\\div${t/100}}}=\\dfrac{${s}}{ 100}=${s}~\\%$`):(this.interactifType="mathLive",e=`$\\dfrac{${s}}{100}= $${E.isHtml&&this.interactif?Q(this,r,"largeur10 inline",{texteApres:" %"}):"$\\ldots\\ldots\\%$"}`,c=`$\\dfrac{${h(s,0)}}{100}=${h(s,0)}~\\%$`),S(this,r,s,{formatInteractif:"calculation",digits:3,decimals:0}),this.listeQuestions.indexOf(e)===-1&&(this.listeQuestions.push(e),this.listeCorrections.push(c),r++),u++;v(this)},this.correctionInteractive=function(a){const l=this.autoCorrection[a].reponse.valeur[0].toString();this.answers===void 0&&(this.answers={});let r="KO";const e=document.querySelector(`#champTexteEx${this.numeroExercice}Q${a}`);if(e==null)window.notify(`Correction of 5N11-3 did not find mathfield with id fieldTexteEx${this.numeroExercice}Q${a}`);else{this.answers[`Ex${this.numeroExercice}Q${a}`]=e.getValue();const c=document.querySelector(`span#resultCheckEx${this.numeroExercice}Q${a}`),s=e.getPromptValue("num1"),t=e.getPromptValue("num2"),i=e.getPromptValue("den1"),u=e.getPromptValue("percent"),f=o.parse(`\\frac{${s.replace(",",".")}}{${i}}`,{canonical:!0}).isEqual(o.parse(`\\frac{${l}}{100}`)),$=o.parse(i).isEqual(o.parse("100")),b=i===""||s==="",x=o.parse(t).isSame(o.parse(l)),T=o.parse(u).isSame(o.parse(l));let d,n="";x&&T?(d="😎",r="OK",f?$||(n+="The first fraction is correct but the denominator is not worth $100."):b?n+="The first fraction is incomplete.":n+="The first fraction is incorrect."):(d="â˜šī¸",r="KO",b?n+="The first fraction is incomplete":f&&($?n+="The first fraction is incorrect":n+="The first fraction is correct but the denominator is not worth $100$"),n+=" and the end result is wrong.");const m=document.createElement("div");m.classList.add("ml-2","py-2","italic","text-coopmaths-warn-darkest","dark:text-coopmathsdark-warn-darkest"),c.innerHTML=d,m.innerHTML=n,c.after(m),e.setPromptState("num1",f?"correct":"incorrect",!0),e.setPromptState("den1",f?"correct":"incorrect",!0),e.setPromptState("num2",x?"correct":"incorrect",!0),e.setPromptState("percent",T?"correct":"incorrect",!0)}return r}}export{q as amcReady,M as amcType,A as dateDeModifImportante,N as dateDePublication,O as default,L as interactifReady,V as interactifType,K as ref,D as titre,F as uuid};
//# sourceMappingURL=5N11-3-9qePKBHR.js.map