File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/5C11-2-ixbqwPnr.js.map
{"version":3,"file":"5C11-2-ixbqwPnr.js","sources":["../../src/exercices/5e/5C11-2.js"],"sourcesContent":["import { context } from '../../modules/context.js'\nimport { miseEnEvidence } from '../../lib/outils/embellissements'\nimport { prenom } from '../../lib/outils/Personne'\nimport { listeQuestionsToContenu } from '../../modules/outils.js'\nimport TrouverSolutionMathador from './_TrouverSolutionMathador.js'\nimport Exercice from '../Exercice.js'\nexport const amcReady = true\nexport const amcType = 'AMCOpen'\n\nexport const titre = 'Translate a succession of operations by an expression'\n\n/**\n * Transformer un programme de calcul avec les 4 opérations dans un ordre aléatoire en un seul calcul.\n * @author Jean-Claude Lhote\n * Référence 5C11-2\n */\nexport const uuid = '3406a'\nexport const ref = '5C11-2'\nexport default function ÉcrireUneExpressionMathador () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.titre = titre\n this.consigne = ''\n this.nbQuestions = 4\n this.nbCols = 1\n this.nbColsCorr = 1\n\n this.nouvelleVersion = function () {\n this.listeQuestions = [] // Liste de questions\n this.listeCorrections = [] // Liste de questions corrigées\n this.autoCorrection = []\n let expression, calculsSuccessifs, tirage, cible, solutionMathador, quidam\n for (let i = 0, texte, texteCorr, cpt = 0; i < this.nbQuestions && cpt < 50;) {\n // translate a mathador calculation\n solutionMathador = TrouverSolutionMathador(30, 90)\n tirage = solutionMathador[0]\n cible = solutionMathador[1]\n calculsSuccessifs = solutionMathador[2]\n expression = solutionMathador[3]\n quidam = prenom()\n texte = `${quidam} found a mathador solution for the following drawing $${tirage[0]}~;~${tirage[1]}~;~${tirage[2]}~;~${tirage[3]}~;~${tirage[4]}$ and for the target $${cible}$, here are its calculations:<br>`\n for (let j = 0; j < 4; j++) {\n texte += `$${calculsSuccessifs[j]}$<br>`\n }\n texte += 'Write this sequence of operations in a single expression.'\n texteCorr = `The expression corresponding to the calculation of ${quidam} is:<br>$${miseEnEvidence(expression)}$ or $${miseEnEvidence(solutionMathador[4])}$.`\n if (context.isAmc) {\n this.autoCorrection[i] =\n {\n enonce: texte,\n propositions: [\n {\n texte: texteCorr,\n statut: 1, // OBLIGATOIRE (ici c'is the number of lines of the frame for the answer of the'élève sur AMC)\n sanscadre: false, // EE : ce champ est facultatif et permet (si true) de cacher le cadre et les lignes acceptant la réponse de l'élève\n pointilles: false // EE : ce champ est facultatif et permet (si false) d'enlever les pointillés sur chaque ligne.\n }\n ]\n }\n }\n\n if (this.listeQuestions.indexOf(texte) === -1) { // Si la question n'a jamais été posée, on en créé une autre\n this.listeQuestions.push(texte)\n this.listeCorrections.push(texteCorr)\n i++\n }\n cpt++\n }\n listeQuestionsToContenu(this)\n }\n}\n"],"names":["amcReady","amcType","titre","uuid","ref","ÉcrireUneExpressionMathador","Exercice","expression","calculsSuccessifs","tirage","cible","solutionMathador","quidam","texte","texteCorr","cpt","TrouverSolutionMathador","prenom","j","miseEnEvidence","context","listeQuestionsToContenu"],"mappings":"8JAMY,MAACA,EAAW,GACXC,EAAU,UAEVC,EAAQ,wDAORC,EAAO,QACPC,EAAM,SACJ,SAASC,GAA+B,CACrDC,EAAS,KAAK,IAAI,EAClB,KAAK,MAAQJ,EACb,KAAK,SAAW,GAChB,KAAK,YAAc,EACnB,KAAK,OAAS,EACd,KAAK,WAAa,EAElB,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,KAAK,eAAiB,CAAE,EACxB,IAAIK,EAAYC,EAAmBC,EAAQC,EAAOC,EAAkBC,EACpE,QAAS,EAAI,EAAGC,EAAOC,EAAWC,EAAM,EAAG,EAAI,KAAK,aAAeA,EAAM,IAAK,CAE5EJ,EAAmBK,EAAwB,GAAI,EAAE,EACjDP,EAASE,EAAiB,CAAC,EAC3BD,EAAQC,EAAiB,CAAC,EAC1BH,EAAoBG,EAAiB,CAAC,EACtCJ,EAAaI,EAAiB,CAAC,EAC/BC,EAASK,EAAQ,EACjBJ,EAAQ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