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!!
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?
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.