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/6D10-R-R-KnAN.js
import{E as f,aj as m,r as $,w as n,h as d,l as p}from"./index-ajJ0B2-K.js";const C="Convert durations",b="8b0f9",j="6D10";function v(){f.call(this),this.sup=5,this.titre=C,this.consigne="Convert.",this.nbCols=1,this.nbColsCorr=1,this.spacing=2,this.nbQuestions=5,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];const a=m([1,2,3,4],this.nbQuestions),l=m([0,1,2],this.nbQuestions);let u=[];this.sup<5&&(u=m([this.sup],this.nbQuestions)),parseInt(this.sup)===5&&(u=m([1,2,3,4],this.nbQuestions));for(let h=0,t,e,s,i,o,x,c=0;h<this.nbQuestions&&c<50;){if(u[h]===1){const r=a[h];r===1&&(t=$(2,11),o=`$${t}~\\text{h in minutes.}$`,x=`$${t}~\\text{h} = ${t}\\times60~~\\text{min} = ${n(t*60)}~\\text{min}$`),r===2&&(t=d([1,2,10,20]),o=`$${t}~\\text{h in seconds.}$`,x=`$${t}~\\text{h} = ${t}\\times3~600~\\text{s} = ${n(t*3600)}~\\text{s}$`),r===3&&(e=$(2,59),o=`$${e}~\\text{min in seconds.}$`,x=`$${e}~\\text{min} = ${e}\\times60~\\text{s} = ${n(e*60)}~\\text{s}$`),r===4&&(t=$(1,2),e=$(2,59),o=`$${t}~\\text{h}~${e}~\\text{min in seconds.}$`,x=`$${t}~\\text{h}~${e}~\\text{min} = ${t}\\times3~600~\\text{s} + ${e}\\times60~\\text{s} = ${n(t*3600)}+${n(e*60)}~\\text{s} = ${n(t*3600+e*60)}~\\text{s}$`)}u[h]===2&&(i=$(1,6),t=$(1,23),o=`$${n(t+24*i)}~\\text{h in days and hours.}$`,x=`$${n(t+24*i)}~\\text{h} = ${i}\\times24~\\text{h} + ${t}~\\text{h} = ${i}~\\text{j}~${t}~\\text{h}$`),u[h]===3&&(t=l[h],e=$(1,59),s=$(1,59),t>0?(o=`$${n(t*3600+e*60+s)}~\\text{s in hours, minutes and seconds.}$`,x=`$${n(t*3600+e*60+s)}~\\text{s} = ${n(t*3600)}~\\text{s}+${e*60+s}~\\text{s} =${t}~\\text{h}+${e}\\times60~\\text{s}+${s}~\\text{s}=${t}~\\text{h}~${e}~\\text{min}~${s}~\\text{s}$`):(o=`$${n(e*60+s)}~\\text{s in hours, minutes and seconds.}$`,x=`$${n(e*60+s)}~\\text{s} = ${e}\\times60~\\text{s}+${s}~\\text{s}=${e}~\\text{min}~${s}~\\text{s}$`)),u[h]===4&&(s=$(1,9),i=$(1,6),t=$(1,23),o=`$${n(t+24*i+24*7*s)}~\\text{h in weeks days and hours.}$`,s>1?x=`$${n(t+24*i+24*7*s)}~\\text{h} = ${i+7*s}\\times24~\\text{h} + ${t}~\\text{h} = ${i+7*s}~\\text{j}~${t}~\\text{h} = ${s}\\times7~\\text{j} + ${i}~\\text{j}~${t}~\\text{h} = ${s}~\\text{semaines}~${i}~\\text{j}~${t}~\\text{h}$`:x=`$${n(t+24*i+24*7*s)}~\\text{h} = ${i+7*s}\\times24~\\text{h} + ${t}~\\text{h} = ${i+7*s}~\\text{j}~${t}~\\text{h} = ${s}\\times7~\\text{j} + ${i}~\\text{j}~${t}~\\text{h} = ${s}~\\text{semaine}~${i}~\\text{j}~${t}~\\text{h}$`),this.listeQuestions.indexOf(o)===-1&&(this.listeQuestions.push(o),this.listeCorrections.push(x),h++),c++}p(this)},this.besoinFormulaireNumerique=["Difficulty level",5,`1: Conversions in seconds or minutes
2: Conversions in days-hours
3: Conversions in hours-minutes-seconds
4: Conversions in weeks-days-hours
5: Mix`]}export{v as default,j as ref,C as titre,b as uuid};
//# sourceMappingURL=6D10-R-R-KnAN.js.map