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/5L10-2-bNvEnEae.js
import{E as x,aj as f,r as n,cH as h,j as c,p as y,c as p,l as g}from"./index-XCg2QAX4.js";const b=!0,w="qcmMono",d=!0,C="qcm",T="Translate a calculation program using a literal expression",Q="15/10/2022",D="12bb6",H="5L10-2";function v(){x.call(this),this.titre=T,this.consigne="",this.nbQuestions=2,this.nbCols=1,this.nbColsCorr=1,this.spacingCorr=1,this.spacing=1,this.interactif=!1,this.interactifReady=d,this.interactifType=C,this.amcType=w,this.amcReady=b,this.besoinFormulaireCaseACocher=["Developed result"],this.sup=!0,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];const m=f([1,2,3,4,5,6],this.nbQuestions);for(let r=0,i,$,l=0;r<this.nbQuestions&&l<50;){const t=n(4,11),e=n(2,11),s=n(2,11),a=n(2,5);let u,o;switch(m[r]){case 1:i=`Here is a calculation program: 
`,i+=h([`Adds ${t}`,`Multiply by ${e}`,`Adds ${s}`]),i+="If we write $x$ as the starting number, what is the result of the calculation program?",$=`$x\\xrightarrow{+${t}} x+${t}\\xrightarrow{\\times ${e}}(x+${t})\\times ${e}`,this.sup&&($+=`=${e}x+${t*e}`),$+=`\\xrightarrow{+${s}}`,this.sup?$+=`${e}x+${t*e+s}`:$+=`(x+${t})\\times ${e} + ${s}`,$+="$<br>",$+="The result of the program is therefore",this.sup?$+=`$${e}x+${t*e+s}$.`:$+=`$(x+${t})\\times ${e} + ${s}$.`,this.sup&&([u,o]=[e,t*e+s]),this.autoCorrection[r]={},this.autoCorrection[r].enonce=`${i}
`,this.autoCorrection[r].propositions=[{texte:this.sup?`$${e}x+${t*e+s}$`:`$(x+${t})\\times ${e} + ${s}$`,statut:!0},{texte:`$${e}x+${t+s}$`,statut:!1},{texte:this.sup?`$${e}x+${t*s}$`:`$(x+${t})\\times ${e+s}$`,statut:!1},{texte:`$${e*t}x+${s}$`,statut:!1}];break;case 2:i=`Here is a calculation program: 
`,i+=h([`Multiply by ${t}`,`Add ${e}`,`Multiply by ${s}`]),i+="If we write $y$ as the starting number, what is the result of the calculation program?",$=`$y\\xrightarrow{\\times ${t}} ${t}y\\xrightarrow{+${e}}${t}y+${e} \\xrightarrow{\\times ${s}}(${t}y+${e})\\times ${s}`,this.sup&&($+=`=${t*s}y+${e*s}`),$+="$<br>",$+="The result of the program is therefore",this.sup?$+=`$${t*s}y+${e*s}$.`:$+=`$(${t}y+${e})\\times ${s}$.`,this.sup&&([u,o]=[t*s,e*s]),this.autoCorrection[r]={},this.autoCorrection[r].enonce=`${i}
`,this.autoCorrection[r].propositions=[{texte:this.sup?`$${t*s}y+${e*s}$`:`$(${t}y+${e})\\times ${s}$`,statut:!0},{texte:`$${t}y+${e*s}$`,statut:!1},{texte:this.sup?`$${e*t}y+${s}$`:`$(${s}y + ${e}) \\times ${t}$`,statut:!1},{texte:`$${e}y+${t*s}$`,statut:!1}];break;case 3:i=`Here is a calculation program: 
`,i+=h([`Multiplies by ${t}`,`Adds ${e}`,"Remove double the starting number"]),i+="If we write $a$ as the starting number, what is the result of the calculation program?",$=`$a\\xrightarrow{\\times ${t}} ${t}a\\xrightarrow{+${e}}${t}a+${e} \\xrightarrow{-2a}${t}a+${e}-2a=${t-2}a+${e}$`,$+="<br>",$+=`The result of the program is therefore $${t-2}a+${e}$.`,this.sup&&([u,o]=[t-2,e]),this.autoCorrection[r]={},this.autoCorrection[r].enonce=`${i}
`,this.autoCorrection[r].propositions=[{texte:`$${t-2}a+${e}$`,statut:!0},{texte:this.sup?`$${t+e-2}a$`:`$(${t}a + ${e}) \\times 2$`,statut:!1},{texte:`$${t}a+${e-2}$`,statut:!1},{texte:this.sup?`$${t+e}-2a$`:`$(2a + ${e}) \\times ${t}$`,statut:!1}];break;case 4:i=`Here is a calculation program: 
`,i+=h([`Multiplies by ${t}`,`Adds ${e}`,"Add triple the starting number"]),i+="If we write $t$ as the starting number, what is the result of the calculation program?",$=`$t\\xrightarrow{\\times ${t}} ${t}t\\xrightarrow{+${e}}${t}t+${e} \\xrightarrow{+3t}${t}t+${e}+3t=${t+3}t+${e}$`,$+="<br>",$+=`The result of the program is therefore $${t+3}t+${e}$.`,this.sup&&([u,o]=[t+3,e]),this.autoCorrection[r]={},this.autoCorrection[r].enonce=`${i}
`,this.autoCorrection[r].propositions=[{texte:`$${t+3}t+${e}$`,statut:!0},{texte:`$${t+e+3}t$`,statut:!1},{texte:this.sup?`$${t+e}t+3t$`:`$(${t}t + ${e}) \\times 3$`,statut:!1},{texte:this.sup?`$${t+e}t-3t$`:`$(3t + ${e}) \\times ${t}$`,statut:!1}];break;case 5:i=`Here is a calculation program: 
`,i+=h([`Multiply by ${t}`,`Add ${e}`,`Multiply by ${s}`,`Remove ${a}`]),i+="If we write $x$ as the starting number, what is the result of the calculation program?",$=`$x\\xrightarrow{\\times ${t}} ${t}x\\xrightarrow{+${e}}${t}x+${e} \\xrightarrow{\\times ${s}}(${t}x+${e})\\times ${s}`,this.sup&&($+=`=${t*s}x+${e*s}`),$+=`\\xrightarrow{-${a}}`,this.sup?$+=`${t*s}x+${e*s-a}`:$+=`(${t}x+${e})\\times ${s} - ${a}`,$+="$<br>",$+="The result of the program is therefore",this.sup?$+=`$${t*s}x+${e*s-a}$.`:$+=`$(${t}x+${e})\\times ${s} - ${a}$.`,this.sup&&([u,o]=[t*s,e*s-a]),this.autoCorrection[r]={},this.autoCorrection[r].enonce=`${i}
`,this.autoCorrection[r].propositions=[{texte:this.sup?`$${t*s}x+${e*s-a}$`:`$(${t}x+${e})\\times ${s} - ${a}$`,statut:!0},{texte:`$${t}x+${c(e*s-a)}$`,statut:!1},{texte:`$${t+e}x+${c(s-a)}$`,statut:!1},{texte:this.sup?`$${t+e*s}x-${a}$`:`$(${t+e}x - ${a}) \\times ${s}$`,statut:!1}];break;case 6:i=`Here is a calculation program: 
`,i+=h([`Multiply by ${t}`,`Add ${e}`,`Multiply by ${s}`,"Add the starting number"]),i+="If we write $y$ as the starting number, what is the result of the calculation program?",$=`$y\\xrightarrow{\\times ${t}} ${t}y\\xrightarrow{+${e}}${t}y+${e} \\xrightarrow{\\times ${s}}(${t}y+${e})\\times ${s}`,this.sup&&($+=`=${t*s}y+${e*s}`),$+="\\xrightarrow{+y}",this.sup?$+=`${t*s}y+${e*s}+y=${t*s+1}y+${e*s}`:$+=`(${t}y+${e})\\times ${s} + y`,$+="$<br>",$+="The result of the program is therefore",this.sup?$+=`$${t*s+1}y+${e*s}$.`:$+=`$(${t}y+${e})\\times ${s} + y$.`,this.sup&&([u,o]=[t*s+1,e*s]),this.autoCorrection[r]={},this.autoCorrection[r].enonce=`${i}
`,this.autoCorrection[r].propositions=[{texte:this.sup?`$${t*s+1}y+${e*s}$`:`$(${t}y+${e})\\times ${s} + y$`,statut:!0},{texte:`$${t+1}y+${e*s}$`,statut:!1},{texte:this.sup?`$${t}y+${s}$`:`$(${t}y+${e})\\times ${s}$`,statut:!1},{texte:`$${t+e+s+1}y$`,statut:!1}];break}this.interactif&&(i+=y(this,r).texte),this.sup&&($+="<br><br>The calculation program is equivalent to:",$+=h([`Multiply by $${u}$`,`${o>0?"Add":"To remove"} $${Math.abs(o)}$`])),this.listeQuestions.indexOf(i)===-1&&(p.vue==="diap"&&(i=i.replace(", what is the result of the calculation program?",",<br> what is the result of this program?")),!p.isHtml&&r===0&&(i="\\setlength\\itemsep{1em}"+i),this.listeQuestions.push(i),this.listeCorrections.push($),r++),l++}g(this)}}export{b as amcReady,w as amcType,Q as dateDeModifImportante,v as default,d as interactifReady,C as interactifType,H as ref,T as titre,D as uuid};
//# sourceMappingURL=5L10-2-bNvEnEae.js.map