Question subject: I need help with this C# exercise
Posted: Tue Jun 16, 2009 5:06 pm
Joined: Fri Jun 12, 2009 5:21 pm Posts: 1 Has thanked: 0 time Have thanks: 0 time
I have a list of swimmers with their finish times and ages shown in the table below. How do I write a C# code to display the swimmers sorted by finish time with a column showing their finish position (ranking) within their age group.
The age groups are 11 - 20 years 21 - 30 years 30+ years
Name Time Age -------------------- Bob 10 21 Dave 16 16 Jon 20 26 Doug 17 29 Mike 15 31 Jerry 8 18 Dan 25 36 Ed 13 20 Stan 30 36
I can do a sorting based on finish time but how can I sort these objects based on age as well? Thanks for your suggestions.