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/6N23-0LZM4df1.js.map
{"version":3,"file":"6N23-0LZM4df1.js","sources":["../../src/exercices/6e/6N23.js"],"sourcesContent":["import { choice } from '../../lib/outils/arrayOutils'\nimport { deprecatedTexFraction } from '../../lib/outils/deprecatedFractions.js'\nimport { texNombre } from '../../lib/outils/texNombre'\nimport Exercice from '../deprecatedExercice.js'\nimport { context } from '../../modules/context.js'\nimport { calculANePlusJamaisUtiliser, listeQuestionsToContenu, randint } from '../../modules/outils.js'\nimport { ajouteChampTexteMathLive } from '../../lib/interactif/questionMathLive.js'\nimport { setReponse } from '../../lib/interactif/gestionInteractif.js'\n\nexport const titre = 'Give the decimal writing of a decimal fraction'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\n\n/**\n * On donne une fraction qui a pour dénominateur 10, 100 ou 1 000, il faut donner l'écriture décimale.\n *\n * Le numérateur est de la forme X, XX, X0X, X00X ou XXX\n * @author Rémi Angot\n * 6N23\n */\nexport const uuid = '4b9d5'\nexport const ref = '6N23'\nexport default function ExerciceEcritureDecimaleApartirDeFractionDecimale () {\n  Exercice.call(this) // Héritage de la classe Exercice()\n  this.consigne = 'Give decimal writing.'\n  this.spacing = 2\n  this.spacingCorr = 2\n  this.nbQuestions = 8\n  this.nbCols = 2\n  this.nbColsCorr = 2\n\n  this.nouvelleVersion = function () {\n    this.listeQuestions = [] // Liste de questions\n    this.listeCorrections = [] // Liste de questions corrigées\n    this.autoCorrection = []\n    for (\n      let i = 0, a, b, texte, texteCorr, cpt = 0;\n      i < this.nbQuestions && cpt < 50;\n    ) {\n      a = choice(\n        [\n          randint(2, 9),\n          randint(11, 99),\n          randint(1, 9) * 100 + randint(1, 9),\n          randint(1, 9) * 1000 + randint(1, 9)\n        ],\n        randint(101, 999)\n      )\n      // X,XX,X0X,X00X,XXX\n      b = choice([10, 100, 1000])\n      setReponse(this, i, calculANePlusJamaisUtiliser(a / b))\n      this.autoCorrection[i].reponse.param.digits = 6\n      this.autoCorrection[i].reponse.param.decimals = 3\n      texte = context.isAmc ? 'Give the decimal writing of' : ''\n      texte += `$${deprecatedTexFraction(texNombre(a), texNombre(b))}$`\n      texte += context.isAmc ? '.' : `${!this.interactif ? '$ = \\\\dotfill $' : '$=$' + ajouteChampTexteMathLive(this, i, 'largeur25 inline')}`\n      texteCorr =\n                '$' +\n                deprecatedTexFraction(texNombre(a), texNombre(b)) +\n                ' = ' +\n                texNombre(calculANePlusJamaisUtiliser(a / b)) +\n                ' $'\n      if (this.questionJamaisPosee(i, a, b)) {\n        // If the question has never been asked, we create another one\n        if (context.isDiaporama) {\n          texte = texte.replace('=\\\\dotfill', '')\n        }\n        this.listeQuestions.push(texte)\n        this.listeCorrections.push(texteCorr)\n        i++\n      }\n      cpt++\n    }\n    listeQuestionsToContenu(this)\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","ExerciceEcritureDecimaleApartirDeFractionDecimale","Exercice","a","b","texte","texteCorr","cpt","choice","randint","setReponse","calculANePlusJamaisUtiliser","context","deprecatedTexFraction","texNombre","ajouteChampTexteMathLive","listeQuestionsToContenu"],"mappings":"uJASY,MAACA,EAAQ,iDACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SASVC,EAAO,QACPC,EAAM,OACJ,SAASC,GAAqD,CAC3EC,EAAS,KAAK,IAAI,EAClB,KAAK,SAAW,wBAChB,KAAK,QAAU,EACf,KAAK,YAAc,EACnB,KAAK,YAAc,EACnB,KAAK,OAAS,EACd,KAAK,WAAa,EAElB,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,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