Results 1 to 2 of 2
- 04-01-2010, 04:27 PM #1Member
- Join Date
- Mar 2010
- Rep Power
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 ;
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?
Last edited by Fubarable; 04-01-2010 at 05:17 PM.
- By freestatedon in forum New To JavaReplies: 2Last Post: 02-15-2010, 06:11 AM
- By mac in forum New To JavaReplies: 1Last Post: 12-30-2009, 11:59 AM
- By dbashby in forum New To JavaReplies: 7Last Post: 04-16-2009, 05:49 AM
- By paul in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:00 AM
- By Albert in forum New To JavaReplies: 1Last Post: 07-13-2007, 03:27 PM