Could somebody please give their input into the following scenario:
I'm creating a math quiz system. I need to generate several math problems and show them in the screen. There are many of them. Like:
Times tables: 9 X 9 = ____
Addition Subtraction, Multiplication and division of Integers: 3901 + 22 = ____
Comparing Integers (<, >, =): 37 ____ -24
Convert Decimal to fraction: 0.75 = ____ (fraction)
Convert fraction to decimal: 3/4 (fraction) = ____ (decimal)
It will generate many problems as you can see above. There are many types of them. As the questions it will be different for each student (the random's seed always be the same for the student to generate always the test), I need to store his answers, but I don't know what type I can store the data, because some are doubles, others integers, others like fraction I need to store two integers, in comparison it is a char.
And none of the problems must be repeated.
The student is going to answer the examen question by question, it'll have X time to answer the problem, and the problems are organized by subject (check below the scan image).
The problem is how to model it, all of them are very differents, if they must be in a collection class. Sorry, I'm a little lost.