Author: David Cox

check

Pattern

x =

Congratulations!

Sorry, it's wrong.

Click me!

Click me!

Ré-initialiser

niveau suivant

Level

NextLevel

Condition

Not

vérifier la réponse

Enter Equation

Enter the equation of the 
line on the graph. 

Congratulations!  
You did it.  You've successfully 
completed all levels.  

a = RandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8})
b = RandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8})
G: (a, b)
g = false
ActualLevel = 1
c = RandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8})
d = RandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8})
H: (c, d)
n = Line(G, H)
E: (c, d)
B: (0, b)
k = Line(E, B)
A: (a, 0)
e = Line(A, B)
C = (-10, 10)
D = (-7, 10)
h = Line(C, D)
MaxLevel = 7
n1 = Random(1, 20)
n2 = Random(1, 20)
n3 = Random(1, 20)
n4 = Random(1, 20)
n5 = Random(1, 20)
s1: (2 * Random[0, 1]) - 1
s2: (2 * Random[0, 1]) - 1
s3: (2 * Random[0, 1]) - 1
s4: (2 * Random[0, 1]) - 1
s5: (2 * Random[0, 1]) - 1
nx = Random(1, 20)
E2: "x+" + n2 + "=" + (nx + n2)
E3: n1 + "*x = " + ((n1 * nx))
E4: "" + n1 + "*x + " + n2 + " = " + ((n1 * nx) + n2) + ""
E5: "" + (If[s1  <  0, "-", ""] + n1) + "*x" + (If[s2  <  0, " -", " +"]) + " " + n2 + " = " + (((s1 * n1) * nx) + (s2 * n2)) + ""
E6: E5
E7: E5
E8: E5
LevelCount = 0
LevelTotal = Cell(2, ActualLevel + 1)
LevelRemain: LevelTotal - LevelCount
GoNextLevel = false
AnswerNum = 0
inputBox1 = Textfield(AnswerNum)
A2 = 1
A3 = 2
A4 = 3
A5 = 4
A6 = 5
A7 = 6
A8 = 7
B2 = 5
B3 = 5
B4 = 5
B5 = 5
B6 = 5
B7 = 5
B8 = 5
C2 = If(e ≟ h ∧ g ∧ (C ≠ D), true, false)
D2: ¬C2
C3 = If(e ≟ h ∧ g ∧ ActualLevel ≟ 2, true, false)
D3: ¬C3
C4 = If(e ≟ j ∧ ActualLevel ≟ 3 ∧ g, true, false)
D4: ¬C4
C5 = If(e ≟ j ∧ ActualLevel ≟ 4 ∧ g, true, false)
C6 = If(k ≟ j ∧ ActualLevel ≟ 5 ∧ g, true, false)
D5: ¬C5
D6: ¬C6
C7 = If(k ≟ j ∧ ActualLevel ≟ 6 ∧ g, true, false)
D7: ¬C7
C8 = If(j ≟ n ∧ ActualLevel ≟ 7 ∧ g, true, false)
D8: ¬C8
f(x) = (((-y(B))) / x(A) * x) + y(B)
text1 = FractionText(abs(y(B) / x(A)))
i: abs(y(B))
Text3 = If(y(B)  <  0, "-", "+")
text4 = If(y(B) / x(A) > 0, "-", "")
text2: "Graph: y =" + (LaTeX[text4]) + " " + (LaTeX[text1]) + "x " + (LaTeX[Text3]) + "" + (LaTeX[i]) + " "
text3: "Graph: " + (LaTeX[e]) + ""
TxtLevel: "" + (If[ActualLevel > MaxLevel, "Congratulations! You have completed all the levels.", "You " + (If[ActualLevel > 1, "are on level " + ActualLevel + " of " + MaxLevel + " levels.", "start with the level 1."])]) + ""
inputBox2 = Textfield(j)
TxtCurrentLevel: "Current Level : " + ActualLevel + ""
absslope = FractionText(abs(y(B) / x(A)))
text7: "" + (LaTeX[text4]) + "" + (LaTeX[absslope]) + ""
m = Slope(k)
text8 = FractionText(abs(m))
text9 = Text(If[m  <  0, "-", ""])
text11: "" + (LaTeX[text9]) + "" + (LaTeX[text8]) + ""
l = -3 (slider from -5 to 5, step 1)
F: (x(E) + (l * (x(E) - x(B))), y(E) + (l * (y(E) - y(B))))
text12: "Write the equation of the line 
between the points:

 " + E + " and " + F + ""
TxtNextLevel: "You need " + LevelRemain + " more error-free 
responses for the next level."
text6: "Write the equation of the line that 
has the following slope 
and y-intercept. 

Slope:  

y-intercept: " + B + ""
text13: "Write the equation of the line
between the points:
" + G + " and " + H + ""
AnswerWrong = If((C2 ≟ false ∧ ActualLevel ≟ 1 ∨ C3 ≟ false ∧ ActualLevel ≟ 2 ∨ C4 ≟ false ∧ ActualLevel ≟ 3 ∨ C5 ≟ false ∧ ActualLevel ≟ 4 ∨ C6 ≟ false ∧ ActualLevel ≟ 5 ∨ C7 ≟ false ∧ ActualLevel ≟ 6 ∨ C8 ≟ false ∧ ActualLevel ≟ 7) ∧ g, true, false)
AnswerCorrect = If(C2 ≟ true ∧ ActualLevel ≟ 1 ∨ C3 ≟ true ∧ ActualLevel ≟ 2 ∨ C4 ≟ true ∧ ActualLevel ≟ 3 ∨ C5 ≟ true ∧ ActualLevel ≟ 4 ∨ C6 ≟ true ∧ ActualLevel ≟ 5 ∨ C7 ≟ true ∧ ActualLevel ≟ 6 ∨ C8 ≟ true ∧ ActualLevel ≟ 7, true, false)
o = RandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8})
text10: "Write the equation for the line that has 
the following slope and passes through 
the given point.

Slope:

Point:  " + E + ""
I = (-11016, 29376)
correct = 0
wrong = 1
total: correct + wrong
text15: "You have answered " + correct + " correct
out of a possible " + total + " problems.  "
good = true