Dear all;
I want to sort and class the random data by using C programming. The below are example of th data:
Diameter Velocity
0.05 1.0
0.05 1.2
0.15 2.2
0.05 1.2
0.25 3.1
0.35 4.3
0.25 3.1
0.35 4.3
0.45 5.7
0.15 2.2
0.15 2.0
I want to get the maximum number of occurence of the velocity for a given size. If you look from above data so the result is:
0.05 = 1.2 (2 times)
0.15 = 2.2 (2 times)
etc...
Could you help me all? how to class the above data ? and also how to read the data in better way because the header is character.
Thanks for your help
Cheers
Marzuki