in reply to To find the no of occurenaces and max min value

Assuming you're able to open the input file, read it, and extract the appropriate data fields, this really is "just a matter of programming".

One way is to keep track of max, and of min, as well as a count for max, and a count for min. Iterate over the file. Every time you find a max that is greater than your existing max, reset the counter to 1 and set your new max. Same for min. Every time you find a value that equates to your existing max, just increment the counter. Same for min. When you are done iterating, your max and your min will be known, and you will have a count for each.

If that doesn't give you enough to go on, give use more background on what you've tried and how it's failed. A small self-contained code example that can compile and run will be useful so that we can assist in getting it to do what you want.


Dave

  • Comment on Re: To find the no of occurenaces and max min value