
HII
:rolleyes:
So this is my first baby step here..ever (havent joined any forum..of any kind... before this) :o
I am not very comfortable with Java.. I am still trying to come in terms with it.. I thought I would continue learning it at my standard slow pace, until I entered this startup company, and since then, I sleep, dream Java only.8>
I am working on Eclipse platform. Now the company where I work in basically provides online assessments for recruitment purposes to companies. So, as expected, we need constant inflow of new questions to keep on adding to our question bank.:
Now comes the main part.
We keep getting new content(questions) from 'authors'..(basically graduate students, who frame up the questions, and are paid in return if the content is good and not plagiarized). But, before that, I basically have to prune and and check the questions and answers that they have sent.
Now I was wondering if I could just develop a small Java automation feature, where in the existing values of a question are changed automatically, thus generating a new question and answer.
I'll provide an easy example to make more sense. Suppose the following question
"There are 5 apples in a basket. There are 10 such baskets. So how many apples are there in total?"
So I am wanting a code, that changes the mathematical values at back end, to generate a similar new question, like
"There are 8 apples in a basket. There are 5 such baskets. So how many apples are there in total?"
I understand we can provide an excel sheet with all the relevant numbers, that can be picked up by the Java code randomly, to keep generating new qstns like this. I hope I am clear with the problem. ~X( This way, I wont have to keep contacting authors for new qstns all the time, and then prune and check their answers manually. I would just need one question in a particular format, and then I can keep generating new questions with different values. (I guess this can work with math questions as of now):confused:
X_X
Can anyone please guide me through this confusing thought??

Re: HII
Seems to me like you would just need to randomly generate your question values then you would have to code your solution so it knows what the answer is.
For your example, get a random number between 3 and 10 (or whatever your criteria is) for apples in a basket and a random number between 3 and 10 for number of baskets. Then your program would get your answer for you (apples * baskets in this case). To be honest it doesnt sound too difficult, but then again this is prolly a trivial question in comparison to what you actually need. If you have a more specific example of a question you are working with i'm sure we could help you more. Also what platform are you working with. J2EE? Swing appilcation? Command line?