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/6C34-NRU0rAzD.js
import{E as l,aj as f,r,s as a,c as u,a as p,l as d}from"./index-hc8lvKav.js";import{b as $}from"./style-0IaNCtso.js";const m="Determining the last digit of a calculation",C=!0,T=!0,D="mathLive",x="AMCNum",Q="b3843",v="6C34";function y(){l.call(this),this.sup=3,this.titre=m,this.consigne="For each calculation, determine the last digit of the result.",this.nbQuestions=4,this.nbQuestionsModifiable=!0,this.nbCols=2,this.nbColsCorr=2,this.tailleDiaporama=3,this.pasDeVersionLatex=!1,this.pas_de_version_HMTL=!1,this.video="",this.correctionDetailleeDisponible=!0,this.sup=1,this.nouvelleVersion=function(){this.version===2&&(this.sup=2),this.sup=parseInt(this.sup),this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];let n=[];this.sup===1&&(n=["sum"]),this.sup===2&&(n=["sum","product"]),this.sup===3&&(n=["sum","product","difference"]);const c=f(n,this.nbQuestions);for(let e=0,i=0,t=0,o="",s="",h=0;e<this.nbQuestions&&h<50;){switch(this.contenuCorrection="",c[e]){case"sum":i=r(11,999),t=r(11,999),o=`$${i} + ${t}$`,s="",this.correctionDetaillee&&(s+=`The last digit of $${i} + ${t}$ is the last digit of $${i%10} + ${t%10}$.`,s+=`Or: $${i%10} + ${t%10} = ${i%10+t%10} $<br>`),s+=$(`The last digit of $${i} + ${t}$ is: $${(t+i)%10}$.`),a(this,e,(t+i)%10);break;case"product":i=r(11,999),t=r(11,999),o=`$${i} \\times ${t}$`,s="",this.correctionDetaillee&&(s+=`The last digit of $${i} \\times ${t}$ is the last digit of $${i%10} \\times ${t%10}$.`,s+=`Or: $${i%10} \\times ${t%10} = ${i%10*(t%10)} $<br>`),s+=$(`The last digit of $${i} \\times ${t}$ is: $${t*i%10}$.`),a(this,e,t*i%10);break;case"difference":t=r(11,999),i=r(t+1,t+999),o=`$${i} - ${t}$`,s="",this.correctionDetaillee&&(i%10-t%10>=0?s+=`The last digit of $${i} - ${t}$ is equal to: $${i%10} - ${t%10} = ${i%10-t%10}$. <br>`:s+=`As $${i%10} < ${t%10}$, we must subtract: $${i%10+10} - ${t%10} = ${i%10+10-t%10}$. <br>`),s+=$(`The last digit of $${i} - ${t}$ is: $${(i-t)%10}$.`),a(this,e,(i-t)%10);break}u.isHtml&&this.interactif&&(o+="<br>The units digit is:"+p(this,e,"width10 inline")),u.isAmc&&(this.autoCorrection[e].enonce=o.substring(0,o.length-1)+"~=$<br>The units digit is:",this.autoCorrection[e].propositions=[{texte:s,statut:""}],this.autoCorrection[e].reponse.param.digits=1,this.autoCorrection[e].reponse.param.decimals=0),this.listeQuestions.indexOf(o)===-1&&(this.listeQuestions.push(o),this.listeCorrections.push(s),e++),h++}d(this)},this.besoinFormulaireNumerique=["Difficulty level",3,`1: Sums
2: Sums and products
3: Sums, products and differences`]}export{C as amcReady,x as amcType,y as default,T as interactifReady,D as interactifType,v as ref,m as titre,Q as uuid};
//# sourceMappingURL=6C34-NRU0rAzD.js.map