Total members 10259 | Gratitudes |It is currently Mon May 21, 2012 2:44 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Question
 Question subject: I need help with this C# exercise
PostPosted: Tue Jun 16, 2009 5:06 pm 
Offline
Newbie
User avatar

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.


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team