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/P008-Z8Z82cIx.js.map
{"version":3,"file":"P008-Z8Z82cIx.js","sources":["../../src/exercices/profs/P008.js"],"sourcesContent":["import Exercice from '../Exercice.js'\nimport { context } from '../../modules/context.js'\nimport Operation from '../../modules/operations.js'\nexport const titre = 'Operations performed'\nexport const ref = 'P008'\nexport const uuid = '691a6'\n\n/**\n * Poser et effectuer les divisions euclidiennes suivantes puis donner l'égalité fondamentale correspondante.\n *\n * Niveau de difficulté 1 :\n * * division par 2, 3 , 4 ou 5\n * * division par 6 à 9\n * * un 0 dans le quotient\n *\n * Niveau de difficulté 2 :\n * * division par 11, 12, 15, 25\n * * division par 13,14,21,22,23 ou 24 et un 0 dans le quotient\n * * division par un multiple de 10 et un 0 dans le quotient\n * @author Rémi Angot\n * Référence 6C11\n */\nexport default function OperationsPosees () {\n  Exercice.call(this) // Héritage de la classe Exercice()\n  this.titre = titre\n  this.consigne = ''\n  this.spacing = 2\n  context.isHtml ? (this.spacingCorr = 2) : (this.spacingCorr = 1) // Important sinon opidiv n'est pas joli\n  this.nbQuestions = 1\n  this.nbQuestionsModifiable = false\n  this.sup = 1\n  this.sup2 = '1234.5-789.2'\n  this.sup3 = 0\n  this.listePackages = 'xlop'\n\n  this.nouvelleVersion = function () {\n    this.listeQuestions = [] // Liste de questions\n    this.listeCorrections = [] // Liste de questions corrigées\n    const nombres = [1234.5, 789.2]\n    const operandes = String(this.sup2).split('-')\n    nombres[0] = parseFloat(operandes[0])\n    nombres[1] = parseFloat(operandes[1])\n\n    const a = nombres[0]\n    const b = nombres[1]\n    switch (parseInt(this.sup)) {\n      case 1: // addition\n        this.contenu = Operation({ operande1: a, operande2: b, type: 'addition' })\n        break\n      case 2: // soustraction\n        this.contenu = Operation({ operande1: a, operande2: b, type: 'substraction' })\n        break\n      case 3: // multiplication\n        this.contenu = Operation({ operande1: a, operande2: b, type: 'multiplication' })\n        break\n      case 4: // division euclidienne\n        this.contenu = Operation({ operande1: a, operande2: b, type: 'divisionE', precision: 0 })\n        break\n      case 5: // division\n        this.contenu = Operation({ operande1: a, operande2: b, type: 'division', precision: this.sup3 })\n        break\n    }\n    this.listeQuestions[0] = this.contenu\n  }\n  this.besoinFormulaireNumerique = ['Operation', 5, '1: Addition\\n2: Subtraction\\n3: Multiplication\\n4: Euclidean division\\n5: Decimal division']\n  this.besoinFormulaire2Texte = ['Two numbers separated by a hyphen (decimal separator = point)']\n  this.besoinFormulaire3Numerique = ['Number of digits after the decimal point for the quotient (5 maximum)', 5]\n}\n"],"names":["titre","ref","uuid","OperationsPosees","Exercice","context","nombres","operandes","a","b","Operation"],"mappings":"0HAGY,MAACA,EAAQ,uBACRC,EAAM,OACNC,EAAO,QAiBL,SAASC,GAAoB,CAC1CC,EAAS,KAAK,IAAI,EAClB,KAAK,MAAQJ,EACb,KAAK,SAAW,GAChB,KAAK,QAAU,EACfK,EAAQ,OAAU,KAAK,YAAc,EAAM,KAAK,YAAc,EAC9D,KAAK,YAAc,EACnB,KAAK,sBAAwB,GAC7B,KAAK,IAAM,EACX,KAAK,KAAO,eACZ,KAAK,KAAO,EACZ,KAAK,cAAgB,OAErB,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,MAAMC,EAAU,CAAC,OAAQ,KAAK,EACxBC,EAAY,OAAO,KAAK,IAAI,EAAE,MAAM,GAAG,EAC7CD,EAAQ,CAAC,EAAI,WAAWC,EAAU,CAAC,CAAC,EACpCD,EAAQ,CAAC,EAAI,WAAWC,EAAU,CAAC,CAAC,EAEpC,MAAMC,EAAIF,EAAQ,CAAC,EACbG,EAAIH,EAAQ,CAAC,EACnB,OAAQ,SAAS,KAAK,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