File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can2P02-Qt9Zv4Hj.js.map
{"version":3,"file":"can2P02-Qt9Zv4Hj.js","sources":["../../src/exercices/can/2e/can2P02.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { prenomM } from '../../../lib/outils/Personne.js'\nimport Exercice from '../../Exercice.js'\nimport { randint, calculANePlusJamaisUtiliser } from '../../../modules/outils.js'\nexport const titre = 'Dénombrer dans une situation concrète'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\n\n/**\n * Modèle d'exercice très simple pour la course aux nombres\n * @author Gilles Mora\n * Référence can2P02\n * Date de publication septembre 2021\n*/\nexport const uuid = '38207'\nexport const ref = 'can2P02'\nexport default function Denombrement () {\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, b, c, prenom1\n switch (choice(['a', 'b'])) {\n case 'a':\n a = randint(3, 5)\n b = randint(2, 4)\n c = randint(2, 4)\n this.question = `À la cantine, il y a toujours $${a}$ entrées différentes, $${b}$ plats différents et $${c}$ desserts différents.<br>\n Combien de menus (composés d'une entrée, d'un plat et d'un dessert) différents peut-on avoir dans cette cantine ?`\n this.optionsChampTexte = { texteApres: '' }\n this.correction = `On peut avoir : $${a}\\\\times ${b}\\\\times ${c} =${a * b * c}$ menus différents.`\n this.reponse = calculANePlusJamaisUtiliser(a * b * c)\n break\n case 'b' :\n a = randint(2, 8)\n b = randint(2, 10)\n prenom1 = prenomM()\n this.question = `Pour composer son costume, ${prenom1} a le choix entre $${a}$ chemises et $${b}$ cravates.<br>\n De combien de manières différentes peut-il composer son costume ?`\n this.optionsChampTexte = { texteApres: '' }\n this.correction = `Il a : $${a}\\\\times ${b} =${a * b}$ manières de composer son costume.`\n this.reponse = calculANePlusJamaisUtiliser(a * b)\n break\n }\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","uuid","ref","Denombrement","Exercice","a","b","c","prenom1","choice","randint","calculANePlusJamaisUtiliser","prenomM"],"mappings":"yGAIY,MAACA,EAAQ,wCACRC,EAAkB,GAClBC,EAAiB,WAQjBC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAgB,CACtCC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAGC,EAAGC,EAAGC,EACb,OAAQC,EAAO,CAAC,IAAK,GAAG,CAAC,EAAC,CACxB,IAAK,IACHJ,EAAIK,EAAQ,EAAG,CAAC,EAChBJ,EAAII,EAAQ,EAAG,CAAC,EAChBH,EAAIG,EAAQ,EAAG,CAAC,EAChB,KAAK,SAAW,kCAAkCL,CAAC,2BAA2BC,CAAC,0BAA0BC,CAAC;AAAA,2HAE1G,KAAK,kBAAoB,CAAE,WAAY,EAAI,EAC3C,KAAK,WAAa,oBAAoBF,CAAC,WAAWC,CAAC,WAAWC,CAAC,KAAKF,EAAIC,EAAIC,CAAC,sBAC7E,KAAK,QAAUI,EAA4BN,EAAIC,EAAIC,CAAC,EACpD,MACF,IAAK,IACHF,EAAIK,EAAQ,EAAG,CAAC,EAChBJ,EAAII,EAAQ,EAAG,EAAE,EACjBF,EAAUI,EAAS,EACnB,KAAK,SAAW,8BAA8BJ,CAAO,uBAAuBH,CAAC,kBAAkBC,CAAC;AAAA,2EAEhG,KAAK,kBAAoB,CAAE,WAAY,EAAI,EAC3C,KAAK,WAAa,WAAWD,CAAC,WAAWC,CAAC,KAAKD,EAAIC,CAAC,sCACpD,KAAK,QAAUK,EAA4BN,EAAIC,CAAC,EAChD,KACH,CACD,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,EAC7B,CACH"}