File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/200A1-01-7dtem9fS.js.map
{"version":3,"file":"200A1-01-7dtem9fS.js","sources":["../../src/exercices/2e/200A1-01.js"],"sourcesContent":["import { choice, combinaisonListes } from '../../lib/outils/arrayOutils'\nimport { sp } from '../../lib/outils/outilString.js'\nimport { listeDesDiviseurs, premiersEntreBornes } from '../../lib/outils/primalite'\nimport Exercice from '../Exercice'\n\nexport const titre = 'Lister tous les diviseurs d’un entier'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\n\nexport const dateDePublication = '11/07/2023' // La date de publication initiale au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\nexport const dateDeModifImportante = '11/07/2023' // Une date de modification importante au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\nexport const uuid = '15fd6'\nexport const ref = '200A1-01'\n\n/**\n * Modèle d'exercice très simple pour la course aux nombres\n * @author Jean-Claude Lhote\n * Référence\n */\nexport default class ModeleAutomatisme2nde extends Exercice {\n constructor () {\n super()\n this.titre = titre\n this.typeExercice = 'simple' // Cette ligne est très importante pour faire faire un exercice simple !\n this.nbQuestions = 1\n this.sup = 1\n this.besoinFormulaireNumerique = ['Niveau', 3]\n }\n\n nouvelleVersion () {\n // Dans ce modèle, j'ai pris la première question du fichier Doc-Automatismes-2de-acOT-GTCAN-2023.pdf.\n // La question posée est de lister tous les diviseurs d'un entier.\n // Selon le niveau choisi, on augmente la difficulté de l'entier choisi.\n // Le reste est identique pour les trois niveaux\n // Le bloc décidant de l'aléatoire\n let entierChoisi // La seule variable aléatoire de l'exo\n switch (this.sup) {\n case 1:\n entierChoisi = 10 * choice(premiersEntreBornes(7, 29))\n break\n case 2:\n do {\n const [b, c] = combinaisonListes(premiersEntreBornes(3, 13), 2)\n entierChoisi = 2 * b * c\n } while (entierChoisi % 10 === 0)\n break\n case 3:\n do {\n const [a, b, c] = combinaisonListes(premiersEntreBornes(2, 13), 3)\n entierChoisi = 10 * a * b * c\n } while (entierChoisi % 100 === 0) // on évite d'avoir 2 et 5 dans les trois facteurs aléatoires\n break\n }\n this.question = `Lister tous les diviseurs de $${entierChoisi}$`\n this.correction = `La liste des diviseurs de $${entierChoisi}$ est : $${listeDesDiviseurs(entierChoisi).join(`$${sp(1)};${sp(1)}$`)}$`\n this.reponse = listeDesDiviseurs(entierChoisi).join(';')\n }\n}\n"],"names":["titre","interactifReady","interactifType","dateDePublication","dateDeModifImportante","uuid","ref","ModeleAutomatisme2nde","Exercice","entierChoisi","choice","premiersEntreBornes","b","c","combinaisonListes","a","listeDesDiviseurs","sp"],"mappings":"8EAKY,MAACA,EAAQ,wCACRC,EAAkB,GAClBC,EAAiB,WAEjBC,EAAoB,aACpBC,EAAwB,aACxBC,EAAO,QACPC,EAAM,WAOJ,MAAMC,UAA8BC,CAAS,CAC1D,aAAe,CACb,MAAO,EACP,KAAK,MAAQR,EACb,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,IAAM,EACX,KAAK,0BAA4B,CAAC,SAAU,CAAC,CAC9C,CAED,iBAAmB,CAMjB,IAAIS,EACJ,OAAQ,KAAK,IAAG,CACd,IAAK,GACHA,EAAe,GAAKC,EAAOC,EAAoB,EAAG,EAAE,CAAC,EACrD,MACF,IAAK,GACH,EAAG,CACD,KAAM,CAACC,EAAGC,CAAC,EAAIC,EAAkBH,EAAoB,EAAG,EAAE,EAAG,CAAC,EAC9DF,EAAe,EAAIG,EAAIC,CACjC,OAAiBJ,EAAe,KAAO,GAC/B,MACF,IAAK,GACH,EAAG,CACD,KAAM,CAACM,EAAGH,EAAGC,CAAC,EAAIC,EAAkBH,EAAoB,EAAG,EAAE,EAAG,CAAC,EACjEF,EAAe,GAAKM,EAAIH,EAAIC,CACtC,OAAiBJ,EAAe,MAAQ,GAChC,KACH,CACD,KAAK,SAAW,iCAAiCA,CAAY,IAC7D,KAAK,WAAa,8BAA8BA,CAAY,YAAYO,EAAkBP,CAAY,EAAE,KAAK,IAAIQ,EAAG,CAAC,CAAC,IAAIA,EAAG,CAAC,CAAC,GAAG,CAAC,IACnI,KAAK,QAAUD,EAAkBP,CAAY,EAAE,KAAK,GAAG,CACxD,CACH"}