Results 1 to 2 of 2
  1. #1
    babe20042004 is offline Member
    Join Date
    Mar 2010
    Rep Power

    Default How would I structure this program? A bit unsure of what is being asked

    You are required to write a software application that manages an international outdoor car rally for thirty-two (32) cars. Thirty-two countries around the globe have a single representative team to this tournament. For each race, four cars compete per race. The best 16 race times goes forward to the second round, and the best 8 to the third round and the best 4 to the finals. Each country has a team of two navigators and three drivers. One driver per team can drive no more than once, that is each team must have a new driver for each round, but navigators are the one who suffer if the team times are low. A team that progresses to the final round can chose any driver. Therefore a team may use only one navigator or may use both. The rule of thumb is that if the car placing in a particular race is last, then the navigator is not given the chance to race again.
    Your solution may use the following ADTs but must show evidence of the bolded ones:
    A sorting algorithm of your choice to output the final list of participant sorted in order of tournament placing.
    A queue or stack structure to manage the race. Hint used predefined class!
    Linked list can be used. Their use in this solution set is intuitive.
    You will need to use the Math object to generate a random number. In most races, times are lowered as you progress to the rounds. Therefore for the first race, your times may average 45-50 seconds, your second round times of 40-45 seconds, and your semifinal stage times of 39-42 second and the finals 37-40 seconds.
    For examples your race time for second car in a Round One race may be assigned as follows

    secondCar = 45 + Math.rnd() + RoundOneOffset ;

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Please look at the link in my signature So you need write a program.... I'm also moving this post to the new to java forum as it is not an advanced question.

    Also, you posted a question in March which received two replies which you never acknowledged. If you want to encourage folks to help you here, you might want to let them know that you at least read what was posted. Otherwise, why should anyone reply?

    Much luck.
    Last edited by Fubarable; 04-01-2010 at 05:17 PM.

Similar Threads

  1. Zip Directory Structure
    By freestatedon in forum New To Java
    Replies: 2
    Last Post: 02-15-2010, 07:11 AM
  2. program structure
    By mac in forum New To Java
    Replies: 1
    Last Post: 12-30-2009, 12:59 PM
  3. [SOLVED] Key listener, unsure abt the tab key
    By dbashby in forum New To Java
    Replies: 7
    Last Post: 04-16-2009, 05:49 AM
  4. Use if then else structure, help
    By paul in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:00 AM
  5. Help with Structure
    By Albert in forum New To Java
    Replies: 1
    Last Post: 07-13-2007, 03:27 PM

Posting Permissions

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