HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can5N03-c0tyBaTr.js.map
{"version":3,"file":"can5N03-c0tyBaTr.js","sources":["../../src/exercices/can/5e/can5N03.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { miseEnEvidence } from '../../../lib/outils/embellissements'\nimport Exercice from '../../deprecatedExercice.js'\nimport { randint } from '../../../modules/outils.js'\nexport const titre = 'Déterminer un multiple'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const dateDePublication = '17/04/2023'\n/**\n * Modèle d'exercice très simple pour la course aux nombres\n * @author Gilles Mora\n * Référence\n * Date de publication\n*/\nexport const uuid = 'ed8da'\nexport const ref = 'can5N03'\nexport default function PlusGrandMultiple () {\n  Exercice.call(this) // Héritage de la classe Exercice()\n  this.typeExercice = 'simple' // Cette ligne est très importante pour faire faire un exercice simple !\n  this.nbQuestions = 1\n  this.tailleDiaporama = 2\n  // Dans un exercice simple, ne pas mettre de this.listeQuestions = [] ni de this.consigne\n  this.formatChampTexte = 'largeur15 inline'\n  this.nouvelleVersion = function () {\n    const a = randint(2, 16)\n    const b = randint(2, 9)\n    const c = randint(31, 91)\n    switch (choice([1, 2, 3])) {\n      case 1:\n        this.question = `Quel est le plus grand entier  à deux chiffres divisible par $${a}$ ?`\n        this.correction = `Cela revient à chercher le plus grand multiple de $${a}$  inférieur à $100$.<br>`\n        if (100 % a === 0) {\n          this.reponse = 100 - a\n          this.correction += `Comme $100$ est divisible par $${a}$, le plus grand multiple cherché est $100-${a}=${miseEnEvidence(this.reponse)}$.`\n        } else {\n          this.reponse = Math.floor(100 / a) * a\n          this.correction += ` Comme $${a}\\\\times ${Math.floor(100 / a)}=${Math.floor(100 / a) * a} < 100$ et\n        $ ${a}\\\\times ${Math.floor(100 / a) + 1}=${(Math.floor(100 / a) + 1) * a} > 100$,\n        alors le plus grand multiple cherché est $${miseEnEvidence(this.reponse)}$.`\n        }\n        break\n      case 2:\n        this.question = `Quel est le plus grand entier multiple de $${b}$  inférieur à $${c}$ ?`\n\n        if (c % b === 0) {\n          this.reponse = c - b\n          this.correction = `Comme $${c}$ est divisible par $${b}$, le plus grand multiple cherché est $${c}-${b}=${miseEnEvidence(this.reponse)}$.`\n        } else {\n          this.reponse = Math.floor(c / b) * b\n          this.correction = ` Comme $${b}\\\\times ${Math.floor(c / b)} =${Math.floor(c / b) * b} < ${c}$ et\n        $ ${b}\\\\times${Math.floor(c / b) + 1}=${(Math.floor(c / b + 1)) * b} > ${c}$,\n        alors le plus grand multiple cherché est $${miseEnEvidence(this.reponse)}$.`\n        }\n        break\n\n      case 3 :\n        this.question = `Quel est le plus petit entier multiple de $${b}$  supérieur à $${c}$ ?`\n\n        if (c % b === 0) {\n          this.reponse = c + b\n          this.correction = `Comme $${c}$ est divisible par $${b}$, le plus petit multiple cherché est $${c}+${b}=${miseEnEvidence(this.reponse)}$.`\n        } else {\n          this.reponse = Math.ceil(c / b) * b\n          this.correction = ` Comme $${b}\\\\times ${Math.ceil(c / b) - 1} =${Math.ceil(c / b) * b - b} < ${c}$ et\n        $ ${b}\\\\times${Math.ceil(c / b)}=${(Math.ceil(c / b)) * b} > ${c}$,\n        alors le plus petit multiple cherché est $${miseEnEvidence(this.reponse)}$.`\n        }\n        break\n    }\n  }\n  this.canEnonce = this.question// 'Compléter'\n  this.canReponseACompleter = ''\n}\n"],"names":["titre","interactifReady","interactifType","dateDePublication","uuid","ref","PlusGrandMultiple","Exercice","a","randint","b","c","choice","miseEnEvidence"],"mappings":"wDAIY,MAACA,EAAQ,yBACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAoB,aAOpBC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAqB,CAC3CC,EAAS,KAAK,IAAI,EAClB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