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/can6N01-0bs-Yw-R.js.map
{"version":3,"file":"can6N01-0bs-Yw-R.js","sources":["../../src/exercices/can/6e/can6N01.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { texteEnCouleur } from '../../../lib/outils/embellissements'\nimport { texNombre } from '../../../lib/outils/texNombre.js'\nimport { calculANePlusJamaisUtiliser, randint } from '../../../modules/outils.js'\nimport Exercice from '../../Exercice.js'\nexport const titre = 'Recomposer un entier'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\n\n/*!\n * @author Jean-Claude Lhote\n * Créé pendant l'été 2021\n * Référence can6N01\n */\nexport const uuid = '5cffb'\nexport const ref = 'can6N01'\nexport default function RecomposerEntier () {\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    const a = randint(2, 5)\n    const b = randint(2, 9)\n    const c = randint(2, 9)\n    this.reponse = calculANePlusJamaisUtiliser(a * 1000 + b * 10 + c * 100)\n    if (choice([true, false])) {\n      this.question = `Calculer $${texNombre(a)}\\\\times ${texNombre(1000)} + ${texNombre(b)}\\\\times 10 + ${texNombre(c)}\\\\times 100$.`\n      this.correction = `$${texNombre(a)}\\\\times ${texNombre(1000)} + ${texNombre(b)}\\\\times 10 + ${texNombre(c)}\\\\times 100 =${texNombre(this.reponse)}$`\n      this.correction += texteEnCouleur(`<br> Mentalement : <br>\n    On décompose le calcul (milliers, centaines puis dizaines) : <br>\n    $\\\\bullet$ $${texNombre(a)}\\\\times ${texNombre(1000)}=${texNombre(a * 1000)}$.<br>\n    $\\\\bullet$ $${texNombre(c)}\\\\times 100=${texNombre(c * 100)}$.<br>\n    $\\\\bullet$ $${texNombre(b)}\\\\times 10=${texNombre(b * 10)}$.<br>\n    Ainsi,  <br>\n    $\\\\begin{aligned}\n  ${texNombre(a)}\\\\times ${texNombre(1000)} + ${texNombre(b)}\\\\times 10 + ${texNombre(c)}\\\\times 100 &=${texNombre(a * 1000)}+${texNombre(c * 100)}+${texNombre(b * 10)}\\\\\\\\\n  &=${texNombre(this.reponse)}\n  \\\\end{aligned}$.`)\n    } else {\n      this.question = `Calculer $ ${texNombre(c)}\\\\times 100+ ${texNombre(b)}\\\\times 10 + ${texNombre(a)}\\\\times ${texNombre(1000)}$.`\n      this.correction = `$ ${texNombre(c)}\\\\times 100+ ${texNombre(b)}\\\\times 10 + ${texNombre(a)}\\\\times ${texNombre(1000)}  =${texNombre(this.reponse)}$`\n      this.correction += texteEnCouleur(`<br> Mentalement : <br>\n  On décompose le calcul (milliers, centaines puis dizaines) : <br>\n  $\\\\bullet$ $${texNombre(a)}\\\\times 1000=${texNombre(a * 1000)}$.<br>\n  $\\\\bullet$ $${texNombre(c)}\\\\times 100=${texNombre(c * 100)}$.<br>\n  $\\\\bullet$ $${texNombre(b)}\\\\times 10=${texNombre(b * 10)}$.<br>\n  Ainsi, <br>$\\\\begin{aligned}\n  ${texNombre(c)}\\\\times 100+ ${texNombre(b)}\\\\times 10 + ${texNombre(a)}\\\\times ${texNombre(1000)} &=${texNombre(a)}\\\\times ${texNombre(1000)} + ${texNombre(c)}\\\\times 100 + ${texNombre(b)}\\\\times 10\\\\\\\\\n  & =${texNombre(a * 1000)}+${texNombre(c * 100)}+${texNombre(b * 10)}\\\\\\\\\n  &=${texNombre(this.reponse)}\n  \\\\end{aligned}$. `)\n    }\n    this.canEnonce = this.question\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","RecomposerEntier","Exercice","a","randint","b","c","calcul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