File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can5C06-AzJbaugz.js.map
{"version":3,"file":"can5C06-AzJbaugz.js","sources":["../../src/exercices/can/5e/can5C06.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { texteEnCouleur } from '../../../lib/outils/embellissements'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../Exercice.js'\nexport const titre = 'Trouver le reste d’une division euclidienne'\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 can5C06\n */\nexport const uuid = 'bc6a9'\nexport const ref = 'can5C06'\nexport default function ResteDivision5e () {\n Exercice.call(this)\n this.nbQuestions = 1\n this.tailleDiaporama = 2\n this.typeExercice = 'simple'\n this.formatChampTexte = 'largeur15 inline'\n this.nouvelleVersion = function () {\n const a = choice([25, 20, 50, 40, 15])\n const b = randint(5, a - 1)\n const c = randint(3, 9)\n const d = c * a + b\n this.question = `Quel est le reste de la division de $${d}$ par $${a}$ ?`\n this.correction = `$${d}=${a} \\\\times ${c} + ${b}$ avec $${b}<${a}$ donc le reste de la division de $${d}$ par $${a}$ est $${b}$.`\n this.correction += texteEnCouleur(`\n <br> Mentalement : <br>\n On cherche le plus grand multiple de $${a}$ inférieur à $${d}$. C'est $${a} \\\\times ${c}=${a * c}$.<br>\n Comme $${d}=${a * c}+${b}$, on en déduit que le reste de la division euclidienne de $${d}$ par $${a}$ est $${b}$.\n `)\n this.reponse = b\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","ResteDivision5e","Exercice","a","choice","b","randint","c","d","texteEnCouleur"],"mappings":"8DAIY,MAACA,EAAQ,8CACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SAEvB;AAAA;AAAA;AAAA;AAAA,GAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAmB,CACzCC,EAAS,KAAK,IAAI,EAClB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,aAAe,SACpB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAIC,EAAO,CAAC,GAAI,GAAI,GAAI,GAAI,EAAE,CAAC,EAC/BC,EAAIC,EAAQ,EAAGH,EAAI,CAAC,EACpBI,EAAID,EAAQ,EAAG,CAAC,EAChBE,EAAID,EAAIJ,EAAIE,EAClB,KAAK,SAAW,wCAAwCG,CAAC,UAAUL,CAAC,MACpE,KAAK,WAAa,IAAIK,CAAC,IAAIL,CAAC,YAAYI,CAAC,MAAMF,CAAC,WAAWA,CAAC,IAAIF,CAAC,sCAAsCK,CAAC,UAAUL,CAAC,UAAUE,CAAC,KAC9H,KAAK,YAAcI,EAAe;AAAA;AAAA,4CAEMN,CAAC,kBAAkBK,CAAC,aAAaL,CAAC,YAAYI,CAAC,IAAIJ,EAAII,CAAC;AAAA,aACvFC,CAAC,IAAIL,EAAII,CAAC,IAAIF,CAAC,+DAA+DG,CAAC,UAAUL,CAAC,WAAWE,CAAC;AAAA,MAC7G,EACF,KAAK,QAAUA,EACf,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,EAC7B,CACH"}