Démarrer exercice…

\mbox{Réponse : }

Valider

Question suivante…

cg: 1850
cl: 4185
cs: 2060
lf: 335
lv: 2260
lcas: {"sl", "ls", "lg", "gl", "sg", "gs"}
lq = Sequence(i, i, 1, Length[lcas])
q = RandomElement(lq)
ltgaz = Sequence(i, i, 101, 200)
ltliquide = Sequence(i, i, 1, 99)
ltsolide = Sequence(i, i, -100, -1)
ltfin = If(q ≟ 2 ∨ q ≟ 6, ltsolide, If[q ≟ 1 ∨ q ≟ 4, ltliquide, ltgaz])
t2 = RandomElement(ltfin)
ltinit = If(q ≟ 1 ∨ q ≟ 5, ltsolide, If[q ≟ 2 ∨ q ≟ 3, ltliquide, If[q ≟ 4 ∨ q ≟ 6, ltgaz]])
t1 = RandomElement(ltinit)
lm = Sequence(i, i, 100, 999)
m = RandomElement(lm)
lrep: (m / 1000 * {(cs * (0 - t1)) + (cl * t2) + lf, (-((cs * (0 - t2)) + (cl * t1) + lf)), (cl * (100 - t1)) + lv + (cg * (t2 - 100)), (-((cl * (100 - t2)) + lv + (cg * (t1 - 100)))), ((-cs) * t1) + lf + (100 * cl) + lv + ((t2 - 100) * cg), (-(((-cs) * t2) + lf + (100 * cl) + lv + ((t1 - 100) * cg)))} / 1000)
accueil = true
l_possible = Sequence(i / 10, i, -100, 100)
l_n = Sequence(i, i, 4, 8, 2)
n = RandomElement(l_n)
ChampTexte1 = Textfield(txt_prop)
prop = NaN
texte2: "\mbox{Ma réponse est : }" + (LaTeX[prop]) + ""
score = 0
essais = 0
juste = false
max: 5
stop = false
texte3: "\mbox{Score : }" + (LaTeX[score]) + " / " + (LaTeX[essais]) + ""
l_exo = Sequence(RandomElement[l_possible], i, 1, n)
corriger = false
rep = Element(lrep, q)
grade: score
txt_enonce: "\mbox{Calculer en kilojoules la quantité d'énergie\\
thermique échangée lorsque " + (LaTeX[m]) + " grammes\\
d'eau passe de " + (LaTeX[t1]) + "°C à " + (LaTeX[t2]) + "°C.\\
\;\\
Données :}\\
L_v=" + (LaTeX[lv]) + "\mbox{ J/kg}\\
L_f=" + (LaTeX[lf]) + "\mbox{ J/kg}\\
c_{\tiny \mbox{eau solide}}=" + (LaTeX[cs]) + "\mbox{ J/kg/K}\\
c_{\tiny \mbox{eau liquide}}=" + (LaTeX[cl]) + "\mbox{ J/kg/K}\\
c_{\tiny \mbox{eau gazeuse}}=" + (LaTeX[cg]) + "\mbox{ J/kg/K}\\"
trep1 = LaTeX(Text["\mbox{Utilisons la relation :}\\ Q=\Big(m.c_s.(0-t_1)\Big) +\Big(m.L_f\Big)+\Big(m.c_l.(t_2-0)\Big)\\ Q=\Big (" + (m / 1000) + " × " + cs + " × " + ((t1 * (-1))) + "  \Big) +\Big (" + (m / 1000) + " × " + lf + " \Big )+\Big (" + (m / 1000) + " × " + cl + " × " + t2 + "\Big )\\ \;\\ \mbox{La réponse attendue était : }" + rep + " \mbox{ kJ.}"])
trep2 = LaTeX(Text["\mbox{Utilisons la relation :}\\ Q=\Big(m.c_l.(0-t_1)\Big) +\Big(m.L_s\Big)+\Big(m.c_s.(t_2-0)\Big)\\ Q=\Big (" + (m / 1000) + " × " + cl + " × (" + ((t1 * (-1))) + ")  \Big) +\Big (" + (m / 1000) + " × (" + ((-lf)) + ") \Big )+\Big (" + (m / 1000) + " × " + cs + " × (" + t2 + ")\Big )\\ \;\\ \mbox{La réponse attendue était : }" + rep + " \mbox{ kJ.}"])
trep3 = LaTeX(Text["\mbox{Utilisons la relation :}\\ Q=\Big(m.c_l.(100-t_1)\Big) +\Big(m.L_v\Big)+\Big(m.c_s.(t_2-100)\Big)\\ Q=\Big (" + (m / 1000) + " × " + cl + " × " + (100 - t1) + "  \Big) +\Big (" + (m / 1000) + " × " + ((lv * " \Big )+\Big (")) + (m / 1000) + " × " + cg + " × " + (t2 - 100) + "\Big )\\ \;\\ \mbox{La réponse attendue était : }" + rep + " \mbox{ kJ.}"])
trep4 = LaTeX(Text["\mbox{Utilisons la relation :}\\ Q=\Big(m.c_g.(100-t_1)\Big) +\Big(m.L_l\Big)+\Big(m.c_l.(t_2-100)\Big)\\ Q=\Big (" + (m / 1000) + " × " + cg + " × " + (100 - t1) + "  \Big) +\Big (" + (m / 1000) + " × " + (((-lv) * " \Big )+\Big (")) + (m / 1000) + " × " + cl + " × " + (t2 - 100) + "\Big )\\ \;\\ \mbox{La réponse attendue était : }" + rep + " \mbox{ kJ.}"])
trep5 = LaTeX(Text["\mbox{Utilisons la relation :}\\ Q=\Big(m.c_s.(0-t_1)\Big) +\Big(m.L_f\Big)+\Big(m.c_l×100\Big)+\Big( m.L_v \Big)+\Big( m.c_g.(t_2-100) \Big)\\ Q=\Big (" + (m / 1000) + " × " + cs + " × " + ((t1 * (-1))) + "  \Big) +\Big (" + (m / 1000) + " × " + lf + " \Big )+\Big( " + (m / 1000) + "×" + cl + "×100 \Big)\\ + \Big(" + (m / 1000) + "×" + lv + "\Big)+\Big (" + (m / 1000) + " × " + cg + " × " + (t2 - 100) + "\Big )\\ \;\\ \mbox{La réponse attendue était : }" + rep + " \mbox{ kJ.}"])
trep6 = LaTeX(Text["\mbox{Utilisons la relation :}\\ Q=\Big(m.c_g.(100-t_1)\Big) +\Big(m.L_l\Big)+\Big(m.c_l×-100\Big)+\Big( m.L_s \Big)+\Big( m.c_s.(t_2-0) \Big)\\ Q=\Big (" + (m / 1000) + " × " + cg + " × " + (100 - t1) + "  \Big) +\Big (" + (m / 1000) + " × " + ((lv * (-1))) + " \Big )+\Big( " + (m / 1000) + "×" + cl + "×-100 \Big)\\ + \Big(" + (m / 1000) + "×" + ((lf * (-1))) + "\Big)+\Big (" + (m / 1000) + " × " + cs + " × " + t2 + "\Big )\\ \;\\ \mbox{La réponse attendue était : }" + rep + " \mbox{ kJ.}"])
ltrep: {trep1, trep2, trep3, trep4, trep5, trep6}
trep = Element(ltrep, q)