Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: HII

  1. #1
    Junior Member srishti19's Avatar
    Join Date
    Apr 2013
    Location
    India
    Posts
    1
    My Mood
    Stressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HII



    So this is my first baby step here..ever (havent joined any forum..of any kind... before this)

    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 start-up company, and since then, I sleep, dream Java only.

    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. 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)



    Can anyone please guide me through this confusing thought??


  2. #2
    Member Chris.Brown.SPE's Avatar
    Join Date
    May 2008
    Location
    Fort Wayne, Indiana
    Posts
    190
    Thanks
    1
    Thanked 31 Times in 31 Posts

    Default 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?
    Writing code is your job, helping you fix and understand it is mine.

    <-- Be sure to thank and REP (Star icon) those who have helped you. They appreciate it!

Similar Threads

  1. hii
    By abhijit@92 in forum Member Introductions
    Replies: 3
    Last Post: November 26th, 2012, 06:02 AM
  2. hii....J2ME sms app
    By goelritanshu1991 in forum Java ME (Mobile Edition)
    Replies: 2
    Last Post: September 23rd, 2012, 09:21 AM
  3. hii friends....
    By khader in forum Member Introductions
    Replies: 2
    Last Post: July 15th, 2010, 07:09 AM
  4. Hii everyone
    By Rain in forum Member Introductions
    Replies: 2
    Last Post: April 8th, 2010, 03:09 AM