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/can2C01-l0XN3a2P.js.map
{"version":3,"file":"can2C01-l0XN3a2P.js","sources":["../../src/exercices/can/2e/can2C01.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { miseEnEvidence } from '../../../lib/outils/embellissements'\nimport Exercice from '../../Exercice.js'\nimport { randint, calculANePlusJamaisUtiliser } from '../../../modules/outils.js'\nexport const titre = 'Trouver le nombre d’entiers entre deux valeurs'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\n/**\n * Modèle d'exercice très simple pour la course aux nombres\n * @author Gille Mora\n * Créé pendant l'été 2021\n * Référence can2C01\n * Date de publication\n*/\nexport const uuid = '1f399'\nexport const ref = 'can2C01'\nexport default function NombreDeNombresEntiersEntreDeuxValeurs2 () {\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\n    switch (choice(['a', 'b', 'c'])) {\n      case 'a':\n        a = randint(3, 5)\n        b = randint(8, 18)\n        this.question = `Combien y a-t-il d'entiers $n$ tels que : <br>$${a}\\\\leqslant n \\\\leqslant ${b}$ ?`\n        this.correction = `Il y en a $${b}-${a}+1$, soit $${miseEnEvidence(b - a + 1)}$.`\n        this.reponse = calculANePlusJamaisUtiliser(b - a + 1)\n        break\n\n      case 'b':\n        a = randint(3, 5)\n        b = randint(8, 18)\n        this.question = `Combien y a-t-il d'entiers $n$ tels que :<br> $${a}< n \\\\leqslant ${b}$ ?`\n        this.correction = `Il y en a $${b}-${a}$, soit $${miseEnEvidence(b - a)}$.`\n        this.reponse = calculANePlusJamaisUtiliser(b - a)\n        break\n      case 'c':\n        a = randint(3, 5)\n        b = randint(8, 18)\n        this.question = `Combien y a-t-il d'entiers $n$ tels que : <br>$${a}\\\\leqslant n < ${b}$ ?`\n        this.correction = `Il y en a $${b}-${a}$, soit $${miseEnEvidence(b - a)}$.`\n        this.reponse = calculANePlusJamaisUtiliser(b - a)\n        break\n    }\n    this.canEnonce = this.question// 'Compléter'\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","NombreDeNombresEntiersEntreDeuxValeurs2","Exercice","a","b","choice","randint","miseEnEvidence","calculANePlusJamaisUtiliser"],"mappings":"qEAIY,MAACA,EAAQ,iDACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SAQVC,EAAO,QACPC,EAAM,UACJ,SAASC,GAA2C,CACjEC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAGC,EACP,OAAQC,EAAO,CAAC,IAAK,IAAK,GAAG,CAAC,EAAC,CAC7B,IAAK,IACHF,EAAIG,EAAQ,EAAG,CAAC,EAChBF,EAAIE,EAAQ,EAAG,EAAE,EACjB,KAAK,SAAW,kDAAkDH,CAAC,2BAA2BC,CAAC,MAC/F,KAAK,WAAa,cAAcA,CAAC,IAAID,CAAC,cAAcI,EAAeH,EAAID,EAAI,CAAC,CAAC,KAC7E,KAAK,QAAUK,EAA4BJ,EAAID,EAAI,CAAC,EACpD,MAEF,IAAK,IACHA,EAAIG,EAAQ,EAAG,CAAC,EAChBF,EAAIE,EAAQ,EAAG,EAAE,EACjB,KAAK,SAAW,kDAAkDH,CAAC,kBAAkBC,CAAC,MACtF,KAAK,WAAa,cAAcA,CAAC,IAAID,CAAC,YAAYI,EAAeH,EAAID,CAAC,CAAC,KACvE,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