File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can6C08-SQ97nVrl.js.map
{"version":3,"file":"can6C08-SQ97nVrl.js","sources":["../../src/exercices/can/6e/can6C08.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { texteEnCouleur } from '../../../lib/outils/embellissements'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../deprecatedExercice.js'\nexport const titre = 'Calculer le quart ou le tiers'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\n\n/*!\n * @author Jean-Claude Lhote\n * Créé pendant l'été 2021\n * Référence can6C08\n */\nexport const uuid = 'fc2fd'\nexport const ref = 'can6C08'\nexport default function QuartOuTiers () {\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 const a = randint(5, 10)\n let b\n if (choice([true, false])) {\n b = a * 8\n this.reponse = a * 2\n this.question = `Quel est le quart de $${b}$ ?`\n this.correction = `Le quart de $${b}$ est $${a * 2}.$`\n this.correction += texteEnCouleur(`<br> Mentalement : <br>\n Prendre le quart d'une quantité revient à la diviser deux fois par $2$.<br>\n Ainsi, le quart de $${b}$ est égal à $${b}\\\\div 2 \\\\div 2=${a * 4}\\\\div 2=${a * 2}$.\n `)\n } else {\n b = a * 6\n this.reponse = a * 2\n this.question = `Quel est le tiers de $${b}$ ?`\n this.correction = `Le tiers de $${b}$ est $${a * 2}.$`\n this.correction += texteEnCouleur(`<br> Mentalement : <br>\n Prendre le tiers d'une quantité revient à la diviser par $3$.<br>\n Ainsi, le tiers de $${b}$ est égal à $${b}\\\\div 3=${a * 2}$.\n \n `)\n }\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","QuartOuTiers","Exercice","a","randint","b","choice","texteEnCouleur"],"mappings":"8DAIY,MAACA,EAAQ,gCACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SAEvB;AAAA;AAAA;AAAA;AAAA,GAKY,MAACC,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,MAAMC,EAAIC,EAAQ,EAAG,EAAE,EACvB,IAAIC,EACAC,EAAO,CAAC,GAAM,EAAK,CAAC,GACtBD,EAAIF,EAAI,EACR,KAAK,QAAUA,EAAI,EACnB,KAAK,SAAW,yBAAyBE,CAAC,MAC1C,KAAK,WAAa,gBAAgBA,CAAC,UAAUF,EAAI,CAAC,KAClD,KAAK,YAAcI,EAAe;AAAA;AAAA,4BAEZF,CAAC,iBAAiBA,CAAC,mBAAmBF,EAAI,CAAC,WAAWA,EAAI,CAAC;AAAA,UAC7E,IAEJE,EAAIF,EAAI,EACR,KAAK,QAAUA,EAAI,EACnB,KAAK,SAAW,yBAAyBE,CAAC,MAC1C,KAAK,WAAa,gBAAgBA,CAAC,UAAUF,EAAI,CAAC,KAClD,KAAK,YAAcI,EAAe;AAAA;AAAA,4BAEZF,CAAC,iBAAiBA,CAAC,WAAWF,EAAI,CAAC;AAAA;AAAA,OAExD,GAEH,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,EAC7B,CACH"}