File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can6M07-Q2buXPCf.js.map
{"version":3,"file":"can6M07-Q2buXPCf.js","sources":["../../src/exercices/can/6e/can6M07.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { miseEnEvidence, texteEnCouleur } from '../../../lib/outils/embellissements'\nimport { texNombre } from '../../../lib/outils/texNombre'\nimport { calculANePlusJamaisUtiliser, randint } from '../../../modules/outils.js'\nimport Exercice from '../../deprecatedExercice.js'\nexport const titre = 'Compléter un volume au litre'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\n\n/*!\n * @author Jean-Claude Lhote\n * Publié le 15/09/2021\n * Référence can6M07\n */\nexport const uuid = '62de7'\nexport const ref = 'can6M07'\nexport default function CompleterVolumeAuLitre () {\n Exercice.call(this)\n this.typeExercice = 'simple'\n this.nbQuestions = 1\n this.tailleDiaporama = 2\n this.formatChampTexte = 'largeur15 inline'\n this.nouvelleVersion = function () {\n let a\n switch (choice(['a', 'b', 'c', 'd'])) {\n case 'a':\n a = randint(2, 8) * 10\n this.question = `Compléter : <br>$${a}$ cL $+$ $ \\\\ldots$ cL $ = 1$ L`\n this.correction = `$${a}$ cL $+$ $${miseEnEvidence(100 - a)}$ cL $= 1$ L`\n this.correction += texteEnCouleur(`<br> Mentalement : <br>\n Comme $1$ L $=100$ cL, le nombre cherché est donné par la différence : $100-${a}=${100 - a}$.\n `)\n\n this.reponse = calculANePlusJamaisUtiliser(100 - a)\n this.canEnonce = 'Compléter.'\n this.canReponseACompleter = `$${a}$ cL $+$ $ \\\\ldots$ cL $ = 1 $ L`\n break\n case 'b':\n a = randint(2, 8) * 10\n this.question = `Compléter : <br>$\\\\ldots$ cL $+$ $${a}$ cL $ = 1$ L`\n this.correction = `$${miseEnEvidence(100 - a)}$ cL $+$ $${a}$ cL $ = 1$ L`\n this.correction += texteEnCouleur(`<br> Mentalement : <br>\n Comme $1$ L $=100$ cL, le nombre cherché est donné par la différence : $100-${a}=${100 - a}$.\n `)\n this.reponse = calculANePlusJamaisUtiliser(100 - a)\n this.canEnonce = 'Compléter.'\n this.canReponseACompleter = `$\\\\ldots$ cL $+$ $${a}$ cL $ = 1 $ L`\n break\n case 'c':\n a = randint(20, 80)\n this.question = `Compléter : <br>$${a * 10}$ mL $+$ $ \\\\ldots$ mL $ = 1$ L`\n this.correction = `$${a * 10}$ mL $+$ $${miseEnEvidence(1000 - a * 10)}$ mL $ = 1$ L`\n this.correction += texteEnCouleur(`<br> Mentalement : <br>\n Comme $1$ L$=${texNombre(1000)}$ mL, le nombre cherché est donné par la différence : $${texNombre(1000)}-${a * 10}=${1000 - a * 10}$.\n `)\n this.reponse = calculANePlusJamaisUtiliser(1000 - a * 10)\n this.canEnonce = 'Compléter.'\n this.canReponseACompleter = `$${a * 10}$ mL $+$ $ \\\\ldots$ mL $ = 1 $ L`\n break\n case 'd':\n a = randint(20, 80)\n this.question = `Compléter : <br>$\\\\ldots$ mL $+$ $${a * 10}$ mL $ = 1$ L`\n this.correction = `$${miseEnEvidence(1000 - a * 10)}$ mL $+$ $${a * 10}$ mL $ = 1$ L`\n this.correction += texteEnCouleur(`<br> Mentalement : <br>\n Comme $1$ L$=${texNombre(1000)}$ mL, le nombre cherché est donné par la différence : $${texNombre(1000)}-${a * 10}=${1000 - a * 10}$.\n `)\n this.reponse = calculANePlusJamaisUtiliser(1000 - a * 10)\n this.canEnonce = 'Compléter.'\n this.canReponseACompleter = `$\\\\ldots$ mL $+$ $${a * 10}$ mL $ = 1 $ L`\n break\n }\n }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","CompleterVolumeAuLitre","Exercice","a","choice","randint","miseEnEvidence","texteEnCouleur","calculANePlusJamaisUtiliser","texNombre"],"mappings":"oFAKY,MAACA,EAAQ,+BACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SAEvB;AAAA;AAAA;AAAA;AAAA,GAKY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