Results 1 to 3 of 3

Thread: Coding Problem

  1. #1
    mfaulhaber is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default Coding Problem

    Hello members of the Java Forum,

    I'm not sure if this belongs here as i've found nowhere else to post questions and I hate for my first post as a member of the forum to be me asking for help with a problem but i've found nothing that can help me. I've been assigned to design an application that can take a comma delimited file that shows the names of 15 students and their times in the 100 meter race, 800 meter race, the distance that the jumped in the long jump and whether or not they passed their fitness exam and put them into 3 groups of 5 based on their abilities. a sample line looks like this.

    Betsy,7.3sec,3min 38 sec, 5'3",Pass

    I'm not allowed to use the array sort class and i've no idea were to start. any help would be great thanks in advanced!!

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Start by creating a Person class with those attributes.
    You can read the file using FileReader/BufferedReader combination.
    you can split each line into individual values using the String.split method.
    What are the rules for deciding which group the person goes to?

  3. #3
    mfaulhaber is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default

    Hey thanks for the reply. There are no guidelines for splitting the students into groups. They just have to be equal in ability so that each group has a chance to win a fitness competition. The groups are created based on what I feel should make them groups. I was thinking of assigning a point system for each category, the top person in each category gets max points for that category and the rest get points according to a ratio. Think of it as the curving system that teachers use, the top scorer on a test gets full credit and then the rest of the studentís scores are based off that students score. Then after all of their points are totaled I arrange the students in order based off their points and then split them into groups by taking the top 2, 1 from the median, and then the bottom 2. Then the next group is the next top 2 the next median, the next bottom 2 etc. My grammar and punctuation are terrible Iím sorry. But thatís what I want to do. I just learned that Iím allowed to use tools such as Excel to do sorting but the arrangement of groups must be programmed. Wow that was a mouthful, thanks again for your help.

Similar Threads

  1. Coding help
    By Java_Fanatic in forum New To Java
    Replies: 7
    Last Post: 10-15-2009, 05:37 AM
  2. Hi folks, I have same problem with coding!!!
    By PVL268 in forum New To Java
    Replies: 2
    Last Post: 02-26-2009, 01:08 AM
  3. Help On Coding problem
    By mandrake446 in forum New To Java
    Replies: 3
    Last Post: 12-08-2007, 08:01 AM
  4. Cannot solve the coding problem of my assignment
    By elimmom in forum New To Java
    Replies: 3
    Last Post: 08-13-2007, 12:33 PM
  5. Problem in my coding
    By one198 in forum New To Java
    Replies: 9
    Last Post: 08-09-2007, 11:07 AM

Posting Permissions

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