Closed Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: use GUI application to be used to test Kindergarden children on the alphabet (‘A’-‘Z

  1. #1
    funjoke88 is offline Newbie
    Join Date
    Jul 2009
    Posts
    22
    Rep Power
    0

    use GUI application to be used to test Kindergarden children on the alphabet (‘A’-‘Z

    The application will ask questions like:

    What comes after D?

    A child is expected to answer the question and the application will inform the child if the answer is correct or wrong. The application will ask a total of 20 questions. After all 20 questions have been answered, the application will display a score (from 0 to 20) to inform the child how many questions he or she answered correctly. The application will also list all the letters that were asked.

    The letters tested are from ‘A’ up to ‘Y’. Do not include the letter ‘Z’. The letters are selected randomly. No letters are to be repeated, that is, each letter is only asked once in the 20 questions.

    Note: The java.util.Random class can be used to generate random numbers. For example, the following statements may be used to generate a random number from 0 to 4 inclusive:

    Random generator = new Random();
    int number = generator.nextInt(5);


    PLS HELP ME IN THIS QUESTION
    IT USE JAVA AND GUI APPLICATION
    ANYWAN WHO HAVE THE SOURCE CODE?
    Last edited by James.H; 03-16-2010 at 03:32 PM.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    May 2009
    Location
    Belgium
    Posts
    1,881
    Rep Power
    24

    Re: use GUI application to be used to test Kindergarten children on the alphabet (‘A

    Because this seriously looks like a school task nobody would tend to help if you don't post what you allready have so far. We help, wo don't do homework.
    So post us what you've got so far, please.

  4. #3
    Shaddix's Avatar
    Shaddix is offline Programmer
    Join Date
    Apr 2009
    Location
    Westmalle, Antwerpen, Belgium, Belgium
    Posts
    104
    Rep Power
    11

    Re: use GUI application to be used to test Kindergarten children on the alphabet (‘A

    this is quite an easy project

    the thing you should do is put the alphabet in an array

    you can get a letter from an array like this:

    String test = alphabetArray[0]; //this will put the letter "a" into test
    String test = alphabetArray[1]; //will put "b" into test
    ...
    String test = alphabetArray[25]; //will put "z" into test

    now you know you can get letters by numbers

    like in your first post, you can generate numbers

    so if you put the result of your randomgenerator in the veriable randomNumber, you can use that to get a letter from the alphabet

    String test = alphabetArray[randomNumber];

    I'm not putting the full sourcecode here, but from what I told you should be able to make a start, that is if you're serious about learning Java

  5. #4
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: use GUI application to be used to test Kindergarten children on the alphabet (‘A

    A to Y is 25 letters.

    Beyond that, what do you have so far? What part of it is confusing?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #5
    Shaddix's Avatar
    Shaddix is offline Programmer
    Join Date
    Apr 2009
    Location
    Westmalle, Antwerpen, Belgium, Belgium
    Posts
    104
    Rep Power
    11

    Re: use GUI application to be used to test Kindergarten children on the alphabet (‘A

    Quote Originally Posted by WingedPanther View Post
    A to Y is 25 letters?
    was that a reaction on my post? because in an array 0-25 is A-Z, so 26 letters

  7. #6
    Join Date
    May 2009
    Location
    Belgium
    Posts
    1,881
    Rep Power
    24

    Re: use GUI application to be used to test Kindergarten children on the alphabet (‘A

    You can't ask 'what's beyond 'Z' to children. It confuses them

  8. #7
    Shaddix's Avatar
    Shaddix is offline Programmer
    Join Date
    Apr 2009
    Location
    Westmalle, Antwerpen, Belgium, Belgium
    Posts
    104
    Rep Power
    11

    Re: use GUI application to be used to test Kindergarten children on the alphabet (‘A

    true, but you have to have it in your array, else you can't validate the answer for the letter "Y"
    you just have to make sure your random generator doesn't generate the number 25 or higher

  9. #8
    Join Date
    May 2009
    Location
    Belgium
    Posts
    1,881
    Rep Power
    24

    Re: use GUI application to be used to test Kindergarten children on the alphabet (‘A

    okay, you have a good point there

  10. #9
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: use GUI application to be used to test Kindergarten children on the alphabet (‘A

    Quote Originally Posted by Shaddix View Post
    was that a reaction on my post? because in an array 0-25 is A-Z, so 26 letters
    It was a response to the OP.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  11. #10
    funjoke88 is offline Newbie
    Join Date
    Jul 2009
    Posts
    22
    Rep Power
    0

    Re: use GUI application to be used to test Kindergarden children on the alphabet (‘A

    Shaddix ,can u give me the code ,because i really dunno how to write ....i am poor in this subject .so pls guide me thanks

Closed Thread
Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. get numbers and alphabet using php
    By lol33d in forum PHP Development
    Replies: 4
    Last Post: 08-25-2011, 11:44 AM
  2. Finding All Children
    By BlaineSch in forum Database & Database Programming
    Replies: 4
    Last Post: 11-30-2009, 01:04 PM
  3. Online Test Application Help.
    By sat147 in forum C# Programming
    Replies: 12
    Last Post: 09-19-2009, 08:53 AM
  4. Loose coupling and parents/children/related
    By RedShift in forum General Programming
    Replies: 4
    Last Post: 12-06-2008, 10:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts