Hi all:
I've made some code that generates arbitrary factorable quadratics, and displays the solutions when clicked. It's below:
_______________
(* Coefficient Functions *)
factor[x_] := RandomInteger[{1, 5}];
factor2[x_] := RandomInteger[{-5, 5}];
(* Generating the random exercises *)
table1 = Table[{
Row[{n, ". "}],
Expand[(s = (factor[n] x + factor2[n]))*(s1 = (factor[n] x +
factor2[n]))] // TraditionalForm, " = ",
s* s1 // TraditionalForm}, {n, 1, 10}];
FlipView[{
(* Answers Hidden *)
Style[Grid[table1, ItemStyle -> {{-1 -> White}, Automatic},
Dividers -> {{True, False, False, False, True}, All},
Spacings -> {1, 1.5}], FontFamily -> Times],
(* Answers Shown *)
Style[Grid[table1, ItemStyle -> {{-1 -> Blue}, Automatic},
Dividers -> {{True, False, False, False, True}, All},
Spacings -> {1, 1.5}], FontFamily -> Times]
}]
_________________
Now, what I'd like to do is make a CDF out of this with a button a the top, where the students could regenerate a new list of 10 if they would like to do so. How can I do that?
Thanks!
Rob

