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/6M25-F1UDR0RM.js.map
{"version":3,"file":"6M25-F1UDR0RM.js","sources":["../../src/exercices/6e/6M25.js"],"sourcesContent":["import { combinaisonListes } from '../../lib/outils/arrayOutils'\nimport Exercice from '../Exercice.js'\nimport { listeQuestionsToContenu } from '../../modules/outils.js'\nexport const titre = 'Know the course on perimeter and area'\n\n/**\n * Citer des formules de périmètre, des formules d'aire ou la définition de π\n * @author Rémi Angot\n * Référence 6M25\n */\nexport const uuid = 'dc7ba'\nexport const ref = '6M25'\nexport default function ConnaitreFormulesDePerimetreEtAires () {\n  Exercice.call(this) // Héritage de la classe Exercice()\n  this.titre = titre\n  this.nbQuestions = 4\n  this.nbCols = 1\n  this.nbColsCorr = 1\n\n  this.nouvelleVersion = function () {\n    this.listeQuestions = [] // Liste de questions\n    this.listeCorrections = [] // Liste de questions corrigées\n    this.autoCorrection = []\n    const listeTypeDeQuestions = combinaisonListes(\n      [\n        'pi',\n        'rectangle',\n        'pcarre',\n        'acarre',\n        'arctangle',\n        'pcircle',\n        'circle',\n        'atrianglerectangle',\n        'triangle'\n      ],\n      this.nbQuestions\n    )\n    for (\n      let i = 0, texte, texteCorr, cpt = 0;\n      i < this.nbQuestions && cpt < 50;\n\n    ) {\n      switch (listeTypeDeQuestions[i]) {\n        case 'pi':\n          texte = 'Remember the definition of the number $\\\\pi$.'\n          texteCorr = '$\\\\pi$ is the length of a circle of diameter 1.'\n          break\n        case 'rectangle':\n          texte = 'Give a formula for the perimeter of the rectangle.'\n          texteCorr =\n            '$\\\\mathcal{P}_{\\\\text{rectangle}}=(L+l)\\\\times2=L\\\\times2+l\\\\times2=L+l+L+l$<br><br>'\n          texteCorr += 'With $L$ the length and $l$ the width of the rectangle.'\n          break\n        case 'pcarre':\n          texte = 'Give a formula for the perimeter of the square.'\n          texteCorr =\n            '$\\\\mathcal{P}_{\\\\text{square}}=c\\\\times4=c+c+c+c$<br><br>'\n          texteCorr += 'With $c$ the length of the side of the square.'\n          break\n        case 'arctangle':\n          texte = 'Give a formula for the area of the rectangle.'\n          texteCorr = '$\\\\mathcal{A}_{\\\\text{rectangle}}=L\\\\times l$<br><br>'\n          texteCorr += 'With $L$ the length and $l$ the width of the rectangle.'\n          break\n        case 'acarre':\n          texte = 'Give a formula for the area of the square.'\n          texteCorr = '$\\\\mathcal{A}_{\\\\text{square}}=c\\\\times c=c^2$<br><br>'\n          texteCorr += 'With $c$ the length of the side of the square.'\n          break\n        case 'atrianglerectangle':\n          texte = 'Give a formula for the area of a right triangle.'\n          texteCorr =\n            '$\\\\mathcal{A}_{\\\\text{right triangle}}=a\\\\times b \\\\div2=\\\\dfrac{a\\\\times b}{2}$<br><br>'\n          texteCorr +=\n            'With $a$ and $b$ the lengths of the sides of the right angle.'\n          break\n        case 'triangle':\n          texte = 'Give a formula for the area of any triangle.'\n          texteCorr =\n            '$\\\\mathcal{A}_{\\\\text{right triangle}}=b\\\\times h \\\\div2=\\\\dfrac{b\\\\times h}{2}$<br><br>'\n          texteCorr +=\n            'With $b$ the length of a side and $h$ the length of the height relative to this side.'\n          break\n        case 'pcircle':\n          texte =\n            'Give a formula for the length of a circle (also called circumference).'\n          texteCorr =\n            '$\\\\mathcal{P}_{\\\\text{circle}}=D\\\\times \\\\pi = 2\\\\times R \\\\times \\\\pi = 2\\\\pi{}R$<br><br>'\n          texteCorr += 'With $D$ the diameter and $R$ the radius of this circle.'\n          break\n        case 'circle':\n          texte = 'Give a formula for the area of a disk.'\n          texteCorr =\n            '$\\\\mathcal{A}_{\\\\text{disk}}=R\\\\times R\\\\times\\\\pi=\\\\pi R^2$<br><br>'\n          texteCorr += 'With $R$ the radius of this disk.'\n          break\n      }\n\n      if (this.listeQuestions.indexOf(texte) === -1) {\n        // If the question has never been asked, we create another one\n        this.listeQuestions.push(texte)\n        this.listeCorrections.push(texteCorr)\n        i++\n      }\n      cpt++\n    }\n    listeQuestionsToContenu(this)\n  }\n  // this.needNumericalForm = ['Difficulty level',3];\n}\n"],"names":["titre","uuid","ref","ConnaitreFormulesDePerimetreEtAires","Exercice","listeTypeDeQuestions","combinaisonListes","texte","texteCorr","cpt","listeQuestionsToContenu"],"mappings":"uDAGY,MAACA,EAAQ,wCAORC,EAAO,QACPC,EAAM,OACJ,SAASC,GAAuC,CAC7DC,EAAS,KAAK,IAAI,EAClB,KAAK,MAAQJ,EACb,KAAK,YAAc,EACnB,KAAK,OAAS,EACd,KAAK,WAAa,EAElB,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,KAAK,eAAiB,CAAE,EACxB,MAAMK,EAAuBC,EAC3B,CACE,KACA,YACA,SACA,SACA,YACA,UACA,SACA,qBACA,UACD,EACD,KAAK,WACN,EACD,QACM,EAAI,EAAGC,EAAOC,EAAWC,EAAM,EACnC,EAAI,KAAK,aAAeA,EAAM,IAE9B,CACA,OAAQJ,EAAqB,CAAC,EAAC,CAC7B,IAAK,KACHE,EAAQ,gDACRC,EAAY,kDACZ,MACF,IAAK,YACHD,EAAQ,qDACRC,EACE,uFACFA,GAAa,0DACb,MACF,IAAK,SACHD,EAAQ,kDACRC,EACE,4DACFA,GAAa,iDACb,MACF,IAAK,YACHD,EAAQ,gDACRC,EAAY,wDACZA,GAAa,0DACb,MACF,IAAK,SACHD,EAAQ,6CACRC,EAAY,yDACZA,GAAa,iDACb,MACF,IAAK,qBACHD,EAAQ,mDACRC,EACE,2FACFA,GACE,gEACF,MACF,IAAK,WACHD,EAAQ,+CACRC,EACE,2FACFA,GACE,wFACF,MACF,IAAK,UACHD,EACE,yEACFC,EACE,6FACFA,GAAa,2DACb,MACF,IAAK,SACHD,EAAQ,yCACRC,EACE,uEACFA,GAAa,oCACb,KACH,CAEG,KAAK,eAAe,QAAQD,CAAK,IAAM,KAEzC,KAAK,eAAe,KAAKA,CAAK,EAC9B,KAAK,iBAAiB,KAAKC,CAAS,EACpC,KAEFC,GACD,CACDC,EAAwB,IAAI,CAC7B,CAEH"}