File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/CM019-4V9gComD.js.map
{"version":3,"file":"CM019-4V9gComD.js","sources":["../../src/exercices/CM/CM019.js"],"sourcesContent":["import Exercice from '../Exercice.js'\nimport { listeQuestionsToContenu } from '../../modules/outils.js'\nimport TrouverSolutionMathador from '../5e/_TrouverSolutionMathador.js'\nexport const titre = 'Générateur de compte est bon'\nexport const amcReady = true\nexport const interactifReady = false\nexport const amcType = 'AMCOpen'\n\n/**\n * Générateur de tirages pour un compte est bon avec en correction la solution mathador (4 opérations différentes).\n * @author Jean-Claude Lhote\n * référence CM019\n */\n\nexport const uuid = '1e528'\nexport const ref = 'CM019'\nexport default function LeCompteEstBonV3 () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.consigne =\n 'Écrire un calcul égal au nombre cible en utilisant les 5 nombres, 4 opérations différentes et éventuellement des parenthèses.'\n this.nbQuestions = 5\n this.nbCols = 2\n this.nbColsCorr = 2\n this.sup = 30\n this.sup2 = 70\n let maxSolution = 70\n\n this.nouvelleVersion = function () {\n this.autoCorrection = []\n this.listeQuestions = [] // Liste de questions\n this.listeCorrections = [] // Liste de questions corrigées\n let solutionMathador = []\n let tirage, solution, expression\n let minSolution = parseInt(this.sup)\n maxSolution = parseInt(this.sup2)\n if (minSolution > maxSolution) {\n minSolution = maxSolution\n this.sup = this.sup2\n }\n for (\n let i = 0, texte, texteCorr, cpt = 0;\n i < this.nbQuestions && cpt < 50;\n\n ) {\n this.autoCorrection[i] = {}\n solutionMathador = TrouverSolutionMathador(minSolution, maxSolution)\n tirage = solutionMathador[0]\n solution = solutionMathador[1]\n expression = solutionMathador[3]\n\n texte = `Le tirage est le suivant : $${tirage[0]}~;~${tirage[1]}~;~${tirage[2]}~;~${tirage[3]}~;~${tirage[4]}$ <br>La cible est : $${solution}$`\n texteCorr = `Pour le tirage $${tirage[0]}~;~${tirage[1]}~;~${tirage[2]}~;~${tirage[3]}~;~${tirage[4]}$ et pour la cible $${solution}$, la solution est : $${expression}=${solution}$ `\n texteCorr += `ou $${solutionMathador[4]}$.<br>`\n texteCorr += 'En effet : <br>'\n for (let j = 0; j < 4; j++) {\n texteCorr += `$${solutionMathador[2][j]}$<br>`\n }\n if (this.questionJamaisPosee(i, ...solutionMathador)) {\n // Si la question n'a jamais été posée, on en crée une autre\n this.listeQuestions.push(texte)\n this.listeCorrections.push(texteCorr)\n this.autoCorrection[i] = { enonce: texte, propositions: [{ texte: texteCorr, statut: 4, feedback: '' }] }\n i++\n }\n cpt++\n }\n listeQuestionsToContenu(this)\n }\n this.besoinFormulaireNumerique = ['Limite inférieure', maxSolution]\n this.besoinFormulaire2Numerique = ['Limite supérieure', 100]\n}\n"],"names":["titre","amcReady","interactifReady","amcType","uuid","ref","LeCompteEstBonV3","Exercice","maxSolution","solutionMathador","tirage","solution","expression","minSolution","i","texte","texteCorr","cpt","TrouverSolutionMathador","j","listeQuestionsToContenu"],"mappings":"qGAGY,MAACA,EAAQ,+BACRC,EAAW,GACXC,EAAkB,GAClBC,EAAU,UAQVC,EAAO,QACPC,EAAM,QACJ,SAASC,GAAoB,CAC1CC,EAAS,KAAK,IAAI,EAClB,KAAK,SACH,gIACF,KAAK,YAAc,EACnB,KAAK,OAAS,EACd,KAAK,WAAa,EAClB,KAAK,IAAM,GACX,KAAK,KAAO,GACZ,IAAIC,EAAc,GAElB,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,IAAIC,EAAmB,CAAE,EACrBC,EAAQC,EAAUC,EAClBC,EAAc,SAAS,KAAK,GAAG,EACnCL,EAAc,SAAS,KAAK,IAAI,EAC5BK,EAAcL,IAChBK,EAAcL,EACd,KAAK,IAAM,KAAK,MAElB,QACMM,EAAI,EAAGC,EAAOC,EAAWC,EAAM,EACnCH,EAAI,KAAK,aAAeG,EAAM,IAE9B,CACA,KAAK,eAAeH,CAAC,EAAI,CAAE,EAC3BL,EA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