Solved

# What's strategy to write this simple prog. in perl ?

Posted on 1998-11-07

I have a file which contain lots of numbers. I want to find the frequancy of each range.Can somebody

help me with the strategy to write this program. -the file contain numbers say 1-1000 so the min and max are known in advance

-the user input the width eg. 10 so there should be 1000/10 =100 number of classes (width=user input variable)

the program should search and find the frequency between numbers b/w 0-199, 200-299, 300-399 until 1000 so the result should be

class Lower limit upper limit frequency Prop

0 0.000 199.000 120 0.0987

Thanks alot for you help