Démarrer exercice…

\mbox{Réponse : }

Valider

Question suivante…

l_cas: {1, 2, 3, 4, 5}
l_conv: {0.001, 10, 10, 1.0E-6, 1000}
cas = RandomElement(l_cas)
conv = Element(l_conv, cas)
l_unite: {"g", "daN", "daN", "mg", "kN"}
unite = Element(l_unite, cas)
l_gpossible = Join({Sequence[9.81, i, 1, 10], Sequence[i, i, 2, 8, 2], Sequence[i, i, 12, 16, 2]})
g = RandomElement(l_gpossible)
l_mpossible = Sequence(i, i, 10, 200, 10)
m = RandomElement(l_mpossible)
p: (m * g)
accueil = true
l_rep: {((m * g) * conv), (m * conv), g, ((m * g) * conv), (m * conv)}
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)
rep = Element(l_rep, cas)
corriger = false
grade: score
tenonce2: "\mbox{Déterminer la valeur de la masse m\\
sachant que P=" + (LaTeX[p]) + "" + (LaTeX[unite]) + " et que\\
g=" + (LaTeX[g]) + "m.s^{-2}.}"
tenonce3: "\mbox{Déterminer la valeur de la constante\\
de gravitation g sachant que\\
P=" + (LaTeX[p]) + "" + (LaTeX[unite]) + " et que m=" + (LaTeX[(m * 10)]) + "kg.}"
tenonce1: "\mbox{Déterminer la valeur du poids P\\
sachant que m=" + (LaTeX[m]) + "" + (LaTeX[unite]) + " et que\\
g=" + (LaTeX[g]) + "m.s^{-2}.}"
l_enonce: {tenonce1, tenonce2, tenonce3, tenonce1, tenonce2}
tenonce = Element(l_enonce, cas)
trep2: "\mbox{P=m×g avec :\\
P = " + (LaTeX[p]) + "" + (LaTeX[unite]) + " et g=" + (LaTeX[g]) + "m.s^{-2}}.
\\
\mbox{Il faut d'abord convertir le poids :\\
P=" + (LaTeX[p]) + "" + (LaTeX[unite]) + "=" + (LaTeX[(p * conv)]) + "N
\\
\mbox{Réponse attendue : m=\frac{" + (LaTeX[(p * conv)]) + "}{" + (LaTeX[g]) + "}=" + (LaTeX[rep]) + "kg}"
trep3: "\mbox{P=m×g avec :\\
P=" + (LaTeX[p]) + "" + (LaTeX[unite]) + " et m=" + (LaTeX[(m * 10)]) + "kg   }.
\\
\mbox{Il faut convertir le poids :\\
P=" + (LaTeX[p]) + "" + (LaTeX[unite]) + "=" + (LaTeX[(p * conv)]) + "N}
\\
\mbox{Réponse attendue : g=\frac{" + (LaTeX[(p * conv)]) + "}{" + (LaTeX[(m * 10)]) + "}=" + (LaTeX[rep]) + "m.s^{-2}}"
trep1: "\mbox{P=m×g avec :\\
m = " + (LaTeX[m]) + "" + (LaTeX[unite]) + " et g = " + (LaTeX[g]) + "m.s^{-2}.\\
Il faut d'abord convertir la masse:\\
m=" + (LaTeX[m]) + "" + (LaTeX[unite]) + "=" + (LaTeX[(m * conv)]) + "kg
\\
\mbox{Réponse attendue :\\P=" + (LaTeX[(m * conv)]) + "×" + (LaTeX[g]) + "=" + (LaTeX[rep]) + "N}"
l_trep: {trep1, trep2, trep3, trep1, trep2}
trep = Element(l_trep, cas)