No notes were written for this algorithm.

Variable

Set n to 1
Quiz

Init quiz Solve the equation: (with x_1 <= x_2)
Structure

While n <= 5
Variable

Set a to random(20) - 10
Variable

Set b to random(20) - 10
Structure

If a <= b
Variable

Set x_1 to a
Variable

Set x_2 to b
Structure

Else
Variable

Set x_2 to a
Variable

Set x_1 to b
Structure

End
Variable

Set f to (x - x_1)(x - x_2)
Quiz

Add text "n") "f" = 0
Quiz

Add input x_1 with x_1 as correct answer
Quiz

Add input x_2 with x_2 as correct answer
Variable

Set n to n + 1
Structure

End
Quiz

Show quiz